Create Process with Token

T1134.002

Sub-technique of T1134 Access Token Manipulation.View on attack.mitre.org

About this technique

Adversaries may create a new process with an existing token to escalate privileges and bypass access controls. Processes can be created with the token and resulting security context of another user using features such as CreateProcessWithTokenW and runas.

Creating processes with a token not associated with the current user may require the credentials of the target user, specific privileges to impersonate that user, or access to the token to be used. For example, the token could be duplicated via Token Impersonation/Theft or created via Make and Impersonate Token before being used to create a process.

While this technique is distinct from Token Impersonation/Theft, the techniques can be used in conjunction where a token is duplicated and then used to create a new process.

Detection rules7

Rules on DetectionCode tagged with T1134.002.

Sigma6

Splunk1

RuleTypeRiskData source
Windows Access Token Manipulation SeDebugPrivilegeAnomalyNULLWindows Event Log Security 4703

Groups2

Software11

Campaigns0

None recorded.

Procedure examples13

Groups2

Used byProcedure example
GroupLazarus Group

Lazarus Group keylogger KiloAlfa obtains user tokens from interactive sessions to execute itself with API call CreateProcessAsUserA under that user's context.

GroupTurla

Turla RPC backdoors can impersonate or steal process tokens before executing commands.

Software11

Used byProcedure example
MalwareAria-body

Aria-body has the ability to execute a process using runas.

MalwareAzorult

Azorult can call WTSQueryUserToken and CreateProcessAsUser to start a new process with local system privileges.

MalwareBankshot

Bankshot grabs a user token using WTSQueryUserToken and then creates a process by impersonating a logged-on user.

ToolEmpire

Empire can use Invoke-RunAs to make tokens.

MalwareKONNI

KONNI has duplicated the token of a high integrity process to spawn an instance of cmd.exe under an impersonated user.

MalwarePipeMon

PipeMon can attempt to gain administrative privileges using token impersonation.

ToolPoshC2

PoshC2 can use Invoke-RunAs to make tokens.

MalwareREvil

REvil can launch an instance of itself with administrative rights using runas.

View all 11 software examples

References1

  1. Microsoft RunAs Open source
    Microsoft. (2016, August 31). Runas. Retrieved October 1, 2021.

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