Medium severityET HUNTINGActive in PcapHub scans

ET HUNTING PHP Filter Chains in HTTP URI

SID 2056494 · rev 1 · classtype web-application-activity

What this signature means

A hunting rule: a pattern that is worth investigating but is not malicious on its own. Expect false positives. Access to a web application or path that is commonly targeted or should not normally be exposed.

Generated from the rule itself: its category, classtype and metadata. Nothing here is guessed.

What it watches

HTTP traffic from any host to a monitored host, in an established connection, from client to server.

It fires when

  • the request URI contains "php|3a 2f 2f|filter|2f|" (bytes between | | are hexadecimal)
  • the request URI matches the regular expression "/^[^\x3d]*?(?:(?:convert\x2e(?:quoted-printable-(?:en|de)code|iconv(?:\x2e[a-z0-9_-]+){2}|base64-(?...

What Emerging Threats says

  • Emerging Threats rates it major with high confidence.
  • Target: Server.
  • Affected product: PHP.
  • MITRE ATT&CK technique T1190 (Exploit Public Facing Application), tactic Initial Access.
  • Meant for perimeter, internal, ssldecrypt sensors.

Good to know

  • Active in PcapHub's scan set: every uploaded capture is checked against it.

Public captures that trigger it1

Rule

alert http any any -> $HOME_NET any (msg:"ET HUNTING PHP Filter Chains in HTTP URI"; flow:established,to_server; http.uri; content:"php|3a 2f 2f|filter|2f|"; fast_pattern; pcre:"/^[^\x3d]*?(?:(?:convert\x2e(?:quoted-printable-(?:en|de)code|iconv(?:\x2e[a-z0-9_-]+){2}|base64-(?:de|en)code)|zlib\x2e(?:(?:in|de)flate)|string\x2e(?:(?:to(?:upp|low)er)|rot13|strip_tags)|dechunk|consumed)(?:\x7c|\x2f)?)+/R"; reference:url,github.com/swisskyrepo/PayloadsAllTheThings/blob/master/File%20Inclusion/README.md#wrapper-phpfilter; classtype:web-application-activity; sid:2056494; rev:1; metadata:affected_product PHP, attack_target Server, tls_state TLSDecrypt, created_at 2024_10_04, deployment Perimeter, deployment Internal, deployment SSLDecrypt, confidence High, signature_severity Major, tag Exploit, updated_at 2024_10_04, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application; target:dest_ip;)

Emerging Threats Open. Rule created Oct 4, 2024. Last revised by ET Oct 4, 2024. Text on PcapHub refreshed 7mo ago.