Repository navigation
Releases
v2.1.0—HackLu version: Imports and Thunks
Features
decomp: imported functions are now recorded in a dedicatedImportscategory instead of being skipped, so calls reaching them show up in the graph.decomp: forwarding thunks (PLT stubs) are no longer recorded, their callers are forwarded to the real target.decomp: imported functions are no longer decompiled.fs-cg: the JSON export is now behind-e/--export, as for the other mappers.cli: options are grouped into panels,-d/--debugis available on every mapper and the backend directory environment variables are documented in the--backendhelp.backend: expose thunk targets and import status (func_thunk_target(),func_is_import()) for both IDA and Ghidra.
Fixes
- mappers: PLT stubs no longer shadow the functions they forward to. An imported C++ method was registered as a private function of the calling binary, and a PIE library calling its own exports through its PLT ended up with a private stub holding the callers of the real function.
- mappers: remove the cache system of the
fs-cgmapper. - cli: add the missing
--debugflag and fix a few option definitions. - cli: import
ParameterSourcefromclick.core, it is only re-exported at package level from click 8.4 while 8.2 and 8.3 are supported. - tests: add C++ binaries to
test_fwto cover namespaced methods, mangled names, PLT stubs and inheritance mapping, and adapt thefs,fs-cg,decompand CLI tests. - ci: the version given by a tag was not correctly detected, and backend-free jobs ran on
python:latestinstead of a pinned image.
Full Changelog: v2.0.3...v2.1.0
v2.0.3—Namespaces and C++ functions
Features
- Add a
--versionoption to display current version.
Fixes
- Namespaces were not taken in account when resolving calls and imports
Full Changelog: v2.0.2...v2.0.3
v2.0.2—Fix Ghidra Imports
PLT was not parsed correclty by ghidra which was causing issues in the imports analysis. Some of them were registered as local private functions and were not linked to the corresponding imported function.
v2.0.1—Improve Usability
Features
- Backend is automatically detected from environment variables if option
-bis not set.
Fixes
- Broken links in the README.
- mappers: set default stratregy to arbitrary.
- mappers: set default multiprocessing value to max number of threads instead of monoprocessing.
- tests: adapt tests to fixes above
Full Changelog: v2.0.0...v2.0.1
v2.0.0—Ghidra Backend
Features
- All mappers now share a single disassembler
--backendvalue (ida/ghidra) implemented in one common place, replacing the previous per-mapper disassembler/exporter selection. - Remove the
qbinary/Quokka dependency:fs-cganddecompnow interact directly with the disassemblers (IDA, Ghidra), so Pyrrha can run on systems without Quokka. - Add ELF SONAME support: binaries are indexed by their
DT_SONAMEso imports referencing a SONAME resolve even without a matching symlink. decompmapper: full rework around a class-based object integrated with the common backend layer.decompmapper: add a-e/--exportoption to dump the result as JSON, loadable through the newExportedDecompilationobject exposed by Pyrrha.- Expose
Binaryimage base and relocatable information on the internal representation. cli: revamp the console output rendering.- Improve the documentation (installation, quick summary, decomp mapper) and migrate the documentation build from MkDocs to Zensical.
- Add unit tests for the
decompexport model plus functional tests for thedecompmapper.
Fixes
intercgmapper: various fixes around addresses and demangled names, missing Ghidra thunks, extended ignore list, and argument renaming.fs-cgmapper: avoid an infinite loop in trampoline resolution and add a real timeout to program loading.fs/fs-cgmappers: passload_binaryarguments through apartialmechanism and improve multiprocessing error handling.decompmapper: fix the mapping run (mapnow reports success/failure, runs the decompilation and call-graph indexing phases, and records the binary node so functions get a valid parent).decompmapper: fix call-graph source cross-references (call-site locations are looked up by callee address and no longer raise on the first reference).decompmapper: fix command-line arguments and improve the decompilation script (correctNamedTemporaryFileusage, better IDA decompilation output).decompmapper (IDA backend): use theida_domain0.5.0 pseudocode API (get_pseudocode(func).to_text(...)), fixing aTypeErrorthat broke every IDA decompilation run.decompmapper: skip imported functions during source and call-graph indexing (they have no decompiled body), removing spurious per-function error/warning logs.decompmapper: write decompiled source via a portable temporary file, fixing aTypeError(delete_on_close) that aborted every run on Python 3.11.decompmapper: attach call-site locations to the call reference returned byrecord_ref_callinstead of the callee symbol id.decompmapper: record each function's source file under a per-function unique name, fixing aUNIQUE constraint failed: file.idcrash when two functions share a name.decompmapper (IDA backend): fix the function type reported by IDA.decompmapper: fix small remaining issues in database handling.importsmapper: fix duplicate-import resolution not honoring theINTERACTIVEcache on a cache hit, which could leave the resolution prompt loop stuck.cli: keep an existing suffix in the DB path and annotate thedecompmapper variable with its base type to fix a type-checking error.
Internal
- Reorganize the repository into two submodules (
backendandmappers) and rework the mappers so backend support lives in a single common place; remove unused modules and theheimdallr/disassembly-sync prototype. - CI: build and test IDA and Ghidra Docker images, run the
decompexport-model and functional tests, export test artifacts, and trigger builds only on relevant changes. - CI: expand the supported Python version range.
- Add backend-free unit tests for the
decomp,importsandintercgmappers and the CLI, raising coverage without needing a disassembler; run them in CI and merge their coverage into the global report. - Tests: make export-artifact collection best-effort so a read-only pre-existing destination (e.g. artifacts downloaded from another job) no longer fails the test at teardown.
- CI: run coverage in parallel mode, add a
coveragejob that combines the data files from every test job into a single global coverage report (the union of all lines exercised by the whole suite), preserve each job's coverage data ahead of that combine step so nothing is lost, and refine the coverage targets.
Full Changelog: v1.0.1...v2.0.0
v1.0.1—Improve exe-decomp mapper
Features
- doc: setup multi version doc
- doc: update doc for last version of mappers
Fixes
exe-decompmapper: increase IDA timeout and useTempFileto be multiplatform compatibleexe-decompmapper: improve resolution of calls
Full Changelog: v1.0.0...v1.0.1
v1.0.0—New mappers
Features
- Add two new mappers:
fs-cgandexe-decomp. - Rework internal representation of filesystem and binaries.
fsandfs-cgresults could be exported and then loaded/manipulated trough theFileSystemobject now exposed by Pyrrha.- Add unit tests for internal data structures and
fs/fs-cgmappers.
Fixes
- Various fixes following tests, check changelog for details.
Contributors: @ebrocas @RobinDavid
Full Changelog: v0.4.3...v1.0.0
v0.4.3—Resolution Strategies
Features
File system parser:
- Add duplicate import resolution strategies: the user can now choose between three strategies (
--ignore,--arbitrary,--interactive). - Add customization into the resulting graph (NumbatUI features, which is currently under active development).
- Rework internal mapper architecture.
Fixes
File system parser:
- Fix the path resolution issues when firmware path contains
..
Full Changelog: v0.4.2...v0.4.3
v0.4.2—Documentation
This version introduces a brand new documentation and some uniformization to help future mapper development.
Features
All:
- A new documentation
File system parser:
- Deactivate lief logging to reduce "noise".
Docker/CI:
- Add template for future mapper.
Full Changelog: v0.4.1...v0.4.2
v0.4.1
This version enforces the usage of a more efficient version of numbat and fixes some little bugs.
Features
All:
- enforce numbat >= 0.2 to increase analysis speed
Fixes
File system parser:
- check db existence with the appropriate numbat method
- remove error-prone path modifications in symlink resolution
Full Changelog: v0.4.0...v0.4.1