Open
Conversation
wietze
reviewed
Apr 26, 2025
| 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. |
Member
There was a problem hiding this comment.
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 |
Member
There was a problem hiding this comment.
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?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VS Code Electron application hollowing with Node.JS JavaScript C2 code and arbitrary Node.JS JavaScript code execution