ET HUNTING SQL Database Version Discovery


Query · suricata

flow:established,to_server;
content:"select"; nocase;
content:"version"; fast_pattern; distance:0;
pcre:"/(?:[sS][eE][lL][eE][cC][tT]|[fF][rR][oO][mM])(?:\s|\x2520|[\x2b\x7c])+(?:v\x24(?:version|instance)|\x40{2}version|version\x28\x29)/";
target:dest_ip;
Raw source ET HUNTING SQL Database Version Discovery · Suricata
Esc
Published by Emerging Threats Open ↗, licensed under BSD 3-Clause ↗. Line breaks added for readability; the rule is otherwise unchanged.
alert tcp any any -> $HOME_NET any (
    msg:"ET HUNTING SQL Database Version Discovery";
    flow:established,to_server;
    content:"select"; nocase;
    content:"version"; fast_pattern; distance:0;
    pcre:"/(?:[sS][eE][lL][eE][cC][tT]|[fF][rR][oO][mM])(?:\s|\x2520|[\x2b\x7c])+(?:v\x24(?:version|instance)|\x40{2}version|version\x28\x29)/";
    reference:url,portswigger.net/web-security/sql-injection/cheat-sheet;
    classtype:misc-activity;
    sid:2062928; rev:2;
    metadata:attack_target Server, created_at 2025_06_13, deployment Perimeter, deployment Internal, performance_impact Significant, confidence High, signature_severity Informational, updated_at 2025_10_09;
    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.