ET HUNTING Powershell Script Inbound Which Downloads C++ Compiler (Used by Stagers)


Query · suricata

flow:established,to_client;
http.response_body; bsize:<200;
content:"iwr|20|https|3a 2f 2f|download|2e|microsoft|2e|com|2f|download|2f|"; startswith;
content:"|2d|out|20 22 24|env|3a|TMP|2f|vc|5f|redist|2e|x64|2e|exe|22 3b 20 26 20 22 24|env|3a|TMP|2f|vc|5f|redist|2e|x64|2e|exe|22|"; endswith; fast_pattern;
target:dest_ip;
Raw source ET HUNTING Powershell Script Inbound Which Downloads C++ Compiler (Used by Stagers) · Suricata
Esc
Published by Emerging Threats Open ↗, licensed under BSD 3-Clause ↗. Line breaks added for readability; the rule is otherwise unchanged.
alert http $EXTERNAL_NET any -> $HOME_NET any (
    msg:"ET HUNTING Powershell Script Inbound Which Downloads C++ Compiler (Used by Stagers)";
    flow:established,to_client;
    http.response_body; bsize:<200;
    content:"iwr|20|https|3a 2f 2f|download|2e|microsoft|2e|com|2f|download|2f|"; startswith;
    content:"|2d|out|20 22 24|env|3a|TMP|2f|vc|5f|redist|2e|x64|2e|exe|22 3b 20 26 20 22 24|env|3a|TMP|2f|vc|5f|redist|2e|x64|2e|exe|22|"; endswith; fast_pattern;
    classtype:misc-activity;
    sid:2061723; rev:1;
    metadata:affected_product Windows_XP_Vista_7_8_10_Server_32_64_Bit, attack_target Client_Endpoint, tls_state plaintext, created_at 2025_04_17, deployment Perimeter, confidence High, signature_severity Informational, updated_at 2025_04_17, mitre_tactic_id TA0011, mitre_tactic_name Command_And_Control, mitre_technique_id T1105, mitre_technique_name Ingress_Tool_Transfer;
    target:dest_ip;
)

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.