Skip to content

Plugin Change Detection

Alert ID: plugin_changes MITRE ATT&CK: T1072 – Software Deployment Tools · T1505 – Server Software Component


LevelCondition
LowPlugin update or deactivation
MediumExisting plugin activation
HighPlugin installation or deletion

  • Malicious plugins: a major WordPress attack vector.
  • Supply-chain attacks: compromised plugins from official or third-party repositories.
  • Hidden backdoors: extensions with legitimate-looking names but malicious code.
  • Privilege escalation: vulnerable plugins that grant administrative access.
  • Data theft: plugins designed to extract sensitive site or user information.

  • Activation: activated_plugin hook.
  • Deactivation: deactivated_plugin hook.
  • Installation: upgrader_process_complete with action=install.
  • Update: upgrader_process_complete with action=update.
  • Deletion: deleted_plugin hook.

TypePattern / ExampleDescription
file_patternwp-striplple, wp-vcd, initiatorKnown malicious plugins
file_patterneval-php, wp-filemanagerDangerous or vulnerable plugins
behavior*backup*, *clone*, *migrate*Suspicious generic names
behaviorPlugins outside wp-content/pluginsAnomalous location
behaviorPermissions 777Uncontrolled execution risk

  • Legitimate automatic updates.
  • Installations or deletions by authorized administrators.
  • Development or staging environments with temporary tests.
  • Planned maintenance or controlled deployments.

  1. Verify plugin origin:

    Terminal window
    wp plugin verify [plugin-name]
  2. Compare version and integrity with the official repository:

    Terminal window
    wp plugin check-update [plugin-name]
  3. Search for malicious code:

    Terminal window
    grep -r "eval\|base64\|exec" wp-content/plugins/[plugin-name]
  4. Check reputation and source: repository, active installs, and reviews.


=== “Immediate”

!!! danger ""
- Immediately deactivate any suspicious plugin.
- Verify integrity using official checksums when available.
- Scan with tools such as **WPScan** or similar.
- Review recent file and configuration changes.

=== “Preventive”

!!! tip ""
- Implement an approval policy before new installations.
- Use only plugins from the official WordPress repository or trusted vendors.
- Test updates in staging first.
- Monitor active vulnerabilities through reputable WordPress vulnerability sources.
- Restrict the `install_plugins` capability to trusted accounts.

  • WordPress Plugin Security
  • WPScan Vulnerability Database