What Userland Utilities Won't Tell You: Uncovering Hidden...
summary
Userland tools (ps, netstat, top) often lie: they read comm/stat or truncated names while cmdline and exe differ, and kernel thread names bypass the 15‑char limit. The workflow uses strace, grep of inode numbers into /proc/net/tcp, parsing /proc/<pid>/maps plus a small mem‑grab that reads /proc/<pid>/mem to extract injected strings and libraries. Techniques demonstrated: recovering deleted or memfd binaries and checksumming them, detecting LD_PRELOAD/LD_LIBRARY_PATH tricks, overwritten argv/env, capability bits that permit shadow access, and PID/overlay mismatches inside containers.
AI-written summary · about
chapters (20)
- 0:00Introduction and background
- 1:23Introducing systemd-resolved
- 3:48Process file system origins
- 7:22Command name truncation
- 8:07Kernel threads and PS behavior
- 9:56File descriptors and netstat
- 12:03Process trees and orphan adoption
- 14:58Faking command lines
- 17:03Command name manipulation
- 18:11Multi-call binaries
- 19:15Binary path via exe file
- 20:17Memory-resident binaries
- 22:00Process memory and maps
- 24:30Detecting backdoors in memory
- 26:36LD_PRELOAD and environment tricks
- 28:42Environment manipulation
- 30:27User ID and capabilities
- 32:59Docker and container deception
- 35:06Mount info and checksums
- 36:08Conclusion and Q&A
