Code Monkey home page Code Monkey logo

ida-fingermatch's Introduction

FingerMatch

IDA plugin for collecting functions, data, types and comments from analysed binaries and fuzzy matching them in another binaries.

author: Jan Prochazka
licence: none, public domain
home: https://github.com/jendabenda/fingermatch

Usage

  • fingerprint libraries and then match them in binaries you want to anlayze, you can focus only on unseen and interesting parts
  • resume analysis when new version of previously analyzed binary is out, no need to reverse engineer everything from scratch
  • anything what fits

Features

  • fuzzy function matching
  • data, types, comments matching
  • can correctly match small functions
  • easy to use

Installation

  • works with IDA 7.4+, Python 3
  • copy fingermatch.py into IDA plugins folder

UI

  • menu View -> Collect fingerprints - collects fingerprints and save them into fingerprint database
  • menu View -> Match fingerprints - loads fingerprints from filename and match them against analysed binary

Python API

  • available from IDA console
  • fingermatch_collect(fingerdb_path) - collects fingerprints and save them into fingerprint database
  • fingermatch_match(fingerdb_path) - loads fingerprints from fingerprint database and match them against analysed binary

Libraries workflow

  • compile library with debugging symbols (\Z7 or \Zi switch with msvc)
  • autoanalyze binary with IDA and pdb symbols
  • collect fingerprints with FingerMatch
  • match fingerprints wherever you want
  • you can download example databases (zlib, libpng, libtiff, openssl, cryptopp) from here

Resumption workflow

  • open binary, analyze it
  • collect fingerprints with FingerMatch
  • when new binary version is out, open new version
  • match saved fingerprints

Fingerprints

Function fingerprints are based on control flow traces allowing to match the same function with shuffled basic block starts, different register allocation or instruction scheduling. Fingerprints of data, types and comments are also matched. In addition matching considers whole reference graph, so it has high chance to pinpoint correct names. Matching is tuned to have low false positive matches.

Detailed documentation is at the begining of the fingermatch.py file.

ida-fingermatch's People

Contributors

jendabenda avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.