NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 30 min
Understand how malware uses the ptrace syscall to inject malicious shared objects into legitimate processes. Learn to hunt for tracer anomalies and suspicious memory maps.
Process injection means running code inside the memory of a legitimate, already-running process such as sshd, bash or a web server worker. On Windows this is often done by creating a remote thread. On Linux the usual tool is a system call made for debuggers: ptrace (process trace).
Why do attackers do it? To hide. After injection, ps, top and ss show only the normal program. No new process appears, and file-based antivirus may not notice.
ptrace is not malicious. gdb, strace and other tools use it. It lets one process (the tracer) observe and control another (the tracee). An attached tracer can:
One tracer at a time: a process can have only one tracer. If gdb is already attached, an injector cannot attach, and the other way round: a defender's gdb fails with ptrace: Operation not permitted. Malware uses this as an anti-debugging trick by tracing itself or its children.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign inLinux Fundamentals for Cybersecurity
Linux is the backbone of modern cybersecurity. Whether you are defending enterprise servers, analyzing malware, or launc
ViewSOC Fundamentals
Dive into the daily operations of a modern Security Operations Center. The SOC Fundamentals learning path breaks down ho
ViewEndpoint & Network Security Monitoring
Dive into the critical telemetry that powers modern threat detection. The Endpoint & Network Security Monitoring module
ViewWeb Application Security
A comprehensive learning path covering the most critical web application vulnerabilities beyond basic injection. Progres
ViewDigital Forensics Fundamentals
This module introduces the foundational concepts of digital forensics. You will learn the systematic forensic investigat
ViewMemory Forensics
Volatile memory (RAM) is the most fragile yet information-rich source of digital evidence. It contains the "ground truth
View