Skip to content
Threat Feed
high advisory

Suspicious Linux /proc/*/maps File Discovery

Adversaries leverage read access to /proc/*/maps files on Linux systems to perform memory mapping reconnaissance, a precursor to code injection, process hijacking, and credential harvesting.

Monitoring access to the /proc/[pid]/maps file is critical for detecting memory-based reconnaissance on Linux systems. This pseudo-file provides a comprehensive map of a process's memory layout, including addresses, permissions, and backing files. Sophisticated attackers exploit this information to identify memory locations suitable for code injection or to facilitate process hijacking. Furthermore, the information contained in memory maps is often leveraged during the credential dumping phase, where adversaries search for sensitive data residing within process memory.

The activity is frequently observed during the early stages of an intrusion to gain environmental awareness. While legitimate system diagnostics, security agents, and debugging tools also access these files, malicious use typically involves common command-line utilities (such as cat, grep, or awk) executed from interactive shells or unauthorized automated scripts. Defenders must baseline legitimate administrative and security software in their environment to minimize noise when alerting on this behavior.

Impact

Successful reconnaissance of process memory maps provides adversaries with the necessary context to perform advanced exploitation techniques. If attackers effectively map process memory, they can bypass security controls to conduct reliable process injection, execute fileless payloads, or target specific memory segments containing plaintext credentials or cryptographic material. This technique is often used in lateral movement and persistence phases of an attack.

Recommendation

  • Deploy the Sigma rules below to monitor for process execution patterns accessing the /proc filesystem.
  • Establish a comprehensive allowlist for known security tools, system diagnostics, and administrative maintenance scripts that legitimately interface with /proc/*/maps.
  • Implement strict process execution policies to limit which user-mode applications can trigger file-read operations on sensitive /proc entries.
  • Conduct regular memory analysis on high-value systems to detect evidence of injected code or unauthorized modifications identified via memory map reconnaissance.

Immediate actions

Deploy rule to detect /proc/*/maps access

Detection Engineering 72h

Mitigations

Enforce least privilege for non-root users accessing /proc

medium_term IT Operations

T1003.007

Detection coverage 1

Suspicious /proc/maps Discovery

high

Detects suspicious reads of the /proc/*/maps file using common command-line utilities, indicating potential memory reconnaissance.

sigma tactics: discovery techniques: T1003.007, T1057 sources: process_creation, linux

Detection queries are available on the platform. Get full rules →