Security

knife – reverse engineering toolkit for binary analysis

knife is a reverse engineering toolkit designed to bring several stages of binary investigation into a single program. It works directly on executable files and other binary data without running the target, making it suitable for malware inspection, vulnerability research, forensic work and general analysis of compiled software.

The program combines a command-line interface with an interactive terminal workspace. The latter provides a more exploratory workflow, letting analysts move between recovered functions, listings, cross-references and other views while retaining their own annotations. The underlying analysis engine is shared between the interfaces, so information recorded during an investigation remains available when switching between commands and the interactive environment.

This is free and open source software.

Key Features

  • Parses PE, ELF and Mach-O executable formats.
  • Disassembles x86, x86-64 and AArch64 machine code.
  • Recovers functions using symbols, control flow, exception metadata and unwind information.
  • Provides pseudocode generated from a lifted intermediate representation.
  • Builds function-level control-flow graphs and whole-program call graphs.
  • Identifies dangerous API call sites and groups them by potential vulnerability class.
  • Audits argument provenance at selected sinks to highlight suspicious data-flow patterns.
  • Examines exploit mitigations and reports weakened or missing protections.
  • Finds imports, exports, strings, indicators of compromise, hashes and embedded artifacts.
  • Scans binaries for cryptographic constants, packer markers and embedded file formats.
  • Stores names, notes, bookmarks, types, prototypes and variable aliases in a persistent analysis database.
  • Supports staged binary patches without modifying the original input file.
  • Compares binaries by functions, imports and sections.
  • Provides JSON output for machine-readable analysis results.
  • Exposes analysis and annotation facilities through a Model Context Protocol server.

Website: github.com/bl4ckr0ss3/knife
Support:
Developer: 0xblack
License: MIT License

knife is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

Binary Analysis Tools
GhidraSoftware reverse engineering framework
Radare2Portable reversing framework
CutterGraphical reverse engineering platform
Detect it EasyFile inspection utility
ImHexAnalyze binary data
capaCommand line malware analysis tool
binwalkSearch a given binary image for embedded files
FLOSSFLARE Obfuscated String Solver
unblobExtraction suite for working with unknown binary blobs
RizinUNIX-like reverse engineering framework
LIEFWork with executable and binary formats
RetDecRetargetable machine-code decompiler

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted