Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2026-31431-detection — Defensive detection package for CVE-2026-31431 (Linux kernel AF_ALG LPE). Sigma, Falco, auditd, KQL, and EQL rules mapped to MITRE ATT&CK T1068/T1611. Includes detection logic designed for auditd, eBPF, and EDR telemetry pipelines. | Kitploit
Tools/GitHubGitHub/thrandomv/cve-2026-31431-detection
Defensive ToolsVulnerability AnalysisThreat IntelligenceIntrusion DetectionIncident Response
GitHubthrandomv/cve-2026-31431-detection

cve-2026-31431-detection

Defensive detection package for CVE-2026-31431 (Linux kernel AF_ALG LPE). Sigma, Falco, auditd, KQL, and EQL rules mapped to MITRE ATT&CK T1068/T1611. Includes detection logic designed for auditd, eBPF, and EDR telemetry pipelines.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
1154 months agoNot yet reviewed
Share

CVE-2026-31431 "Copy Fail" — Defensive Detection Package

A production-ready collection of detection rules and triage guidance for CVE-2026-31431, a Linux kernel local privilege escalation in the algif_aead crypto interface disclosed by Theori (Xint Code Research). The vulnerability exploits an in-place AEAD optimisation to allow an unprivileged user to perform a controlled write into the page cache of any readable file. This repository provides Sigma rules (including a behavioural chain rule), auditd configurations, a Falco rule for containers, KQL and Elastic EQL hunt queries, and a step-by-step analyst triage playbook. No exploit code — purely defensive content for SOC analysts and detection engineers.

Includes detection logic designed for auditd, eBPF, and EDR telemetry pipelines.


Vulnerability Summary

FieldDetail
CVECVE-2026-31431
NicknameCopy Fail
ComponentLinux kernel algif_aead (AF_ALG crypto interface)
TypeLocal Privilege Escalation (LPE)
CVSS7.8
PrimitiveDeterministic 4-byte controlled write into any readable file's page cache
Escalation pathPoison /etc/passwd page cache → getpwnam() returns UID 0 → su lands root
Container riskIf host kernel is unpatched and AF_ALG is not blocked by seccomp, this is a container-escape primitive (T1611)
PatchRevert algif_aead to out-of-place AEAD operations (upstream)

Detection Coverage Matrix


MITRE ATT&CK Mapping

  • T1068 — Exploitation for Privilege Escalation
  • T1611 — Escape to Host (container context)

Patching Guidance

Apply the upstream fix that reverts algif_aead to out-of-place AEAD operations. Distro advisories:

  • RHEL: https://access.redhat.com/security/cve/CVE-2026-31431
  • Ubuntu: https://ubuntu.com/security/CVE-2026-31431
  • Debian: https://security-tracker.debian.org/tracker/CVE-2026-31431
  • SUSE: https://www.suse.com/security/cve/CVE-2026-31431

Temporary mitigation (unpatched systems): Place install algif_aead /bin/false in /etc/modprobe.d/disable-algif-aead.conf, or apply a seccomp profile blocking socket calls with AF_ALG (family 38).


False Positive Notes

The primary legitimate consumers of AF_ALG sockets are cryptsetup (LUKS), fscrypt, and some kernel-crypto-aware VPN clients. In production environments these processes almost exclusively run as root, so the uid != 0 filter eliminates the vast majority of benign activity. The specific AEAD string authencesn(hmac(sha256),cbc(aes)) has no known legitimate production usage and can be treated as critical when observed.


Disclaimer

This repository contains defensive detection content only. No exploit code, proof-of-concept scripts, syscall offsets, or shellcode are included or will be added.

Download Tool
StageObservable behaviourDetection
InitialAF_ALG socket (family 38) by non-rootSigma Rule 1 · auditd afalg_socket · Falco
Setupbind() with authencesn AEAD stringSigma Rule 2 (keyword) · auditd afalg_bind
Exploit triggersplice() to AF_ALG fdauditd splice_syscall · Falco/eBPF
Post-conditionEBADMSG recv() from unprivileged processSyscall chain correlation · auditd
Impact/etc/passwd FIM alert + access spikeFile integrity monitoring · /proc/<pid>/fd
Privilege transitionsu execution after AF_ALG activitySigma Rule 3 · auditd execve · PAM logs