Skip to content
atomdrift-projectPublic

About

decode the behaviors and characteristics of any program

Resources

Contributing

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

cleave

Latest release License OpenSSF Best Practices Rust Report Card

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:

cleave analyzing a sample (toc)

The --annotate view, showing macho malware:

cleave annotate a sample

And the diff subcommand, highlighting a supply-chain attack:

cleave annotate a sample

The trait hierarchy is inspired by MITRE's Malware Behavior Catalog, and Systema Naturae by Carl Linneaus.

Install

To install on macOS, Linux, FreeBSD, or whatever UNIX flavor:

curl -fsSL https://install.atomdrift.org/cleave.sh | sh

For Windows:

irm https://install.atomdrift.org/cleave.ps1 | iex

To install from source instead (Rust 1.97 required):

make install

Similar Tools

  • 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.

License

Apache License 2.0

About

decode the behaviors and characteristics of any program

Resources

Contributing

Security policy

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages