I’m new to Suricata. If I had a specific folder on a server that has Suricata running (let’s say the folder is called “blog”) how do I have Suricata alert on that specific filepath when say GET or POST is used?
The rule I have now is
alert http any any → any any (msg: “GET request”; content:“GET”; http_method; sid:99992;)
And I would’ve thought that the right modification to get what I want would be
alert http any any → any any (msg: “GET request”; content:“GET”; content: “blog”; sid:99992;)
Or something similar. Can I use something like this
alert http any any → any any (msg: “GET request”; content:“GET”; http_method; content: “blog”; http_uri; sid:99992;)
The real issue may be that I’m not querying it correctly. In another machine I’m using
curl /blog/
is that the right syntax for triggering those rules?