Commit Graph
958 Commits
Author SHA1 Message Date
morluto f7355b1b61 perf(kuna): avoid per-line Buffer.concat allocations in KunaProjectFiles.scanLines (#13270)
* perf(kuna): avoid per-line Buffer.concat allocations in KunaProjectFiles.scanLines

* test(kuna): cover single-chunk UTF-8 and length refusals in scanLines
2026-11-21 22:31:44 -05:00
Afloat 71a7e0d9ff perf(desktop): bound retained text lines while counting full files (#10207) 2026-11-21 21:33:01 +01:00
Yunzhou Li 44e8e72db1 test(cutter): use account home for default bridge assertions (#12728) 2026-11-21 20:35:50 +01:00
ShuaixinHuangandShuaixinHuang 6a0a5e7379 fix(desktop): report JSON view depth after reviver stack exhaustion (#12759)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-21 20:16:54 +01:00
Brahma Reddy f03cce9c01 fix(native): label XML plists that file calls data as xml (#12910)
`file -b` reports `data` for an XML plist containing a control character
or NUL byte, which CoreFoundation still reads. plistSourceFormat only
probed the source for markup when `file` reported text, so these sources
were labelled `unknown` and skipped REA's XML reader. When that reader
would have refused them, the result also lacked the limitation that says
the value came from plutil's conversion. Two plists shipped with macOS
27.2.1 are affected.

Probe the source prefix for any description that does not name binary,
XML or JSON. Such XML now takes the same route as XML that `file`
recognizes: REA's reader decodes it directly, or #12251's plutil fallback
records REA's refusal reason. OpenStep and other non-markup sources stay
`unknown`.
2026-11-21 20:00:31 +01:00
morluto 8ffbebd3c8 test(ghidra): consolidate wire admission and shutdown checks (#13044) 2026-11-21 08:19:56 +00:00
morluto 67f8094efa test(debugger): consolidate runtime setting recovery coverage (#13042) 2026-11-21 08:12:59 +00:00
morluto 3059921cc6 test(rizin): synchronize partial output with command deadlines (#13040) 2026-11-21 08:02:27 +00:00
morluto 5fb7126a65 test(providers): consolidate bridge request lifecycle checks (#13033) 2026-11-21 07:47:01 +00:00
morluto ba90341421 test(rizin): consolidate detach inventory and protocol checks (#13031) 2026-11-21 07:46:38 +00:00
morluto cd6d713e94 test(rizin): verify ownership when close readback is unavailable (#13029) 2026-11-21 07:24:22 +00:00
morluto fb873feaeb test(debugger): consolidate startup descriptor ownership checks (#13028) 2026-11-21 02:11:15 -05:00
morluto d84652e55b fix(rizin): report the required inferior terminal field (#13019) 2026-11-21 07:10:53 +00:00
morluto 7966097e87 test(gdb): consolidate queue capacity and cancellation checks (#13017)
* test(gdb): consolidate queue capacity and cancellation checks

* test(gdb): require queued followers to await preceding replies
2026-11-21 07:06:58 +00:00
morluto 8ab232b4d8 test(rizin): consolidate stdin failure and cleanup checks (#13018) 2026-11-21 07:04:24 +00:00
morluto 24d3dab462 test(rizin): consolidate frame bounds and subprocess fixtures (#13016) 2026-11-21 06:55:42 +00:00
morluto e3b8188363 test(gdb): consolidate session lifecycle and fixture checks (#13015)
* test(gdb): consolidate exit settlement and evidence checks

* test(gdb): consolidate session settings and MI fixtures

* test(gdb): bound and join shutdown settlement fixture
2026-11-21 06:43:57 +00:00
morluto d7981cce4c test(gdb): consolidate startup preflight and deadline checks (#13013) 2026-11-21 06:26:59 +00:00
morluto c235b6160e test(gdb): consolidate inferior terminal admission checks (#13011) 2026-11-21 06:15:16 +00:00
morluto 9bb06b29ca test(ida): consolidate advertised observation and effect checks (#13008)
* test(ida): consolidate advertised observation and effect checks

* test(ida): preserve empty-name and instruction-body contracts
2026-11-21 00:59:22 -05:00
morluto d93a199629 test(gdb): consolidate MI inventory and field projection checks (#13009) 2026-11-21 05:55:44 +00:00
morluto 6cf4328656 test(ida): consolidate verifier admission and oracle checks (#13003) 2026-11-21 05:36:30 +00:00
morluto 40c21638e5 test(ida): consolidate containment and address context checks (#12996) 2026-11-21 05:05:22 +00:00
morluto 10789bc4c1 test(ida): consolidate relationship routing and coverage checks (#12995) 2026-11-21 04:58:01 +00:00
6822ebe1f3 feat(ida): support the official Hex-Rays IDA MCP headlessly (#4813)
* feat(ida): support the official Hex-Rays IDA MCP headlessly

Hex-Rays IDA MCP serves database reads only through execute_python, so
REA rejected it as an upstream. A `hexrays` headless stdio registration
now leases a private idalib worker through open_database, answers the
existing database-supervisor reads with a fixed, packaged, read-only
query module, and releases the lease with close_database, verified by
list_databases.

Observations record execute_python, the query and the module digest.
Tool errors are typed so a completed rejection is distinguished from an
unknown outcome; an unconfirmed release is retried and a late lease on
the private input is adopted.

Validated IDA source and bridge tests, static checks, docs, and npm run
verify:ida on Linux x64 against x86-64 and AArch64 ELF fixtures.

* feat(ida): name the Hex-Rays registration for its catalog

A registration without `protocol` that reaches the official Hex-Rays
server failed with only the missing database-supervisor tools. Startup
profile failures now report the advertised catalog, and when it is the
Hex-Rays one the message and recovery name the `hexrays` registration.

Refs #1416

* docs(ida): state Hex-Rays prerequisites and upstream session traces

Upstream needs IDA 9.4 or later with idalib, Python 3.11 or later, uv
and Git. The profile does not analyze databases open in the IDA GUI, and
the server keeps its own session traces outside REA's workspace.

Refs #1416

* fix(ida): skip inline data when scanning Hex-Rays calls

The call scan decoded every head that FuncItems yields. Inline data such
as a jump table can decode as a call and refer to a function or import,
which reported false callees and call-graph edges. Skip non-code heads
before decoding, as disassembly already does.

Refs #1416

* fix(ida): retain Hex-Rays health reads in evidence

The identity and readiness reads around each operation kept only their
parsed result, dropping the bridge digest and any engine output. Keep
them whole as health_observations beside the parsed metadata, in both
successful and partial-failure Evidence.

Refs #1416

* test(ida): list the Hex-Rays bridge in package fixtures

The packed-bridge verifier has required bridge/ida/hexrays_queries.py
since the Hex-Rays profile landed, but three package tests still built
their member lists without it. The verifier stopped at that file, so 21
cases failed or asserted on the wrong omission.

Refs #1416

* feat(ida): open existing IDA databases through the Hex-Rays profile

A headless open re-ran auto-analysis from the input binary, discarding
the names, types and comments of an existing database and taking far
longer on large targets. Target admission now identifies IDA databases
by their IDA1/IDA2 signature, and the hexrays profile opens a private
copy of one; Hopper and the other IDA profiles reject them.

The copy is required, not incidental: idalib repacks a database when
its last lease is released, even without a save. A database reports
the input it was created from, so the session is bound to the opened
copy's idb_path, and health now reports the input SHA-256 it records.

Validated with resolver, provider and session tests, check:fast,
docs:check and test:changed, plus a real Hex-Rays MCP run against a
1.4 GB SC2 .i64 whose original file was left byte-identical.

Refs #1416

* fix(ida): verify the private workspace of a database target by idb_path

* test(ida): fix Hex-Rays health stand-ins and Windows path and runtime teardown

* refactor(ida): resolve the registration once for target support

* docs(ida): record the real Hex-Rays run on an existing .i64

* docs(ida): make the Hex-Rays registration example install-neutral

* chore: keep merge-hook formatting outside the IDA change

* fix(ida): retain live Hex-Rays databases this server does not lease

A list_databases row with instance_id null is a live owner, not a stopped
database. Mapping it to the supervisor's released-worker shape made cleanup
delete files another client still held. Unleased rows stay active, so the
private path must leave inventory before the workspace is removed.

Accept idat inventory rows, hash the query bridge with sha256Hex, and
complete databaseEngine on Hopper fixtures added on main.

* fix(ida): report uncapped Hex-Rays call graphs

* docs(ida): link to the Hex-Rays bridge on GitHub

* fix(ida): verify Hex-Rays worker identity and cleanup

* feat(ida): support Hex-Rays idat headless workers

Refs #12921

* fix(ida): retain workspace after ambiguous Hex-Rays startup

* fix(ida): preserve typed Hex-Rays call edges and deadlines

* test(ida): verify Hex-Rays cleanup with a peer lease

* test(ci): use project deadlines for the Cutter verifier

* test(ida): keep verifier cleanup fixtures scoped to mocked modules

* fix(ida): retain the worker backend in partial evidence

---------

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-20 17:58:27 -05:00
morluto 1bc85bc215 test(cutter): consolidate authenticated response frame coverage (#12931) 2026-11-20 21:48:16 +00:00
morluto a516a8533e test(ghidra): consolidate checkpoint publication and restore coverage (#12930)
* test(ghidra): consolidate checkpoint publication and restore coverage

* test(ghidra): preserve multi-buffer checkpoint hashing
2026-11-20 16:44:15 -05:00
morluto f505759dd6 test(ida): consolidate callee batch and evidence coverage (#12929) 2026-11-20 21:38:34 +00:00
morluto ed42b4f179 test(ida): consolidate callee coverage across graph and trace (#12927) 2026-11-20 21:34:26 +00:00
morluto 5f9e931365 test(ghidra): consolidate literal search boundary coverage (#12925)
* test(ghidra): consolidate literal search boundary coverage

* test(ghidra): prove primary-name Unicode folding independently
2026-11-20 21:26:34 +00:00
morluto d1242fa30b test(ghidra): consolidate saved project selection and history (#12920) 2026-11-20 15:58:14 -05:00
morluto a9f8c70dbf test(ghidra): consolidate disabled analyzer admission coverage (#12917) 2026-11-20 20:18:32 +00:00
morluto d3c29cddb6 test(hopper): consolidate launcher failure and provenance checks (#12877) 2026-11-20 16:17:12 +00:00
morluto b38438bab4 test(sqlite): consolidate retained views and journal coverage (#12876) 2026-11-20 16:02:40 +00:00
morluto 52cf28b28e test(managed): consolidate identity and finalization checks (#12845)
test(managed): consolidate snapshot cancellation coverage
2026-11-20 14:12:22 +00:00
morluto baf80358cb test(jeb): consolidate HTTP deadline and cancellation checks (#12843)
test(jeb): consolidate HTTP deadline and cancellation coverage
2026-11-20 14:11:28 +00:00
morluto 43f884bbfb test(cutter): keep session discovery proof at the public boundary (#12824)
test(cutter): remove injected discovery replay
2026-11-20 13:25:20 +00:00
morluto a71ae07ffb test(artifacts): consolidate extraction publication coverage (#12825) 2026-11-20 08:22:38 -05:00
morluto c94f275667 test(desktop): verify cancellation before releasing the guest (#12812)
* test(desktop): verify controller cancellation against held guest execution

* test(desktop): settle the readiness probe with one return type
2026-11-20 13:01:11 +00:00
morluto 86acb2a964 test(jeb): independently verify structured and text refusal envelopes (#12817)
test(jeb): distinguish structured and text refusal evidence
2026-11-20 12:59:41 +00:00
morluto 766fb9e78e test(kuna): exercise contradictory rows and coordinate shared cancellation (#12802)
* test(kuna): tighten streaming string scan coverage

* test(kuna): join shared scan requests on gate failure
2026-11-20 12:55:52 +00:00
94c3077355 test(providers): own temporary directories through createTestTempDirectory (#12722)
* test(providers): own temporary directories through createTestTempDirectory

Route provider-boundary fixtures through createTestTempDirectory so each
case removes its canonical directory after the test. Process shutdown stays
in afterEach, which still runs before that removal. Skip the two Windows
Cutter checks with it.skipIf, and compare unknown plugin recovery with
cutterBridgeSourceRecovery.

* test(providers): keep gated fixture cleanup with its owner

createTestTempDirectory always deletes after the test, including when
GDB or inferior cleanup fails and when the Rizin MCP harness already
owns the directory. Restore mkdtemp removal behind confirmed process
cleanup, and leave decoder inputs owned by the harness.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* test(cutter): keep an independent unknown-source recovery check

Comparing discovery recovery with cutterBridgeSourceRecovery follows the
formatter, so dropping the unknown-source explanation still passes. Assert
that explanation directly, beside bridge_source and the plugin path.

Co-authored-by: morluto <morluto@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-20 04:06:31 +00:00
morlutoandCursor Agent bb8e6833eb test: assert structured recovery facts instead of recovery wording in tests/ (#12723)
Drop recovery-sentence locks when a structured field or the owning
formatter already carries the fact, and own this batch's per-test
temporary directories through createTestTempDirectory. Keep setting
names, caller data, and prose that has no structured carrier.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-19 23:03:53 -05:00
morluto 847c2d5253 test(desktop): check cleanup of both concurrent reader leases 2026-11-19 22:15:56 -05:00
morluto 9d3bf82c6a test(desktop): require a verdict for every regenerated check 2026-11-19 22:12:53 -05:00
morluto f3734d90e7 test(ci): repair stale coverage expectations on main 2026-11-19 22:09:03 -05:00
8c7977f174 fix(native)!: require separate inspection for plists outside bundles (#9754)
* fix(native): record inspected plist bytes and refuse files outside the bundle

An open app session keeps the executable as the Evidence subject for
inspect_plist, same as the other bundle-resource tools, but the result had
no digest of the plist bytes and any absolute path was sealed under that
subject. Record source_sha256 for the bytes read, and refuse a selection
that resolves outside the opened bundle.

Fixes #9479

* fix(native)!: scope plist selection to the opened bundle

BREAKING CHANGE: To inspect a plist outside an opened app bundle or resource root, open the plist as a separate target.

* fix(native): report plist snapshot filesystem effects

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-19 21:35:17 -05:00
RRFZ d3d0355a9a refactor(kuna): share cleanup aggregation for commands and sessions (#12528) 2026-11-19 17:28:13 -05:00
morluto 654c17b904 test(hopper): synchronize cleanup retry on lease acquisition (#12481)
test(hopper): gate cross-client lease cleanup on acquisition
2026-11-19 19:23:43 +00:00
morluto 1b0a118192 fix(hopper): verify Mach-O profile signature before loader selection (#12485)
fix(hopper): verify the admitted Mach-O profile signature
2026-11-19 19:23:29 +00:00