# Malicious plugin update remote code

Plugin config or update that evals or proxies remote code on load

_Area: Software supply chain and CI/CD. Seen in 2 disclosed reports; latest 2026-11-23. Updated 2026-12-01._

## How it works
A plugin or extension trusts its own configuration and update channel as data, but that data is code. When the app loads a plugin, it reads a config file (or fetches a remote payload) and executes whatever it says — shell commands, `eval`'d PHP, proxied JavaScript — without the user ever choosing to run code. The broken assumption: "config shipped with a plugin is inert and comes from the developer." In practice the config directory can be cloud-synced, the release can be committed by a stolen account, or the plugin itself can be fake, so the config becomes an attacker-controlled execution path [E1](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-phantom-in-the-vault.md)[E2](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md)[E3](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md).

## Where it shows up
- Plugin config files (e.g. `data.json` under a synced `.obsidian/plugins/` folder) containing shell commands tied to triggers like vault open [E1](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-phantom-in-the-vault.md)
- A newly added file in a release that combines `eval`/dynamic code, `exec`, a fresh external endpoint, and disabled TLS verification [E2](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md)
- `eval()` of base64/XOR-decoded content fetched from a hardcoded C2 host [E2](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md)
- REST/AJAX endpoints that proxy remote payloads server-side and echo them same-origin [E3](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md)
- `init`-hooked functions calling `wp_set_auth_cookie()` on a hardcoded password [E3](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md)
- Plugin directories where all files share identical mtimes (timestomping) [E3](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md)

## How to review
The invariant: no plugin load path may execute content that arrived through sync, update, or network without an explicit, user-visible trust decision. Check that (1) synced config is treated as untrusted and never auto-runs commands; (2) release diffs introduce no new dynamic-code/exec/endpoint/TLS-off combination; (3) proxied responses are not served as same-origin executable content; (4) auth cannot be granted by a static secret. For each, ask: who can write this input, and does loading it run code?

## How finders spotted it
- EDR flagged suspicious PowerShell whose parent was Obsidian; analysts confirmed the parent was the legitimate signed binary, ruled out sideloading/asar tampering, then installed Obsidian and explored remote-vault sync, finding the Shell Commands `data.json` matching the observed command [E1](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-phantom-in-the-vault.md)
- Continuous diffing of each new plugin release against the prior version flagged a new file with dynamic code execution, shell exec, a new endpoint, disabled TLS, and users-table reads within a minute; exploitability confirmed on isolated test sites, then the same file traced to more plugins [E2](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md)
- Incident response noticed a generated naming pattern, a double-base64 C2 constant, and identical file mtimes indicating timestomping [E3](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md)

## Variants seen
- Legitimate plugin abused via attacker-supplied synced config [E1](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-phantom-in-the-vault.md)
- Backdoored release from a compromised developer account [E2](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md)
- Entirely fake, machine-generated plugin [E3](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md)

## Impact and severity
Full remote code execution and RAT delivery on desktop [E1](https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-phantom-in-the-vault.md); eval RCE, shell exec, password-hash dump, webshell and cron persistence surviving takedown [E2](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md); persistent admin takeover bypassing credential rotation and MFA, with same-origin proxying evading CSP and blocklists [E3](https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md). Severity is high: code runs in the trusted app context and persists.

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **Air WP Sync – Airtable to WordPress** (includes/airwp-online.php) 2.9.1 – 2.9.4: Supply Chain Compromise Backdoors Six WP connect Plugins, Blocked by WordPress.org’s Release Hold (CVE-2026-135202). Report: https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md
- **Obsidian** (community plugin sync (Shell Commands plugin)) (version not stated): Phantom in the vault: Obsidian abused to deliver PhantomPulse RAT. Report: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-phantom-in-the-vault.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Aelastic-co-security-labs-threat-command-phantom-in-the-vault.md
- E2: https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-supply-chain-compromise-backdoors-six-wp-connect-plugins-blocked-by-wordpress-orgs-release-ho.md
- E3: https://bugbountylibrary.com/r/blog%3Awordfence-com-blog-2026-11-machine-generated-fake-plugin-turns-wordpress-sites-into-javascript-delivery-points.md
