ET POLICY Powershell Command With Encoded Argument Over SMB - Likely Lateral Movement


Query · suricata

flow:established,to_server;
content:"SMB"; depth:8;
content:"|00|p|00|o|00|w|00|e|00|r|00|s|00|h|00|e|00|l|00|l|00|"; nocase; distance:0; fast_pattern;
content:"|00|-|00|e|00|"; nocase; distance:0;
pcre:"/^(?:[NnCcOoDdEeMmAa^]\x00){0,27}/R";
Raw source ET POLICY Powershell Command With Encoded Argument Over SMB - Likely Lateral Movement · Suricata
Esc
Published by Emerging Threats Open ↗, licensed under BSD 3-Clause ↗. Line breaks added for readability; the rule is otherwise unchanged.
alert smb any any -> [$HOME_NET,$HTTP_SERVERS] 445 (
    msg:"ET POLICY Powershell Command With Encoded Argument Over SMB - Likely Lateral Movement";
    flow:established,to_server;
    content:"SMB"; depth:8;
    content:"|00|p|00|o|00|w|00|e|00|r|00|s|00|h|00|e|00|l|00|l|00|"; nocase; distance:0; fast_pattern;
    content:"|00|-|00|e|00|"; nocase; distance:0;
    pcre:"/^(?:[NnCcOoDdEeMmAa^]\x00){0,27}/R";
    classtype:trojan-activity;
    sid:2025721; rev:4;
    metadata:attack_target SMB_Client, created_at 2018_07_17, deployment Perimeter, deployment Internal, performance_impact Low, confidence High, signature_severity Major, updated_at 2026_04_27, mitre_tactic_id TA0008, mitre_tactic_name Lateral_Movement, mitre_technique_id T1570, mitre_technique_name Lateral_Tool_Transfer;
)

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.