/proc Filesystem (Live Process Data)

LinuxMemory & Live StateMemory Dump

Location

/proc/<pid>/ (cmdline, exe, fd/, maps, environ, net/)

Description

Virtual filesystem exposing live kernel and process state including command-line arguments, executable path symlink, open file descriptors, memory maps, environment variables, and network connection tables.

Forensic Value

/proc is essential for live triage when a memory dump is not feasible. /proc/<pid>/exe reveals the true binary path even if the process renamed itself. /proc/<pid>/cmdline shows launch arguments. /proc/<pid>/fd/ exposes deleted-but-open files that can still be recovered via cp. /proc/net/tcp provides a live network connection table with owning process inode mapping for identifying C2 connections.

Tools Required

catls -lalsoffindcp

Collection Commands

find

find /proc -maxdepth 2 -name "cmdline" -exec sh -c 'echo "PID: $(dirname {} | xargs basename)"; cat {}; echo' \; > /forensics/output/proc_cmdlines.txt

ls

ls -la /proc/*/exe 2>/dev/null > /forensics/output/proc_exe_links.txt

cat

cat /proc/net/tcp /proc/net/tcp6 > /forensics/output/proc_net_tcp.txt

lsof

lsof -nP > /forensics/output/lsof_full.txt

Collection Constraints

  • Paths and log sources vary by distribution, init system, logging stack, and installed packages. Validate the active distro and service set before treating absence as meaningful.
  • Live-state evidence is volatile. Collect it before reboot, containment, or power loss whenever legal and operational constraints allow.

MITRE ATT&CK Techniques

T1057T1049T1082T1003

Related Blockers