ptrace attach to a child process
injection_ptrace_attach
Attaches to a child process with ptrace, reads its registers and detaches again. On Linux this is the equivalent of a debugger taking over another process, and it is what eBPF-based tooling and a correctly set ptrace_scope are meant to notice.
What it needs before it will run
-
--i-understandNeeds explicit consent: this test changes machine state or fetches real offensive tooling.
Gates are cumulative and none of them is implied by another: see the three gates for why they are separate decisions.
ATT&CK techniques it exercises
| Technique | Name | Tactic | Across public reports |
|---|---|---|---|
| T1055.008 | Ptrace System Calls | Defense Evasion | coverage statistics |
How often anything notices
Not enough data: fewer than 3 public reports have run this test, so no rate is published for it. Groups below that threshold are withheld everywhere on the site — with one or two contributors an average is one organisation's result with a percent sign after it.
Other process injection tests
| Test | What it does | Severity |
|---|---|---|
| Remote thread injection into a child process injection_remote_thread | Performs the classic OpenProcess / VirtualAllocEx / WriteProcessMemory / CreateRemoteThread sequence against a child process this test starts itself, … | critical |
| Dynamic linker hijacking of a child process injection_preload_env | Starts a child process with LD_PRELOAD (or DYLD_INSERT_LIBRARIES on macOS) pointing at a library in the sandbox, the standard Unix code-injection rout… | high |
Catalogue generated from client 0.1.0. A test's behaviour can
change between releases; this page describes the version named here.