The hackers guide to environmental catastrophe
summary
Shows exactly how environment variables leak secrets: demo uses a vulnerable web service APIfi with command injection to pull AWS keys, uses /proc/<pid>/environ and a GDB-based dumper from a gist to extract vars set at runtime, and builds an env-based keylogger via PROMPT_COMMAND that exfiltrates to netcat. Explains exported vs unexported and history suppression, LD_PRELOAD abuse for privilege escalation, and why kernel ptrace/gcore restrictions mean only root or sibling processes can reliably dump memory.
AI-written summary · about
