Metamorphic mutation engine with structured validation and reporting
r2morph is a metamorphic mutation engine that applies tracked binary transformations with validation, rollback, and machine-readable reports. The 0.4.0-alpha.3 support contract is intentionally narrow: Linux ELF x86-64 is the official target. Other formats and architectures remain preview or experimental.
PatternSubstitution reports exact format/architecture support cells: ELF
x86/x86-64, PE x86/x86-64, and Mach-O x86-64. Other combinations are reported
as unsupported instead of being inferred from separate format and architecture
lists.
SelfModifyingCode adds one experimental PE × x86 cell. It requires PE32
with a fixed image base, ASLR disabled, stripped relocations, and a verified
KERNEL32!VirtualProtect IAT entry; PE32+ and images that fail those checks
are rejected without mutation. The MinGW/Wine native smoke returns exit code 42
before and after mutation, checks that the code page protection is restored,
and confirms GetLastError is preserved. The bounded local suite passed on
Python 3.14.10. A follow-up maps this test into both the native Windows smoke
and cross-platform evidence aggregate; the complete unit suite passes locally
(6223 passed). Exact-main CI run 47648224964
passed the native smoke step but its JUnit recorded a Windows-only runtime
failure: the original returned 42 and the mutated image hit the stub's
VirtualProtect failure trap (0x80000003). Run
47650179554
with stage-specific traps confirms the initial RWX call fails. The fixture now
probes the same page through the C ABI first to separate OS/page denial from a
generated-call setup bug. Windows showed radare2 reporting target and cave as
VAs, while the local build reported RVAs; adding the image base twice produced
the invalid page 0x8042000. The stub now normalizes addresses using radare2's
image base and PE image bounds, with a unit check that RVA and VA inputs
produce identical bytes. The exact-main Windows JUnit artifact for run
47652213508
reports the native smoke as 1 passed, 0 failed. The wider CI workflow is still
running, and this single fixture does not establish general PE x86 parity. The
matrix records 130/242 non-official cells with evidence (53.72%); 112 remain
not-supported.
Exact-main CI run 47635852806
passed all 24 jobs on commit c719ae03, including the Mach-O i386
InstructionExpansion cell below and the four preceding PE ARMNT/Mach-O i386
evidence cells. The integration suite recorded 1,636 passed,
158 skipped, and two deselected tests. Python 3.15 passed on Ubuntu, Windows,
macOS ARM, and macOS Intel; the CI unit job recorded 6,219 passed and two
skipped after rerun. Locally, all 6,221 unit tests passed on Python 3.15.2.
InstructionExpansion has an experimental Mach-O i386 object-only cell for
shl eax, 1 → add eax, eax (d1e0 → 01c0). A hash-pinned fixture checks
that only those bytes change, the object reopens with radare2, and Unicorn
preserves EAX, defined flags, and a following jz outcome for six inputs. AF is
excluded because SHL leaves it undefined; this is not native Mach-O execution.
The focused test, Ruff, Black, and support-matrix check pass. The matrix records
129/242 non-official cells with evidence (53.31%); 113 remain not-supported.
ConstantUnfolding now has an experimental PE ARMNT Thumb-1 cell limited to
movs rN, #0 on low registers. It emits the two-byte eors rN, rN encoding;
Unicorn verifies the result and CPSR across four initial C/V states. The test
also checks the exact mutation bytes, PE headers and size, and radare2 reopen.
This is bounded emulated evidence, not native Windows ARM32 support. The matrix
records 128/242 non-official cells with evidence (52.89%); 114 remain
not-supported.
DeadCodeInjection now has an experimental Mach-O i386 object-only cell. A
dedicated, hash-pinned fixture replaces only two consecutive NOP bytes with
mov esi, esi, preserving object size and header; radare2 reopens the result.
This does not demonstrate native Mach-O execution. The matrix now records
127/242 non-official cells with evidence (52.48%); 115 remain not-supported.
InstructionExpansion now has an experimental PE ARMNT Thumb-2 cell. A
hash-pinned 20-byte function rewrites only lsl.w r1, r1, #1 to the same-width
non-S add.w r1, r1, r1; Unicorn confirms R0–R6 and CPSR remain equal across
four initial C/V states. The test also checks the PE machine, headers, file
size, exact bytes, and radare2 reopen. This is bounded structural/emulated
evidence, not native Windows ARM32 support. The matrix now records 126/242
non-official cells with evidence (52.07%) at that stage; later entries below
update the current total.
RegisterSubstitution now has an experimental Mach-O i386 object-only cell.
Its hash-pinned fixture changes only mov ecx, ecx to mov edx, edx; the
structural test checks the changed instruction byte, preserved object size and
header, and radare2 reopen. The local test passes, but this does not demonstrate
native Mach-O execution. That cell brought the matrix to 125/242 evidenced
non-official cells (51.65%); later entries update the current total.
Adversarial workflow 47607326376
completed all 33 jobs for source 8f6d1e89872f697a4a44b9067c759ee2839edd9b.
It measured 362 fixtures across 22 passes (7,964 pass pairs and 71,676
analyzer rows), with zero analyzer errors or missing rows. The merged report
explicitly records IDA Pro as unavailable because idat was absent from the
runner; Binary Ninja remains optional and unavailable. Three VM reports record
automated semantic parity for 15 fixtures over 10 seeds, seed/handler diversity,
and no exact normalized handler matches. Human adversarial review remains
pending. The manifest,
reports,
VM evidence,
and integrity test
pin these bounded results. Neither cross-platform parity nor generalized
resistance is established.
Main commit 8f6d1e89 passed exact-main CI run
47603096668
with all 24 jobs successful. The integration suite completed 1,627 passed,
158 skipped, and two deselected tests with no failures. Its PE ARM32/ARM64
fixtures now derive virtual addresses from the parsed .text section, so the
byte-level contracts pass with the CI-pinned radare2 6.2.2 as well as local
radare2 6.2.6. Python 3.15 passed on Ubuntu, Windows, macOS ARM, and macOS
Intel. These checks do not close cross-platform parity or published resistance.
This run also passed the APIHashing missing-pointer typecheck regression and
the native Linux TLS not/conditional-branch integration. The later exact-source
platform aggregate records native Windows APIHashing x86 and x86-64.
The exact-source differential workflow 47548016561
passed all 86 jobs on source 9aadde615bc1a5bf71c6365b576ee10055c371d8. Its
Linux ELF x86-64 core and extended matrices classified 10,860 and 13,032
pass/seed runs with complete evidence and zero errors or semantic failures;
3,510 and 3,409 runs applied a transformation, while the rest were explicitly
omitted because no eligible function was available. The public compatibility
corpus passed 370 samples and 2,220 radare2 static-recovery measurements. The
manifest,
archived reports, and
integrity test
pin the results and source. These matrices cover Linux ELF x86-64; the
22-pass maturity report still has 22 decompiler-comparability blockers, and
cross-platform parity and published resistance remain open.
The same campaign ran 138 platform-specific smoke cases across six targets: ELF ARM32, ARM64 and x86-32; macOS ARM64 and x86-64; and Windows PE. All six aggregates are complete with zero failures, errors or skips. The platform manifest, aggregate summary, and integrity test pin the case counts and results. These are bounded platform previews: at the time, the support matrix had 104/242 non-official cells with evidence, and the cross-platform parity gate remains open.
The subsequent exact-source differential run 47604409770
completed 146 platform cases across the same six targets with zero failures,
errors, or skips. The ELF x86-32 and Windows PE required sets include the
bounded FunctionOutlining, PolymorphicEngine, StackStrings, and APIHashing
cases described in the platform manifest.
The macOS x86-64 aggregate also passed the Rosetta import-obfuscation case.
Its aggregate summary
and integrity test
pin the results. This updates evidence for those cases; it does not close
cross-platform parity or published resistance.
The engine VM's shared vpush and vpop handlers now use a seeded virtual
stack-pointer update form (lea or add/sub). The alternate changes pointer
update dataflow and preserves the dispatch contract. This is structural
diversity evidence only; it does not establish generalized resistance.
Main commit 6beecab2 passed exact-main CI run
47461588512
with all 19 jobs successful. The integration suite completed 1,602 passed,
147 skipped, and two deselected tests. Windows Python 3.12 passed the native
PE ImportObfuscation preview on x86 and x86-64, and the gate requiring all PE
preview outcomes passed. These focused fixtures do not establish general PE
parity. The support matrix records 98/242 non-official cells with evidence;
144 remain without evidence.
Adversarial workflow 47486594794
completed 33/33 jobs for source 30f7925f. It covered 362 fixtures and 7,964
pass pairs. IDA Pro 9.5 replayed every pair after analyzing 2,376 unique
SHA-256-verified binaries: 2,367 yielded pseudocode and nine had no pseudocode,
with zero analysis or decompiler errors. Thirty-nine first attempts hit the
60-second timeout and completed on a 180-second retry. The hash-bound replay,
input reports and manifests,
merged analyzer report,
and integrity test
pin the results. Correlating the adversarial reports with the exact-source
differential maturity evidence makes all 22 passes comparable across radare2,
angr, and Ghidra; the decompiler-comparability blocker count falls from 22 to
zero. IDA analysis completed all 7,964 pairs, with comparable applied-pair
results for 21/22 passes. For BlockReordering, nine of 14 applied pairs had
pseudocode on both sides; five did not. The reproducible maturity merge,
baseline maturity input,
and integrity test pin that result. Binary Ninja remains optional. These
bounded measurements do not close generalized resistance or cross-platform
parity.
Exact-main CI run 47181418466
passed all 19 jobs on source 61bcc71fb7386cb48f26319bde1223f8c26f4744,
including Linux, Windows, macOS, Python 3.12–3.14, installed-wheel smoke,
type checks, lint, release-contract and support-matrix validation, and
property/fuzz validation. The documentation commits 273bd147 and 5d8a2e4a
also passed 19/19 jobs in exact-main CI runs
47194132213
and
47198490752.
The code baseline e037813d passed all 19 jobs in exact-main CI run
47203350515.
The documentation head 1dff57ae also passed 19/19 in run
47208470309.
Main commit 88e6488c passed 19/19 jobs in exact-main run
47215934675.
The subsequent documentation and replay-evidence commit d8eae289 also passed
19/19 jobs in exact-main run
47247996011.
The earlier source commit 04319bdb passed all 19 jobs in exact-main
CI run 47334588223.
The current source f15edc7e passed all 19 jobs in exact-main run
47346426795.
Its Linux integration log records the native ELF x86-32
SelfModifyingCode smoke as passed; the integration suite finished with 1,600
passed, 140 skipped, and two deselected tests. This is bounded evidence for one
fixture and does not establish general x86-32 parity. The 32-shard adversarial
campaign on this source completed all 33 jobs in
47372144101.
Across 362 fixtures and 7,964 pass pairs, seven of eight required analyzers
completed every row without errors; IDA Pro was unavailable in CI, and its
local SHA-256-verified replay completed all 7,964 pairs across 2,376 unique
binaries. IDA analyzed all binaries without errors; 2,367 produced pseudocode
and nine did not. Three binaries each timed out in three 60-second attempts,
then completed under a 180-second retry limit. The hash-bound report,
reports and manifests bundle,
and integrity test
preserve and verify the evidence. Binary Ninja remains optional. This bounded
campaign does not establish generalized resistance or close either 1.0 gate.
The subsequent exact-main CI run on 50a8c8bb passed all 19 jobs in
47383899365,
including the native Linux x86-64 self-modifying-code integration test.
The continuous fuzz workflow also passed on that source commit across macOS 15,
Windows, and Ubuntu: 5,000 deterministic cases per platform, 150,471 target
executions total, and zero recorded failures. Its
hash-bound reports
cover parsers, VM decoding/dispatch, relocations, assembly, and rewriting; this
bounded campaign does not establish arbitrary-input equivalence or generalized
resistance.
The current automated second-pass report validates those three reports and all
150,471 target executions. Its 27 automated checks pass, while its release
decision remains blocked because no human review is bound to the current source
tree; see the current review snapshot.
In exact-main differential run
47181438712,
the platform aggregate passed for all six configured targets: 128 test cases,
93 pass/platform evidence entries, and zero failures, errors, skipped tests, or
missing required cases. The native Windows PE report includes all 38 required
cases, including CodeMobility x86 and x86-64. The VM semantic aggregate passed
1,005/1,005 fixtures over three seeds, with zero QEMU divergences or missing
pairs. The public compatibility aggregate passed 370 samples across six passes
and four shards, with zero differential or static recovery failures. The full
differential workflow completed 86/86 jobs successfully. Its merged maturity
reports cover 22 passes across 23,892 classified pass/seed runs, with complete
evidence and zero semantic failures, runtime failures, or errors. Of those
runs, 6,919 applied a transformation; 16,973 were omitted because no eligible
function was available. These results are bounded corpus measurements, not
proof that every run mutates or that the engine resists general analysis. They
do not establish full pass-by-platform parity; the 1.0 parity and published
resistance gates remain open.
IDA Pro 9.5 also completed a hash-bound replay of all 264 pass pairs in
adversarial shard 7, analyzing 87 unique binaries with pseudocode for each.
It has since replayed shards 1, 2, 3, 5, and 6: 1,320 pass pairs and 422
unique binaries. IDA produced pseudocode for 421; one protected
elf_vm_flagsynth_x86_64 output after BlockReordering had no detected
functions or pseudocode, with no decompiler error. The hash-bound replay
report
and its five input manifests preserve that limitation. Binary Ninja remains
optional; it is not requested or required.
The same local replay completed shards 0 and 9: 528/528 pass pairs, 170 unique
binaries, pseudocode for all inputs, and zero decompiler errors. The
hash-bound report
and two manifests preserve those results. Across the eight locally replayed
shards (0, 1, 2, 3, 5, 6, 7, and 9), IDA analyzed 638 unique binaries and
produced pseudocode for 637; the single no-pseudocode case remains documented.
IDA Pro also replayed shards 8, 17, and 18: 748 pass pairs over 259 unique
binaries, all analyzed and decompiled without errors. Across the eleven locally
replayed shards (0, 1, 2, 3, 5, 6, 7, 8, 9, 17, and 18), the replay covers
2,860 pairs and 840 unique binaries; one protected output in shard 1 yielded no
pseudocode. The hash-bound report
and three input manifests preserve the results. IDA Pro also replayed shards
21 and 22: 484 pairs over 159 unique
binaries, all analyzed and decompiled without errors. The hash-bound report
and two manifests preserve those results. The replay of shards 4 and 23 adds
506 pairs and 180 unique binaries: 179 produced pseudocode, while one protected
elf_vm_carry_rotate_x86_64 output after BlockReordering had no functions or
pseudocode, with no decompiler error. The hash-bound report
and two manifests preserve that outcome. Across fifteen local shards there are
3,850 pass pairs and 1,136 unique binaries; two protected outputs yielded no
pseudocode, one each in shards 1 and 23. IDA Pro also replayed shards 25 and 26:
484 pairs and 156 unique binaries, all with pseudocode and no errors. The
hash-bound report
and two manifests preserve those results. Across seventeen local shards, 4,334
pairs and 1,292 unique binaries are covered, with two no-pseudocode outputs.
The full adversarial campaign completed all 32 shards and its aggregate without
failures in run 47097582326.
It ran on older source 906279d1, so it does not establish resistance for the
current main. Binary Ninja is optional and its availability does not block the
analyzer or release criteria.
The 1.0 readiness ledger still has open cross-platform parity and published
resistance results; this CI result does not close either gate.
The adversarial campaign
47196628030
completed all 32 shards and its aggregate (33/33 jobs). IDA Pro 9.5 replayed
all 7,964 pass pairs from the hash-verified replay artifacts: 2,376 unique
binaries were analyzed, 2,367 produced pseudocode, and nine produced no
pseudocode without analysis or decompiler errors. Both binaries produced
pseudocode for 7,937 pass pairs. The aggregate replay report,
reports and manifests bundle,
and integrity test
preserve and verify the evidence. The bundle contains CI reports and manifests;
the binary inputs remain in the linked workflow artifacts and were checked by
SHA-256 during replay. This bounded result does not close the open cross-platform
parity or published resistance gates. Binary Ninja remains optional and does
not block either gate. The earlier campaign
47152302153
targets 0fe31f7b, which predates current main, and cannot close the current
resistance gate. The support matrix records 22/22 official and
96/242 non-official cells with evidence; 146 non-official cells remain without
evidence. ControlFlowFlattening now has a bounded Mach-O x86-64 preview: its
NOP-sled predicate avoids stack pushes that can overwrite locals in the red
zone. The native regression requires a real mutation, ad-hoc signing, and the
same six outputs; exact-main Intel differential now passes this case.
Current-source adversarial run
47275215587
completed 33/33 jobs on source 50296708. Its 7,964 pass pairs include 2,371
applied transformations (29.77%). IDA Pro 9.5 replayed all 7,964 rows after
analyzing 2,376 hash-verified binaries; 2,367 produced pseudocode and nine did
not, with zero analysis or decompiler errors. All eight required analyzers
completed all rows; Binary Ninja remains optional and unavailable. The
hash-bound report,
input manifests,
summary,
and integrity test
preserve and verify the evidence. These bounded Linux ELF x86-64 results do not
establish generalized resistance or close the open platform-parity and
published-resistance gates.
IDA Pro 9.5 also replayed current-source shard 14: all 83 unique binaries were
analyzed across 242 pass pairs; 82 produced pseudocode. One protected
elf_vm_incdecsynth_x86_64 binary after BlockReordering had no detected
functions or pseudocode, with no IDA error. In the archived benchmark, Unicorn
returned exit code 42 for both original and protected inputs, while radare2,
angr, and Ghidra each produced pseudocode. The
hash-bound replay report,
raw benchmark report,
and replay input manifest
preserve the scope and limitation. This partial replay does not close the
published resistance gate. Binary Ninja remains optional.
The Windows PE smoke gate checks all 11 declared native cases and uses the
matching x86 or x86-64 result for each DataFlowMutation and CodeMobility case.
Its ControlFlowFlattening fixtures include a flag-dead NOP sled inside the
transformed function and require an inserted opaque predicate. Exact-main run
47167673261 showed that native Windows can rank CRT functions ahead of the
fixture; the CFF test now examines up to 128 candidates so it reaches
transform. The exact-main Windows differential on 61bcc71f passed all 38
cases, including the required PE CodeMobility x86/x86-64 previews.
| Feature | Description |
|---|---|
| Tier 1 Passes | NOP, instruction substitution, register substitution, instruction expansion, and block reordering on the official target |
| Declared Support | Linux ELF x86-64; preview and experimental targets are tracked separately |
| 4 Validation Modes | Structural, runtime, symbolic (angr), CFG integrity |
| Analysis Cache | Bounded filesystem cache with a background cleaner and explicit shutdown |
| Session Management | Checkpoint/rollback system preserving binary state across mutation passes |
| SARIF 2.1.0 Reports | OASIS SARIF with MITRE ATT&CK taxonomy, fingerprints, code flows |
| JSON Reports | Documented schema, metadata, timing, gate evaluation |
| Detection Suite | Packer signatures, entropy analysis, pattern matching, similarity hashing |
| Devirtualization | VM handler analysis, MBA simplification (Z3-based) |
-
Python 3.12, 3.13, 3.14, or 3.15
-
radare2 installed
-
On macOS, the Keystone shared library must be discoverable for virtualization, extended assembly, and rewrite operations:
brew install keystone export DYLD_LIBRARY_PATH="$(brew --prefix keystone)/lib${DYLD_LIBRARY_PATH:+:$DYLD_LIBRARY_PATH}"
The Python keystone-engine package alone does not provide the macOS shared
library lookup path. Without it, editable installation can succeed while
Keystone-dependent operations fail to import the native library. CI configures
the same Homebrew library path.
git clone https://github.com/radareorg/radare2
cd radare2
sys/install.shpip install r2morph # Basic
pip install "r2morph[enhanced]" # + angr, lief, z3
pip install "r2morph[all]" # + frida, hypothesisThe optional Triton analyzer dependency is installed on Linux x86-64 with
Python 3.12–3.14. The current triton-library release has no CPython 3.15
wheel, so Python 3.15 installs and tests the project without that analyzer.
Symbolic analysis uses the Claripy implementation paired with the installed
angr release, keeping symbolic expressions compatible with angr states. The
syntia extra installs angr on supported platforms instead of an independently
versioned Claripy package. The supported angr extras require angr 10.0.7 or
newer and pycparser 3.11, matching angr's current parser API and Z3 dependency.
The analysis cache cleaner exits when its cache is discarded; applications can
call cache.stop_cleanup_thread() for deterministic shutdown.
git clone https://github.com/seifreed/r2morph.git
cd r2morph
python -m pip install --editable ".[dev]"The CI dependency manifest remains available for reproducing the extended
analysis environment: python -m pip install -r requirements.txt followed by
python -m pip install --editable ..
CI's dependency audit uses a 60-second PyPI socket timeout to tolerate slow
responses; the audit still fails on vulnerabilities or service errors.
CI and continuous fuzzing cancel superseded main-push runs, so runners validate
the newest source revision instead of spending time on obsolete commits.
Version tags also trigger the three-platform fuzz campaign, and release
publication requires that campaign to pass on the exact tagged commit.
Pull requests and differential campaigns keep distinct concurrency keys where
their evidence should be retained. Adversarial campaigns serialize by ref,
allowing one active campaign and one replaceable pending run.
Release workflows remain serialized per ref. Linux x86-64 CI
installs the pinned radare2 6.2.2 Debian package after verifying its SHA-256;
other hosts retain the source-build path.
The 32-shard adversarial analyzer campaign runs at most eight shards at once
and serializes campaigns by ref, leaving runner capacity for commit validation.
Its Ghidra release download uses bounded timeouts and retries and still verifies
the pinned archive checksum before installation.
Its Linux benchmark installs the dynamic binary-analysis library
triton-library==1.0.0rc4 with a SHA-256 pin and exercises an x86-64 instruction
before measurement. This analyzer-only prerequisite is not part of the r2morph
runtime dependencies; each completed Triton row records the analyzer version.
For reproducible analyzer replay across hosts, the adversarial benchmark can
export content-addressed original/protected files and a SHA-256-bound manifest
with --artifact-dir. A second run can select a specific analyzer using
--tools ida-pro (or another configured tool) and pass the exported original
and protected files with --protected; reports retain both binary hashes and
the pass name. See compatibility corpus replay guidance.
Scheduled adversarial shards upload these replay bundles with a seven-day
retention period. The replay merger
validates both hashes, the fixture, and the pass before it fills incomplete
analyzer rows in the aggregate. If multiple fixtures have identical original
bytes, one exact-hash replay is applied to every matching original/pass/output
row; distinct protected hashes remain separate measurements.
The full differential corpus runs weekly or by manual dispatch; each push still
runs the general CI checks without queuing the long corpus campaign.
The aggregate handles both a single report extracted directly into its target
directory and multiple reports extracted into per-artifact subdirectories.
Cross-platform CI runs the complete unit suite on macOS and Windows for Python
3.12 through 3.15, and on Ubuntu 24.04/Python 3.12 through 3.15. The broader
Ubuntu 24.04/Python 3.12 job also covers integration, property, and real-binary
tests. The Linux runner is pinned so package installation and ABI test
dependencies do not drift with the ubuntu-latest image migration.
The Python 3.15 matrix jobs on Ubuntu, Windows, macOS ARM, and macOS Intel
passed in exact-main run 47528985104;
the broader CI integration suite runs on Ubuntu/Python 3.12. A local macOS ARM
Python 3.15.2 run of tests/integration -m 'not slow' passed 1,512 tests,
skipped 237, and deselected 2.
The newer exact-main run 47542246742
passed all 24 jobs on 9bdaa53a, including 1,607 integration tests, the
Python 3.15 matrix, and the native Windows ARM64 NOP smoke. This bounded run
does not close the remaining pass-by-platform parity gap.
The first pinned-runner CI reached tests in every matrix job but found two
workflow assertions that still expected the old Ubuntu label and a uniform
15-minute apt-install bound. Those checks now match Ubuntu 24.04 and the
configured 15/30-minute bounds. Exact-main CI run 46822001885 passed all
19 jobs on commit 499a563d.
Passing these jobs expands platform evidence but does not by itself establish
full mutation parity, which remains an open release gate.
The exact-main Windows PE preview job in run 47077676577 passed 31 native
cases with no failures, errors, or skips; its JUnit and artifact hashes are
pinned in the evidence manifest.
The enclosing differential campaign was still running when captured, and this
bounded slice does not establish full pass-by-platform parity.
The dedicated Windows ARM64/Python 3.15 PE NOP job in run
47538242193
passed its native exit-code smoke on source 21249cae. Its one-test JUnit
report and artifact digest are pinned in the
evidence manifest.
This one fixture does not close the remaining cross-platform parity gap.
On macOS, subprocess tests pin PYTHONHOME to the base interpreter and
DYLD_LIBRARY_PATH to its runtime library directory so copied-interpreter tests
can still find the standard library.
The macOS ARM64 differential lane omits native x86-64 Mach-O execution cases;
the macos-15-intel CI lane runs both native x86-64 Mach-O mutation checks and
the platform evidence aggregate requires their JUnit report. The ARM64 lane's
validator rejects skips in its selected platform smoke suite.
The Ubuntu cross-platform matrix and dedicated integration job use Ubuntu
24.04 and retry package requests three times with 60-second connection
timeouts. Integration installs its larger cross-compilation toolchain within a
30-minute bound; package-index updates have a 10-minute limit and package
installations use 15- or 30-minute limits depending on the toolchain.
Persistent repository failures still fail the job instead of omitting system
dependencies.
The timeout integration case uses identical temporary shell scripts so it
exercises real process timeouts without depending on copied system binaries or
their platform-specific execution rules.
The shared subprocess adapter captures standard input and output through
temporary files, avoiding pipe-closure hangs when a child leaves descendants
running while preserving complete byte output. Process-tree cleanup bounds its
final wait, so an unresponsive platform process cannot prevent the configured
process timeout from returning.
Native ABI regression failures report each program's return code and captured
output alongside the virtualization diagnostics.
If test_virtualized_elf_preserves_floating_point_varargs_register_and_stack_abi
fails on Ubuntu/Python 3.12, CI retains its generated C source and mutated ELF as
the floating-point-varargs-linux-repro artifact so the exact crash can be inspected.
When a newer commit reaches main, its push-triggered CI run replaces an older
in-flight push run. Manual, scheduled, and pull-request validation use separate
concurrency keys and are not replaced by main pushes.
Cross-platform unit suites emit Python stack traces after 60 seconds and the
step fails after 30 minutes, bounding a runner-specific hang. The installed-wheel
smoke also emits thread traces after 60 seconds and stops its test process after
five minutes, so hangs produce diagnostics without dropping test targets.
If the generated Clang switch-table integration case fails, CI uploads that
case's temporary C source and ELF binary for five days to make the compiler and
resolver behavior reproducible. The glob accounts for pytest shortening the
temporary directory name derived from the test function.
macOS jobs install Keystone's native shared library and expose it to Python
before collecting tests that depend on the assembler binding. The x86-64
Mach-O native smoke runs on GitHub's Intel macos-15-intel runner; Apple
Silicon runs the cross-platform package checks without executing x86-64 Mach-O.
Rosetta execution on Apple Silicon is not currently validated by CI.
The optional angr backend is not installed on Intel macOS because PyPI does
not currently publish an Intel macOS wheel; its CI coverage runs on Linux and
Apple Silicon instead.
Git checks out text with LF endings so hashes pinned to source and JSON evidence
remain stable across operating systems. Evidence paths use / separators on
every platform.
Windows CI verifies the documented optional-analysis fallback when angr is not
installed, and exercises validation using native Python executables rather than
POSIX shebang scripts.
CLI success notices use ASCII text so legacy Windows console encodings can
render them without a Unicode encoding failure.
| Format | Status | Notes |
|---|---|---|
| ELF | Official: Linux x86-64 | Other ELF architectures are experimental |
| PE | Preview/alpha | No zero-defect guarantee |
| Mach-O | Experimental | No zero-defect guarantee |
| Architecture | NOP | Substitute | Register | Expand | Block | Dead Code |
|---|---|---|---|---|---|---|
| x86_64 Linux ELF | Tier 1 | Tier 1 | Tier 1 | Tier 1 | Tier 1 | Experimental |
| x86 | Experimental | Experimental | Experimental | Experimental | Experimental | Experimental |
| AArch64/ARM | Experimental | Experimental | Experimental | Experimental | Experimental | Experimental |
PE, Mach-O, ARM, and AArch64 evidence does not imply parity with Linux ELF
x86-64 or equivalent CodeVirtualization support.
Function virtualization mutation records preserve original native instruction
mnemonics even when lowering replaces them with internal VM opcodes (for example,
xlatb remains xlatb in the record rather than the VM handler key xlat).
CodeVirtualization also handles explicitly sized not through FS/GS for direct
segment offsets and base-plus-displacement operands, at byte, word, dword, and
qword widths. Indexed FS/GS not operands remain outside this bounded support.
The machine-readable contract is docs/support-matrix.json:
the generated matrix currently records 22/22 evidenced cells for the official
ELF x86-64 target (100.0% evidence) and 130/242 evidenced cells for non-official
targets (53.72% evidence); 112 non-official cells remain not-supported. The
CodeVirtualization decoder rejects indexed-memory displacements outside the
signed 32-bit disp32 range before encoding; both signed boundary values remain
accepted. This keeps operand classification aligned with the VM encoder's
actual displacement width. Register substitution, instruction substitution,
constant unfolding, instruction expansion, and dead-code injection now have
structural PE ARM64 previews and are required in the Windows ARM64 native smoke.
The first three passed in exact-main run
47594986425:
its JUnit recorded five cases (NOP, StringObfuscation, RegisterSubstitution,
InstructionSubstitution, ConstantUnfolding) with zero failures, errors, or
skips. JUnit SHA-256:
eda604debb1ba00946f4d9e078acf7d0bbe71a21e04714e79c619960600dffe6.
InstructionExpansion also passed in exact-main run
47595574131
on source 3446ddc9be79b8767dc3b50095ff23dfbf950cea: its Windows ARM64 JUnit
recorded six cases with zero failures, errors, or skips. JUnit SHA-256:
a3f8a7d3a600da020bbe5bb077f2fda8bf2761b9833cb32cf5cc139de2a17a2a. The
DeadCodeInjection preview replaces one pinned four-byte NOP with an equivalent
ARM64 self-MOV while preserving the PE structure. It passed in exact-main run
47596431832
on source 39466dd69e5e921eb0dbbb0e53b0053f2ff0e718: the Windows ARM64 JUnit
recorded seven cases with zero failures, errors, or skips; SHA-256
481be59f3a2b84b80455208e61cd4f48089692f5049a850b35dafedf674bf1b2. The
PE ARMNT Thumb also has one structural DeadCodeInjection experiment: a two-byte
NOP becomes mov r6, r6, with image size and headers preserved; no native
Windows ARM32 runtime claim is made. RegisterSubstitution has an ARMNT Thumb
experiment that renames a local register in two instructions while preserving
the return-value instruction and PE structure; it also makes no native runtime
claim. The
InstructionSubstitution has one structural PE ARMNT Thumb experiment that
replaces the pinned two-byte NOP with mov r8, r8, preserving the other bytes,
image size, and headers; it makes no native Windows ARM32 runtime claim. The
Mach-O ARM and i386 NOP cells each have one object-only experimental fixture;
they do not claim executable images or runtime behavior. Mach-O i386
InstructionSubstitution has an object-only experiment replacing mov eax, eax
with 90 90; it does not claim an executable image or runtime behavior. The
PE ARMNT Thumb NOP cell has one
structural preview with a pinned real PE fixture; it does not claim native
Windows ARM32 execution. Structural NOP tests
check the pass mutation record and reread the mutated instruction bytes, so
their assertions do not depend on host-specific PE load addresses or disassembly
formatting. The
PE x86/x86-64 OpaquePredicates and ControlFlowFlattening previews use generated
MinGW fixtures with six runtime inputs; bounded Mach-O x86-64 OpaquePredicates
and ControlFlowFlattening fixtures also preserve six outputs locally under
Rosetta. These previews do not establish general PE or Mach-O parity. The bounded ELF
x86-32 polymorphic-engine fixture runs only the instruction-substitution stage
through the engine and does not validate its default multi-stage profile. PE
x86 and x86-64 have bounded previews of the same single-stage configuration.
Windows exact-main CI requires native execution and repaired-image integrity
checks for both; the x86-64 case passed in run
47447307651
with 19/19 jobs on cad83f7b; the x86 case passed in exact-main run
47451029982
with 19/19 jobs on 921ac648. The Mach-O
x86-64 preview uses a bounded multi-stage profile. These fixtures do not
establish general PolymorphicEngine or PE parity. The matrix currently classifies
5 passes as Tier 1 and 17 passes as experimental.
SelfModifyingCode is experimental on fixed-address Linux ELF x86-64 and x86
(32-bit) inputs. Its x86-32 decryptor uses the Linux i386 int 0x80 mprotect
ABI; both variants skip other formats, architectures, and position-independent
images. The ELF x86-32 claim is limited to the native smoke fixture recorded in
the support matrix and required by the platform evidence aggregator; it does
not establish general x86-32 parity. A focused x86-64 native runtime fixture
checks the other decryptor directly; it passed in the integration job of
exact-main CI run
47374737270
(1,600 passed, 141 skipped, 2 deselected). This one fixture does not establish
general x86-64 or cross-platform parity.
ELF ARM32 and
AArch64 add QEMU differential cases
for string obfuscation of unreferenced .rodata values; they do not establish
general ARM parity. PE x86 now has a preview execution fixture for string
obfuscation in the Windows PE differential smoke; its reference checks
normalize section RVAs with the PE ImageBase and preserve already absolute VAs.
PE ARM64 and ARMNT Thumb have one structural fixture each for obfuscating an
unreferenced .rdata string; both confirm the PE header and code section remain
unchanged. The native Windows ARM64 StringObfuscation smoke passed alongside
NOP insertion in run
47574651833.
The hash-bound evidence
records two passing cases with no failures, errors, or skips. ARMNT still has
structural evidence only and does not claim native Windows ARM execution.
The PE ARM64 fixture also validates a bounded NOP substitution: code changes,
the image size and header remain intact, and radare2 reopens the image. This is
one structural case, not general parity. The dedicated Windows ARM64 CI job
passed the original/mutated NOP smoke with exit code 42 in run
47538242193.
Mach-O i386 and armv7 have object-file-only structural fixtures for the same
unreferenced-data mutation. The available linker cannot produce 32-bit Mach-O
executables, so these cases do not claim executable-image or runtime support.
NOP insertion also has an experimental i386 Mach-O object-only fixture: it
replaces one redundant mov eax, eax with two NOP bytes, preserves the file
size and header, and reopens the object. Its required macOS ARM64 CI run is
pending; it makes no executable-image or runtime claim.
PE x86 PatternSubstitution now has a preview fixture that rewrites an and
zeroing idiom while preserving status flags; its native result and PE checksum
passed locally under Wine. Windows CI is configured to run and require this
case. The single fixture does not establish general PE x86 parity.
ELF x86-32 PatternSubstitution also has a bounded fixture for the and reg, 0
idiom. Linux x86-64 CI executes the ELF32 binary natively; other hosts use
Unicorn. The case requires an applied substitution and preserves exit code 42,
but it does not establish general ELF x86-32 parity.
ELF x86-32 APIHashing now has a fixture with a real puts@PLT import and
R_386_JMP_SLOT relocation. The pass discovers the import through radare2 and
patches its call; an original/mutated Unicorn comparison records the imported
call and preserves exit code 42. The exact-main Linux x86-32 evidence workflow
requires this case. This single fixture does not establish general ELF x86-32
parity.
Mach-O x86-64 APIHashing has one bounded fixture that discovers dyld imports
for malloc and free, hashes both, and preserves the executable's exit code.
The fixture is required by both the exact-main Intel macOS gate and the platform
evidence aggregate; its local run passed under Rosetta on Apple Silicon. Mach-O
x86-32 and broader API coverage remain unsupported, and this one fixture does
not establish general Mach-O parity.
PE x86-64 and x86 APIHashing fixtures use MinGW imports for malloc and free
and preserve exit code 42 under Wine. Exact-main Windows run
47587473803
revealed that radare2 exposes import thunks as indirect jumps (FF 25), not
call sites; neither smoke patched an import. The pass now verifies a thunk's
indirect-jump operand against its IAT entry, then patches callers to the thunk.
The PE32 path validates its RVA-derived pointer against the image base; PE32+
also accepts radare2's irjmp classification. Run
47590859406
then showed that the Windows fixture called the thunk directly and did not
exercise a direct FF 15 IAT call; its JUnit failed at that fixture assertion
after both imports had been hashed. The x64 fixture now forces FF 15 calls,
and the pass collects references to both the verified thunk and IAT. The x86
fixture continues to test calls to its verified thunk. Sixteen focused tests,
including both MinGW/Wine executions, pass locally on Python 3.14. Native
Windows exact-main verification of this fixture correction is pending. Failed attempts
warn when no code cave or patchable call site is available, include xref/opcode
summaries, distinguish a missing xref backend from a failed lookup, and restore
unused trampoline bytes. Missing or malformed indirect-jump operands are
rejected without resolving that thunk. Direct E8 calls and six-byte FF 15
calls are patched; the latter become CS E8 rel32, preserving instruction
size and the return address. Other opcodes remain unsupported. These previews do
not establish general PE parity.
ELF x86-32 CodeMobility has one experimental fixture that moves a basic block
into executable NOP space and preserves exit code 42. The test uses Unicorn on
non-Linux hosts; it does not establish general ELF x86-32 parity.
PE x86 and x86-64 CodeMobility have bounded preview fixtures with MinGW-built
binaries and file-backed executable NOP caves. They require a block move and
compare exit status and stdout under Wine; native Windows CI also compares
stderr, which Wine's host startup diagnostics make unsuitable for comparison.
Virtual section slack without file-backed bytes is excluded from cave scanning.
These fixtures do not establish general PE parity.
ELF x86-32 FunctionOutlining has one experimental fixture that relocates
non-entry chunks to executable NOP space and preserves exit code 42. The case
uses Unicorn on non-Linux hosts and does not establish general parity.
PE x86 and x86-64 FunctionOutlining have bounded preview fixtures. They relocate
branching functions' non-entry chunks into executable NOP space and preserve
return code and stdout under Wine; Windows CI runs both fixtures natively. This
evidence does not establish general PE support. The Windows differential
workflow also requires both JUnit cases before recording the preview evidence.
Mach-O x86-64 FunctionOutlining has a bounded preview fixture: it relocates one
non-entry chunk to executable NOP space, ad-hoc signs the modified binary, and
compares native exit status, stdout, and stderr. It does not establish general
Mach-O support; the Intel macOS differential workflow requires the case.
Windows differential run 47258246671
passed all 40 required PE cases with zero failures, errors, or skips, including
both FunctionOutlining targets; this remains bounded preview evidence.
PE x86 BlockReordering now has a preview fixture that reorders a branching
function and preserves its outputs across nine inputs under Wine. The test
validates PE integrity and requires an actual mutation; the Windows CI
differential job is configured to run and require this case. This bounded
fixture does not establish general PE x86 parity. Functions containing PE base
relocations are skipped because moving their relocation targets without
rewriting the relocation directory can break ASLR; PE reordering also fails
closed if LIEF cannot inspect the image.
The Windows differential smoke requires every case named by its PE evidence
contract and checks the JUnit count against that list. Its pytest filter selects
the x86 and x86-64 ShortJumpPatching cases separately so the platform evidence
validator requires both JUnit rows. The ELF x86-32 aggregate also requires
named rows for APIHashing, CodeMobility, FunctionOutlining, and the bounded
PolymorphicEngine preview; that engine fixture enables only instruction
substitution.
ELF x86-32 ImportTableObfuscation has a bounded puts@PLT preview that discovers
the import from a dynamic ELF32 fixture, redirects the call through an
executable-cave stub, and preserves exit code 42 under Unicorn. It remains a
single bounded case and does not establish general ELF32 parity.
Mach-O x86-64 ImportTableObfuscation has a bounded puts preview: it discovers
the dyld stub, redirects one call through an executable cave, and preserves
stdout, stderr, and exit status under Rosetta. It does not establish support for
other Mach-O architectures or general cross-platform parity.
Dead-code injection also has bounded native cells for Mach-O ARM64 and ELF
AArch64, plus ELF ARM32/QEMU and ELF x86-32 native cells: it replaces executable
NOP padding with same-register moves, preserving exit behavior and, for Mach-O,
ad-hoc code signing. These do not claim general cross-platform parity.
PE x86 and x86-64 dead-code injection fixtures passed the Windows evidence job
in exact-main run 46878837425.
The cells remain preview evidence for bounded NOP-padding replacement and do
not establish general PE parity.
The Windows PE evidence job also validates native x86-64 PatternSubstitution;
its bounded preview case passed in exact-main run
46882549069.
This does not establish general PE parity.
The Intel macOS job passed a native x86-64 PatternSubstitution fixture from the
installed wheel in exact-main run
46888381924.
The matrix cell remains preview, and this one fixture does not establish general
Mach-O parity.
StackStrings now has one bounded Mach-O x86-64 preview: it rewrites a unique
RIP-relative call argument when an executable cave is available, hides the
string with XOR encoding, and preserves output and exit status in the fixture.
The fixture passed locally under Rosetta on Apple Silicon and in the installed-
wheel Intel macOS smoke in exact-main run
46900827109.
This does not establish general Mach-O parity.
AntiDisassembly also has a bounded Mach-O x86-64 preview. A native fixture
provides an executable NOP cave and twelve candidate functions, requires an
injected mutation, verifies ad-hoc code signing, and preserves exit code, stdout,
and stderr. It passed locally under Rosetta and in exact-main Intel CI on
Python 3.12, 3.13, and 3.14 (47024898215). Its
hash-pinned manifest
records the source, workflow, and job outcomes. This case does not establish
general Mach-O parity.
DataFlowMutation also declares experimental Mach-O x86-64 support. Its native
fixture requires one liveness-guided dead-register substitution and checks that
the protected program preserves exit code and output. The exact-main Intel
macOS installed-wheel smoke passed on Python 3.12, 3.13, and 3.14 in run
47033979860.
Its hash-pinned manifest
records the source, workflow, and job outcomes. This fixture does not establish
general Mach-O or cross-platform parity.
DataFlowMutation has a separate PE x86-64 preview. A MinGW-built fixture
requires a liveness-guided mutation, validates the repaired PE checksum, and
preserves native output under Wine. Exact-main CI run
47044781329
passed all 19 jobs, including the native Windows smoke. Its
hash-pinned manifest
records the source, artifact, job, and JUnit hashes. This single fixture does
not establish general PE parity.
DataFlowMutation also has a separate bounded PE x86 preview. Its MinGW fixture
requires a liveness-guided mutation, repairs the PE checksum, and preserves
native output under Wine. The same exact-main CI run passed the native Windows
x86 smoke. Its JUnit report
is pinned in the manifest; this case does not establish general PE x86 parity.
DataFlowMutation adds one experimental ELF x86-32 cell. Its assembly fixture
requires a liveness-guided mutation, and Unicorn emulation preserves exit code
42. Its native Linux smoke passed in the integration job of exact-main run
47055367166. This bounded fixture does not establish general ELF x86-32 parity.
AntiDisassembly adds one experimental ELF x86-32 cell. Its fixture requires an
injection into unreachable executable NOP padding and preserves exit code 42
under Unicorn locally. Its native Linux smoke passed in exact-main run
47055367166. This bounded fixture does not establish general ELF x86-32
parity.
ShortJumpPatching adds one experimental ELF x86-32 cell. Its fixture requires
an actual jecxz expansion, then checks preserved flags and exit code 1 under
Unicorn locally. Its native Linux smoke passed in exact-main run
47055367166. This bounded case does not establish general ELF x86-32 parity.
The extended maturity campaign later exposed an inverted jrcxz expansion on
an optimized GCC fixture. The pass now routes the taken branch through a local
trampoline and preserves the fallthrough path; regression tests cover both
counter values on ELF x86-64 and preserve behavior in PE x86/x86-64 fixtures
under Wine. This fixes the observed case but does not establish generalized
short-jump equivalence.
StackStrings adds one experimental ELF x86-32 cell for direct cdecl
push/call references. The pass rewrites the string into an executable code
cave and preserves exit code 42 under Unicorn locally. Exact-main run
47055367166 found no matching reference in its native Linux smoke. The code
previously always added the ELF load bias; the likely cause is radare2 returning
an already-relocated address. The pass now handles section-relative and
already-relocated addresses, covered by a unit regression test and local
integration run. Exact-main CI run
47058630623
passed its native Linux integration test with radare2 6.2.2. Malformed ELF
headers fail closed, and this bounded case does not establish general ELF
x86-32 parity.
OpaquePredicates now has one experimental ELF x86-32 fixture. The pass selects
a scratch register only when liveness marks it dead (including ecx when edx
is live as a possible 32-bit return register), then relocates a safe block
prefix into an executable cave. The integration case requires a real mutation
and preserves exit code 42 under Unicorn locally. The native Linux integration
test passed in exact-main run 47065478767,
job 144111462422. The full CI run exposed three stale evidence-summary
assertions, now updated; the dedicated platform evidence workflow is pending.
This bounded case does not establish general ELF x86-32 parity.
OpaquePredicates also has one bounded PE x86 preview. Its MinGW fixture
requires actual predicate insertion, repairs the PE checksum, and compares
exit status and output for six inputs under Wine; native Windows CI also
compares stderr. Its bounded Mach-O x86-64 fixture applies a real mutation,
ad-hoc signs the binary, and preserves six output values under Rosetta; the
exact-main Intel macOS differential job is required for native-runner evidence.
These cases do not establish general PE or Mach-O parity.
StackStrings also has one bounded PE x86-64 preview: it builds a unique string
on the stack with XOR encoding, then a local fixture function verifies the
decoded argument. The result-preservation and literal-absence checks passed
locally under Wine. The exact-main Windows format-differential job also passed
all 23 required cases, including this test, in
run 46915318697.
Its hash-pinned JUnit report
and manifest
record zero failures, errors, or skips. This bounded fixture does not establish
general PE parity.
PE x86 now has a separate bounded preview for a direct cdecl push/call with
caller cleanup. The Wine fixture checks that the mutation occurred, the literal
is hidden, PE integrity is restored, and native execution preserves its result.
The rewrite patches only the relative call, leaves the relocation-bearing
push imm32 intact, and returns to the caller's existing stack cleanup. This
avoids corrupting the call bridge when Windows rebases an ASLR-enabled image.
The native Windows run exposed this relocation issue; the fix passed all three
PE mutation smokes and the full 19-job CI run 47010994570. Its hash-bound
manifest and JUnit reports
record the native x86 StackStrings case with no failures or skips. The follow-up
exact-main run 47015377046
also passed all 19 jobs after the fixture began requiring the PE Dynamic Base
flag, keeping the ASLR scenario covered. This bounded preview does not establish
general PE x86 parity.
AntiDisassembly has bounded PE x86 and x86-64 previews for replacing executable
NOP padding with an overlapping decoy while preserving the native result under
Wine. The Windows CI workflow is configured to run these two cases and the PE
x86 StackStrings fixture natively. Its first exact-main run failed while
exposing the MinGW paths, before those cases ran. A follow-up fixed that step
and passed Windows unit tests, but the native fixture step then timed out after
10 minutes. A verbose retry also timed out after 10 minutes, so CI now runs
each native fixture in its own bounded step and requires all three outcomes;
native Windows evidence is still pending.
The platform-evidence aggregator maps every currently declared non-official
support cell to a required pass-specific JUnit case; a unit contract compares
those mappings with this matrix so new claims cannot silently lack evidence.
The installed-wheel smoke executes x86-64 Mach-O natively on Intel
macos-15-intel and checks instruction and register substitution against
native output. The main-push CI smoke now also requires native block reordering
to preserve exit code, stdout, and stderr across nine command-line inputs.
The Intel installed-wheel smoke also runs all thirteen declared experimental
Mach-O x86-64 pass cases on each Python version in its matrix.
The scheduled/manual platform differential artifact and pass-level evidence
aggregator now require runtime evidence for all thirteen declared Mach-O x86-64
experimental passes before marking those cells complete.
Current-source CI also passed native constant-unfolding and dead-code-injection
smokes in run 45732733952.
The support matrix records those two pass/target cells as experimental. These
are bounded experimental pass results; they do not
establish full Mach-O or cross-platform parity. It runs in a fresh pytest
process. Apple Silicon CI checks the installed package without claiming
Rosetta x86-64 execution coverage.
parity_gap_scope names only formats and architectures whose target evidence
is incomplete, and becomes empty when every non-official target is fully
evidenced. This is a readiness calculation; it does not itself add compatibility
evidence.
The workflow selection is covered by
test_macos_native_macho_smoke_runs_in_a_fresh_bounded_pytest_process.
On source 848d0f5b, the complete native ARM64 Mach-O integration module passed
12/12 cases on macOS ARM64 with Python 3.13.11 and Clang 23.1.5, including
native-output preservation, compiled control-flow/memory fixtures, and rejection
of an unrepresentable immediate. The hash-bound
local report
records the source, fixture, and test hashes. This is bounded evidence from one
host and does not establish full Mach-O pass parity or cross-platform parity.
The native ARM64 Mach-O string-obfuscation smoke now passes on Apple Silicon:
it mutates an unreferenced string, preserves the referenced output string, and
verifies ad-hoc signing and runtime output. Since radare2 misses some ARM64
data xrefs, this path also scans analyzed instruction operands and fails closed
if the scan or section metadata is incomplete; file-offset operands are mapped
through section paddr/vaddr so Mach-O references are still recognized when
the image virtual address differs from its file offset. The matching Intel
x86-64 native smoke passed 3/3 cases for instruction substitution, register
substitution, and string obfuscation in
differential workflow 45480009561.
These are experimental checks, not full Mach-O or cross-platform parity; the
string-obfuscation pass does not generate runtime decode stubs. The ARM64
current-main CI result is retained in the hash-bound smoke report
and its JUnit case;
the Intel result is in its hash-bound report
and JUnit report.
The same workflow's six bounded platform slices passed 78/78 cases across
Mach-O ARM64/x86-64, Windows PE, and ELF ARM32/ARM64/x86-32. The
hash-bound preview manifest
links each JUnit report; this is preview evidence, not full pass-by-platform
parity.
An earlier captured preview, 45531042241,
also contains six sanitized JUnit reports with 78/78 cases passing. The
summary
pins its source and report hashes; the workflow was still in progress when
captured, so this is historical bounded evidence and does not supersede the
later completed campaign or close cross-platform parity.
The preview ELF differential matrix now includes instruction expansion both
alone and after NOP insertion on ARM32, AArch64, and x86-32, alongside the
existing substitution, register, and constant-unfolding cases. These tests
extend regression coverage for declared experimental targets; they do not
promote those targets or establish full cross-platform parity until the
updated workflow completes and its artifacts are reviewed. Expansion cases on
ARM32, AArch64, and x86-32 use dedicated basic and branching fixtures containing
eligible shift instructions, and require the expansion pass to apply before
comparing the original and mutated execution results.
The later current-source partial run
45528080704
captured 78/78 passing cases across six platform smoke slices, 963/963 passing
VM fixture-seed cases across 23/24 shards, and 19/48 Linux ELF x86-64
core/extended shard-seed cells (4,320 core and 5,184 extended classified runs).
Those captured differential rows had complete evidence and zero errors or
semantic failures. The workflow was later canceled before completion; this
does not establish full pass-by-platform parity or promote experimental
targets to official support. Its hash-bound partial report
preserves the scope and open gates.
Differential workflow run 43949336892 on source 6c60d58d completed five
preview jobs with 76/76 cases passed: macOS ARM64 (37), Windows PE (18), ELF
ARM32 (6), ELF ARM64 (7), and ELF x86-32 (8). Their JUnit hashes are pinned in
the partial platform report.
The full workflow has since completed successfully (85/85 jobs); its aggregate
confirms all five platform reports are complete, with no failures, errors, or
skips. The completed run report
pins the aggregate hash. These bounded preview cases do not establish complete
pass parity or promote preview targets to official support.
The local release validation for source commit 2c50cff3 built and installed
the 0.4.0-alpha.3 wheel on Python 3.12/macOS ARM64, passed the complete test
suite (7,006 passed, 226 skipped), validated the wheel and sdist with Twine,
and generated a vulnerability-free CycloneDX SBOM. This does not replace the
Linux release workflow, GitHub provenance attestation, current human signoff,
or the still-open 1.0 readiness gates; details and artifact hashes are in
docs/release-validation-local-2026-11-16-2c50cff3.json.
The 9abd69e source also built both package artifacts and passed an installed-wheel
smoke on Python 3.13.11/macOS arm64: import, CLI version, and 318 public API and
import-safety tests passed. This bounded run did not execute the full suite or
release audit; its artifact hashes and scope are recorded in
docs/wheel-smoke-local-2026-11-17-9abd69e9.json.
The b20a56c2 release check rebuilt the current wheel and sdist, passed Twine,
repeated the installed-wheel smoke and recorded the full local suite result.
The direct pip-audit -r requirements.txt path could not bootstrap its
temporary environment (ensurepip exited with SIGABRT). Resolving the declared
requirements with uv into a hash-pinned macOS arm64/Python 3.13 manifest and
auditing that manifest with pip-audit --disable-pip passed with no known
vulnerabilities across 118 components. The pinned manifest and CycloneDX output
are recorded with their hashes; this covers that one platform resolution, not
the release workflow SBOM or other platform matrices. Provenance and Linux
release checks remain pending. See the hash-bound local release report.
The latest local release check on source 5f414ed0 rebuilt the 0.4.0-alpha.3
wheel and sdist, passed Twine, and generated a 114-component CycloneDX SBOM;
pip-audit -r requirements.txt found no known vulnerabilities. The full
checkout unit suite passed 5,845 tests (12 skipped), and the installed wheel
passed the 318-test package smoke. The pinned
local release report
records artifact hashes and open limits. GitHub CI was still pending for that
source when measured; no provenance was generated and nothing was published.
On source aa20dde5, a clean Python 3.14.10/macOS arm64 environment built the
wheel and sdist, passed twine check for both, and installed the wheel with
successful package import and CLI version checks. This bounded packaging smoke
was followed by the full suite against the installed wheel: 7,294 passed,
241 skipped, and zero failed in 774.96 seconds with warnings treated as errors.
The test tree was reconstructed from the same source commit and included its
.gitattributes contract. This does not generate an SBOM, attest provenance,
or refresh human signoff; hashes and commands are in the
local packaging report.
The subsequent CI run for current main (4949a003, GitHub run
45556357218)
completed all 19 jobs successfully, including Linux, macOS, Windows, Python
3.12–3.14, lint, typecheck, installed-wheel smoke, and property/fuzz checks.
This validates that commit's CI matrix; it does not establish full mutation
parity or close the stable-release gates.
The dependency resolution audit now also covers Linux x86-64 on Python 3.12 and
3.13 plus Windows x86-64 on Python 3.13, alongside the macOS arm64/Python 3.13
target. All four hash-pinned manifests passed with zero known vulnerabilities
across 442 platform-specific component entries. Linux uses the manylinux_2_34
resolution because the development requirements include triton-library; this
does not set the package's runtime glibc floor. Manifests, SBOMs, hashes, and
scope limits are in the dependency audit matrix.
The hash-pinned requirement outputs are archived as .requirements.snapshot
files so GitHub does not treat historical audit evidence as active install
manifests; their original bytes and recorded hashes are preserved.
On source 49279456, the standalone release-contract check passed and all 158
release-contract/readiness tests passed under Python 3.13.17/macOS arm64 with
the local Keystone and angr dependencies available. This verifies the current
alpha contract and confirms the three stable-major blockers remain enforced; it
does not build a release or complete the stable-release gates. See the
hash-bound check record.
The scheduled extended maturity smoke now records output-size,
transform-duration, runtime-duration, and static metric summaries for every
selected pass. The same summary now records 0 with no independent
false-positive measurement,
0 with no independent decompiler-effectiveness measurement,
0 without contractual composition support, and no remaining affected-instruction catalogue gap.
The reproducible GCC/Clang corpus and its build manifest live in the public
r2morph-corpus repository.
The successful 85-job differential workflow for source commit b20a56c2
measured 360 compatibility samples, 10/10 corpus passes, 12/12 extended
maturity passes, and 48 VM semantic-contract shards. It found no differential
failures in its Linux x86-64 ELF scope; transformations omitted for ineligible
samples are counted in the reports. Licensed decompiler checks were omitted,
and PE, Mach-O, x86, ARM, and AArch64 remain outside this run's scope, so these
results do not close the analyzer or cross-platform gates. The hash-checked
compressed reports and precise counts are recorded in
docs/differential-run-2026-11-17-44081385675-summary.json.
VM semantic campaign rows that cannot virtualize any function retain the
rejected function and instruction diagnostics, including capability and
reason, so unsupported fixtures can be traced to a concrete blocker. Computed
jump diagnostics distinguish a disabled feature from an enabled dispatch that
the current analysis could not prove. If radare2 omits switch edges, dispatch
lifting also gathers resolved case blocks in the same executable section,
bounded by the next known function start; unresolved and out-of-range targets
remain rejected. A masked switch index bounds table reading only when the mask
and indirect jump share a basic block and no intervening instruction changes
that index.
Direct calls whose ABI contract is unproven are rejected before writes when
partial virtualization is disabled (the default). The diagnostic identifies
the call address and calls capability; a regression test confirms zero
output bytes and no partially virtualized function. This validates safe
rejection and does not add direct-call virtualization support.
Linux integration coverage compiles a dense 16-case Clang -O2
switch with in-function arithmetic destinations, asserts that the analyzer
resolves exactly 16 table entries, and requires full VM virtualization with
native output parity.
The same differential workflow passed again on current source commit 1cf52005
in run 44213229027.
Its 85 jobs completed successfully; artifacts report zero failures or errors
across 5,540 core differential classifications, 7,572 extended-maturity
classifications, 2,450 VM-semantic tests, 1,288 composition tests, and 1,728
differential-fuzz cases. Supplemental cross-format smoke reported 2,146 cases,
including 290 skipped cases. These bounded results do not close cross-platform,
required-analyzer, or resistance gates; Binary Ninja remains unavailable without a
valid license and is optional for release signoff. Other required-analyzer gaps
continue to block the analyzer-coverage gate. See the current-run evidence summary.
A local current-source analyzer sample applied CodeVirtualization to one ELF
fixture. IDA Pro 9.5 completed analysis and decompilation for both original and
protected binaries (1→2 functions, 4→30 pseudocode lines, zero decompiler
errors). Six of nine analyzer slots completed; Binary Ninja, Triton, and Ghidra
were unavailable. This single-fixture result does not establish generalized
resistance or close any 1.0 gate. See the hash-bound summary
and report.
A follow-up on source 9c917795 virtualized one function in the same fixture.
Unicorn returned exit code 45 for both binaries, and IDA/Hex-Rays through the
local MCP completed analysis and decompilation for both. The hash-bound
supplement
records that Ghidra 12.2 headless also completed analysis and decompilation;
the CLI benchmark still lacked an IDA executable. angr, Triton, and Binary
Ninja were unavailable. This one-fixture check does not close analyzer-coverage
or resistance gates.
On current main (d15c33bd), the CLI benchmark measured all 22 passes on
that one ELF fixture: IDA Pro 9.5 and Ghidra 12.2 each completed 22/22 rows
without tool errors, and IDA reported zero decompiler errors. Across all nine
analyzer slots, 154/198 rows completed, 44 were unavailable, and none errored.
Only CodeVirtualization and InstructionSubstitution applied to this fixture;
the other 20 passes were no-ops. Binary Ninja remained optional and unavailable
without a license; Triton was unavailable and remains a required analyzer gap.
This hash-bound, one-fixture evidence does not establish corpus coverage,
semantic equivalence, or generalized resistance. See the summary,
compressed report,
and regression test.
Two repository-only shards (0 and 1 of 32) on source commits 14e8e052 and
45a58d95 covered 12 ELF fixtures across all 22 passes. The product source and
benchmark scripts were identical across those commits. IDA Pro and Ghidra each
completed 264/264 rows without errors. Across nine analyzer slots, 2,376 rows
were classified: 1,848 completed, 528 unavailable, zero errors, and no missing
rows. The unavailable rows were Triton (required) and Binary Ninja (optional).
These two shards exclude the remaining repository fixtures and the generated
ELF/C++ corpus, which requires a Linux x86-64 toolchain; the analyzer and release
gates remain open. See the combined summary,
shard 0 report,
shard 1 report,
and regression test.
A current-main rerun of repository shard 1/32 on 7096f07c used the updated
benchmark scripts. It covered six ELF x86-64 fixtures and 22 passes: 132 pass
rows, 13 applied transformations, zero pass errors, and no missing rows. Of
1,188 analyzer rows, 924 completed without errors. IDA Pro 9.5 and Ghidra 12.2
each completed all 132 rows. Triton was unavailable on this macOS ARM64 host
(required for the full analyzer gate); Binary Ninja was unavailable and remains
optional. The benchmark script tree differs from the November shards, so this
result is not aggregated with them. It does not establish semantic equivalence,
cross-platform parity, or generalized resistance. See the hash-bound
summary,
compressed report,
replay bundle,
and regression test.
Shard 2/32 on c4b35817 covers five additional fixtures across the same 22
passes. It classified 110 pass rows with 11 applied transformations and zero
errors; 770/990 analyzer rows completed without errors. IDA and Ghidra each
completed 110 rows. Triton (required) and Binary Ninja (optional) were
unavailable. The hash-bound summary,
compressed report,
replay bundle,
and regression test
pin the fixture hashes and analyzer results. The analyzer, parity, and
resistance gates remain open.
Those preserved shard 1 and 2 binary pairs were subsequently replayed with
Triton 1.0.0rc4 in an x86-64 Linux container using the same analyzer metric
as the benchmark. All 242 original/protected pairs completed (132 from shard 1,
110 from shard 2), with no analyzer errors; pair hashes match the published
replay manifests. This closes Triton availability only for these two bounded
shards. The full analyzer corpus, cross-platform parity, and resistance gates
remain open. See the hash-bound replay report,
release blocker entry,
and integrity test.
Corrected adversarial workflow 46804665651 has also produced a validated
shard 3/32. The 12 fixtures × 22 passes yielded 264 rows; IDA Pro 9.5 replayed
all 264 original/protected pairs with zero errors and zero decompiler error
delta. Eight passes had no applied transformation in this shard, so it does not
demonstrate resistance for them. The 32-shard campaign and analyzer, parity, and
resistance gates remain open. See the hash-bound summary,
merged report,
replay inputs,
and integrity test.
IDA Pro replay is now complete for shards 1, 2, 5, 6, and 7 of the same run: 1,320/1,320 rows across 60 repository fixtures and 22 passes, with zero IDA errors and zero decompiler error-count delta. Six to eight passes per shard had no applied transformation, so the evidence remains bounded and does not close the general resistance gate. See the hash-bound summary, replay report, source inputs, and integrity test.
A further five shards (0, 9, 10, 11, and 13) add 1,254/1,254 IDA rows across 56 fixtures and 22 passes. IDA reported no errors or decompiler error-count delta. Shards 10, 11, and 13 contain 11 fixtures each (242 rows); shards 0 and 9 contain 12 fixtures each (264 rows). Five to eight passes per shard had no applied transformation, so this evidence does not close the resistance gate. See the hash-bound summary, replay report, source inputs, and integrity test.
A third repository-only shard (2 of 32) on source 68dd840a covers five more
fixtures across the same 22 passes. IDA Pro 9.5 and Ghidra 12.2 each completed
110/110 rows without errors. In total, 770/990 analyzer rows completed; all
110 Triton rows remain unavailable (required), while 110 Binary Ninja rows are
optional and unavailable. All pass and analyzer rows are present, with no
errors; 11/110 fixture-pass rows applied a transformation. This bounded result
does not close the analyzer gate or establish generalized resistance. See the
hash-bound summary,
compressed report,
and regression test.
A fourth repository-only shard (3 of 32) on source 9ff28e1e covers five
additional fixtures across the 22 passes. IDA Pro 9.5 and Ghidra 12.2 again
completed 110/110 rows each without errors. Overall, 770/990 analyzer rows
completed, with zero errors or missing rows; Triton (required) and Binary Ninja
(optional) were unavailable for 110 rows each. Nine fixture-pass rows applied
a transformation. This bounded shard does not close the analyzer or resistance
gates. See the hash-bound summary,
compressed report,
and regression test.
Across shards 0–9, 52 unique fixtures have 10,296 analyzer rows: 8,008 completed, 2,288 unavailable, zero errors, and no missing rows. IDA Pro and Ghidra completed all 1,144 rows each. Triton accounts for 1,144 required unavailable rows; Binary Ninja accounts for 1,144 optional rows. The aggregate summary records the benchmark-script revision boundary and source-tree hashes. Ten of 32 fixture shards are covered, so this does not close the analyzer gate.
Adversarial corpus reports now bind each shard to its Python version,
platform/architecture, PYTHONHASHSEED, and radare2 version. The aggregate
rejects shards whose recorded environments differ. A matched Linux ELF sample
produced different virtualized bytes under radare2 6.2.2 and 6.2.6, so analyzer
measurements are comparable only when they refer to the same protected-binary
hash.
Binary Ninja is an optional, informational analyzer slot. Its missing license
does not block benchmarks or release signoff; no Binary Ninja license is
required or requested. Earlier campaigns left the analyzer gate open for
required Triton rows and incomplete corpus coverage.
Benchmark reports retain optional analyzer outcomes in availability diagnostics
but exclude them from adversarial_evidence_blockers.
The updated blocker behavior was measured on repository shard 5/32: IDA Pro 9.5 and Ghidra 12.2 completed all 110 rows each; 110 Triton rows remain required and unavailable. Binary Ninja's 110 unavailable rows remain visible in tool diagnostics and are absent from blocker totals. Nine of 110 pass-fixture rows applied a transformation. See the shard summary, compressed report, and regression test.
Shard 6/32 measured five more fixtures across all 22 passes. IDA Pro and Ghidra completed 110/110 rows each; 110 Triton rows were unavailable and remain required. Binary Ninja's 110 unavailable rows remain diagnostic only and do not appear in blocker totals. Five of 110 pass-fixture rows applied a transformation. See the shard summary, compressed report, and regression test.
Shard 7/32 measured five additional fixtures across all 22 passes. IDA Pro and Ghidra each completed 110/110 rows; Triton remained unavailable for 110 required rows. Binary Ninja's 110 unavailable rows are preserved as diagnostics and excluded from blocker totals. Nine of 110 pass-fixture rows applied a transformation. See the shard summary, compressed report, and regression test.
Shard 8/32 measured five more fixtures across all 22 passes. IDA Pro and Ghidra each completed 110/110 rows; 110 Triton rows remain unavailable and required. Binary Ninja's 110 unavailable rows remain diagnostic only and are excluded from blocker totals. Twelve of 110 pass-fixture rows applied a transformation. See the shard summary, compressed report, and regression test.
Shard 9/32 measured five additional fixtures. IDA Pro and Ghidra each completed 110/110 rows; 110 Triton rows remain unavailable and required. Binary Ninja's 110 unavailable rows remain visible in diagnostics and are excluded from blocker totals. Twelve of 110 pass-fixture rows applied a transformation. See the shard summary, compressed report, and regression test.
The completed differential campaign 46784779797
passed 86/86 jobs. It classified 10,860 core and 13,032 extended Linux ELF
x86-64 pass-seed runs with complete evidence, zero transformation errors, and
zero semantic mismatches; omitted transformations remain counted as omissions.
The campaign also passed 370 public compatibility samples across six passes,
2,220 radare2 static-recovery measurements, 1,005 VM/QEMU fixture-seed pairs,
46 composition cases, and 81 bounded cases across six platform previews. The
hash-bound manifest and
regression test
pin reports, archive digests, and limits. The campaign's r2morph and scripts
trees match current main; the exact-current-main CI run
46788924548
also passed 19/19 jobs. These results do not establish full pass-by-platform
parity or generalized resistance; the maturity report retains 22 decompiler
blockers. The required-analyzer, parity, and published-resistance gates remain
open. Binary Ninja remains optional.
The exact current-main commit baf550a9c8b869c08dfe602f47a1285a236221d0
also passed all 19 CI jobs in run 46799399050.
This verifies the published differential-evidence commit, without closing the
analyzer, cross-platform parity, or resistance gates.
The first 32-shard adversarial attempt on source f79ad63a exposed a workflow
validator inconsistency: its duplicated blocker calculation treated unavailable
optional Binary Ninja as a failure. The validator now uses the benchmark's
shared blocker calculation, which excludes optional analyzer availability.
That earlier run is not completion evidence; a run on the fix is still needed.
- x86/x86_64: 100+ rules in
x86_rules.yaml- bidirectional groups covering zero registers, self-moves, flag-preserving patterns, XOR/SUB equivalence - ARM32: 10+ groups in
arm_rules.yaml- zero, increment, decrement, self-move, shift, negate, double, compare for r0-r11 - ARM64: Register classes defined in
arm64_rules.yaml
| Pass | CLI Flag | Description |
|---|---|---|
| NOP Insertion | -m nop |
Replaces redundant instructions with benign equivalents; in x86-64 it excludes 32-bit self-moves because those zero-extend the destination register |
| Instruction Substitution | -m substitute |
Replaces instructions with semantically equivalent alternatives |
| Register Substitution | -m register |
Substitutes registers via liveness analysis |
| Instruction Expansion | -m expand |
Expands supported instructions into validated equivalent sequences |
| Block Reordering | -m block |
Reorders eligible basic blocks with validated jump repair |
The x86-64 ELF and native macOS Mach-O NOP smoke fixtures use mov rax, rax
for a redundant self-move candidate; mov eax, eax is intentionally
ineligible because it zero-extends into RAX.
| Pass | Surface | Description |
|---|---|---|
| Dead Code Injection | engine-only | Replaces executable NOP padding with register self-moves that preserve state; trap instructions and arbitrary unreachable-block insertion are not supported |
| Control Flow Flattening | engine-only; ELF x86-32, PE x86/x86-64, and Mach-O x86-64 bounded previews | Inserts flag-safe predicates and jump obfuscation; Mach-O predicates avoid stack writes into the x86-64 red zone; ELF passed native Linux CI and PE previews preserve six inputs under Wine |
| Opaque Predicates | engine-only; ELF x86-32 experimental, PE x86/x86-64, and Mach-O x86-64 bounded previews | Writes liveness-safe opaque predicates into basic blocks; PE fixtures preserve six runtime inputs under Wine and the Mach-O fixture preserves six outputs under Rosetta |
| Code Virtualization | engine-only | Translates instructions to VM bytecode with dispatcher |
| Anti-Disassembly | engine-only; PE x86/x86-64 preview | Replaces executable NOP padding with a four-byte overlapping decoy that preserves fall-through behavior |
| Data Flow Mutation | engine-only | Data flow analysis-driven safe substitutions |
| Short Jump Patching | engine-only | Expands short-only branches with flag-preserving local guards; experimental on ELF x86-64 and preview on PE x86/x86-64 and Mach-O x86-64 |
| Constant Unfolding | engine-only | Unfolds constant expressions into multi-instruction equivalents |
| Code Mobility | engine-only; ELF x86/x86-64 experimental; PE x86/x86-64 and Mach-O x86-64 preview | Relocates x86 blocks to code caves with trampolines; unsupported architectures are not declared |
| Function Outlining | engine-only; ELF x86/x86-64 experimental; PE x86/x86-64 and Mach-O x86-64 preview | Distributes x86 function chunks across ELF, PE, and Mach-O code caves |
| API Hashing | engine-only; ELF x86/x86-64 experimental; Mach-O x86-64 and PE x86/x86-64 bounded previews | Hash trampolines patch verified real imports on these bounded fixtures; ELF x86-32 is compared under Unicorn, Mach-O under Rosetta, and PE under Wine/Windows |
| Import Obfuscation | engine-only; ELF x86-32/x86-64 and Mach-O x86-64 native-import previews; PE x86/x86-64 bounded previews | ELF x86-32, ELF x86-64, and Mach-O x86-64 discover puts from real import tables; PE fixtures discover puts thunks on both architectures. ELF32 preserves the imported call and exit status under Unicorn; Mach-O preserves stdout, stderr, and exit status under Rosetta. These bounded results do not establish general format parity |
| Self-Modifying Code | engine-only | XOR-encrypts eligible straight-line bodies on fixed-address Linux ELF x86-64 and bounded x86-32 preview; PIE and other formats are skipped |
| Stack Strings | engine-only | Rebuilds string literals on the stack at runtime |
| String Obfuscation | engine-only | Encodes only unreferenced strings; PE reference checks normalize RVAs with ImageBase; experimental and no runtime decoder |
| Pattern Substitution | engine-only | Applies size-preserving byte-pattern substitutions |
| Polymorphic Engine | engine-only; Mach-O x86-64 preview | Orchestrates iterative experimental mutation passes; one bounded native fixture exercises a default multi-stage profile |
Seeded engine handlers can use equivalent structural forms for byte-field loads
(movzx or zero-then-byte-load) and XMM memory moves (movups or movdqu).
Both forms preserve guest-visible flags. This expands generated handler shapes;
it is not a resistance guarantee, and cross-seed similarity measurements remain
bounded evidence.
The experimental region VM lowers register-form BMI2 shlx and immediate
form rorx while preserving guest flags. It also supports VEX.128 memory-form
vmovd loads, register-form vpinsrd, XMM vpbroadcastd/vpbroadcastq, and
VEX.128 immediate byte shifts (vpsrldq).
Linux x86-64 integration fixtures check native results; the BMI2 fixture also
checks condition flags and requires a BMI2-capable CPU. These instruction-level
results do not establish general SIMD coverage or close the broader VM
compatibility and resistance gates.
The ELF x86-64 direct-call target decoder uses scratch registers that preserve
the System V AL vector-argument count. The native Linux floating-point varargs
integration fixture exposed an offset undercount for VEX scalar arithmetic
bytecode; the shared size table and an encoder-size regression test cover that
case. The exact native regression passed in the Linux/Python 3.12 integration
suite in CI run 45586185240
on commit c51e6426. This verifies the recorded fixture only; it does not
establish general varargs or ABI parity.
Current-main fuzz workflow 47517834043 ran 5,000 deterministic cases on
Ubuntu, macOS, and Windows: 150,471 parser, VM, relocation, assembly, and
rewriter target runs completed with zero failures. This bounded robustness
result does not establish arbitrary-input semantic equivalence or generalized
resistance to reverse engineering; the hash-pinned reports are in
docs/continuous-fuzz-2026-12-05-47517834043-summary.json.
The independent validation workflow 47519049794 passed all 27 automated
checks on that source revision. It records no matching human signoff for the
subsequently changed tree, so the VM release decision remains blocked; the
review report preserves
that distinction.
Importing the release-contract checks does not load Keystone; the native assembler dependency is loaded only when the independent review runs its fuzz campaign. This keeps gate-only checks usable where Keystone's native library is not installed.
The cross-platform Python unit-test job writes a JUnit report for each Windows
runtime and uploads it as a five-day artifact, including when tests fail. This
keeps runner-specific failures inspectable without relying on the Actions log
stream.
Native Windows PE mutation smokes also run separately with a five-minute limit;
their current diagnostic configuration emits Python stack dumps every 60 seconds.
On Windows, these bounded smokes and their JUnit upload run before the long
cross-platform unit suite, so transport failures are available sooner; the unit
suite still runs after compiler setup or smoke failures, while an explicit
workflow cancellation skips it so superseded runs release their runner.
The December 2, 2026 run timed out in all three PE cases without JUnit reports.
Standalone radare2 returned the expected PE JSON, while stack dumps placed the
hang in r2pipe.cmdj("ij") during Binary.open(). Windows r2pipe output is read
only when bytes are available, using PeekNamedPipe; neither that change nor
the earlier BufferedReader.read1() change resolved the native PE timeout. Run
46992040343 passed Windows unit tests and its bounded stack dump confirmed
that r2pipe.open() completes, then _cmd_process waits for bytes after ij.
Run 46993726372 showed the first post-start ?V command also waits without a
response. A raw subprocess probe in 46996082645 returned only terminal-control
bytes, not PE metadata; because that probe fed commands in one batch, it is
inconclusive about the interactive transport. In 46998773916, fixed
scr.cols/scr.rows also failed to restore r2pipe responses. open_r2pipe now
sets TERM=dumb only in the Windows radare2 child environment, under a lock
around r2pipe startup; this avoids the parent's environment changing and keeps
concurrent opens serialized. Run 47000580007 received an ij JSON response in
under one second. Run 47001854731 exposed a fixture issue; 47003709405 showed
five skipped strings, and 47004673413 confirmed the target literal is present
at raw file offset 6216 but absent from extracted strings. The cause was the
string finder merging NUL-separated strings before its caller truncated them at
the first NUL. The finder now returns each terminated string separately, with a
unit regression for offsets and contents. Windows CI then found 37 strings, so
the PE x86 fixture now scans up to 64 to include its target after MinGW runtime
strings. Run 47008240371 found the target at 0x404048 but no reference because
radare2 6.2.2 reports section VAs and the pass added the PE image base twice.
The reference lookup now accepts both RVA and VA forms, covered by a unit test.
Run 47008912011 reached the mutation but the Windows process failed with
0xC0000005: the old trampoline overwrote the relocation-bearing absolute
push operand, so ASLR adjusted the new relative-jump displacement. The pass
now patches only the five-byte relative call, uses a relative call into its
stub, and returns to the original caller cleanup. Unit and Wine integration
tests pass; a new exact-main Windows run is still required for native evidence.
Adversarial benchmark report files are written as the exact UTF-8 bytes used by
their manifest hash, so newline conversion on Windows cannot invalidate the
artifact binding.
Published review evidence is kept immutable when its workflow manifest records
the report hash. The earlier docs/independent-review.json remains that
hash-bound snapshot; docs/independent-review-current.json is regenerated from
the current source and is the report checked by the release contract. Its
automated result does not substitute for a matching human signoff.
| Mode | Flag | Status | Description |
|---|---|---|---|
| Structural | --validation-mode structural |
Stable | Binary format integrity checks (always runs) |
| Runtime | --validation-mode runtime |
Stable | Compares original vs mutated execution (exit code, stdout, stderr, files) |
| Symbolic | --validation-mode symbolic |
Experimental | Bounded symbolic step via angr (ELF x86_64, advisory) |
| CFG Integrity | Automatic | Experimental | Reachability and edge preservation checks |
Adversarial benchmark JSON records the SHA-256 of each original fixture and of each pass's protected output. Explicit original/protected pair reports include both hashes at the report level. The digest is computed in bounded chunks so large inputs do not need to be loaded into memory; these hashes let campaigns verify that analyzer results used the same bytes across runs.
Runtime validation fails if either process times out. A test case's
expected_exitcode defaults to 0; set it to null when no absolute exit code
is known, and the validator will still require the original and mutated
processes to return the same code. MutationPassFuzzer uses this mode because
valid programs may intentionally return a nonzero status.
Real-binary CI smoke tests retain each utility's original basename when saving its mutated copy, so multicall system binaries continue dispatching the tested applet.
Native x86-64 Mach-O integration checks run on Intel macOS. Apple Silicon execution through Rosetta remains experimental and is not covered by CI.
On 2026-11-25, CI run
45599431923
passed all 19 jobs on source 9c917795, including the installed wheel,
unit/integration/product tests, quality checks, and the Ubuntu, macOS ARM64,
macOS Intel, and Windows Python 3.12–3.14 matrix. The matching
three-platform continuous-fuzz run
also passed. These runs validate this commit's bounded checks; they do not
establish full pass-by-platform parity or generalized resistance. The 1.0
readiness ledger remains blocked on the published analyzer, parity, and
resistance criteria.
The experimental BinaryRewriter applies size-preserving instruction
replacements only when the virtual address maps to file-backed bytes in an
executable section and the original bytes still match. Short replacements are
padded with assembled NOP instructions to complete instruction boundaries.
The x86-64 ELF integration fixture checks a size-neutral equivalent instruction
replacement and compares native process results on Linux x86-64.
Insertions, deletions, relocations, and section growth are rejected; these
operations need format-aware relocation and metadata handling before they can
be reported as supported. A no-patch rewrite copies the input bytes exactly.
The continuous-fuzz binary_rewriter target also applies bounded byte-level
replacements and checks stale-byte rejection and that surrounding bytes remain
unchanged. A second binary_rewriter_output target runs the high-level rewrite
and atomic output path every 32 inputs against a real ELF fixture, verifies that
only the selected byte changed, and reparses the output. It checks file-output
integration, not execution equivalence of the mutated ELF.
The 64-case differential-corpus fuzz smoke validates both rewriter targets;
binary_rewriter_output runs twice at that size. The Nov 26, 2026 run exposed
stale target inventories in both campaign validators. The fuzz report itself had
zero failures; the workflow rejected it because those inventories omitted the
high-level output target.
The assembling target exercises AssemblyService normalization and result
handling against a bounded Keystone-backed rasm2 test double, including
invalid instructions. It does not replace integration tests using native
radare2.
The scheduled and manually dispatched differential corpus runs --passes all, --require-applied, and
--require-complete-evidence; complete evidence covers runtime, output size,
transform duration, runtime duration, and static analyzer evidence while
comparing exit code, stdout, stderr, created files, and declared observable
effects across nine seed-derived inputs.
The 48 shard/seed jobs retain those distinct corpus measurements and the
extended-pass maturity runs. The fixed cross-format, composition, VM semantic,
and fuzz regression smokes run once per campaign because they use the same
inputs in every shard; their aggregate requires and validates each resulting
artifact before publishing the campaign.
The current-source local stress run on commit 4fbe86fb exercised all ten
parser, assembler, VM, relocation, and binary-rewriter fuzz targets 10,000
times each with generated payloads capped at 32 KiB and zero failures. Its
source and raw-report hashes, seed, diagnostics, and limits are recorded in the
bounded fuzz evidence manifest.
This single-host deterministic run does not prove arbitrary-input semantic
equivalence, cross-platform parity, or adversarial resistance.
A second local run on commit 0491ba06 exercised the same ten targets 5,000
times each with payloads capped at 4 KiB and zero failures. The current-source
manifest and raw report are pinned in
docs/continuous-fuzz-local-2026-11-18-0491ba06.json.
This bounded macOS ARM64 run adds current-source fuzz evidence; it does not
establish cross-platform parity or adversarial resistance.
The main-push continuous-fuzz workflow on source 5519152b passed on Ubuntu,
macOS 15, and Windows after building and installing the wheel. Each platform
ran 5,000 cases for each of ten parser, assembler, VM, relocation, and rewriting
targets (150,000 target runs total), using a fixed seed and payloads capped at
4 KiB. All three reports record zero failures and 103
macho_load_commands.warning diagnostics. The summary includes hashes for the
canonical JSON reports and the original workflow artifacts at
docs/continuous-fuzz-2026-11-19-44425946598-summary.json.
This bounded campaign does not test transformed-program equivalence and does
not establish exhaustive fuzz coverage, full platform parity, or adversarial
resistance.
The continuous-fuzz workflow on source 749131c6 passed on Ubuntu, macOS 15,
and Windows after building and installing the wheel: 5,000 cases for each of
the same ten targets per platform (150,000 target runs total), with zero
failures and 4 KiB payload limits. The three raw reports and their
source-bound hashes are recorded in
docs/continuous-fuzz-2026-11-19-44562397087-summary.json.
This deterministic bounded campaign does not establish exhaustive fuzz
coverage, transformed-program equivalence, complete platform parity, or
adversarial resistance.
A further main-branch run on source b5612378 used seed 20261119 and passed
the same ten targets on Ubuntu, macOS 15, and Windows: 5,000 cases per target
and platform (150,000 target runs total), with zero failures. Each platform
retained 101 recoverable macho_load_commands.warning diagnostics. Its raw
reports, artifact hashes, and limits are pinned in
docs/continuous-fuzz-2026-11-19-44613330309-summary.json.
This deterministic bounded campaign does not establish exhaustive fuzz
coverage, transformed-program equivalence, full platform parity, or adversarial
resistance.
The next main-push fuzz run on source d363ed86 also passed on Ubuntu,
macOS 15, and Windows: 5,000 cases for each of the same ten targets per
platform (150,000 target runs total), with zero failures and 103 recoverable
macho_load_commands.warning diagnostics. Its reports and artifact hashes are
pinned in
docs/continuous-fuzz-2026-11-19-44631018926-summary.json.
This bounded campaign does not prove arbitrary-input semantic equivalence,
exhaustive fuzz coverage, complete platform parity, or adversarial resistance.
On source 3b23bd50, Continuous Fuzzing passed on Ubuntu, macOS 15, and
Windows with 5,000 cases per target, zero failures, and 150,471 target runs
across the three runners. This campaign adds 157 sampled calls per runner to
the high-level rewrite_binary file-output path, checking the selected patch
bytes and reparsing the result. The hash-bound summary,
Ubuntu report,
macOS report,
Windows report,
and manifest regression test
pin the source, artifacts, counts, and limits. The output-path sample uses one
ELF fixture and does not establish execution equivalence, exhaustive fuzzing,
complete platform parity, or generalized VM resistance.
The current-source fuzz run on a61f599e completed on Ubuntu, macOS 15, and
Windows using the installed wheel: 5,000 deterministic cases for each of ten
parser, assembler, VM, relocation, and rewrite targets per platform (150,000
target runs total), with zero failures and 103 recoverable
macho_load_commands.warning diagnostics per platform. The source commit,
artifact digests, raw reports, and limits are pinned in
docs/continuous-fuzz-2026-11-24-45416536037-summary.json.
This bounded campaign does not prove arbitrary transformed-program
equivalence, exhaustive fuzz coverage, complete platform parity, or
adversarial resistance.
On source commit 92ff809c, a local macOS ARM64 run passed 5,000 cases for
each of the same ten fuzz targets (50,000 target runs total), with zero
failures and 107 recoverable macho_load_commands.warning diagnostics. The
Python 3.13.17 environment, source and report hashes, and limits are pinned in
docs/continuous-fuzz-local-2026-11-24-92ff809c.json
and its raw report.
This one-host bounded campaign does not prove transformed-program equivalence,
full platform parity, exhaustive fuzz coverage, or adversarial resistance.
The Continuous Fuzzing workflow then passed on source commit 92ff809c across
Ubuntu, Windows, and macOS 15: 5,000 cases for each of ten targets per platform
(150,000 target runs total), with zero failures and 103 recoverable
macho_load_commands.warning diagnostics per platform. The three reports,
workflow artifact IDs and digests, source hash, and scope limits are pinned in
docs/continuous-fuzz-2026-11-24-45460386121-summary.json.
The campaign does not establish transformed-program equivalence, exhaustive
fuzz coverage, full product parity, or adversarial resistance.
The next main-push fuzz run on source 5f5078f7 also passed on Ubuntu,
macOS 15, and Windows: 5,000 cases for each of the same ten targets per
platform (150,000 target runs total), with zero failures and 103 recoverable
macho_load_commands.warning diagnostics per platform. Its three compressed
reports, workflow artifact IDs and hashes, source hash, and limits are pinned
in docs/continuous-fuzz-2026-11-20-44646998764-summary.json.
This bounded deterministic campaign does not establish exhaustive fuzz
coverage, transformed-program equivalence, complete platform parity, or
adversarial resistance.
On current source 2ab350c7, the main-push Continuous Fuzzing workflow passed
on Ubuntu, macOS 15, and Windows: 5,000 cases for each of ten parser,
assembler, VM, relocation, and rewrite targets per platform (150,000 target
runs total). Each platform reported zero failures and 103 recoverable
macho_load_commands.warning diagnostics. The source hash, artifact IDs and
digests, reports, and limits are pinned in
docs/continuous-fuzz-2026-11-25-45538554794-summary.json.
This bounded campaign does not establish arbitrary transformed-program
equivalence, exhaustive fuzz coverage, full platform parity, or adversarial
resistance.
The current-source commit 83f5bdf0 passed two three-platform campaigns on
Ubuntu, macOS 15, and Windows, each with 5,000 cases for ten parser, assembler,
VM, relocation, and rewrite targets. That is 300,000 target runs across two
seeds with zero failures; the reports retain 103 or 104 recoverable Mach-O
parser warnings per platform. The source hash, run IDs, artifact digests,
report hashes, and scope limits are pinned in
docs/continuous-fuzz-2026-11-25-83f5bdf0-summary.json
and verified by
tests/unit/test_published_continuous_fuzz_83f5bdf0.py.
These bounded inputs do not establish exhaustive fuzz coverage, arbitrary
transformed-program equivalence, complete platform parity, or general
resistance.
The next main commit's differential workflow (44308008537) failed its
aggregate check because independently built corpus shards repeated fixture and
seed rows. The previous size-weighted shard assignment could change when
generated binary sizes differed between workers. Shards now use stable,
count-balanced ordering by unique fixture name in
scripts/maturity_fixture_sharding.py.
This removes the cross-worker assignment drift; the workflow still needs to
verify the fix, and count-balanced shards can have runtime skew.
On the same source commit, the differential workflow completed 85 jobs:
10,860 core and 13,032 extended classifications had complete evidence and
zero failures. The cross-platform fuzz workflow completed 150,000 target runs
across Ubuntu, Windows, and macOS with zero failures. The 362-fixture
adversarial benchmark completed 55,220 of 71,676 analyzer rows; Binary Ninja
and IDA Pro were unavailable, and 528 Unicorn rows lacked instruction support.
These results are bounded to the documented corpora and do not close platform
parity or resistance. The aggregate and raw-artifact hashes are recorded in
current-main-validation-2026-11-18-0491ba06.json.
The main CI run passed 11 jobs but was cancelled during four macOS package
smoke jobs, so those jobs remain unverified. Its automated review passed 28
checks but still records human signoff as not-attested.
The 2026-11-20 main-push fuzz run
44656133058
passed on source 6dec0392 on Linux, macOS, and Windows: 5,000 deterministic
cases for each of ten parser, assembler, VM, relocation, and rewriting targets
per platform (150,000 target runs total), with zero failures. The three platform
reports and source/run hash manifest are recorded in
continuous-fuzz-2026-11-20-44656133058-summary.json.
Each platform retained 103 recoverable Mach-O parser diagnostics. This bounded
campaign does not prove arbitrary-input equivalence, full platform parity, or
adversarial resistance. Each generated VM bytecode case also verifies that the
checksum and position mask preserve the terminal exit opcode.
The next main-push run on source 09db9ea2 also passed all three platforms and
ten targets: 5,000 cases per target and platform (150,000 target runs total),
with zero failures. Its binary_rewriter target exercises byte replacement,
stale-byte rejection, and preservation outside the patch range. The reports,
artifact IDs, and hashes are pinned in
continuous-fuzz-2026-11-20-44667500653-summary.json.
This bounded campaign does not validate complete executable semantics or close
the compatibility, differential, or adversarial-resistance gates.
The following main-push run on source a3359d66 also passed on all three
platforms and ten targets: 5,000 cases per target and platform (150,000 target
runs total), with zero failures. The binary_rewriter target now traverses the
rewriter's virtual-address-to-file-offset mapping and checks rejection of
stale bytes, out-of-file addresses, and non-executable sections. Reports,
artifact IDs, and hashes are pinned in
continuous-fuzz-2026-11-20-44668686404-summary.json.
It uses bounded synthetic section data and does not fuzz complete executable
semantics or output-file integration.
The 2026-11-20 dispatched run on source 2f54c47e passed on Ubuntu, macOS 15,
and Windows: 5,000 cases for each of the same ten targets per platform
(150,000 target runs total), with zero failures and 96 recoverable
macho_load_commands.warning diagnostics per platform. The raw reports,
workflow artifact IDs and hashes, source hash, and limits are pinned in
continuous-fuzz-2026-11-20-44676210319-summary.json.
This bounded campaign uses synthetic rewriter section data and does not prove
complete executable equivalence, exhaustive fuzz coverage, or complete
platform parity.
The latest main-push run
44683267033
passed on source 24d68c8c across macOS 15, Ubuntu, and Windows after building
and installing the wheel. It completed 5,000 cases for each of ten parser,
assembler, VM, relocation, and rewriting targets per platform (150,000 target
runs total) with zero failures. Each report retained 103 recoverable Mach-O
parser diagnostics. The source-bound manifest and reports are in
continuous-fuzz-2026-11-20-44683267033-summary.json.
This bounded campaign does not establish arbitrary-input equivalence,
exhaustive fuzz coverage, complete platform parity, or adversarial resistance.
Windows report files retain their original line endings so the manifest hashes
continue to match the downloaded artifact bytes.
The previous differential workflow
44661095783
captured a partial snapshot on f319f1e4: four platform targets passed 39/39
selected cases; one of 16 core shards recorded 230 classified runs with 76
applied transformations and 100% complete evidence; its extended shard
recorded 276/276 complete-evidence runs across all 12 extended passes. Eleven
VM semantic shards passed 461/461 fixture-seed cases. The overall workflow
later failed in its macOS ARM64 differential smoke and aggregate gate, so the
snapshot is partial evidence only. The hash-bound
snapshot and reports
preserve the captured artifact IDs, hashes, and limits. The later run
44669121610
failed because NOP insertion had no safe candidate in any corpus fixture and
the aggregate platform contract omitted the separate Intel macOS run. The
fixture and aggregate contract have since been corrected. The completed
workflow 44676092171
passed all 86 jobs on its pinned source commit 2f54c47e: 10,860 core and
13,032 extended classifications had complete evidence with zero failures or
errors. Its generated public compatibility corpus passed 360 samples across
six passes, and the 46-case composition smoke ran in all 48 jobs (2,208
executions) with zero failures or errors. This is
bounded evidence for that source revision; platform parity, named-analyzer
coverage, and published resistance criteria remain open. Counters, artifact
hash, and scope limits are pinned in the
run summary.
The 2026-11-24 differential run 45418027212 exposed a compile defect in the
pinned public corpus's avx_packed_compare.c: its memory helper accepted a
const float * but received a __m256. The workflow now applies the tracked
correction in
r2morph-corpus-avx-packed-memory.patch
and fails if any expected compiler/build variant or source family is omitted.
The corrected public corpus passed its four-shard aggregate in run
45428767299
on source acafac289598b2ca22ec66498873ccfba4775bd3: 370 samples across six
selected passes, zero differential failures, and 2,220 complete static
recovery measurements with zero failures. The hash-bound result is recorded in
public-compatibility-corpus-2026-11-24-45428767299.json.
The latest completed full differential campaign, 45544822953,
passed all 86 jobs on pinned source 1dabf440. Its Linux ELF x86-64 core
matrix classified 10,860 runs across ten passes (3,480 applied, 7,380 omitted),
and its extended matrix classified 13,032 runs across twelve passes (3,406
applied, 9,626 omitted). Every row had complete evidence, with zero errors or
semantic failures. The campaign also passed 2,208 composition cases, 370
public compatibility samples, 1,005/1,005 VM fixture-seed cases with matching
QEMU oracle pairs, and 78/78 bounded cases across six platform slices. The
public compatibility report was byte-identical to the prior campaign. The
hash-bound manifest and
platform JUnit reports
pin the run artifacts and results. Twenty-two decompiler maturity blockers
remain; omitted transformations are not successful transformations. This
bounded evidence does not establish full platform/pass parity, all-named-
analyzer coverage, or generalized adversarial resistance.
The previous source-bound differential campaign,
45602419475,
passed all 86 jobs on source 9c917795. It classified 10,860 core runs and
13,032 extended runs with complete evidence and no semantic failures; 3,480
core and 3,406 extended transformations applied, while the other rows were
explicitly omitted. The run also passed 2,208 composition cases, 370 public
compatibility samples across six passes, 2,220 radare2 static-recovery
measurements, 1,005 VM/QEMU comparisons, and 78 bounded cases across six
platform slices. The hash-bound
manifest and compressed
reports preserve the raw evidence. Twenty-two decompiler blockers remain; the
platform cases are previews and do not establish equivalence across every
supported platform. Named analyzer
coverage and generalized resistance remain open.
The latest source-bound differential campaign,
45718368428,
passed all 86 jobs on source a1e00995. Its Linux ELF x86-64 core and extended
matrices classified 10,860 and 13,032 runs respectively, with complete evidence
for every row and no errors or semantic failures; 3,480 core and 3,406 extended
transformations applied. The run also passed 46 composition cases, 370 public
compatibility samples and 2,220 radare2 static-recovery measurements, and
1,005 VM/QEMU comparisons across three seeds. Six bounded platform previews
passed 81/81 cases across Windows PE, macOS ARM64/x86-64, and ELF ARM32, ARM64,
and x86-32. The hash-bound manifest
and its compressed reports retain report hashes and GitHub artifact digests.
The maturity report still records 22 decompiler blockers; the public corpus
omitted optional analyzer runners. The core matrices cover Linux ELF x86-64,
and the platform rows are bounded previews, so full cross-platform/pass parity
and generalized resistance remained open after that evidence.
In run 47258246671,
one public-corpus shard hit a 10-second timeout while probing clang --version
during corpus setup; the other observed build shards completed this step. The
workflow now applies a tracked, source-pinned patch extending only that version
probe to 60 seconds. The rerun 47260193614
completed all 86 jobs. Its four public-corpus shards passed: 370 samples across
six passes with zero differential failures, plus 2,220 static-recovery
measurements with zero failures. The Linux ELF x86-64 core and extended matrices
classified 10,860 and 13,032 runs with 100% complete evidence and zero errors or
semantic failures. Six bounded platform previews passed 130 cases with zero
failures, errors, or skips. The hash-bound campaign manifest
pins the aggregate artifacts and their limits. This evidence does not establish
full cross-platform/pass parity or generalized adversarial resistance. The
exact-main CI run 47267580653
passed 19/19 jobs on 50296708 after a retry of the Ubuntu package-install job.
The matching CI run
also passed all 19 jobs on that source commit.
The exact-source differential campaign
47483552811
completed 86/86 jobs on 30f7925f. Its Linux ELF x86-64 core and extended
matrices covered 10,860 and 13,032 classified runs with complete evidence and
no errors or semantic failures (6,919 applied transformations; omissions are
not successful transformations). Six bounded platform previews passed 138
cases, and the public compatibility corpus passed 370 samples plus 2,220 static
recovery measurements. Exact-main CI run
47467099240
passed 19/19 jobs on the same commit. The hash-bound manifest
and integrity test
pin the reports and workflow artifacts. The core matrices cover Linux ELF
x86-64 only; the other targets remain bounded previews, 22 decompiler maturity
blockers remain, and these results do not establish full platform parity or
generalized resistance.
The same source passed two three-platform continuous-fuzz runs with seeds
20260827 and 20261125: 5,000 inputs for each of ten targets on Ubuntu,
macOS, and Windows, totaling 300,000 target runs with zero failures. The
fuzzer recorded 103 and 104 recoverable Mach-O parser diagnostics for those
seeds. Its hash-bound report set
pins each raw report and workflow artifact. Git preserves the original bytes
of Windows reports so their published SHA-256 values remain verifiable. This
is bounded fuzz evidence for the named targets and does not cover every parser
or binary format.
The corrected 32-shard campaign 46804665651 passed all 33 jobs. Local IDA
Pro 9.5 replays now cover all 32 shards: 7,964/7,964 rows completed on macOS
ARM64, with no IDA errors or decompiler error-count deltas. Several passes
produced no transformation in individual shards; this evidence does not
establish resistance. Four campaign rows initially lacked Unicorn results for
VEX-encoded AVX loads. The test emulator now handles unaligned 256-bit
VMOVUPS memory forms encoded with VEX2 and VEX3. A hash-pinned replay of the
four exact campaign pairs completed all eight original/protected measurements
with Unicorn 2.1.4; every pair returned exit code 42 on both inputs. An
aggregate integrity test verifies required-analyzer coverage across the 32 CI
shards, all 7,964 IDA replays, and these four Unicorn pairs. The
all-analyzer criterion is complete; cross-platform parity and generalized
resistance remain open. Binary Ninja remains optional and unavailable.
Hash-pinned reports, source manifests, replay binaries, and integrity tests are
listed in docs/release-blockers.md and the readiness ledger.
The integrity tests stream each replay bundle once while checking its source
reports, manifests, and binary hashes.
One complex ControlFlowFlattening row exceeded the original 60-second IDA
timeout; it completed on retry with a 300-second limit, and both attempts are
recorded in the hash-pinned replay report.
The latest completed adversarial analyzer and VM campaign,
45548803519,
passed all 33 jobs on pinned source 1dabf440. It measured 362 Linux ELF
x86-64 fixtures (200 generated) across 22 passes: 7,964 pass runs and 71,676
analyzer slots. The report accounts for every slot, with 55,220 completed,
16,456 unavailable, and zero errors or missing rows. angr, Ghidra, objdump,
radare2, Triton, and the custom analyzer completed all rows; Unicorn completed
7,436 and could not emulate 528 unsupported-instruction rows. Binary Ninja and
IDA were unavailable for all rows. Code virtualization applied to all 362
fixtures, while 14 functions retained unsupported exception/unwinding or
SSA-liveness capabilities. The VM smoke preserved semantic parity across 15
fixtures and ten seeds, and all tamper probes diverged; progressive growth was
supported for six fixtures. Human adversarial review remains pending, so this
campaign does not establish generalized resistance or close the analyzer and
resistance gates. Its hash-bound manifest,
merged analyzer report,
and VM report
pin the results and their limits.
The follow-up adversarial campaign
45608329375
passed all 33 jobs against the same product source as 9c917795 (the source
commit differs only in documentation). It measured 362 Linux ELF x86-64
fixtures across 22 passes and 7,964 pass runs. Six analyzers completed all
7,964 rows; IDA Pro and Binary Ninja were unavailable, and Unicorn could not
emulate 528 rows. Its maturity report records zero decompiler blockers for
this measured scope, reducing the earlier 22-blocker result. Ten-seed VM
measurements found ten opcode assignments, two dispatch variants, and no exact
normalized cross-seed matches; these structural metrics do not establish
general resistance. The all-analyzer, platform-parity, and human-review gates
remain open. The hash-bound summary
links the raw reports and their limits.
The current-source continuous-fuzz run
45581219724
passed on source c1d7f729 across Ubuntu, macOS 15, and Windows after building
and installing the wheel. Each platform completed 5,000 cases for each of ten
parser, assembler, VM, relocation, and rewrite targets (150,000 target runs
total), with zero failures and 103 recoverable
macho_load_commands.warning diagnostics. Its matching CI property job ran on
Ubuntu. The hash-bound manifest,
three platform reports, and regression test
pin the source, artifacts, counts, and limits. This bounded campaign does not
establish arbitrary transformed-program equivalence, exhaustive fuzz
coverage, full product parity, or adversarial resistance.
The continuous-fuzz workflow now also runs the relocation mapping Hypothesis
property test on all three runners before the deterministic campaign. The
follow-up run 45583595035
on source 300194fa passed both property test items on Ubuntu, macOS 15, and
Windows (six runner-test passes total). Its summary
and regression test
pin the result. This validates relocation mapping on three runner operating
systems; it does not close the broader product-parity gate.
A local current-main rerun on 2026-11-19 used Python 3.14.10 on macOS ARM64 and
recorded 50,000 target runs (5,000 for each of the same ten fuzz targets), zero
failures, and 103 recoverable Mach-O parser diagnostics. Its report and
source-bound manifest are
continuous-fuzz-local-2026-11-19-670a07d6.json.
This single-host bounded run supplements the platform workflow; it does not
establish cross-platform parity or adversarial resistance.
The 2026-09-20 local adversarial campaign measures all 162 repository fixtures:
angr completed 162/162 runs, while radare2, objdump, and the custom analyzer
also completed all runs. Unicorn completed 155/162 runs; its seven unavailable
rows are retained with their instruction-support reasons. In that campaign,
IDA and Triton were unavailable; these rows remain explicit and are not counted
as completed analysis. Ghidra is provisioned by the scheduled campaign. The bounded
report is
docs/protection-adversarial-angr-local-2026-09-20.json.
The earlier focused angr fixture remains available in
docs/protection-adversarial-angr-local-2026-09-18-59898697.json.
That focused fixture records 5 completed analyzer slots and 4 unavailable analyzer slots.
Binary Ninja is an explicit analyzer slot; the focused local
fixture records binary-ninja as unavailable because module 'binaryninja' is unavailable.
The current installed API is importable, but the headless benchmark reports
analyzer license is unavailable. Binary Ninja remains an explicit analyzer
slot and is optional for release signoff; its unavailable result is informational.
Other required-analyzer gaps and the incomplete campaign-scope gate remain release
blockers. The 2026-11-14 adversarial campaign summary records 362
samples across 22 passes, with 7964 completed Ghidra tool runs and
7964 completed Triton tool runs; Binary Ninja, IDA Pro, and some Unicorn rows
remain unavailable. The separate 159-sample IDA MCP campaign records
159 samples, 318 completed analyses and 159 samples, 0 IDA errors. These
are campaign-specific results: availability in one campaign does not fill unavailable rows in another,
and did not close the all-named-analyzers 1.0 criterion at that time. See
docs/protection-adversarial-run-2026-11-14-43615553431.json.
A subsequent workflow run on source commit 6c60d58d completed all 33 jobs and
recorded the same 362-sample, 22-pass corpus: 7,964/7,964 pass rows and
71,676/71,676 analyzer rows were present, with zero missing rows or execution
errors. Only 55,220 analyzer rows completed (77.04%); Binary Ninja and IDA Pro
were unavailable in the workers, and Unicorn did not support 528 fixture rows.
The hash-bound run manifest
and compressed raw report
retain the evidence. That campaign left the analyzer gate open.
A bounded local rerun on source commit dedfef14 covered two repository-fixture
shards (8 distinct ELF x86-64 fixtures) across all 22 passes. IDA Pro 9.5
completed all 176 analyzer rows for those fixtures; across 1,584 analyzer slots,
1,056 completed and 528 were unavailable (Binary Ninja, Ghidra, and Triton).
There were no pass/tool errors or missing rows. The macOS run excludes generated
Linux fixtures, and that bounded run did not close the all-analyzer gate. Hash-bound reports and
fixture hashes are listed in
docs/compatibility-corpus.md.
A focused rerun on source commit 12eb478e measured CodeVirtualization on
elf_vm_shift_x86_64: one function was virtualized with no partial or unsupported
functions. The automated pair report completed angr, custom, objdump,
radare2, and Unicorn without tool errors; Unicorn returned 42 for both original
and protected files. Binary Ninja, Ghidra headless, IDA headless, and Triton were
unavailable in that runner, so those slots remain open. A separate IDA MCP
analysis of the same fixture and recorded seed completed on both files: IDA
counted two functions in the original and four in the protected file, whose entry
decompilation showed a checksum loop. This single-sample observation is not a
semantic-equivalence or generalized-resistance result. The automated report
and IDA pair record
retain the measurements and unavailable slots.
The follow-up Ghidra 11.4.2 slice on source commit 8a612589 measured
CodeVirtualization on four repository fixtures: Ghidra completed 4/4 rows,
while six of nine analyzers completed overall (24/36 rows). IDA Pro timed out
on four rows; Binary Ninja was unavailable due to license status, and Triton
was not installed. The source and fixture hashes, decompiler deltas, and raw
report are recorded in
docs/compatibility-corpus.md.
This bounded output comparison does not demonstrate generalized resistance;
this evidence did not close the all-analyzer, cross-platform parity, or resistance gates.
A current-source local rerun on 2026-11-20 used Ghidra 12.2 on the 162
repository fixtures at source commit 716dcfac. All 324 original/protected
analyses completed without errors or timeouts; the function count changed in
151 pairs and stayed the same in 11. CodeVirtualization applied to all 162
fixtures and virtualized 170 functions, with no unsupported or partial
virtualization. Function-count changes are only a coarse analyzer observation,
not proof of semantic preservation or resistance. The hash-bound
raw report and
summary
preserve scope and provenance; analyzer, parity, and resistance gates remain
open.
The completed differential workflow on that source revision also retained a
360-build public ELF x86-64 corpus: 19,440 differential inputs passed across six
passes, with 713 transformations applied and 1,447 omitted. Five platform
slices completed 76 selected smoke cases without failures. Optional decompiler
runners were not configured, so these results do not close analyzer coverage,
broader pass-by-platform compatibility, or resistance. The hash-bound workflow
evidence is summarized in
docs/compatibility-corpus.md.
Another adversarial campaign, run 44050933385 on source commit 8a612589,
returned success for all 32 shard jobs across 362 ELF x86-64 fixtures and 22
passes. It recorded 7,964 pass rows and 71,676 analyzer slots: 55,220 completed,
16,456 unavailable, and zero error or missing rows. Ghidra and Triton completed
all rows; Binary Ninja and IDA were unavailable on the workers, and Unicorn
could not handle 528 rows. The VM smoke reports cover 10 seeds and 15 fixtures;
they record semantic parity and divergent tamper probes, while progressive
bytecode growth was supported on only 6 fixtures. Similarity remained high for
some handlers (388/2,295 comparisons exceeded 0.8; maximum 0.927). The reports
mark human adversarial review as pending; the aggregate job later completed
successfully (job 133987828440). This bounded evidence does
not establish generalized resistance. See the hash-bound
campaign summary
and shard reports;
analyzer and resistance gates remain open.
The current-source campaign,
44142495055,
completed all 32 shards on b656b0dc, covering 362 ELF x86-64 samples and 22
passes. It observed all 7,964 pass rows and 71,676 analyzer rows; 55,220
(77.04%) completed, with zero errors or missing rows. Six analyzer slots had
full coverage; Unicorn completed 7,436 rows and could not execute 528; Binary
Ninja and IDA Pro were unavailable for all rows. The automated VM smoke covered
15 fixtures over ten seeds; semantic parity, diversity, and tamper-probe checks
passed, while progressive bytecode growth was supported on six fixtures and
388/2,295 cross-seed comparisons exceeded 0.8 similarity. This bounded evidence
does not establish generalized resistance. The independent automated review
passed 28 checks, but Marc Rivero Lopez's human approval remains bound to
a111f923 and does not cover later production changes. See the
hash-bound summary,
complete reports,
review record,
and regression test.
The all-analyzer and published-resistance gates remain open.
On source 6d8d450a, a local one-fixture CodeVirtualization measurement
completed IDA Pro decompilation for both the original and protected ELF, and
Unicorn returned the same exit code (45). Six of nine analyzer slots completed;
Binary Ninja was unavailable for lack of a license, while Ghidra and Triton were
unavailable in this local environment. This is one sample, not analyzer-matrix
coverage. See the hash-bound report,
summary,
and regression tests.
An expanded local shard on source 9112e77f measured all 22 configured passes
across four ELF x86-64 repository fixtures. It recorded 88/88 pass rows and
528/792 completed analyzer rows with no pass/analyzer errors or missing rows;
Binary Ninja, Ghidra, and Triton were unavailable. angr emitted unsupported VEX
and CCall diagnostics, so its completed rows do not establish full decompiler
coverage. The generated Linux corpus was not run on this macOS host. This is
bounded analyzer evidence, not generalized resistance; see the hash-bound
summary
and compressed report.
On source 7cb29ce1, the next local shard covered four more fixtures and all 22
passes (88 pass rows, 528/792 analyzer rows completed, zero errors or missing
rows; eight passes applied). The same three tools remained unavailable locally.
See the hash-bound summary
and compressed report.
This is partial analyzer evidence; both analyzer completeness and resistance
remain open.
The complete analyzer workflow on source 1cf52005 covered 362 fixtures (200
generated), 22 passes, 7,964 pass rows, and 71,676 analyzer slots: 55,220 rows
completed with no errors or missing rows. Ghidra and Triton completed every
row; Binary Ninja and IDA Pro were unavailable, and Unicorn reported 528
unsupported rows. Its separate 15-fixture, ten-seed VM smoke still requires
human adversarial review. See the hash-bound summary
and shard/VM archive.
Analyzer completeness and general resistance remain open.
When Unicorn reports an invalid instruction, its unavailable report retains the
failing address and a four-byte opcode prefix when readable. Other emulation
faults remain errors instead of being mislabeled as unsupported capabilities.
The test emulator now handles aligned 256-bit VMOVDQA memory forms and
RIP-relative VMOVAPS loads, register VPBROADCASTB, memory-form VMOVDQU loads and
stores, lane-local VPSHUFLW and VPSHUFHW, VPSLLVD, 256-bit low/high unpack
operations, and register VEXTRACTI128 and VINSERTI128 used by the observed
fixtures. ELF execution now starts with a Linux-style argc/argv/envp and
minimal auxv, including AT_RANDOM, so static libc startup sees the process
state it expects; the syscall boundary captures both exit and exit_group.
Its VEX2 memory decoder also ignores extension bits that do
not exist in that prefix format. Focused tests cover these instruction
semantics, oversized shifts, memory addressing, initial stack data, and lane
boundaries. Integration tests also replay every executable ELF x86-64 fixture
in fixtures/dataset through the local emulator and require an exit status.
This expands only the local test emulator; an analyzer campaign is still needed
before revising historical unavailable-row counts or claiming broad corpus
coverage.
The local replay report
on source 3750a8dd measured one ELF x86-64 VEX.256 fixture through all 22
passes: IDA Pro and Unicorn each completed all 22 pair rows with zero errors or
unavailable results, and Unicorn returned exit code 42 for every original and
protected binary. Twenty passes were no-ops, one was omitted, and one applied;
this single-fixture result does not close the corpus-wide analyzer gate.
The current automated report records human_signoff: not-attested and
release_decision: block-vm-milestone, because the production tree changed
after the reviewed commit a111f923df43a66826b71ab70db8a484532fbf3b. Human
independent review approved the reviewed commit only. The project owner
confirms Marc Rivero Lopez's independence and specialist experience in binary
rewriting and virtualization. He reviewed memory, direct/indirect calls,
returns, flags, FP/SIMD, varargs/ABI,
unwinding, TLS/signals, SSA, and liveness paths; unsupported instructions must
fail closed instead of producing partial protected functions. Diagnostics
include instruction address, mnemonic, type, size, bounded opcode preview,
capability, and reason. The review covered VM ISA/opcode diversification,
dispatcher/handler alternatives, superinstructions, anti-tamper, and progressive
bytecode protection, fuzz properties, failure handling, and bounded report
data. This approval applies to that commit only; stable release validation now
requires a review of the final production tree, with a separate signoff-only
commit.
Current VM resistance artifacts cover 10 seeds with 255 handlers per seed,
0 exact normalized cross-seed handler matches, 0 exact normalized within-seed
handler matches, all four combinations of threaded/central dispatch and
jmp/stack-return transfer, normalized nearest similarity mean 0.653
(328/2,295 comparisons at or above 0.8; maximum 0.933), and 12 handler stride
values documenting target handler stride diversity. These finite seed-diversity
measurements describe generated output variation; they do not measure
generalized attack cost or establish resistance to professional reverse
engineering.
The reports are
docs/protection-handler-clustering.json
and docs/protection-bytecode-grammar.json.
The independent analysis report explicitly
limits its evidence to one fixture and one pass and states that it does not
establish general resistance to professional reverse engineering. The report
does not replace the required three-analyzer release campaign. Published
resistance results remain an open 1.0 criterion.
On source 5b7b566a, a 100-seed follow-up measured generated handler templates:
all 100 opcode assignments were unique, with zero within-seed duplicate
handlers, but 38 exact normalized handler matches appeared across seeds (19
pairs). The hash-bound summary
and raw report
record this template-only measurement; they do not measure execution or
analyst attack cost, so the resistance gate remains open.
After adding seeded byte-load and SIMD move forms, the same 100-seed range on
source c6a124a2 measured 32 normalized cross-seed handler matches in 16
pairs, down from 38; within-seed matches remained zero. The
hash-bound summary
and raw report
record the result. This is a measured reduction, not zero-collision evidence or
a claim of generalized resistance; the gate remains open.
An audit found that five older local VM resistance reports counted 720 missing
native tamper observations as divergent. Those historical tamper claims are
retracted; their hash-bound files remain unchanged, and the resistance gate
stays open. New measurements distinguish completed, partial, and
unavailable tamper evidence and represent unknown divergence as null. See
the correction ledger
and its regression test.
# Mutate with stable passes
r2morph mutate input.elf -o output.elf -m nop -m substitute -m register
# SARIF report for CI/CD
r2morph mutate input.elf -o output.elf --format sarif --report mutations.sarif
# Reproducible run
r2morph mutate input.elf -o output.elf --seed 1337
# Runtime validation
r2morph validate original.elf mutated.elf --corpus fixtures/dataset/runtime_corpus.json
# CI gate: fail if severity below threshold
r2morph mutate input.elf -o output.elf --report report.json --min-severity bounded-only
# Display and filter reports
r2morph report report.json --only-pass nop --summary-only
r2morph report report.json --format sarif -o report.sarifWhen file-output comparison is enabled, each runtime case must list the output
paths to monitor in monitored_files (or in the validator configuration). The
validation fails if file comparison is requested without any monitored paths,
so an empty file set cannot be mistaken for verified filesystem parity.
Monitored paths must resolve inside the per-run directory; absolute paths,
parent traversal, and symlinks that escape it are rejected.
Timeouts and other unsuccessful executions also fail validation even when both
the original and mutated binary produce the same failure result.
When exit-code comparison is enabled, the original run must also match the
test case's expected_exitcode; matching the same unexpected code is a failure.
| Command | Description |
|---|---|
r2morph mutate |
Apply mutations, validate, export binary + report |
r2morph validate |
Compare original vs mutated binary behavior |
r2morph report |
Display, filter, or convert a saved report |
r2morph analyze |
Analyze binary structure and functions |
r2morph functions |
List functions in a binary |
r2morph version |
Show version |
| Filter | Purpose |
|---|---|
--format <json|sarif> |
Output format (JSON default, SARIF 2.1.0) |
--only-pass <name> |
Restrict to one mutation pass |
--only-mismatches |
Show only symbolic observable mismatches |
--only-failed-gates |
Show only failed severity gates |
--only-degraded |
Show only degraded validation modes |
--summary-only |
Print textual triage summary only |
--output <file> |
Export filtered JSON |
--require-results |
Exit 1 when filtered view is empty |
--min-severity <sev> |
Require minimum severity in view |
r2morph writes human-readable development logs to stderr and selects
newline-delimited JSON automatically when
R2MORPH_ENVIRONMENT=production. Levels, file rotation, correlation,
redaction, and event conventions are documented in
Logging and observability.
R2MORPH_ENVIRONMENT=production R2MORPH_LOG_FILE=./r2morph.jsonl \
r2morph mutate sample.bin -o sample.mutatedReports in SARIF format include:
- MITRE ATT&CK taxonomy - T1027 (Obfuscated Files), T1027.001 (Binary Padding), T1027.002 (Software Packing)
- Partial fingerprints (SHA256) for deduplication across CI runs
- Code flows showing mutation chains per function
- Related locations linking mutations to validation failures
- Disassembly snippets in the rendered field alongside hex bytes
- Fix suggestions with byte-level replacements
Compatible with GitHub Code Scanning, Azure DevOps, SonarQube, and any SARIF 2.1.0 consumer.
from r2morph import MorphEngine
from r2morph.mutations import NopInsertionPass, InstructionSubstitutionPass, RegisterSubstitutionPass
with MorphEngine() as engine:
engine.load_binary("input.elf").analyze()
engine.add_mutation(NopInsertionPass())
engine.add_mutation(InstructionSubstitutionPass())
engine.add_mutation(RegisterSubstitutionPass())
result = engine.run(validation_mode="structural", report_path="report.json")
engine.save("output.elf")
print(f"Applied {result['total_mutations']} mutations")| Module | Capability |
|---|---|
| Obfuscation Detector | Commercial packer signatures (VMProtect, Themida, UPX, etc.), confidence scoring |
| Entropy Analyzer | Section entropy analysis for packing/encryption detection |
| Pattern Matcher | Anti-debug, anti-VM, string encryption, import hiding detection |
| Similarity Hasher | Fuzzy hashing for binary comparison (ssdeep-style) |
| Control Flow Detector | CFF, opaque predicates, VM dispatch, MBA expression detection |
| Packer Signatures | 50+ categorized signature database |
| Module | Status | Notes |
|---|---|---|
| VM Handler Analyzer | Working | Pattern-based handler classification |
| MBA Solver | Working | Z3 SMT solver, max 8 variables, timeout-bounded |
| CFO Simplifier | Framework | Pattern library defined, application incomplete |
| Binary Rewriter | Framework | Patch/relocation infrastructure |
Frida integration for dynamic analysis: process spawning, script injection, API call logging, anti-analysis detection. Requires frida package.
JSON reports follow a documented schema at r2morph/reporting/report_schema.json. Each report includes:
- metadata: tool version, timestamp, duration, platform
- input/output: binary path, architecture, format, function count
- passes: per-pass mutation counts, timing, diff summaries
- mutations: flat list with address, bytes, disassembly, function, section
- validation: mode, results, symbolic coverage
- gate_evaluation: severity gate outcomes for CI
- summary: aggregated statistics
- Python 3.10+
- radare2
- Optional:
lief(PE/Mach-O/section creation),angr(symbolic validation),frida(instrumentation),z3-solver(MBA simplification)
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
If you find r2morph useful, consider supporting its development:
This project is licensed under the MIT License - see the LICENSE file for details.
Attribution Required:
- Author: Marc Rivero | @seifreed
- Repository: github.com/seifreed/r2morph
Made with dedication for the reverse engineering community