Examples of process parameter forgery
The following example is the masqueradeCmdline
, which can be found in the Chapter#3
folder of the GitHub project, which is publicly available in this book's repository. In order to save space, this book only extracts the highlights code; please refer to the complete source code to see the full project.
Many Red Teams or attackers who conduct attacks on local machines often encounter antivirus software, endpoint defense products, or event logging monitoring, and expect their attack commands to be undetected or untraceable. The process hollowing (RunPE) technique we looked at in Chapter 2 proposed an idea: If we create a child process with bogus parameters and the actual execution reads the attack parameters that we have placed, can this bypass local monitoring by antivirus?
For example, ransomware often uses the vssadmin delete shadows /all /quiet
command to delete a user’s backup data. Each antivirus software will strictly check...