Search:

Process Injection

Adversaries may inject code into processes in order to evade process-based defenses as well as possibly elevate privileges. Process injection is a method of executing arbitrary code in the address space of a separate live process. Running code in the context of another process may allow access to the process’s memory, system/network resources, and possibly elevated privileges. Execution via process injection may also evade detection from security products since the execution is masked under a legitimate process.

Unexpected parent processes often happens in scenarios involving process escalation (TA0004).

Query

SQL

select distinct p.processId as PID, p.parentProcessId as PPID,  p.imageFileName as processName, p.commandLine as commandLine, v.startingVpn as startingVpn
  from `Processes/vadObject` as v
  left join `Processes/processObject` as p
  on v.identity=p.identity
  where  v.isImage = true  and  v.protection = 'MM_EXECUTE_READWRITE'

GraphQL

 vadObject(query: {
    isImage: {is:true},
    protection:{ is:EXECUTE_READWRITE}
  }) {
    processObject {
      processId
      commandLine
      parentProcessId
      processName
    }
    startingVpn
  }

MITRE ATT&CK Mapping