ET HUNTING X-Remote-IP Header Set to localhost


Query · suricata

flow:established,to_server;
http.header;
content:"x-remote-ip"; nocase; fast_pattern;
pcre:"/^[^\x2e]*(?:127(?:(\x2e0){1,}?\x2e1|(\x2e[0-9]{1,3}){1,3})|0177.?0000.?0000.?0001|7f000001|2130706433|01111111.?00000000.?00000000.?00000001|\x3a\x3a1|169\x2e254\x2e169\x2e254|ec2\x3a\x3a254|localhost)/Ri";
target:dest_ip;
Raw source ET HUNTING X-Remote-IP Header Set to localhost · 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 X-Remote-IP Header Set to localhost";
    flow:established,to_server;
    http.header;
    content:"x-remote-ip"; nocase; fast_pattern;
    pcre:"/^[^\x2e]*(?:127(?:(\x2e0){1,}?\x2e1|(\x2e[0-9]{1,3}){1,3})|0177.?0000.?0000.?0001|7f000001|2130706433|01111111.?00000000.?00000000.?00000001|\x3a\x3a1|169\x2e254\x2e169\x2e254|ec2\x3a\x3a254|localhost)/Ri";
    reference:url,community.owasp.org/attacks/Server_Side_Request_Forgery;
    classtype:misc-activity;
    sid:2072596; rev:2;
    metadata:attack_target Web_Server, tls_state TLSDecrypt, created_at 2026_10_29, deployment Perimeter, deployment Internal, deployment SSLDecrypt, performance_impact Low, confidence High, signature_severity Unknown, updated_at 2026_11_19, mitre_tactic_id TA0005, mitre_tactic_name Defense_Evasion, mitre_technique_id T1599, mitre_technique_name Network_Boundary_Bridging;
    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.