Cross-source coverage

T1003.007 / ATT&CK

OS Credential Dumping: Proc Filesystem

9 rules · 8 families across 2 sources.

From MITRE ATT&CK 19.2

Adversaries may gather credentials from the proc filesystem or /proc. The proc filesystem is a pseudo-filesystem used as an interface to kernel data structures for Linux based systems managing virtual memory. For each process, the /proc/<PID>/maps file shows how memory is mapped within the process’s virtual address space. And /proc/<PID>/mem, exposed for debugging purposes, provides access to the process’s virtual address space.

When executing with root privileges, adversaries can search these memory locations for all processes on a system that contain patterns indicative of credentials. Adversaries may use regex patterns, such as grep -E "^[0-9a-f-]* r" /proc/"$pid"/maps | cut -d' ' -f 1, to look for fixed strings in memory structures or cached hashes. When running without privileged access, processes can still view their own virtual memory locations. Some services or programs may save credentials in clear text inside the process’s memory.

If running as or with the permissions of a web browser, a process can search the /maps & /mem locations for common website credential patterns (that can also be used to find adjacent memory within the same structure) in which hashes or cleartext credentials may be located.

Platforms
Linux
Telemetry
auditd:SYSCALLlinux:Sysmon

How MITRE says to detect it DET0593

Detecting OS Credential Dumping via /proc Filesystem Access on Linux

Linux Analytic 1631

Monitoring adversary access to sensitive process memory via the /proc filesystem to extract credential material, often involving multi-step access to /proc/[pid]/mem or /proc/[pid]/maps combined with privilege escalation or credential scraping binaries.

  • auditd:SYSCALL open, read
  • auditd:SYSCALL write
  • auditd:SYSCALL ptrace or process_vm_readv
  • linux:Sysmon EventCode=1

elastic/detection-rules

5 rules
Detection Severity Format
Linux init (PID 1) Secret Dump via GDB High Elastic TOML
Manual Memory Dumping via Proc Filesystem High Elastic TOML
Potential Linux Credential Dumping via Proc Filesystem High Elastic TOML
Suspicious /proc/maps Discovery High Elastic TOML
Linux Process Hooking via GDB Low Elastic TOML

elastic/protections-artifacts

4 rules
Detection Severity Format
Linux init (PID 1) Secret Dump via GDB Undefined Elastic TOML
Manual Memory Password Searching Activity Undefined Elastic TOML
Potential Credential Access via Ptrace Undefined Elastic TOML
Potential Memory Dumping via dd Undefined Elastic TOML

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.