Find a pcap package of mqtt, write a test rule, hit it and generate an alarm.
However, when checking eve.json, I find that there are no mqtt events. Why? Obviously, the mqtt configuration has been configured and an alarm has been generated. We also found some rule fields about mqtt, such as mqtt.protocol_version, mqtt.type and other fields can not make the written rules hit. Please refer to the instructions on the official website. After many tests, no alarm can be generated. If these fields are used. mqtt1.pcap (1.8 KB)
Hi, first of all please don’t post ET Pro rules publicly, they’re not for free. I removed the picture from your post. You can repost your dedicated rule again.
I use suricata.yaml to configure midstream, but this configuration method does not take effect. Then I try to set it by command. There are mqtt events in the output log.
Sounds like things are working and you’re now getting MQTT events.
Note that Suricata can reload rules and rule variables but cannot reload configuration changes – configuration changes require Suricata to be restarted.