as was done by unit test DetectSNMPCommunityTest
--- /dev/null
+# Test Purpose
+
+Match on SNMP community keyword
+
+## PCAP
+
+This PCAP from snmp-v2c-get is reused, as was done in DetectSNMPCommunityTest for first packet
--- /dev/null
+alert snmp any any -> any any (msg:"SNMP Test Rule"; snmp.community; content:"[R0_C@cti!]"; sid:1; rev:1;)
+alert snmp any any -> any any (msg:"SNMP Test Rule"; snmp.community; content:"private"; sid:2; rev:1;)
--- /dev/null
+pcap: ../snmp-v2c-get/SNMPv2c_get_requests.pcap
+
+checks:
+ - filter:
+ count: 8
+ match:
+ event_type: alert
+ alert.signature_id: 1
+
+ - filter:
+ count: 0
+ match:
+ event_type: alert
+ alert.signature_id: 2