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 EDR Evasion Driver Load from AnyDesk Directory via k.sys (via image_load)
Malicious Zemana Vulnerable Driver Load for EDR Termination (via image_load)
Suspicious EDRKillShifter Vulnerable Driver Load from User Temp Directory (via image_load)
Suspicious Process Explorer Kernel Driver Dropped as PED.sys via File Creation (via file_event)
Malicious Payload Download From copy.fail Exploit Host on Linux (via process_creation)
Suspicious su Execution From Uncommon Parent Process on Linux (via process_creation)
Possible noPac sAMAccountName Spoofing via Machine Account Rename
Possible macOS TCC Bypass via mdimport Loading Custom Spotlight Importer
Suspicious CLFS Base Log File Created in SkyPDF ProgramData Path during Zero-Day Exploitation (via file_event)
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.