cleave is the closest thing a security-engineer has to X-Ray Vision: a static analyzer that reports the security-sensitive capabilities of a program. With over 170,000+ heuristic rules covering 100+ file formats, cleave handles anything from AppleScript to ELF binaries to VSIX extensions.
Designed originally for supply-chain attack detection, cleave is suitable for interactive use, differential analysis, and as part of a machine-learning pipeline. See Atomdrift Scan for ML-based malware detection based on cleave.
Oh, and cleave is hella fast too - analyzing most programs in under 2 seconds. Here's the default view of /bin/ls:
The --annotate view, showing macho malware:
And the diff subcommand, highlighting a supply-chain attack:
The trait hierarchy is inspired by MITRE's Malware Behavior Catalog, and Systema Naturae by Carl Linneaus.
To install on macOS, Linux, FreeBSD, or whatever UNIX flavor:
curl -fsSL https://install.atomdrift.org/cleave.sh | shFor Windows:
irm https://install.atomdrift.org/cleave.ps1 | iexTo install from source instead (Rust 1.97 required):
make install- malcontent - our previous attempt at creating a multi-platform static analyzer; but the pure-YARA strategy didn't scale.
- capa (Mandiant) - the original inspiration for malcontent and this project: slow and limited to PE/ELF/.NET binaries
- OSSGadget (Microsoft) - quite similar; but for only source languages.
- maratus - new! a static analyzer focused on macOS artifacts.


