<group name="aws,">
<rule id="100002" level="5">
<field name="GeoLocation.country_name">United Kingdom</field>
<description>AWS signin from the United Kingdom detected.</description>
</rule>
</group>
<group name="aws,">
<rule id="100003" level="5">
<decoded_as>json</decoded_as>
<field name="data.aws.eventSource">signin.amazonaws.com</field>
<description>AWS signin detected.</description>
</rule>
</group>
My questions:
1. Do my rules look correct?
2. How would I test my rule with logtest considering it's a multi-line json log? I've tried something like the below single line json but it doesn't match.
{"data":{"aws":{"eventSource":"signin.amazonaws.com","eventName":"ConsoleLogin","eventType":"AwsConsoleSignIn","eventTime":"2023-09-06T09:44:26Z","userIdentity":{"sessionContext":{"attributes":{"mfaAuthenticated":"false","creationDate":"2023-09-06T09:44:26Z"}},"type":"AssumedRole"},"responseElements":{"ConsoleLogin":"Success"}},"GeoLocation":{"country_name":"United Kingdom","city_name":"City","region_name":"Region"},"rule":{"description":"AWS Cloudtrail: signin.amazonaws.com - ConsoleLogin - User login success.","id":"80253","level":3},"location":"Wazuh-AWS","decoder":{"name":"json"},"timestamp":"2023-09-06T09:48:39.295+0000"}
3. How do I test that my GeoIP.db is working correctly so that I can process geolocation data through alerts/rules?
Thank you very much for any help!
--
You received this message because you are subscribed to the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/5bf1f3e8-e175-4e81-8d1b-8548fd02f233n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/5d8d589b-0c51-42b2-80bf-e4b03d3fc50bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e66f835c-9308-477d-a549-01bc1520fb43n%40googlegroups.com.