{
"division_id":"Marksman-Test",
"ingest_time":"2018-08-08T16:00:57.000Z",
"type":"Foreman",
"action":
{
"objectType":"core.user_auth.login_failed",
"message":"Sign-In Failed - Verification failed for user: mobb...@marksman-test.com",
"requestUri":"/api/v1/authn",
"categories":
[
"Sign-in Failure",
"Suspicious Activity"
]
},
"actors":[
{
"objectType":"Client",
"displayName":"SAFARI",
"ipAddress":"17.77.29.26",
"id":"Mozilla/5.0 (iPhone; CPU iPhone OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1"}
],
"eventId":"MyKsA1525729898000tevgs9cs9eASZORaDR1c",
"targets":
[
{
"objectType":"User",
"id":""
}
],
"sessionId":"",
"requestId":"4SupNJyLDKTWvC@iKa66qAAACEM",
"@timestamp":"2018-05-07T21:00:57.000Z",
"customer_id":"Marksman-Test",
"published":"2018-08-08T16:00:57.000Z",
"@version":"1"
}
"message":"Sign-In Failed - Verification failed for user: mobb...@Marksman-Test.com",<decoder name="json"> <prematch>^{\s*"</prematch> </decoder> <decoder name="json_child"> <parent>json</parent> <prematch>^{\s*"</prematch> <plugin_decoder>JSON_Decoder</plugin_decoder> </decoder> <decoder name="json_child"> <parent>json</parent> <regex>Verification failed for user: (\S+)"</regex> <order>action.message.user</order> </decoder>
decoder: 'json' division_id: 'Marksman-Test' ingest_time: '2018-08-08T16:00:57.000Z' type: 'Foreman' action.objectType: 'core.user_auth.login_failed' action.message: 'Sign-In Failed - Verification failed for user: mobb...@marksman-test.com' action.requestUri: '/api/v1/authn' action.categories: 'Sign-in Failure,Suspicious Activity,' eventId: 'MyKsA1525729898000tevgs9cs9eASZORaDR1c' sessionId: '' requestId: '4SupNJyLDKTWvC@iKa66qAAACEM' @timestamp: '2018-05-07T21:00:57.000Z' customer_id: 'Marksman-Test' published: '2018-08-08T16:00:57.000Z' @version: '1' action.message.user: 'mobb...@marksman-test.com'
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/875bbf30-83dc-46e1-ba1d-d23dd8e6890c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you,
Jared R. Greene
VP, COO/CISO
Cloud Management International, LLC
p: 407.414.4003
f: 919.882.0956
www.cloudawarefederal.com
www.linkedin.com/in/jaredrgreene
Please consider the environment before printing this email. The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. This message is privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited.
| Arrays | Lists with zero or more values. These values may be different, but they must belong to some of the above. An array of objects is not supported. |
# Get Wazuh source code, branch 3.2 (currently 3.2.3 release-candidate) git clone https://github.com/wazuh/wazuh.git -b 3.2 cd wazuh # Patch git cherry-pick 3bfb09621df17df6d3ec43e9946c1c1802e3c327 # Fix conflict in the changelog file. This is optional but helpful to apply the commit. git checkout --ours CHANGELOG.md git add CHANGELOG.md git cherry-pick --continue # Compile Wazuh server make -C src -j4 TARGET=server # Stop Wazuh manager and install only the analysis daemon systemctl stop wazuh-manager cp src/ossec-analysisd /var/ossec/bin systemctl start wazuh-manager
size(a.b) > 2 && any x in a.b: (x =~ "sg*" || int(x) == 4) a.b[a.d + 2] == 4 && all x in a.c: (x.value > 7 || x.comment == null || x.children[0] == 2)
Looking for some additional guidance on this topic.1. Does this mean that I need to upgrade to 3.3 across the board where this JSON support is required or is there a patch?2. Is there a way to call out json array elements using the wazuh decoder?
{"@timestamp":"2018-06-10T18:51:58.000Z","division_id":"test","action":{"objectType":"core.user_auth.login_success","requestUri":"/api/v1/authy","message":"Sign-in successful","categories":["Sign-in Success"]},"targets":[{"displayName":"mob barley","objectType":"User","id":"0nums6","login":"mbarley@marksman-test.com"}],"sessionId":"ID","ingest_time":"2018-06-10T18:53:07Z","eventId":"event-id","type":"okta","published":"2018-06-10T18:51:58.000Z","requestId":"request-@id","@version":"1","customer_id":"marksman","actors":[{"displayName":"mob barley","objectType":"User","id":"letters","login":"mbarley@marksman-test.com.com"},{"displayName":"CHROME","objectType":"Client","ipAddress":"10.20.30.40","id":"AppleWebKit/537.26 (KHTML, like Gecko) Chrome/66.0.3359.639 Safari/537.26"}]}"actors":[{"displayName":"mob barley","objectType":"User","id":"0num6","login":"mbarley@marksman-test.com"},{"displayName":"CHROME","objectType":"Client","ipAddress":"10.20.30.40","id":"AppleWebKit/537.26 (KHTML, like Gecko) Chrome/66.0.3359.639 Safari/537.26"}]
We were able to get this working from the 3.3 branch. In order to get the nested values from within all of the Okata events, we added a decoder before the default json decoder as follows:<decoder name="okta"><prematch>"type":"okta"</prematch></decoder>We are decoding the rest of the fields vi regex and it is working well. We will keep an eye out for an enhancement that allows for json decoding.Completely unrelated question. We now have all 2214 Cisco Firepower Syslog events, Okta decoders, Juniper-SRX firewalls, and Oracle logs mapped to rules and decoders and that we would like to share. How does Wazuh manage or issue Rule Id number ranges to prevent overlap and duplication of id's. We would like to start pushing rules and decoders, but want to color in the lines and not create a bunch of work and refactoring for rule id ranges.Thank you!!Jared