Skip to content
プロジェクト

概要

This project aims at simplifying Windows API import recovery on arbitrary memory dumps

セキュリティ・プライバシー

この数値の測り方

計測したスター増加

24時間
0
7日間
+1
15日間
+1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

ApiScout

ApiScout finds Windows API references in memory dumps. Use it from the command line, from Python, or in IDA Pro, Ghidra, and Binary Ninja.

Background

A memory dump can still contain resolved API addresses when its import table is missing or incomplete. ApiScout matches those addresses against a database of Windows DLL exports and shows where each reference was found. It also builds an ApiVector so you can compare samples by the APIs they reference.

Quick start

Install ApiScout with Python 3.10 or newer.

python -m pip install apiscout

Save example_dump.bin and minimal_db.json in the same folder and run the scan there.

apiscout scan example_dump.bin --db minimal_db.json

The scan finds InterlockedIncrement at offset 0x100 and WaitForSingleObjectEx at 0x106. The ApiVector is empty because both hits fall outside its catalog.

For your own dump, pick an API database that matches its DLL versions. This example uses a Windows 7 database and a raw dump captured at 0x400000.

apiscout dbs download win7_prof-n_sp1_example.json --db-dir ./dbs
apiscout scan dump.bin --db ./dbs/win7_prof-n_sp1_example.json --base-addr 0x400000

ApiScout reads DLL load addresses from Windows minidumps. If you have a separate module list, pass it with --modules.

Usage

  • Find similar samples with apiscout match or add --collection to a scan. Scores reflect weighted API overlap.
  • Visualize API usage with apiscout export, which draws an ApiQR as PNG or HTML.
  • Script a scan with apiscout scan --json or use the Python API.

Run apiscout --help for commands. See the usage guide for output fields, confidence scores, collection setup, and Python examples.

API DBs

Run apiscout dbs to list local databases. See the database guide for available examples, DLL load addresses, and how to build a database for another Windows version.

Integrations

IDA Pro listing the API references ApiScout found in a memory dump

References

Contributing

Report bugs or ask questions in GitHub issues. Use uv to set up the checkout and run the tests and checks.

uv sync
uv run python -m unittest discover -s tests -p "test*.py" -t .
uv run ruff check && uv run ruff format --check && uv run ty check

Set APISCOUT_SAMPLES to the folder with your Malpedia dumps to run the sample tests. The Binary Ninja tests run when binaryninja can be imported. See the changelog and release guide.

License and credits

ApiScout is written by Daniel Plohmann and contributors and licensed under the BSD 2-Clause License.

  • Thorsten Jenke and Steffen Enders for their previous endeavours and for evaluating a proof of concept of this method.
  • Steffen Enders for his work on the visualization of ApiQR diagrams.
  • Ero Carrera for pefile and Elias Bachaalany for the IDA Python AskUsingForm template.
  • Andrea Garavaglia for the performance benchmarks that led to drastic speedups of the matching.

関連プロジェクトを探す

読み込み中…