Linux AF_ALG Socket Creation - Kernel Crypto API Exploit Indicator
Description
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.
Query · sigma
selection: type: SYSCALL SYSCALL: socket a0: 26 filter_main_legitimate: exe|endswith: - /cryptsetup - /kcapi-speed - /kcapi-enc - /kcapi-dgst - /charon - /charon-systemd condition: selection and not 1 of filter_main_*
Known 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