This detection identifies active exploitation of the DirtyFrag vulnerability within Linux systems by monitoring for specific proof-of-concept (POC) execution patterns that adversaries leverage to achieve privilege escalation and arbitrary code execution. Proactive hunting for this behavior in Azure Sentinel is critical because DirtyFrag represents a high-severity kernel-level threat capable of compromising system integrity, necessitating immediate identification before attackers can establish persistence or move laterally across the environment.
rule EXPL_LNX_DirtyFrag_ForensicArtefacts_May26 {
meta:
description = "Detects DirtyFrag exploit code POC usage in Linux environments"
author = "Florian Roth"
reference = "https://github.com/V4bel/dirtyfrag/tree/master"
date = "2026-05-08"
score = 75
id = "bda5e087-8eb7-55bd-a5ff-0eef91d63bcf"
strings:
$xa1 = "/V4bel/dirtyfrag.git" ascii
$xa2 = "static const uint8_t shell_elf[PAYLOAD_LEN] = {" ascii
$xa3 = "/usr/bin/su page-cache patched (entry 0x%x = shellcode)" ascii
condition:
filesize < 800KB
and 1 of ($xa*)
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the DirtyFrag exploit code POC usage detection rule, tailored for a legitimate enterprise Linux environment:
Scenario: Automated vulnerability scanning agents (e.g., Tenable Nessus, Qualys, or OpenVAS) executing kernel patch verification scripts.
ext4 filesystem is vulnerable to DirtyFrag by attempting specific write operations on mounted volumes.tenable, qualys) or whitelist specific executable paths such as /opt/qualys/daemon/qd_agent and /usr/bin/nessusd.Scenario: Scheduled backup jobs utilizing the rsync utility with extended attributes preservation.
0 2 * * * /usr/local/bin/backup.sh) that use rsync to copy large datasets over NFS or ext4 mounts may trigger the specific file fragmentation and metadata manipulation patterns associated with the DirtyFrag POC.cron, systemd-timer) and the command line arguments contain flags like --xattrs or --chown.Scenario: DevOps CI/CD pipelines running container image builds with Docker or Podman.