Skip to content
Proyek

Tentang

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

Keamanan dan privasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
+1
dalam 15 hari
+1
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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.

Jelajahi proyek terkait

Memuat…