The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
docs(security): add AgentShield evidence for GateGuard fact-force
Jeffrey Montoya8438f040ac20
diff --git a/docs/security/evidence/gateguard-fact-force-agentshield.md b/docs/security/evidence/gateguard-fact-force-agentshield.mdnew file mode 100644index 000000000..9f752d930--- /dev/null+++ b/docs/security/evidence/gateguard-fact-force-agentshield.md@@ -0,0 +1,73 @@+# GateGuard Fact-Force — AgentShield Evidence++Generated on 2026-09-30 with `[email protected]` (npm integrity+`sha512-lpeHG96DtEn7ofq7Iiyvq29piQOwParaiZOdDB206i4ZeCL4yjwT6xN5BSGI4yhCEAN0eO0f9F9hxHLBuRqf/g==`),+installed with `--ignore-scripts`. Only static analysis was run: no prompt+injection testing, sandbox execution, taint or LLM analysis, and no auto-fix.++## Scope++AgentShield discovers a hooks config at `hooks/hooks.json` and the hook scripts+its commands reference. The scan root is `hooks/` and `scripts/` from the tree+under review, extracted into an empty directory so that no other part of the+repository is scanned:++```bash+git archive HEAD hooks scripts | tar -x -C <scan-root>+npx --yes [email protected] scan --path <scan-root> \+ --format json --evidence-pack <temporary-directory>+```++The same root was built from `main` at `c70874fa`, saved with+`--save-baseline`, and compared with `--baseline <file> --gate`.++`gateguard-fact-force-agentshield.sarif` is the redacted+`agentshield-results.sarif` from the evidence pack of this branch. AgentShield+replaced the scan root with `<target-path>`; it contains no local path,+username, credential or token.++## Result++| | this branch | `main` (`c70874fa`) |+| --- | ---: | ---: |+| Exit code | 0 | 0 |+| Files scanned | 28 | 28 |+| Score / grade | 83 / B | 83 / B |+| Critical / high | 0 / 0 | 0 / 0 |+| Medium / low / info | 29 / 1 / 7 | 29 / 1 / 7 |++Baseline comparison against `main`:++- Score 83 → 83; no new critical, high, medium or low finding.+- The gate reports one new and one resolved `info` finding. It is the same+ finding, "Hook code reads Claude transcript input" in+ `scripts/hooks/gateguard-fact-force.js`, on the same unchanged source line,+ which moved from line 1356 to 1393. AgentShield puts the line number in the+ finding id and the id in its baseline fingerprint, so a moved line counts+ as new. Because the gate allows no new findings, it exits `3` on this line+ shift alone.++## Pre-existing findings++All 37 findings are present on `main` in the same number:++- 24 medium: `hooks/hooks.json` hook commands run inline bootstrap payloads+ longer than 1,000 characters. This is the plugin's existing+ `CLAUDE_PLUGIN_ROOT` resolver, which this change does not touch.+- 3 medium and 1 low on `hooks/codex-hooks.json`, which this change does not+ touch.+- 2 medium on `hooks/hooks.metadata.json` ("No permissions block", "No+ PreToolUse security hooks"). The metadata file holds ids and descriptions+ only; permissions belong in Claude Code `settings.json`. The ECC Tools+ config audit reports the same two findings on every pull request that+ touches this file.+- 7 info: hook scripts that read the transcript or add context. The+ fact-force hook reads the transcript on `main` as well.++## Coverage limits++AgentShield scans the hook entry script but not the `scripts/lib/gateguard-*.js`+modules it requires, and it does not read `skills/gateguard/SKILL.md` below+the top level of `skills/`. The scenario gate SARIF in+[gateguard-fact-force.md](gateguard-fact-force.md) and the unit suites cover+those modules.diff --git a/docs/security/evidence/gateguard-fact-force-agentshield.sarif b/docs/security/evidence/gateguard-fact-force-agentshield.sarifnew file mode 100644index 000000000..f84f228f3--- /dev/null+++ b/docs/security/evidence/gateguard-fact-force-agentshield.sarif@@ -0,0 +1,1338 @@+{+ "version": "2.1.0",+ "$schema": "https://json.schemastore.org/sarif-2.1.0.json",+ "runs": [+ {+ "tool": {+ "driver": {+ "name": "AgentShield",+ "informationUri": "https://github.com/affaan-m/agentshield",+ "rules": [+ {+ "id": "hooks-no-pretooluse",+ "name": "No PreToolUse security hooks configured",+ "shortDescription": {+ "text": "No PreToolUse security hooks configured"+ },+ "fullDescription": {+ "text": "No PreToolUse hooks are defined. These hooks can catch dangerous operations before they run, providing an essential security layer."+ },+ "help": {+ "text": "No PreToolUse hooks are defined. These hooks can catch dangerous operations before they run, providing an essential security layer.\n\nRecommended fix: Add PreToolUse hooks for security-sensitive operations"+ },+ "defaultConfiguration": {+ "level": "warning"+ },+ "properties": {+ "category": "misconfiguration",+ "severity": "medium",+ "security-severity": "5.0",+ "tags": [+ "security",+ "agent-config",+ "misconfiguration"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-chained-commands-0",+ "name": "Hook has 31 chained commands",+ "shortDescription": {+ "text": "Hook has 31 chained commands"+ },+ "fullDescription": {+ "text": "A hook chains 31 commands together: \"node -e \"if(!process.env.PLUGIN_ROOT)throw new Error('Missing Codex PLUGIN_ROOT'...\". Complex chained commands in hooks are harder to audit and may perform operations beyond the hook's stated purpose. Consider breaking into a dedicated script file."+ },+ "help": {+ "text": "A hook chains 31 commands together: \"node -e \"if(!process.env.PLUGIN_ROOT)throw new Error('Missing Codex PLUGIN_ROOT'...\". Complex chained commands in hooks are harder to audit and may perform operations beyond the hook's stated purpose. Consider breaking into a dedicated script file.\n\nRecommended fix: Move complex logic to a script file"+ },+ "defaultConfiguration": {+ "level": "warning"+ },+ "properties": {+ "category": "hooks",+ "severity": "medium",+ "security-severity": "5.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-inline-eval-payload",+ "name": "SessionStart hook runs a 1177-character inline payload",+ "shortDescription": {+ "text": "SessionStart hook runs a 1177-character inline payload"+ },+ "fullDescription": {+ "text": "The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "help": {+ "text": "The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "defaultConfiguration": {+ "level": "warning"+ },+ "properties": {+ "category": "hooks",+ "severity": "medium",+ "security-severity": "5.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "permissions-no-block",+ "name": "No permissions block configured",+ "shortDescription": {+ "text": "No permissions block configured"+ },+ "fullDescription": {+ "text": "settings.json has configuration but no permissions section. Without explicit allow/deny lists, the agent relies on default permissions which may be too broad. Add a permissions block to restrict tool access."+ },+ "help": {+ "text": "settings.json has configuration but no permissions section. Without explicit allow/deny lists, the agent relies on default permissions which may be too broad. Add a permissions block to restrict tool access.\n\nRecommended fix: Add a permissions block with scoped allow and deny lists"+ },+ "defaultConfiguration": {+ "level": "warning"+ },+ "properties": {+ "category": "permissions",+ "severity": "medium",+ "security-severity": "5.0",+ "tags": [+ "security",+ "agent-config",+ "permissions"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-no-stop-hooks",+ "name": "No Stop hooks for session-end verification",+ "shortDescription": {+ "text": "No Stop hooks for session-end verification"+ },+ "fullDescription": {+ "text": "Hooks are configured but no Stop hooks exist. Stop hooks run when a session ends and are useful for final verification — checking for uncommitted secrets, ensuring console.log statements were removed, or auditing file changes."+ },+ "help": {+ "text": "Hooks are configured but no Stop hooks exist. Stop hooks run when a session ends and are useful for final verification — checking for uncommitted secrets, ensuring console.log statements were removed, or auditing file changes.\n\nRecommended fix: Add a Stop hook for session-end checks"+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "misconfiguration",+ "severity": "low",+ "security-severity": "2.5",+ "tags": [+ "security",+ "agent-config",+ "misconfiguration"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-code-transcript-access-1393",+ "name": "Hook code reads Claude transcript input",+ "shortDescription": {+ "text": "Hook code reads Claude transcript input"+ },+ "fullDescription": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "help": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "hooks",+ "severity": "info",+ "security-severity": "1.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-code-context-output-262",+ "name": "Hook code injects content into Claude context",+ "shortDescription": {+ "text": "Hook code injects content into Claude context"+ },+ "fullDescription": {+ "text": "This non-shell hook implementation calls an output helper that writes content back into Claude context. That is often legitimate, but it should be reviewed because untrusted summaries or derived data can become prompt-injection surface."+ },+ "help": {+ "text": "This non-shell hook implementation calls an output helper that writes content back into Claude context. That is often legitimate, but it should be reviewed because untrusted summaries or derived data can become prompt-injection surface."+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "hooks",+ "severity": "info",+ "security-severity": "1.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-code-transcript-access-217",+ "name": "Hook code reads Claude transcript input",+ "shortDescription": {+ "text": "Hook code reads Claude transcript input"+ },+ "fullDescription": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "help": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "hooks",+ "severity": "info",+ "security-severity": "1.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-code-transcript-access-117",+ "name": "Hook code reads Claude transcript input",+ "shortDescription": {+ "text": "Hook code reads Claude transcript input"+ },+ "fullDescription": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "help": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "hooks",+ "severity": "info",+ "security-severity": "1.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-code-transcript-access-183",+ "name": "Hook code reads Claude transcript input",+ "shortDescription": {+ "text": "Hook code reads Claude transcript input"+ },+ "fullDescription": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "help": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "hooks",+ "severity": "info",+ "security-severity": "1.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-code-transcript-access-49",+ "name": "Hook code reads Claude transcript input",+ "shortDescription": {+ "text": "Hook code reads Claude transcript input"+ },+ "fullDescription": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "help": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "hooks",+ "severity": "info",+ "security-severity": "1.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ },+ {+ "id": "hooks-code-transcript-access-207",+ "name": "Hook code reads Claude transcript input",+ "shortDescription": {+ "text": "Hook code reads Claude transcript input"+ },+ "fullDescription": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "help": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "defaultConfiguration": {+ "level": "note"+ },+ "properties": {+ "category": "hooks",+ "severity": "info",+ "security-severity": "1.0",+ "tags": [+ "security",+ "agent-config",+ "hooks"+ ],+ "precision": "high"+ }+ }+ ]+ }+ },+ "automationDetails": {+ "id": "agentshield/security-scan"+ },+ "invocations": [+ {+ "executionSuccessful": true,+ "endTimeUtc": "2026-09-30T03:29:39.393Z",+ "workingDirectory": {+ "uri": "<target-path>"+ }+ }+ ],+ "properties": {+ "score": 83,+ "grade": "B",+ "filesScanned": 28+ },+ "results": [+ {+ "ruleId": "hooks-no-pretooluse",+ "ruleIndex": 0,+ "level": "warning",+ "message": {+ "text": "No PreToolUse hooks are defined. These hooks can catch dangerous operations before they run, providing an essential security layer."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/codex-hooks.json"+ }+ }+ }+ ],+ "properties": {+ "title": "No PreToolUse security hooks configured",+ "category": "misconfiguration",+ "severity": "medium",+ "fix": "Add PreToolUse hooks for security-sensitive operations"+ }+ },+ {+ "ruleId": "hooks-chained-commands-0",+ "ruleIndex": 1,+ "level": "warning",+ "message": {+ "text": "A hook chains 31 commands together: \"node -e \"if(!process.env.PLUGIN_ROOT)throw new Error('Missing Codex PLUGIN_ROOT'...\". Complex chained commands in hooks are harder to audit and may perform operations beyond the hook's stated purpose. Consider breaking into a dedicated script file."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/codex-hooks.json"+ }+ }+ }+ ],+ "properties": {+ "title": "Hook has 31 chained commands",+ "category": "hooks",+ "severity": "medium",+ "evidence": "node -e \"if(!process.env.PLUGIN_ROOT)throw new Error('Missing Codex PLUGIN_ROOT');process.env.CLAUDE",+ "fix": "Move complex logic to a script file"+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/codex-hooks.json"+ },+ "region": {+ "startLine": 4+ }+ }+ }+ ],+ "properties": {+ "title": "SessionStart hook runs a 1177-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "evidence": "node -e \"if(!process.env.PLUGIN_ROOT)throw new Error('Missing Codex PLUGIN_ROOT');process.env.CLAUDE_PLUGIN_ROOT=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1045-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1130-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1117-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1120-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1100-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1115-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1113-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1111-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 3+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreToolUse hook runs a 1130-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 92+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PreCompact hook runs a 1097-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 103+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: SessionStart hook runs a 1049-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 103+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: SessionStart hook runs a 1129-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 123+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PostToolUse hook runs a 1015-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 123+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PostToolUse hook runs a 1016-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 146+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PostToolUseFailure hook runs a 1112-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 146+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: PostToolUseFailure hook runs a 1108-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 166+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: Stop hook runs a 1407-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 166+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: Stop hook runs a 1399-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 166+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: Stop hook runs a 1395-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 166+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: Stop hook runs a 1391-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 166+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: Stop hook runs a 1401-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 166+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: Stop hook runs a 1393-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 166+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: Stop hook runs a 1389-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "hooks-inline-eval-payload",+ "ruleIndex": 2,+ "level": "warning",+ "message": {+ "text": "This finding comes from a declarative hook manifest. Review the referenced hook implementation to confirm the exact runtime behavior. The hook command feeds a long inline payload to an interpreter or decoder instead of running a script file. Inline payloads are hard to review, are not anchored to a plugin or project directory, and are the usual way to hide a dropper in a hook."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.json"+ },+ "region": {+ "startLine": 240+ }+ }+ }+ ],+ "properties": {+ "title": "Plugin hook manifest: SessionEnd hook runs a 1400-character inline payload",+ "category": "hooks",+ "severity": "medium",+ "runtimeConfidence": "plugin-manifest",+ "evidence": "node -e \"const p=require('path');const r=(function(){var p=require('path'),f=require('fs'),o=require('os');var e=process..."+ }+ },+ {+ "ruleId": "permissions-no-block",+ "ruleIndex": 3,+ "level": "warning",+ "message": {+ "text": "settings.json has configuration but no permissions section. Without explicit allow/deny lists, the agent relies on default permissions which may be too broad. Add a permissions block to restrict tool access."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.metadata.json"+ }+ }+ }+ ],+ "properties": {+ "title": "No permissions block configured",+ "category": "permissions",+ "severity": "medium",+ "fix": "Add a permissions block with scoped allow and deny lists"+ }+ },+ {+ "ruleId": "hooks-no-pretooluse",+ "ruleIndex": 0,+ "level": "warning",+ "message": {+ "text": "No PreToolUse hooks are defined. These hooks can catch dangerous operations before they run, providing an essential security layer."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/hooks.metadata.json"+ }+ }+ }+ ],+ "properties": {+ "title": "No PreToolUse security hooks configured",+ "category": "misconfiguration",+ "severity": "medium",+ "fix": "Add PreToolUse hooks for security-sensitive operations"+ }+ },+ {+ "ruleId": "hooks-no-stop-hooks",+ "ruleIndex": 4,+ "level": "note",+ "message": {+ "text": "Hooks are configured but no Stop hooks exist. Stop hooks run when a session ends and are useful for final verification — checking for uncommitted secrets, ensuring console.log statements were removed, or auditing file changes."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "hooks/codex-hooks.json"+ }+ }+ }+ ],+ "properties": {+ "title": "No Stop hooks for session-end verification",+ "category": "misconfiguration",+ "severity": "low",+ "fix": "Add a Stop hook for session-end checks"+ }+ },+ {+ "ruleId": "hooks-code-transcript-access-1393",+ "ruleIndex": 5,+ "level": "note",+ "message": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "scripts/hooks/gateguard-fact-force.js"+ },+ "region": {+ "startLine": 1393+ }+ }+ }+ ],+ "properties": {+ "title": "Hook code reads Claude transcript input",+ "category": "hooks",+ "severity": "info",+ "runtimeConfidence": "hook-code",+ "evidence": "const transcriptPath = (data && (data.transcript_path || data.transcriptPath)) || process.env.CLAUDE_TRANSCRIPT_PATH;"+ }+ },+ {+ "ruleId": "hooks-code-context-output-262",+ "ruleIndex": 6,+ "level": "note",+ "message": {+ "text": "This non-shell hook implementation calls an output helper that writes content back into Claude context. That is often legitimate, but it should be reviewed because untrusted summaries or derived data can become prompt-injection surface."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "scripts/hooks/suggest-compact.js"+ },+ "region": {+ "startLine": 262+ }+ }+ }+ ],+ "properties": {+ "title": "Hook code injects content into Claude context",+ "category": "hooks",+ "severity": "info",+ "runtimeConfidence": "hook-code",+ "evidence": "output({"+ }+ },+ {+ "ruleId": "hooks-code-transcript-access-217",+ "ruleIndex": 7,+ "level": "note",+ "message": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "scripts/hooks/suggest-compact.js"+ },+ "region": {+ "startLine": 217+ }+ }+ }+ ],+ "properties": {+ "title": "Hook code reads Claude transcript input",+ "category": "hooks",+ "severity": "info",+ "runtimeConfidence": "hook-code",+ "evidence": "const transcriptPath = (input && typeof input.transcript_path === 'string') ? input.transcript_path : '';"+ }+ },+ {+ "ruleId": "hooks-code-transcript-access-117",+ "ruleIndex": 8,+ "level": "note",+ "message": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "scripts/hooks/pre-compact.js"+ },+ "region": {+ "startLine": 117+ }+ }+ }+ ],+ "properties": {+ "title": "Hook code reads Claude transcript input",+ "category": "hooks",+ "severity": "info",+ "runtimeConfidence": "hook-code",+ "evidence": "if (input && typeof input.transcript_path === 'string' && input.transcript_path.length > 0) {"+ }+ },+ {+ "ruleId": "hooks-code-transcript-access-183",+ "ruleIndex": 9,+ "level": "note",+ "message": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "scripts/hooks/session-end.js"+ },+ "region": {+ "startLine": 183+ }+ }+ }+ ],+ "properties": {+ "title": "Hook code reads Claude transcript input",+ "category": "hooks",+ "severity": "info",+ "runtimeConfidence": "hook-code",+ "evidence": "if (input && typeof input.transcript_path === 'string' && input.transcript_path.length > 0) {"+ }+ },+ {+ "ruleId": "hooks-code-transcript-access-49",+ "ruleIndex": 10,+ "level": "note",+ "message": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "scripts/hooks/evaluate-session.js"+ },+ "region": {+ "startLine": 49+ }+ }+ }+ ],+ "properties": {+ "title": "Hook code reads Claude transcript input",+ "category": "hooks",+ "severity": "info",+ "runtimeConfidence": "hook-code",+ "evidence": "transcriptPath = input.transcript_path;"+ }+ },+ {+ "ruleId": "hooks-code-transcript-access-207",+ "ruleIndex": 11,+ "level": "note",+ "message": {+ "text": "This non-shell hook implementation reads transcript-derived input (`transcript_path` or `CLAUDE_TRANSCRIPT_PATH`). That is common for Stop and SessionEnd hooks, but it should be reviewed because downstream logic can process sensitive prompt and tool history."+ },+ "locations": [+ {+ "physicalLocation": {+ "artifactLocation": {+ "uri": "scripts/hooks/cost-tracker.js"+ },+ "region": {+ "startLine": 207+ }+ }+ }+ ],+ "properties": {+ "title": "Hook code reads Claude transcript input",+ "category": "hooks",+ "severity": "info",+ "runtimeConfidence": "hook-code",+ "evidence": "const transcriptPath = (typeof input.transcript_path === 'string' && input.transcript_path)"+ }+ }+ ]+ }+ ]+}diff --git a/docs/security/evidence/gateguard-fact-force.md b/docs/security/evidence/gateguard-fact-force.mdindex abadedcbd..5187f1871 100644--- a/docs/security/evidence/gateguard-fact-force.md+++ b/docs/security/evidence/gateguard-fact-force.md@@ -52,6 +52,11 @@ node scripts/dev/gateguard-eval.js --markdown --baseline c70874fa \| Hook errors (`error`) | 0 | 0 || Other expectation mismatches (`warning`) | 0 | 46 |+AgentShield's static scan of the hooks surface gives the same result on+this branch and on `main` (score 83/B, 0 critical, 0 high); see+[gateguard-fact-force-agentshield.md](gateguard-fact-force-agentshield.md)+and `gateguard-fact-force-agentshield.sarif`.+Negative control: the same gate run against `main`'s hook reports the 8bypasses as SARIF errors. They are: