Linux auditd: Detect AF_ALG socket() syscall (address family 38) for crypto API abuse

Flags AF_ALG (38) socket() creations from Linux auditd while filtering common legitimate crypt/VPN tools.

FreeReviewedSigma · High · v5
Product
linux
Service
auditd
Author
Gene Kazimiarovich (SigmaHQ), DRL 1.1
Published
2026-04-30
Updated
2026-07-31

ATT&CK techniques

Priv Esc
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Defense Evasion

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule identifies processes creating AF_ALG sockets by matching the Linux socket() syscall argument for address family 38 via auditd. AF_ALG is the kernel crypto API interface, and attackers may use it to reach kernel code paths tied to cryptographic operations. The detection relies on auditd telemetry for the socket syscall and its recorded syscall arguments, and reduces noise by excluding a small set of known legitimate binaries.

Related detections9 linkedT1068 — drag to rearrange
Malicious JuicyPotato Privilege Escalation Execution (UAT-7237)
Suspicious Dell ControlVault DLL Load by Unexpected Process (ReVault)
Malicious Known Vulnerable Driver Load for BYOVD Attack
Suspicious Vulnerable ASUS AsIO3.sys Driver Load
Malicious Qilin EDR Killer BYOVD Driver Load
Malicious Looney Tunables Privilege Escalation Exploit by Kinsing (via process_creation)
Malicious Kerberos proxiable/S4U2self Ticket - CVE-2021-42278/42287 (via security)
Malicious Vulnerable Driver HwRwDrv Loaded for BYOVD
Possible CopyFail Root Exploitation via Python Spawning SUID Shell (via process_creation)
Linux auditd: Detect AF_ALG socket() syscall (address family 38) for crypto API abuse
Pivot detection · T1068 · 9 related

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.