Process Argument Spoofing

T1564.010

Sub-technique of T1564 Hide Artifacts.View on attack.mitre.org

About this technique

Adversaries may attempt to hide process command-line arguments by overwriting process memory. Process command-line arguments are stored in the process environment block (PEB), a data structure used by Windows to store various information about/used by a process. The PEB includes the process command-line arguments that are referenced when executing the process. When a process is created, defensive tools/sensors that monitor process creations may retrieve the process arguments from the PEB.

Adversaries may manipulate a process PEB to evade defenses. For example, Process Hollowing can be abused to spawn a process in a suspended state with benign arguments. After the process is spawned and the PEB is initialized (and process information is potentially logged by tools/sensors), adversaries may override the PEB to modify the command-line arguments (ex: using the Native API WriteProcessMemory() function) then resume process execution with malicious arguments.

Adversaries may also execute a process with malicious command-line arguments then patch the memory with benign arguments that may bypass subsequent process memory analysis.

This behavior may also be combined with other tricks (such as Parent PID Spoofing) to manipulate or further evade process-based detections.

Detection rules0

Rules on DetectionCode tagged with T1564.010.

Sigma0

No Sigma rules are mapped to this technique yet.

Splunk0

No Splunk rules are mapped to this technique yet.

Groups0

None recorded.

Software2

Campaigns0

None recorded.

Procedure examples2

Software2

Used byProcedure example
MalwareCobalt Strike

Cobalt Strike can use spoof arguments in spawned processes that execute beacon commands.

MalwareSombRAT

SombRAT has the ability to modify its process memory to hide process command-line arguments.

References5

  1. Cobalt Strike Arguments 2019 Open source
    Mudge, R. (2019, January 2). https://blog.cobaltstrike.com/2019/01/02/cobalt-strike-3-13-why-do-we-argue/. Retrieved November 19, 2021.
  2. FireEye FiveHands April 2021 Open source
    McLellan, T. and Moore, J. et al. (2021, April 29). UNC2447 SOMBRAT and FIVEHANDS Ransomware: A Sophisticated Financial Threat. Retrieved June 2, 2021.
  3. Microsoft PEB 2021 Open source
    Microsoft. (2021, October 6). PEB structure (winternl.h). Retrieved November 19, 2021.
  4. Nviso Spoof Command Line 2020 Open source
    Daman, R. (2020, February 4). The return of the spoof part 2: Command line spoofing. Retrieved November 19, 2021.
  5. Xpn Argue Like Cobalt 2019 Open source
    Chester, A. (2019, January 28). How to Argue like Cobalt Strike. Retrieved November 19, 2021.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.