Detection logic
Original SigmaHQ detection and related fields from the pinned file. The source file includes its full metadata.
logsource:
product: linux
service: auditd
definition: |
Required auditd configuration:
auditctl -a always,exit -F arch=b64 -S socket -k af_alg_detect
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_*
falsepositives:
- 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