Skip to content

Navigation Menu

Sign in
Sign up

TAU rules usage #113

Answered by alexkornitzer
PhilippRieth asked this question in Q&A
Discussion options

Hello,

It's not clear to me how to exactly use the TAU rules. I can't find any documentation on it. Can you give me an example and later update the readme / documentation?

I'm trying to combine to conditions with AND: The event ID being 4672 and the SubjectUserName being paul

--tau 'Event.System.EventID: =4672 and Event.EventData.SubjectUserName: =paul'

Can you help me?

That would be awesome! Awesome tool!

Cheers
Philipp

You must be logged in to vote

Ah apologies I missed that there was = on the paul one it shoud be:

--tau 'Event.System.EventID: =4672' --tau 'Event.EventData.SubjectUserName: paul'

You are correct in that the full expressional logic should be added to Chainsaw but this has not been done yet as the parsing is a bit complex vs what is provided in Tau. I will see if I can add that to my todo list.

Replies: 3 comments 1 reply

Comment options

Yep, so I need to probably create a Wiki page for what bits of Tau can be used where in Chainsaw and some cheatsheets etc. But to achieve what you want you should be able to do:

--tau 'Event.System.EventID: =4672' --tau 'Event.EventData.SubjectUserName: =paul'

Basically --tau does not support the condition block only key/value pairs.

You must be logged in to vote
0 replies
Comment options

Thanks for your quick reply. A Tau wiki with few examples would be great.

I checked out your WithSecureLabs/tau-engine repo and tried to understand how conditions work. Can you also do logical OR or AND queries? Something like "(EventID=4634 OR EventID =4673) AND SubjectUserName = PAUL"?

Your proposed example does not work for me:

 ❯ .\chainsaw.exe search "c:\evtx\" --from "2022年10月27日T00:00:00" --to "2022年11月04日T00:00:00" -t 'Event.System.EventID: =4634' -t 'Event.EventData.SubjectUserName: =Paul'

 ██████╗██╗ ██╗ █████╗ ██╗███╗ ██╗███████╗ █████╗ ██╗ ██╗
██╔════╝██║ ██║██╔══██╗██║████╗ ██║██╔════╝██╔══██╗██║ ██║
██║ ███████║███████║██║██╔██╗ ██║███████╗███████║██║ █╗ ██║
██║ ██╔══██║██╔══██║██║██║╚██╗██║╚════██║██╔══██║██║███╗██║
╚██████╗██║ ██║██║ ██║██║██║ ╚████║███████║██║ ██║╚███╔███╔╝
 ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚══╝╚══╝
 By Countercept (@FranticTyping, @AlexKornitzer)

[+] Loading forensic artefacts from: C:\evtx\
[+] Loaded 22 forensic files (82.9 MB)
[x] an invalid identifier was encountered during parsing: invalid digit found in string

Thanks a lot!

Best regards,
Philipp

You must be logged in to vote
0 replies
Comment options

Ah apologies I missed that there was = on the paul one it shoud be:

--tau 'Event.System.EventID: =4672' --tau 'Event.EventData.SubjectUserName: paul'

You are correct in that the full expressional logic should be added to Chainsaw but this has not been done yet as the parsing is a bit complex vs what is provided in Tau. I will see if I can add that to my todo list.

You must be logged in to vote
1 reply
Comment options

Awesome thanks!

Answer selected by alexkornitzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working

AltStyle によって変換されたページ (->オリジナル) /