-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Code.yml #425
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
base: master
Are you sure you want to change the base?
Add Code.yml #425
Conversation
wietze
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @boku7 thanks for this - a few questions from me.
| Created: 2025-03-20 | ||
| Commands: | ||
| - Command: Code.exe | ||
| Description: Generate Node.JS JavaScript payload and package.json, and save to "%LOCALAPPDATA%\\Programs\\Microsoft VS Code\\\\resources\\app\\" before executing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generate Node.JS JavaScript payload and package.json
I can't find references to package.json in the blog, how does this work? Or is it the technique described in one of the blog posts you link, https://l--k.uk/2022/01/16/microsoft-teams-and-other-electron-apps-as-lolbins/ ?
| Detection: | ||
| - IOC: "%LOCALAPPDATA%\\Programs\\Microsoft VS Code\\resources\\app directory created" | ||
| - IOC: "%LOCALAPPDATA%\\Programs\\Microsoft VS Code\\Code.exe file created/modified by non-Code installer/updater" | ||
| - Sigma: https://github.com/SigmaHQ/sigma/blob/43277f26fc1c81fc98fc79147b711189e901b757/rules/windows/process_creation/proc_creation_win_susp_electron_exeuction_proxy.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the description this Sigma rule appears to be targeting other Electron applications, not including code.exe, and seemingly using a different technique than described here - is that correct?
VS Code Electron application hollowing with Node.JS JavaScript C2 code and arbitrary Node.JS JavaScript code execution