Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: stack-cmdlines #94

Closed
YamatoSecurity opened this issue Feb 9, 2024 · 0 comments · Fixed by #105
Closed

New command: stack-cmdlines #94

YamatoSecurity opened this issue Feb 9, 2024 · 0 comments · Fixed by #105
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@YamatoSecurity
Copy link
Collaborator

stack-cmdlines: stack executed command lines

This command basically does this:

cat ../hayabusa/sample.jsonl|jq 'select(.EventID==1 or .EventID==4688) | .Details.Cmdline' -r | sort | uniq -c | sort -rn
1352 n/a
 652 "C:\Windows\system32\SearchFilterHost.exe" 0 520 524 532 65536 528"
 576 "C:\Program Files\Windows Media Player\wmpnscfg.exe"
 548 \??\C:\Windows\system32\conhost.exe 0xffffffff
 540 "C:\Windows\system32\cscript.exe" /nologo "MonitorKnowledgeDiscovery.vbs"
 492
 428 \??\C:\Windows\system32\conhost.exe 0xffffffff -ForceV1
 406 C:\Windows\system32\DllHost.exe /Processid:{E10F6C3A-F1AE-4ADC-AA9D-2FE65525666E}
 340 "C:\Windows\system32\more.com"
 318 "C:\Windows\system32\SearchFilterHost.exe" 0 516 520 528 65536 524"
...

default output to stdout can be same as above with an option to save to a CSV file.
Also should include 2 options to filter out either Sysmon 1 logs (--ignoreSysmon) or Security 4688 logs (--ignoreSecurity).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants