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): bind MIPS dossiers to their ELF fixtures
Verify the exact authenticated subject and requested function before reporting MIPS dossier evidence.
  • Loading branch information
Bobtoshi committed Nov 13, 2026
commit 0a5b0822f152231f531b3bbbd2224a38247edeab
5 changes: 3 additions & 2 deletions docs/providers/ghidra-mips.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ inputs are refused, while recordless MIPS I and MIPS32 controls produce real
Ghidra dossiers and exact loaded bytes. 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 verifies the concrete Ghidra version, committed support lane, and inferred
o32 ABI basis in each public dossier's Evidence. The MIPS I Evidence must also
It checks each public dossier against the exact MIPS ELF fixture digest and
entry address, and verifies the Ghidra version, committed support lane, and
inferred o32 ABI basis in its Evidence. 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 inspection, and no target
Expand Down
29 changes: 25 additions & 4 deletions scripts/verify-real-ghidra-mips-boundaries.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ import {
} from "./lib/verifier-run.mjs";
import { committedProvidersEqual } from "../dist/domain/analysisProfile.js";
import { functionDossierSchema } from "../dist/domain/native/functionDossier.js";
import { parseEvidence } from "../dist/domain/evidence.js";
import {
ANALYSIS_EVIDENCE_PREDICATE,
evidenceSubjectIdentity,
parseEvidence,
} from "../dist/domain/evidence.js";

// Static source-owned controls. Never execute an ELF or acquire a toolchain.
if (!["darwin", "linux"].includes(process.platform))
Expand Down Expand Up @@ -199,8 +203,6 @@ async function runControls(cleanup) {
"analyze_function",
),
);
const dossier = functionDossierSchema.parse(evidence.normalized_result);
assert.ok(dossier.pseudocode.length > 0);
const { run: activeRun, provider: activeProvider } =
await currentGhidraSession();
assert.equal(activeRun.run_id, providerRunId);
Expand All @@ -220,6 +222,23 @@ async function runControls(cleanup) {
// Capture native token-verified identities while the provider is live;
// A public lineage snapshot is optional; native ownership is mandatory.
await cleanup.retainProviderRun(providerRunId, providerScope);
assert.equal(evidence.operation, "analyze_function");
assert.equal(evidence.predicate_type, ANALYSIS_EVIDENCE_PREDICATE);
assert.equal(evidence.parameters.procedure, original.entry);
const sourceSha256 = digest(expected);
const subject = evidenceSubjectIdentity(evidence.subject);
Comment thread
Bobtoshi marked this conversation as resolved.
Resolved
assert.deepEqual(
subject,
{
digest: { sha256: sourceSha256 },
format: "elf",
architecture: "mips",
},
"MIPS dossier Evidence subject does not identify the exact 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);
const isMips1 = path === recordlessMips1Path;
assert.ok(
evidence.provider.id === "ghidra" &&
Expand Down Expand Up @@ -267,12 +286,14 @@ async function runControls(cleanup) {
"MIPS32 dossier Evidence reports a MIPS-I decoder limitation",
);
const image = await call("inspect_native_load_image");
assertMipsLoadedImage(image.observations, byteOrder, digest(expected));
assertMipsLoadedImage(image.observations, byteOrder, sourceSha256);
providerRuns.push({
control: isMips1 ? "recordless_mips1" : "recordless_mips32",
run_id: providerRunId,
language_id: image.observations.language_id,
dossier_evidence_id: evidence.evidence_id,
dossier_subject: subject,
dossier_entry: dossier.procedure.address,
dossier_provider: evidence.provider,
dossier_profile: {
digest: profile.digest,
Expand Down