Narayanastra is a free, MIT-licensed Rust scanner intended to investigate suspected Linux compromises without installing a persistent agent. Its central approach is cross-view detection: it compares what the system reports through interfaces such as /proc and module lists with evidence gathered through independent kernel and system methods. Mismatches can indicate hidden processes, network sockets, kernel modules, or eBPF programs. The project says it avoids trusting common utilities such as ps and netstat, reads /proc using raw syscalls, and uses a static musl binary to resist some user-space injection techniques.
The scanner offers quick and deeper scans, recurring monitoring, container and remote-host scans, and offline examination of a mounted disk where malware is not active. Its modules check for rootkits, suspicious processes and network activity, altered or untrusted files, executable memory, log tampering, persistence mechanisms, io_uring abuse, eBPF programs, and kernel hooks. Package ownership and checksums help assess suspicious files, while signed baselines and live-versus-offline comparisons support integrity checks. Findings include severity ratings and evidence; reports can be exported in formats including JSON, HTML, SARIF, and NDJSON, with MITRE ATT&CK identifiers. The README also documents evidence collection, trusted-hash checks, and webhook alerts, and assigns exit codes for clean scans, warnings, danger findings, or incomplete scans.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.