Skip to content

Instantly share code, notes, and snippets.

@dcode
Created November 30, 2015 20:36
Show Gist options
  • Select an option

  • Save dcode/9e9f72057862b2fba96c to your computer and use it in GitHub Desktop.

Select an option

Save dcode/9e9f72057862b2fba96c to your computer and use it in GitHub Desktop.
An overkill but effective snort rule for testing
alert udp $HOME_NET any -> any 53 (msg:"DNS request for IDS test domain: purple.com"; flow:to_server; byte_test:1,!&,0xF8,2; content:"|06|purple|03|com|00|"; fast_pattern:only; metadata:impact_flag red, policy balanced-ips drop, policy security-ips drop, service dns; \ sid:1234567 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment