Linux: Detect changes to fs.suid_dumpable enabling core dumps for SUID processes

Flags Linux processes writing fs.suid_dumpable to enable SUID core dumps, which can expose privileged process memory.

FreeReviewedSigma · Medium · v5
Product
linux
Category
process_creation
Author
Milad Cheraghi (SigmaHQ), DRL 1.1
Published
2026-04-28
Updated
2026-07-31
title: "Linux: Detect changes to fs.suid_dumpable enabling core dumps for SUID processes"
id: f1a44d7c-1443-479c-96f6-aa37bd05a9d8
status: experimental
description: This rule identifies attempts to enable core dumps for SUID processes by changing /proc/sys/fs/suid_dumpable via sysctl calls or shell redirection (echo 1/2). Attackers may use this to capture memory from elevated SUID binaries, potentially exposing sensitive data like passwords, cryptographic keys, or other secrets. It relies on process creation telemetry where the command line shows sysctl usage containing fs.suid_dumpable= or echo of values redirected to /proc/sys/fs/suid_dumpable.
references:
  - https://nvd.nist.gov/vuln/detail/CVE-2025-5054
  - https://nvd.nist.gov/vuln/detail/CVE-2025-4598
  - https://blog.qualys.com/vulnerabilities-threat-research/2025/05/29/qualys-tru-discovers-two-local-information-disclosure-vulnerabilities-in-apport-and-systemd-coredump-cve-2025-5054-and-cve-2025-4598
  - https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2025/Exploits/CVE_2025_4598/proc_creation_lnx_exploit_cve_2025_5054_or_cve_2025_4598.yml
author: Milad Cheraghi, Huntrule Team
date: 2026-04-28
tags:
  - attack.privilege-escalation
  - attack.credential-access
  - attack.t1548
  - attack.t1003
  - cve.2025-5054
  - cve.2025-4598
  - detection.emerging-threats
logsource:
  product: linux
  category: process_creation
detection:
  selection_suid_dumpable_sysctl:
    Image|endswith:
      - /sbin/sysctl
      - /bin/sysctl
    CommandLine|contains: fs.suid_dumpable=
  selection_echo_proc_write:
    Image|endswith:
      - /bin/bash
      - /bin/sh
    CommandLine|contains:
      - echo 1 > /proc/sys/fs/suid_dumpable
      - echo 2 > /proc/sys/fs/suid_dumpable
      - echo 1 >/proc/sys/fs/suid_dumpable
      - echo 2 >/proc/sys/fs/suid_dumpable
      - echo 1> /proc/sys/fs/suid_dumpable
      - echo 2> /proc/sys/fs/suid_dumpable
      - echo 1>/proc/sys/fs/suid_dumpable
      - echo 2>/proc/sys/fs/suid_dumpable
  condition: 1 of selection_*
falsepositives:
  - System administrators enabling debugging temporarily
  - Legitimate crash diagnostic operations
level: medium
license: DRL-1.1
related:
  - id: 33b3cfb1-574e-44b9-b527-fbf9303b9d7b
    type: derived