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-processes #93

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

New command: stack-processes #93

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

Comments

@YamatoSecurity
Copy link
Collaborator

stack-processes: stack executed processes

This command basically does this:

cat ../hayabusa/sample.json l | jq 'select(.EventID==1 or .EventID==4688) | .Details.Proc' -r | sort | uniq -c | sort -rn
7032 C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe
3556 C:\Windows\System32\cmd.exe
2552 C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
2136 C:\Windows\System32\conhost.exe
1024 C:\Windows\System32\dllhost.exe
 984 C:\Windows\System32\SearchFilterHost.exe
 932 C:\Windows\System32\SearchProtocolHost.exe
 594 C:\Windows\System32\cscript.exe
 586 C:\Program Files\Windows Media Player\wmpnscfg.exe
 540 C:\Windows\System32\PING.EXE
 426 C:\Windows\System32\rundll32.exe
 386 C:\Program Files\Google\Chrome\Application\chrome.exe
...

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