
Detection and analysis toolkit for CVE-2026-31431 Linux LPE, providing Python and PowerShell scanners, YARA rules, and forensic analysis for active and post-incident detection.
Detection and analysis toolkit for CVE-2026-31431 "Copy Fail" - a critical Linux Local Privilege Escalation vulnerability affecting distributions from 2017 onwards.
CVE-2026-31431 exploits a logic flaw in the Linux kernel's algif_aead implementation, enabling reliable local privilege escalation through:
algif_aead)AF_ALG socket interface and splice() system callcopy_fail_detect.py)Comprehensive Python-based detection engine for active and forensic analysis.
Capabilities:
Usage:
sudo sudo # Privileged mode detects more artifacts
python3 copy_fail_detect.py # Full system scan
python3 copy_fail_detect.py --monitor # Continuous monitoring mode
copy_fail_detection.yar)Signature-based detection for file system and memory analysis.
Rule Coverage:
CopyFail_Exploit_Python: Python exploit variants detectionCopyFail_Exploit_Generic: Generic exploitation technique patternsCopyFail_InMemory_Artifacts: Runtime memory artifact detectionCopyFail_Modified_SetUID: Modified setuid binary detectionCopyFail_C_Implementation: C/C++ exploit implementation detectionUsage:
yara copy_fail_detection.yar /path/to/scan
yara copy_fail_detection.yar /proc/*/mem
Copy-Fail-Windows-Detect.ps1)PowerShell-based detection for Windows systems with WSL, Docker, or Linux VMs. ¡NOT FULLY TESTED!
Target Environments:
Usage:
.\Copy-Fail-Windows-Detect.ps1 -All
.\Copy-Fail-Windows-Detect.ps1 -WSL
.\Copy-Fail-Windows-Detect.ps1 -Docker
This toolkit is provided for defensive cybersecurity purposes only. Usage must comply with applicable laws and organizational policies. Users are responsible for obtaining proper authorization before deployment in any environment.