← Back to SOC feed Coverage →

Detects dirtyfrag, a local privilege escalation exploit for Linux.

yara CRITICAL signature-base
exploitflorian-roth
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at signature-base →
Retrieved: 2026-08-03T23:00:00Z · Confidence: medium

Hunt Hypothesis

This hunt hypothesis targets adversaries exploiting the Dirty COW vulnerability to escalate from unprivileged user accounts to root on Linux systems within Azure Sentinel. Proactively hunting for this behavior is essential because a successful local privilege escalation can grant attackers full system control, enabling lateral movement and data exfiltration before broader network-based detections trigger.

YARA Rule

rule EXPL_HKTL_LNX_DirtyFragLPE_May26 {
   meta:
      description = "Detects dirtyfrag, a local privilege escalation exploit for Linux."
      author = "Pezier Pierre-Henri (Nextron Systems)"
      date = "2026-05-07"
      score = 80
      hash = "c35594d42f7a5d5d2895164147ee1bc62bb8e294c8468093b7d6fcaab0b174c8"
      reference = "https://github.com/V4bel/dirtyfrag/tree/master"
      id = "7548b4c6-6b0f-5c05-acab-26dceac109ac"
   strings:
      // Indicators of exploitation attempts
      $x1 = "gained CAP_NET_RAW within netn" ascii
      $x2 = "DIRTYFRAG_VERBOSE" ascii

      $s1 = { 15 7C 4A 7F B9 79 37 9E }  // fc_splitmix64
      $s2 = "/proc/self/setgroups" ascii fullword
      $s3 = "pcbc(fcrypt)" ascii fullword
      $s4 = { 17 bb c7 f3 3f 36 ba 71 8e 97 65 60 69 b6 f6 e6 }
   condition:
      filesize < 100KB
      and uint32be(0) == 0x7f454c46
      and (
         1 of ($x*)
         or 3 of ($s*)
      )
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 6 string patterns in its detection logic.

References

False Positive Guidance

Here are 5 specific false positive scenarios for the DirtyPipe (CVE-2022-40917) detection rule in an enterprise Linux environment, along with recommended filters or exclusions:

Original source: https://github.com/Neo23x0/signature-base/blob/main/yara/expl_lnx_dirtyfrag.yar