Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Detection Strategies DET0203 — Detection Strategy for Ptrace-Based Process Injection on Linux
DET0203

Detection Strategy for Ptrace-Based Process Injection on Linux

1 analytic(s) · 1 technique(s) detected

Analytics

1
AN0579 Analytic 0579
Linux

Detects ptrace-based process injection by correlating audit logs of ptrace syscalls, memory modifications (e.g., poketext, pokedata), and suspicious register manipulation on a target process not normally debugged by the originator. Alerts on processes attempting to ptrace non-child or privileged processes, especially those followed by abnormal memory or execution behavior.

auditd:SYSCALL mmap, ptrace, process_vm_writev or direct memory ops auditd:SYSCALL execve linux:osquery state=attached/debugged
[TargetProcessNameFilter] List of sensitive or rarely-debugged processes (e.g., sshd, systemd, container daemons) to alert on if ptraced
[TimeWindowBetweenPtraceAndMemoryWrite] Threshold time (e.g., <10 seconds) between ptrace attach and pokedata syscall
[UserContextMismatch] Flag when UID of tracer differs from UID of target process (e.g., privilege escalation or container breakout)
[ProcessRelationshipConstraint] Allowlist relationships (e.g., parent-child) under which ptrace is considered benign

Detected Techniques

1

Details

MITRE ID
DET0203
STIX ID
x-mitre-detection-strategy--c2768ab6-522f-4b88-b3f7-a30230208ceb
Analytics
1
Techniques Detected
1
By Tactic
Stealth
1
Leaving Threaticon

This link opens an external site that isn't part of the platform.