Skip to content

Conversation

GNU-Plus-Windows-User
Copy link
Contributor

Bots don't only scan the php files, they also scan for txt and md files and sometimes will only scan for one file type to try and evade detection.

@LaurenceJJones
Copy link
Contributor

LaurenceJJones commented Mar 3, 2025

Hey 👋🏻

What do you think of only detecting .md and .txt files within wp-content/plugins only? as static files in uploads I guess can contain these file types (even though it not recommend 😆 plus my wp knowledge is basic AF )

  evt.Meta.service == 'http' and
  evt.Meta.log_type in ['http_access-log', 'http_error-log'] and
  evt.Meta.http_status in ['404', '403'] and
  (
  Lower(evt.Meta.http_path) contains "/wp-" and
  Lower(evt.Meta.http_path) endsWith ".(php)"
  ) ||
  (
  Lower(evt.Meta.http_path) contains "/wp-content/plugins" and
  Lower(evt.Meta.http_path) matches "\\.(txt|md)$"
  )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants