Emerging Threathighexperimental

Linux AF_ALG Socket Creation - Kernel Crypto API Exploit Indicator

Detects creation of AF_ALG (Address Family 38) sockets via the socket() syscall. AF_ALG is the Linux kernel crypto API interface. It is exploited in CVE-2026-31431 to achieve local privilege escalation via a buffer overflow in the AF_ALG AEAD splice path that corrupts the page cache of SUID binaries. Legitimate AF_ALG usage is rare and confined to specific crypto utilities and VPN daemons using non-default kernel offload configurations.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Gene KazimiarovichCreated Thu Apr 30474b415a-8b3d-4e6a-9f12-0d5c8a7b6e942026
Emerging Threat
Active Threat

Developed to detect an active or emerging threat. Prioritize investigation of any alerts and correlate with threat intelligence.

Log Source
Linuxauditd
ProductLinux← raw: linux
Serviceauditd← raw: auditd

Definition

Required auditd configuration: auditctl -a always,exit -F arch=b64 -S socket -k af_alg_detect

Detection Logic
Detection Logic2 selectors
detection:
    selection:
        type: 'SYSCALL'
        SYSCALL: 'socket'
        a0: 26  # auditd SYSCALL args are commonly logged in hex; 0x26 == 38 (AF_ALG)
    filter_main_legitimate:
        exe|endswith:
            - '/cryptsetup'
            - '/kcapi-speed'
            - '/kcapi-enc'
            - '/kcapi-dgst'
            - '/charon'
            - '/charon-systemd'
    condition: selection and not 1 of filter_main_*
False Positives

Disk encryption utilities using kernel crypto offload (cryptsetup with --use-kernel-crypto)

Libkcapi userspace tools for kernel crypto API benchmarking

StrongSwan IKE daemon with kernel-libipsec plugin

MITRE ATT&CK

Other

detection.emerging-threatscve.2026-31431
Rule Metadata
Rule ID
474b415a-8b3d-4e6a-9f12-0d5c8a7b6e94
Status
experimental
Level
high
Type
Emerging Threat
Created
Thu Apr 30
Path
rules-emerging-threats/2026/Exploits/CVE-2026-31431/lnx_auditd_exploit_cve_2026_31431_af_alg_socket_creation.yml
Raw Tags
attack.privilege-escalationattack.t1068detection.emerging-threatscve.2026-31431
View on GitHub