Linux カーネル脆弱性チェッカー。algif_aead ベースの Copy Fail 攻撃パスを対象としています。システムが脆弱かどうかを検出し、緩和策を提供します。
git clone https://github.com/ridhinva/copyfail-checker.git
cd copyfail-checker
python3 copyfail_checker.py # 標準チェック
python3 copyfail_checker.py --json # 自動化のための JSON 出力
python3 copyfail_checker.py --fix # 緩和策を適用(root)
$ python3 copyfail_checker.py
[*] Checking kernel version...
[*] Checking AF_ALG module...
[*] Checking protections...
==================================================
RESULTS:
[!!] kernel_version: Running kernel 6.5.0 - vulnerable range
[!!] AF_ALG: AF_ALG crypto module enabled
[OK] apparmor: AppArmor installed
==============================
Potential issues: 2
[!] RUNNING VULNERABLE KERNEL:
1. apt update && apt upgrade linux-image
2. echo 'blacklist algif_aead' > /etc/modprobe.d/algif.conf
3. reboot
@c_y_p_h3r