Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5df5571
feat(ghidra): admit verified recordless MIPS I o32 executables
Bobtoshi Oct 13, 2026
d8630ea
test(ghidra): verify MIPS branch decoding and retain diagnostics
Bobtoshi Oct 13, 2026
5ec1a57
fix(mips)!: reject uninspected GNU ABI attributes
Bobtoshi Oct 13, 2026
102f813
test(mips): isolate native boundary controls from ambient settings
Bobtoshi Oct 13, 2026
05e2366
test(mips): verify cleanup and pin readelf locale
Bobtoshi Oct 13, 2026
0a8f70f
Merge latest upstream and verify MIPS declaration coverage
Bobtoshi Oct 14, 2026
e389016
chore: preserve untouched upstream tests after merge
Bobtoshi Oct 14, 2026
2d2f2f8
test(ghidra): refresh MIPS controls and verify orphan cleanup
Bobtoshi Nov 6, 2026
11edd85
fix(verification): sweep the captured Ghidra provider run identities
Bobtoshi Nov 6, 2026
3569da2
chore: merge upstream into MIPS verifier branch
Bobtoshi Nov 8, 2026
7ab92a4
test(ghidra): verify imported MIPS languages and merge upstream
Bobtoshi Nov 10, 2026
6886262
test(ghidra): remove an empty processor context suite
Bobtoshi Nov 10, 2026
a830a4a
fix(ghidra): track verifier runs before lazy analysis
Bobtoshi Nov 11, 2026
624b879
fix(ghidra): verify MIPS evidence and preserve cleanup failures
Bobtoshi Nov 11, 2026
779a635
test(ghidra): verify committed MIPS dossier attribution
Bobtoshi Nov 13, 2026
19a9f98
fix(ghidra): bound MIPS readelf verification
Bobtoshi Nov 13, 2026
0a5b082
test(ghidra): bind MIPS dossiers to their ELF fixtures
Bobtoshi Nov 13, 2026
2d1ee37
test(ghidra): retain MIPS readelf verification evidence
Bobtoshi Nov 13, 2026
7494b2b
test(ghidra): retain MIPS source paths and refusal diagnostics
Bobtoshi Nov 13, 2026
99b9126
fix(ghidra): own MIPS verifier CLI refusal commands
Bobtoshi Nov 13, 2026
7d92575
fix(ghidra): recover verified MIPS verifier provider survivors
Bobtoshi Nov 13, 2026
dbd04ab
test(ghidra): verify recordless MIPS caveats and cold cleanup
Bobtoshi Nov 13, 2026
ffcd4d6
fix(ghidra): own the MIPS verifier MCP transport
Bobtoshi Nov 13, 2026
3596755
fix(ghidra): keep MIPS MCP ownership separate from CLI commands
Bobtoshi Nov 13, 2026
1051072
Qualify MIPS32 boundaries and retain failed verifier ownership
Bobtoshi Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(ghidra): retain MIPS source paths and refusal diagnostics
Require the dossier's canonical path to match the selected ELF and retain the checked public CLI and MCP failure output for both refusal controls.
  • Loading branch information
Bobtoshi committed Nov 13, 2026
commit 7494b2b1d1eecb7d56fc7147c0c2d29358857ab0
8 changes: 5 additions & 3 deletions docs/providers/ghidra-mips.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ soft-float attribute fixture. The receipt records the selected readelf command,
observed version, and raw attribute output for each byte order. Declared-o32
MIPS I and unsupported GNU soft-float inputs are refused, while recordless MIPS I
and MIPS32 controls produce real Ghidra dossiers and exact loaded bytes. The
receipt preserves the checked CLI and MCP diagnostics for both refusals. The
verifier checks the imported `MIPS:LE:32:default` and `MIPS:BE:32:default`
language IDs through `inspect_native_load_image` and records the observed ID
for each control.
It checks each public dossier against the exact MIPS ELF fixture digest and
entry address, verifies that its Evidence commits the active Ghidra profile,
and checks the Ghidra version, support lane, and inferred o32 ABI basis.
It checks each public dossier against the exact MIPS ELF fixture digest,
canonical source path, and entry address. It verifies that its Evidence commits
the active Ghidra profile and checks the Ghidra version, support lane, and
inferred o32 ABI basis.
The MIPS I Evidence must also report the generic decoder's instruction-subset
limitation. Load-delay semantics remain unverified. Supply existing Ghidra/Java
and GNU readelf (`REA_MIPS_READELF`). Source hashes are checked after
Expand Down
36 changes: 26 additions & 10 deletions scripts/verify-real-ghidra-mips-boundaries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import assert from "node:assert/strict";
import { execFile } from "node:child_process";
import { createHash } from "node:crypto";
import { mkdtemp, readFile, writeFile, rm } from "node:fs/promises";
import { mkdtemp, readFile, realpath, writeFile, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { fileURLToPath } from "node:url";
Expand Down Expand Up @@ -33,6 +33,8 @@ import {
committedProvidersEqual,
} from "../dist/domain/analysisProfile.js";
import { functionDossierSchema } from "../dist/domain/native/functionDossier.js";
import { cliOperationFailurePayload } from "../dist/cliLogging.js";
import { analysisErrorProjectionSchema } from "../dist/contracts/errorSchemas.js";
import {
ANALYSIS_EVIDENCE_PREDICATE,
evidenceSubjectIdentity,
Expand Down Expand Up @@ -169,17 +171,19 @@ async function runControls(cleanup, readelf) {
};
await withVerifierCleanup(async () => {
await mcp.connect(transport);
for (const [path, pattern] of [
const refusals = {};
for (const [control, path, pattern] of [
[
"declared_o32_mips1",
original.path,
/requires EF_MIPS_ARCH_32R2 for headers that declare an ABI/u,
],
[gnuPath, /GNU floating-point ABI attribute/u],
["gnu_fp_attributes", gnuPath, /GNU floating-point ABI attribute/u],
]) {
const error = requireMcpToolError(
const mcpError = requireMcpToolError(
await invoke("open_binary", { path, provider_id: "ghidra" }),
);
assert.match(JSON.stringify(error), pattern);
assert.match(JSON.stringify(mcpError), pattern);
Comment thread
Bobtoshi marked this conversation as resolved.
Resolved
let stdout;
try {
await execute(
Comment thread
Bobtoshi marked this conversation as resolved.
Resolved
Expand All @@ -203,13 +207,18 @@ async function runControls(cleanup, readelf) {
}
const reply = JSON.parse(stdout);
assert.equal(reply.ok, false);
assert.match(JSON.stringify(reply), pattern);
const cliError = analysisErrorProjectionSchema.parse(
cliOperationFailurePayload(reply),
);
assert.match(JSON.stringify(cliError), pattern);
refusals[control] = { selected_path: path, cli: reply, mcp: mcpError };
}
const providerRuns = [];
for (const [path, expected] of [
[legacyPath, legacy],
[recordlessMips1Path, recordlessMips1],
]) {
const selectedSourcePath = await realpath(path);
await call("open_binary", { path, provider_id: "ghidra" });
// The session ID is authoritative before analyze_function can launch
// Ghidra. Its token stays in the sweep even if that first call fails.
Expand Down Expand Up @@ -257,6 +266,11 @@ async function runControls(cleanup, readelf) {
},
"MIPS dossier Evidence subject does not identify the exact ELF fixture",
);
assert.equal(
evidence.subject.local_path,
selectedSourcePath,
"MIPS dossier Evidence path does not match the selected ELF fixture",
);
const dossier = functionDossierSchema.parse(evidence.normalized_result);
assert.equal(BigInt(dossier.procedure.address), BigInt(original.entry));
assert.ok(dossier.pseudocode.trim().length > 0);
Expand Down Expand Up @@ -327,7 +341,11 @@ async function runControls(cleanup, readelf) {
run_id: providerRunId,
language_id: image.observations.language_id,
dossier_evidence_id: evidence.evidence_id,
dossier_subject: subject,
selected_path: path,
dossier_subject: {
...subject,
local_path: evidence.subject.local_path,
},
dossier_entry: dossier.procedure.address,
loaded_bytes: loaded,
dossier_provider: evidence.provider,
Expand All @@ -350,11 +368,9 @@ async function runControls(cleanup, readelf) {
reports.push({
byte_order: byteOrder,
provider_runs: providerRuns,
declared_o32_mips1: "refused by CLI and MCP",
refusals,
recordless_mips1:
"real Ghidra dossier with decoder limitation, pinned 32-bit import language and exact loaded bytes; load-delay semantics unverified",
gnu_fp_attributes:
"independently decoded soft-float declaration; refused by CLI and MCP",
readelf: { command, version, raw: attributes.stdout },
existing_mips32_control:
"real Ghidra dossier, pinned 32-bit import language and exact loaded bytes",
Expand Down