
It’s a read-only Linux risk assessment script for CVE-2026-31431 ("Copy Fail").
check-copyfail.sh is a read-only Bash script that assesses host exposure to CVE-2026-31431 ("Copy Fail").
Author: Silent4Labs
It inspects the local system for:
algif_aead module statusAF_ALG socket usageauthencesn availabilitysetuid-root targets such as /usr/bin/suinitcall_blacklistThe script combines those signals into a transparent risk score, then emits findings and prioritized recommendations.
check-copyfail.sh is intended as a host-side assessment aid for administrators and infrastructure owners. It gathers local signals related to CVE-2026-31431, evaluates them against the script's built-in logic, and reports an estimated exposure level with supporting findings.
The result is meant to help with investigation and triage. It is not a guarantee that a system is safe, vulnerable, fully patched, or exploitable in practice.
Run the actual script filename with a hyphen:
./check-copyfail.sh
./check-copyfail.sh --json
./check-copyfail.sh --quiet
./check-copyfail.sh --help
The script comments and embedded help still refer to check_copyfail.sh, but the executable file in this repository is check-copyfail.sh.
--json: structured JSON output--quiet: no output, exit code only0: minimal risk1: low risk2: medium risk3: high risk4: critical risk5: execution error or unsupported platform5.Use this script at your own risk. The maintainers of this repository are not responsible for any damage, loss, operational impact, incorrect assumptions, or decisions made based on the script output.
The script provides a best-effort assessment only. Final responsibility for validating results, confirming whether operating systems are vulnerable, and determining the appropriate remediation or operational response remains with the owner or administrator of the infrastructure.