Created
June 28, 2022 12:26
-
-
Save regit/3263cf673cbffbf7bbb58c009fd5d93d to your computer and use it in GitHub Desktop.
JQ command to extract domain, authenticated user, associated IPs from Suricata logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat eve.json | jq -r 'select(.event_type=="smb" and .smb.ntlmssp.user and .smb.ntlmssp.user!="" and .smb.status_code=="0x0" and .smb.ntlmssp.host!=.smb.ntlmssp.domain)| [ .smb.ntlmssp.domain, .smb.ntlmssp.user, .src_ip ] | @csv' | sort | uniq >users.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment