Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
Copy-Fail-CVE-2026-31431-Lab — Reproduced the fileless LPE CVE‑2026‑31431 (“Copy Fail”) on Kali Linux, then built auditd, Sigma & YARA detections to catch this stealthy kernel exploit that leaves no disk footprint. | Kitploit
工具/GitHubGitHub/kuniyal08/copy-fail-cve-2026-31431-lab
Privilege EscalationVulnerability AnalysisExploitationForensicsMalware AnalysisLearning & EducationIncident ResponseBinary ExploitationLabs & Practice

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
GitHubkuniyal08/copy-fail-cve-2026-31431-lab

Copy-Fail-CVE-2026-31431-Lab

Reproduced the fileless LPE CVE‑2026‑31431 (“Copy Fail”) on Kali Linux, then built auditd, Sigma & YARA detections to catch this stealthy kernel exploit that leaves no disk footprint.

查看仓库
51个月前尚未审核
内容在请求的语言中不可用。显示英文版本。

Copy Fail (CVE-2026-31431) — Exploit Reproduction & Detection Lab

This repository documents the end-to-end reproduction, detection engineering, and incident response for CVE-2026-31431 ("Copy Fail"), a critical Linux kernel local privilege escalation vulnerability affecting kernels 4.14 through 7.0-rc.


Key Findings

  • ✅ Successfully exploited CVE-2026-31431 on Kali Linux 2026.1 (kernel 6.18.12+kali-amd64)
  • ✅ Deployed auditd syscall-level detection rules
  • ✅ Created Sigma and YARA rules for cross-platform detection
  • ✅ Developed a complete incident response playbook

Why This Matters

Copy Fail is a logic flaw, not a memory corruption. It is deterministic, affects virtually every Linux distribution shipped since 2017, and is completely fileless—traditional file integrity monitoring (AIDE, Tripwire) cannot see it. A working proof-of-concept fits in just 732 bytes of Python.


Lab Environment


Reproduction Steps

1. Verify Kali Version & Kernel

The lab starts by confirming the target is running a vulnerable kernel.

Kali Version Kali Linux 2026.1 release and kernel details.

Kernel Version Output of uname -r showing vulnerable kernel 6.18.12+kali-amd64.

2. Check for Vulnerable Module

The exploit requires the algif_aead kernel module and the authencesn crypto template.

Module Loaded lsmod and modinfo confirm algif_aead is available; /proc/crypto shows the vulnerable authencesn template.

3. Python Version

The PoC uses os.splice, which needs Python 3.10+. We verify the interpreter.

Python Version Python 3.12 is installed and ready.

4. Vulnerability Checker (Non‑Destructive)

Before running the full exploit, a safe checker confirms the system is vulnerable.

Vulnerability Checker The checker reports "potentially vulnerable", clearing the way for exploitation.

5. Create Unprivileged User

An unprivileged testuser account is created to simulate an attacker without special rights.

Testuser ID id shows UID 1001, confirming non‑root access.

6. Clone & Execute the Exploit

The official Theori PoC is cloned and executed from the unprivileged account.

PoC Cloned Successfully cloned the exploit repository.

Exploit Execution The Python exploit overwrites the page cache and detonates the corrupted /usr/bin/su binary.

Root Shell Obtained whoami and id output prove full root escalation.

7. Verify Fileless Nature (No Disk Modification)

The exploit only corrupts the in‑memory page cache. The on‑disk /usr/bin/su retains its original checksum.

SHA256 Match The sha256sum matches the original package hash even after exploitation, confirming no disk modification.


Detection Engineering

Copy Fail cannot be detected by file integrity monitoring. Instead, we focus on the syscall‑level primitives it uses.

auditd Rules

We deploy custom auditd rules that trigger on:

  • AF_ALG socket creation (family 38)
  • splice() syscall usage
  • Read access to setuid binaries by unprivileged processes

auditd Rules Loaded All custom rules are active, verified with auditctl -l.

After running the exploit a second time, we see alerts for the exact syscalls used:

auditd Alert – AF_ALG Socket ausearch shows an AF_ALG socket creation event from the testuser process.

auditd Alert – splice() ausearch shows a splice() event from the same PID, a strong correlation.

Sigma Rule

A Sigma rule translates the auditd findings into a vendor‑neutral SIEM format.

Sigma Rule Sigma YAML rule detecting AF_ALG socket creation and splice() calls.

YARA Rule

A YARA rule helps identify Copy Fail exploit code on disk.

YARA Rule YARA rule matching the authencesn string, socket constants, and splice() references found in PoCs.

Detection Coverage Summary


Incident Response Playbook

A full incident response report is available in reports/incident-copy-fail.md. It includes:

  • Executive summary
  • Indicators of compromise (IoCs)
  • MITRE ATT&CK mapping (T1068, T1611)
  • Containment and eradication steps
  • Lessons learned regarding fileless attacks

Mitigation

Immediate mitigation (no reboot required):

root@kitploit:~
echo "install algif_aead /bin/false" | sudo tee /etc/modprobe.d/disable-algif.conf
sudo rmmod algif_aead
下载工具
ComponentDetails
HypervisorVirtualBox
Target VMKali Linux 2026.1
Kernel6.18.12+kali-amd64
Exploit PoCtheori-io/copy-fail-CVE-2026-31431
Detectionauditd, Sigma, YARA
LayerWhat it SeesStatus
auditdAF_ALG socket + splice syscalls✅ Deployed
SigmaSyscall patterns via SIEM✅ Rule ready
YARAPoC code on disk✅ Rule ready
FIM (AIDE/Tripwire)File changes❌ Blind – no disk write occurs