]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
alert-testmyids: add target to rule 1243/head
authorJason Ish <jason.ish@oisf.net>
Fri, 5 May 2023 21:12:16 +0000 (15:12 -0600)
committerShivani Bhardwaj <shivanib134@gmail.com>
Mon, 12 Jun 2023 04:53:03 +0000 (10:23 +0530)
Choose a simple test to add the target keyword to as no other tests do
this. This will excercise the "source" and "target" fields in the JSON
schema.

tests/alert-testmyids/test.rules

index 9f1307bdb4bf5b6d4cb660a455d8c1adb710bdcf..8eb5f02671dd405d17ce9b56340c37e3f1b2010b 100644 (file)
@@ -1 +1 @@
-alert ip any any -> any any (msg:"GPL ATTACK_RESPONSE id check returned root"; content:"uid=0|28|root|29|"; classtype:bad-unknown; sid:2100498; rev:7;)
+alert ip any any -> any any (msg:"GPL ATTACK_RESPONSE id check returned root"; content:"uid=0|28|root|29|"; target:dest_ip; classtype:bad-unknown; sid:2100498; rev:7;)