feat(javascript): record Electron integrity mismatches
This commit is contained in:
@@ -79,7 +79,7 @@ export const ELECTRON_TOOL_CONTRACTS = [
|
||||
name: "analyze_javascript_application",
|
||||
...toolContractMetadata("analyze_javascript_application"),
|
||||
description:
|
||||
"Reconstruct one local ASAR or extracted JavaScript application as an inline application graph without executing it. Returns all recovered graph nodes, edges, semantic relations, limitations, and coverage.",
|
||||
"Reconstruct one local ASAR or extracted JavaScript application as an inline application graph without executing it. Returns recovered graph nodes, edges, semantic relations, integrity contradictions, limitations, and coverage. Integrity mismatches fail by default; record-and-continue retains observed bytes as untrusted and marks graph coverage partial.",
|
||||
kind: "electron-provider",
|
||||
inputSchema: analyzeJavaScriptApplicationInputSchema,
|
||||
outputSchema: applicationOutputSchema,
|
||||
@@ -89,6 +89,7 @@ export const ELECTRON_TOOL_CONTRACTS = [
|
||||
input: {
|
||||
input_path: "/Applications/Example.app/Contents/Resources/app.asar",
|
||||
format: "auto",
|
||||
integrity_policy: "fail",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -28,6 +28,7 @@ const captures = {
|
||||
"agm_f30ded9a83d43a3980417bbe63dfad569e83386f243c4d6a01af0166372cb9e6",
|
||||
inventory_graph_sha256:
|
||||
"4b8aceaf67e43fd8317ec1f5fd1df5235f8fa402335accf011683e008c6bc62c",
|
||||
integrity_contradictions: [],
|
||||
},
|
||||
total: {
|
||||
input_path: "/examples/javascript-export-presence/right",
|
||||
@@ -37,6 +38,7 @@ const captures = {
|
||||
"agm_d3ceaa1af38fb3474070ca25c0d4644282e5fb7d5824cee3e3a81391481e9fc1",
|
||||
inventory_graph_sha256:
|
||||
"3e9bc926951480c35385efe5650d9d781631bd74c37a523d543b5fbe06b01ce6",
|
||||
integrity_contradictions: [],
|
||||
},
|
||||
};
|
||||
const summary = {
|
||||
|
||||
@@ -128,6 +128,7 @@ export const JAVASCRIPT_APPLICATION_EVIDENCE_EXAMPLE = createEvidence(
|
||||
root_artifact_sha256: applicationSha256,
|
||||
inventory_manifest_id: `agm_${"2".repeat(64)}`,
|
||||
inventory_graph_sha256: "3".repeat(64),
|
||||
integrity_contradictions: [],
|
||||
graph,
|
||||
semantic_graph: semanticGraph,
|
||||
summary: {
|
||||
|
||||
Reference in New Issue
Block a user