@kenkaiiii/gg-engine 0.0.0-stage → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/NOTICE +43 -0
- package/README.md +53 -2
- package/assets/skills/bulletproof/SKILL.md +132 -0
- package/assets/skills/bulletproof/references/agent-surface.md +113 -0
- package/assets/skills/bulletproof/references/attack-classes.md +226 -0
- package/assets/skills/bulletproof/references/audit-protocol.md +232 -0
- package/assets/skills/bulletproof/references/platform-playbooks.md +196 -0
- package/assets/skills/bulletproof/references/provenance.md +146 -0
- package/assets/skills/bulletproof/references/secure-defaults.md +137 -0
- package/assets/skills/bulletproof/references/supply-chain.md +84 -0
- package/assets/skills/bulletproof/references/threat-landscape.md +66 -0
- package/assets/skills/bulletproof/references/verification.md +74 -0
- package/assets/skills/compliance-guard/SKILL.md +115 -0
- package/assets/skills/compliance-guard/references/artifacts.md +199 -0
- package/assets/skills/compliance-guard/references/eu-uk.md +162 -0
- package/assets/skills/compliance-guard/references/exposure-triage.md +177 -0
- package/assets/skills/compliance-guard/references/full-review.md +155 -0
- package/assets/skills/compliance-guard/references/lawsuit-vectors.md +153 -0
- package/assets/skills/compliance-guard/references/provenance.md +135 -0
- package/assets/skills/compliance-guard/references/sector-gates.md +187 -0
- package/assets/skills/compliance-guard/references/security-baseline.md +117 -0
- package/assets/skills/compliance-guard/references/trigger-map.md +177 -0
- package/assets/skills/compliance-guard/references/us.md +194 -0
- package/assets/skills/durable/SKILL.md +114 -0
- package/assets/skills/durable/references/agent-db-safety.md +76 -0
- package/assets/skills/durable/references/backups-and-runtime.md +93 -0
- package/assets/skills/durable/references/migrations-and-schema.md +87 -0
- package/assets/skills/gg-guide/SKILL.md +43 -0
- package/assets/skills/gg-guide/references/chat-motion-goals.md +217 -0
- package/assets/skills/gg-guide/references/checklist-and-safety.md +177 -0
- package/assets/skills/gg-guide/references/code-mode.md +272 -0
- package/assets/skills/gg-guide/references/getting-started.md +295 -0
- package/assets/skills/gg-guide/references/ken-and-autopilot.md +172 -0
- package/assets/skills/gg-guide/references/mcp-and-skills.md +204 -0
- package/assets/skills/gg-guide/references/models-and-sign-in.md +200 -0
- package/assets/skills/gg-guide/references/sessions-and-history.md +213 -0
- package/assets/skills/gg-guide/references/settings.md +193 -0
- package/assets/skills/gg-guide/references/troubleshooting-and-data.md +186 -0
- package/assets/skills/lean/SKILL.md +117 -0
- package/assets/skills/lean/references/memory-and-processes.md +99 -0
- package/assets/skills/lean/references/playbooks.md +134 -0
- package/dist/app-error.d.ts +22 -0
- package/dist/app-error.js +41 -0
- package/dist/app-error.js.map +1 -0
- package/dist/config.d.ts +90 -0
- package/dist/config.js +240 -0
- package/dist/config.js.map +1 -0
- package/dist/core/acceptance-checks.d.ts +48 -0
- package/dist/core/acceptance-checks.js +151 -0
- package/dist/core/acceptance-checks.js.map +1 -0
- package/dist/core/action-threats.d.ts +68 -0
- package/dist/core/action-threats.js +894 -0
- package/dist/core/action-threats.js.map +1 -0
- package/dist/core/agent-notifications.d.ts +79 -0
- package/dist/core/agent-notifications.js +125 -0
- package/dist/core/agent-notifications.js.map +1 -0
- package/dist/core/agent-session/helpers.d.ts +26 -0
- package/dist/core/agent-session/helpers.js +47 -0
- package/dist/core/agent-session/helpers.js.map +1 -0
- package/dist/core/agent-session/mcp-tools.d.ts +87 -0
- package/dist/core/agent-session/mcp-tools.js +227 -0
- package/dist/core/agent-session/mcp-tools.js.map +1 -0
- package/dist/core/agent-session/run-loop-monitor.d.ts +63 -0
- package/dist/core/agent-session/run-loop-monitor.js +164 -0
- package/dist/core/agent-session/run-loop-monitor.js.map +1 -0
- package/dist/core/agent-session/transcript-markers.d.ts +57 -0
- package/dist/core/agent-session/transcript-markers.js +166 -0
- package/dist/core/agent-session/transcript-markers.js.map +1 -0
- package/dist/core/agent-session/verification-tracker.d.ts +71 -0
- package/dist/core/agent-session/verification-tracker.js +295 -0
- package/dist/core/agent-session/verification-tracker.js.map +1 -0
- package/dist/core/agent-session.d.ts +1401 -0
- package/dist/core/agent-session.js +5160 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/agents.d.ts +63 -0
- package/dist/core/agents.js +160 -0
- package/dist/core/agents.js.map +1 -0
- package/dist/core/ask-user.d.ts +163 -0
- package/dist/core/ask-user.js +178 -0
- package/dist/core/ask-user.js.map +1 -0
- package/dist/core/auto-update.d.ts +32 -0
- package/dist/core/auto-update.js +218 -0
- package/dist/core/auto-update.js.map +1 -0
- package/dist/core/autopilot-cycle.d.ts +127 -0
- package/dist/core/autopilot-cycle.js +182 -0
- package/dist/core/autopilot-cycle.js.map +1 -0
- package/dist/core/autopilot-gate.d.ts +106 -0
- package/dist/core/autopilot-gate.js +192 -0
- package/dist/core/autopilot-gate.js.map +1 -0
- package/dist/core/autopilot-verdict.d.ts +55 -0
- package/dist/core/autopilot-verdict.js +226 -0
- package/dist/core/autopilot-verdict.js.map +1 -0
- package/dist/core/blocked-packages-file.d.ts +33 -0
- package/dist/core/blocked-packages-file.js +274 -0
- package/dist/core/blocked-packages-file.js.map +1 -0
- package/dist/core/bundled-agents.d.ts +2 -0
- package/dist/core/bundled-agents.js +253 -0
- package/dist/core/bundled-agents.js.map +1 -0
- package/dist/core/cache-diagnostics.d.ts +72 -0
- package/dist/core/cache-diagnostics.js +200 -0
- package/dist/core/cache-diagnostics.js.map +1 -0
- package/dist/core/cache-expiry.d.ts +89 -0
- package/dist/core/cache-expiry.js +117 -0
- package/dist/core/cache-expiry.js.map +1 -0
- package/dist/core/checklist-detection.d.ts +8 -0
- package/dist/core/checklist-detection.js +238 -0
- package/dist/core/checklist-detection.js.map +1 -0
- package/dist/core/checklist-git.d.ts +19 -0
- package/dist/core/checklist-git.js +54 -0
- package/dist/core/checklist-git.js.map +1 -0
- package/dist/core/checklist-items.d.ts +182 -0
- package/dist/core/checklist-items.js +228 -0
- package/dist/core/checklist-items.js.map +1 -0
- package/dist/core/checklist-prompt.d.ts +14 -0
- package/dist/core/checklist-prompt.js +64 -0
- package/dist/core/checklist-prompt.js.map +1 -0
- package/dist/core/checklist-snapshot.d.ts +7 -0
- package/dist/core/checklist-snapshot.js +46 -0
- package/dist/core/checklist-snapshot.js.map +1 -0
- package/dist/core/checklist-store.d.ts +45 -0
- package/dist/core/checklist-store.js +281 -0
- package/dist/core/checklist-store.js.map +1 -0
- package/dist/core/checkout-record.d.ts +22 -0
- package/dist/core/checkout-record.js +68 -0
- package/dist/core/checkout-record.js.map +1 -0
- package/dist/core/checkpoint-store.d.ts +109 -0
- package/dist/core/checkpoint-store.js +260 -0
- package/dist/core/checkpoint-store.js.map +1 -0
- package/dist/core/claude-code/complete.d.ts +35 -0
- package/dist/core/claude-code/complete.js +125 -0
- package/dist/core/claude-code/complete.js.map +1 -0
- package/dist/core/claude-code/events.d.ts +67 -0
- package/dist/core/claude-code/events.js +460 -0
- package/dist/core/claude-code/events.js.map +1 -0
- package/dist/core/claude-code/live-session.d.ts +94 -0
- package/dist/core/claude-code/live-session.js +525 -0
- package/dist/core/claude-code/live-session.js.map +1 -0
- package/dist/core/claude-code/loop.d.ts +9 -0
- package/dist/core/claude-code/loop.js +15 -0
- package/dist/core/claude-code/loop.js.map +1 -0
- package/dist/core/claude-code/session-sync.d.ts +28 -0
- package/dist/core/claude-code/session-sync.js +53 -0
- package/dist/core/claude-code/session-sync.js.map +1 -0
- package/dist/core/claude-code/tool-bridge.d.ts +49 -0
- package/dist/core/claude-code/tool-bridge.js +352 -0
- package/dist/core/claude-code/tool-bridge.js.map +1 -0
- package/dist/core/claude-code/transcripts.d.ts +39 -0
- package/dist/core/claude-code/transcripts.js +195 -0
- package/dist/core/claude-code/transcripts.js.map +1 -0
- package/dist/core/code-retrieval-chunkers.d.ts +26 -0
- package/dist/core/code-retrieval-chunkers.js +264 -0
- package/dist/core/code-retrieval-chunkers.js.map +1 -0
- package/dist/core/code-retrieval.d.ts +18 -0
- package/dist/core/code-retrieval.js +124 -0
- package/dist/core/code-retrieval.js.map +1 -0
- package/dist/core/codex-request-shape.d.ts +7 -0
- package/dist/core/codex-request-shape.js +19 -0
- package/dist/core/codex-request-shape.js.map +1 -0
- package/dist/core/compaction/active-context.d.ts +16 -0
- package/dist/core/compaction/active-context.js +20 -0
- package/dist/core/compaction/active-context.js.map +1 -0
- package/dist/core/compaction/compactor.d.ts +281 -0
- package/dist/core/compaction/compactor.js +1451 -0
- package/dist/core/compaction/compactor.js.map +1 -0
- package/dist/core/compaction/plan-step-policy.d.ts +46 -0
- package/dist/core/compaction/plan-step-policy.js +57 -0
- package/dist/core/compaction/plan-step-policy.js.map +1 -0
- package/dist/core/compaction/policy.d.ts +36 -0
- package/dist/core/compaction/policy.js +144 -0
- package/dist/core/compaction/policy.js.map +1 -0
- package/dist/core/compaction/query-aware-selector.d.ts +32 -0
- package/dist/core/compaction/query-aware-selector.js +202 -0
- package/dist/core/compaction/query-aware-selector.js.map +1 -0
- package/dist/core/compaction/token-estimator.d.ts +36 -0
- package/dist/core/compaction/token-estimator.js +180 -0
- package/dist/core/compaction/token-estimator.js.map +1 -0
- package/dist/core/compaction/tool-result-pruner.d.ts +90 -0
- package/dist/core/compaction/tool-result-pruner.js +238 -0
- package/dist/core/compaction/tool-result-pruner.js.map +1 -0
- package/dist/core/completion-review.d.ts +24 -0
- package/dist/core/completion-review.js +2 -0
- package/dist/core/completion-review.js.map +1 -0
- package/dist/core/context-files.d.ts +8 -0
- package/dist/core/context-files.js +46 -0
- package/dist/core/context-files.js.map +1 -0
- package/dist/core/context-limits.d.ts +40 -0
- package/dist/core/context-limits.js +43 -0
- package/dist/core/context-limits.js.map +1 -0
- package/dist/core/custom-commands.d.ts +18 -0
- package/dist/core/custom-commands.js +57 -0
- package/dist/core/custom-commands.js.map +1 -0
- package/dist/core/destructive-git-guard.d.ts +113 -0
- package/dist/core/destructive-git-guard.js +874 -0
- package/dist/core/destructive-git-guard.js.map +1 -0
- package/dist/core/display-items.d.ts +8 -0
- package/dist/core/display-items.js +2 -0
- package/dist/core/display-items.js.map +1 -0
- package/dist/core/encode-cwd.d.ts +41 -0
- package/dist/core/encode-cwd.js +53 -0
- package/dist/core/encode-cwd.js.map +1 -0
- package/dist/core/env-delta.d.ts +34 -0
- package/dist/core/env-delta.js +84 -0
- package/dist/core/env-delta.js.map +1 -0
- package/dist/core/event-bus.d.ts +178 -0
- package/dist/core/event-bus.js +171 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +7 -0
- package/dist/core/extensions/loader.js +68 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/plugin-bundles.d.ts +13 -0
- package/dist/core/extensions/plugin-bundles.js +45 -0
- package/dist/core/extensions/plugin-bundles.js.map +1 -0
- package/dist/core/extensions/types.d.ts +18 -0
- package/dist/core/extensions/types.js +2 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/foreign-session-import.d.ts +119 -0
- package/dist/core/foreign-session-import.js +598 -0
- package/dist/core/foreign-session-import.js.map +1 -0
- package/dist/core/foreign-transcript-blocks.d.ts +50 -0
- package/dist/core/foreign-transcript-blocks.js +151 -0
- package/dist/core/foreign-transcript-blocks.js.map +1 -0
- package/dist/core/frontmatter.d.ts +22 -0
- package/dist/core/frontmatter.js +90 -0
- package/dist/core/frontmatter.js.map +1 -0
- package/dist/core/goal-run-marker.d.ts +32 -0
- package/dist/core/goal-run-marker.js +178 -0
- package/dist/core/goal-run-marker.js.map +1 -0
- package/dist/core/goal-summary.d.ts +15 -0
- package/dist/core/goal-summary.js +110 -0
- package/dist/core/goal-summary.js.map +1 -0
- package/dist/core/goals-store.d.ts +208 -0
- package/dist/core/goals-store.js +577 -0
- package/dist/core/goals-store.js.map +1 -0
- package/dist/core/hashline.d.ts +51 -0
- package/dist/core/hashline.js +76 -0
- package/dist/core/hashline.js.map +1 -0
- package/dist/core/idle-wake.d.ts +62 -0
- package/dist/core/idle-wake.js +103 -0
- package/dist/core/idle-wake.js.map +1 -0
- package/dist/core/index.d.ts +15 -0
- package/dist/core/index.js +15 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/injection-detect.d.ts +39 -0
- package/dist/core/injection-detect.js +241 -0
- package/dist/core/injection-detect.js.map +1 -0
- package/dist/core/installed-threats.d.ts +23 -0
- package/dist/core/installed-threats.js +71 -0
- package/dist/core/installed-threats.js.map +1 -0
- package/dist/core/internal-diagnostics.d.ts +159 -0
- package/dist/core/internal-diagnostics.js +495 -0
- package/dist/core/internal-diagnostics.js.map +1 -0
- package/dist/core/keep-awake.d.ts +88 -0
- package/dist/core/keep-awake.js +251 -0
- package/dist/core/keep-awake.js.map +1 -0
- package/dist/core/ken-ask-answer.d.ts +24 -0
- package/dist/core/ken-ask-answer.js +96 -0
- package/dist/core/ken-ask-answer.js.map +1 -0
- package/dist/core/ken-context.d.ts +119 -0
- package/dist/core/ken-context.js +447 -0
- package/dist/core/ken-context.js.map +1 -0
- package/dist/core/ken-model.d.ts +45 -0
- package/dist/core/ken-model.js +26 -0
- package/dist/core/ken-model.js.map +1 -0
- package/dist/core/ken-prompt.d.ts +21 -0
- package/dist/core/ken-prompt.js +370 -0
- package/dist/core/ken-prompt.js.map +1 -0
- package/dist/core/language-detector.d.ts +41 -0
- package/dist/core/language-detector.js +293 -0
- package/dist/core/language-detector.js.map +1 -0
- package/dist/core/live-preview.d.ts +26 -0
- package/dist/core/live-preview.js +80 -0
- package/dist/core/live-preview.js.map +1 -0
- package/dist/core/local-endpoint-store.d.ts +53 -0
- package/dist/core/local-endpoint-store.js +221 -0
- package/dist/core/local-endpoint-store.js.map +1 -0
- package/dist/core/logger.d.ts +21 -0
- package/dist/core/logger.js +94 -0
- package/dist/core/logger.js.map +1 -0
- package/dist/core/loop-breaker.d.ts +89 -0
- package/dist/core/loop-breaker.js +204 -0
- package/dist/core/loop-breaker.js.map +1 -0
- package/dist/core/lsp/client.d.ts +206 -0
- package/dist/core/lsp/client.js +685 -0
- package/dist/core/lsp/client.js.map +1 -0
- package/dist/core/lsp/edit-telemetry.d.ts +26 -0
- package/dist/core/lsp/edit-telemetry.js +52 -0
- package/dist/core/lsp/edit-telemetry.js.map +1 -0
- package/dist/core/lsp/format.d.ts +11 -0
- package/dist/core/lsp/format.js +30 -0
- package/dist/core/lsp/format.js.map +1 -0
- package/dist/core/lsp/jsonrpc.d.ts +68 -0
- package/dist/core/lsp/jsonrpc.js +153 -0
- package/dist/core/lsp/jsonrpc.js.map +1 -0
- package/dist/core/lsp/manager.d.ts +188 -0
- package/dist/core/lsp/manager.js +576 -0
- package/dist/core/lsp/manager.js.map +1 -0
- package/dist/core/lsp/pool.d.ts +114 -0
- package/dist/core/lsp/pool.js +259 -0
- package/dist/core/lsp/pool.js.map +1 -0
- package/dist/core/lsp/project-root.d.ts +9 -0
- package/dist/core/lsp/project-root.js +75 -0
- package/dist/core/lsp/project-root.js.map +1 -0
- package/dist/core/lsp/reference-project.d.ts +6 -0
- package/dist/core/lsp/reference-project.js +110 -0
- package/dist/core/lsp/reference-project.js.map +1 -0
- package/dist/core/lsp/servers.d.ts +44 -0
- package/dist/core/lsp/servers.js +289 -0
- package/dist/core/lsp/servers.js.map +1 -0
- package/dist/core/lsp/test-support.d.ts +17 -0
- package/dist/core/lsp/test-support.js +27 -0
- package/dist/core/lsp/test-support.js.map +1 -0
- package/dist/core/mcp/catalog-cache.d.ts +64 -0
- package/dist/core/mcp/catalog-cache.js +166 -0
- package/dist/core/mcp/catalog-cache.js.map +1 -0
- package/dist/core/mcp/client.d.ts +317 -0
- package/dist/core/mcp/client.js +1168 -0
- package/dist/core/mcp/client.js.map +1 -0
- package/dist/core/mcp/content.d.ts +23 -0
- package/dist/core/mcp/content.js +194 -0
- package/dist/core/mcp/content.js.map +1 -0
- package/dist/core/mcp/defaults.d.ts +26 -0
- package/dist/core/mcp/defaults.js +81 -0
- package/dist/core/mcp/defaults.js.map +1 -0
- package/dist/core/mcp/deferred-catalog.d.ts +53 -0
- package/dist/core/mcp/deferred-catalog.js +117 -0
- package/dist/core/mcp/deferred-catalog.js.map +1 -0
- package/dist/core/mcp/elicitation-bridge.d.ts +40 -0
- package/dist/core/mcp/elicitation-bridge.js +36 -0
- package/dist/core/mcp/elicitation-bridge.js.map +1 -0
- package/dist/core/mcp/index.d.ts +16 -0
- package/dist/core/mcp/index.js +10 -0
- package/dist/core/mcp/index.js.map +1 -0
- package/dist/core/mcp/loopback.d.ts +26 -0
- package/dist/core/mcp/loopback.js +66 -0
- package/dist/core/mcp/loopback.js.map +1 -0
- package/dist/core/mcp/oauth-provider.d.ts +55 -0
- package/dist/core/mcp/oauth-provider.js +106 -0
- package/dist/core/mcp/oauth-provider.js.map +1 -0
- package/dist/core/mcp/oauth-store.d.ts +44 -0
- package/dist/core/mcp/oauth-store.js +76 -0
- package/dist/core/mcp/oauth-store.js.map +1 -0
- package/dist/core/mcp/parse-add-command.d.ts +50 -0
- package/dist/core/mcp/parse-add-command.js +391 -0
- package/dist/core/mcp/parse-add-command.js.map +1 -0
- package/dist/core/mcp/resolve-stdio.d.ts +77 -0
- package/dist/core/mcp/resolve-stdio.js +359 -0
- package/dist/core/mcp/resolve-stdio.js.map +1 -0
- package/dist/core/mcp/shared-pool.d.ts +157 -0
- package/dist/core/mcp/shared-pool.js +236 -0
- package/dist/core/mcp/shared-pool.js.map +1 -0
- package/dist/core/mcp/store.d.ts +100 -0
- package/dist/core/mcp/store.js +202 -0
- package/dist/core/mcp/store.js.map +1 -0
- package/dist/core/mcp/tool-guard.d.ts +58 -0
- package/dist/core/mcp/tool-guard.js +215 -0
- package/dist/core/mcp/tool-guard.js.map +1 -0
- package/dist/core/mcp/types.d.ts +57 -0
- package/dist/core/mcp/types.js +2 -0
- package/dist/core/mcp/types.js.map +1 -0
- package/dist/core/message-images.d.ts +11 -0
- package/dist/core/message-images.js +52 -0
- package/dist/core/message-images.js.map +1 -0
- package/dist/core/model-unavailable.d.ts +14 -0
- package/dist/core/model-unavailable.js +23 -0
- package/dist/core/model-unavailable.js.map +1 -0
- package/dist/core/network-guard.d.ts +28 -0
- package/dist/core/network-guard.js +251 -0
- package/dist/core/network-guard.js.map +1 -0
- package/dist/core/node-debugger.d.ts +148 -0
- package/dist/core/node-debugger.js +642 -0
- package/dist/core/node-debugger.js.map +1 -0
- package/dist/core/opencode-catalog-store.d.ts +20 -0
- package/dist/core/opencode-catalog-store.js +82 -0
- package/dist/core/opencode-catalog-store.js.map +1 -0
- package/dist/core/openrouter-catalog-store.d.ts +24 -0
- package/dist/core/openrouter-catalog-store.js +140 -0
- package/dist/core/openrouter-catalog-store.js.map +1 -0
- package/dist/core/package-cooldown.d.ts +69 -0
- package/dist/core/package-cooldown.js +297 -0
- package/dist/core/package-cooldown.js.map +1 -0
- package/dist/core/package-threats.d.ts +92 -0
- package/dist/core/package-threats.js +1339 -0
- package/dist/core/package-threats.js.map +1 -0
- package/dist/core/parked-requests.d.ts +43 -0
- package/dist/core/parked-requests.js +34 -0
- package/dist/core/parked-requests.js.map +1 -0
- package/dist/core/persistent-shell.d.ts +81 -0
- package/dist/core/persistent-shell.js +452 -0
- package/dist/core/persistent-shell.js.map +1 -0
- package/dist/core/plan-delta.d.ts +23 -0
- package/dist/core/plan-delta.js +36 -0
- package/dist/core/plan-delta.js.map +1 -0
- package/dist/core/plan-handoff.d.ts +38 -0
- package/dist/core/plan-handoff.js +21 -0
- package/dist/core/plan-handoff.js.map +1 -0
- package/dist/core/plan-submission-gate.d.ts +28 -0
- package/dist/core/plan-submission-gate.js +27 -0
- package/dist/core/plan-submission-gate.js.map +1 -0
- package/dist/core/platform-clis.d.ts +15 -0
- package/dist/core/platform-clis.js +299 -0
- package/dist/core/platform-clis.js.map +1 -0
- package/dist/core/process-gate.d.ts +61 -0
- package/dist/core/process-gate.js +103 -0
- package/dist/core/process-gate.js.map +1 -0
- package/dist/core/process-manager.d.ts +242 -0
- package/dist/core/process-manager.js +902 -0
- package/dist/core/process-manager.js.map +1 -0
- package/dist/core/progress/engine.d.ts +22 -0
- package/dist/core/progress/engine.js +131 -0
- package/dist/core/progress/engine.js.map +1 -0
- package/dist/core/progress/git-xp.d.ts +15 -0
- package/dist/core/progress/git-xp.js +100 -0
- package/dist/core/progress/git-xp.js.map +1 -0
- package/dist/core/progress/ranks.d.ts +31 -0
- package/dist/core/progress/ranks.js +310 -0
- package/dist/core/progress/ranks.js.map +1 -0
- package/dist/core/progress/rebuild.d.ts +8 -0
- package/dist/core/progress/rebuild.js +125 -0
- package/dist/core/progress/rebuild.js.map +1 -0
- package/dist/core/progress/store.d.ts +34 -0
- package/dist/core/progress/store.js +200 -0
- package/dist/core/progress/store.js.map +1 -0
- package/dist/core/progress/types.d.ts +56 -0
- package/dist/core/progress/types.js +2 -0
- package/dist/core/progress/types.js.map +1 -0
- package/dist/core/project-discovery.d.ts +64 -0
- package/dist/core/project-discovery.js +908 -0
- package/dist/core/project-discovery.js.map +1 -0
- package/dist/core/project-files.d.ts +15 -0
- package/dist/core/project-files.js +37 -0
- package/dist/core/project-files.js.map +1 -0
- package/dist/core/project-health-scan.d.ts +109 -0
- package/dist/core/project-health-scan.js +673 -0
- package/dist/core/project-health-scan.js.map +1 -0
- package/dist/core/project-health-score.d.ts +41 -0
- package/dist/core/project-health-score.js +257 -0
- package/dist/core/project-health-score.js.map +1 -0
- package/dist/core/prompt-command-expansion.d.ts +13 -0
- package/dist/core/prompt-command-expansion.js +48 -0
- package/dist/core/prompt-command-expansion.js.map +1 -0
- package/dist/core/prompt-commands.d.ts +13 -0
- package/dist/core/prompt-commands.js +370 -0
- package/dist/core/prompt-commands.js.map +1 -0
- package/dist/core/pull-requests.d.ts +18 -0
- package/dist/core/pull-requests.js +95 -0
- package/dist/core/pull-requests.js.map +1 -0
- package/dist/core/radio-players.d.ts +28 -0
- package/dist/core/radio-players.js +132 -0
- package/dist/core/radio-players.js.map +1 -0
- package/dist/core/radio.d.ts +42 -0
- package/dist/core/radio.js +499 -0
- package/dist/core/radio.js.map +1 -0
- package/dist/core/regrounding.d.ts +37 -0
- package/dist/core/regrounding.js +89 -0
- package/dist/core/regrounding.js.map +1 -0
- package/dist/core/resolve-start.d.ts +28 -0
- package/dist/core/resolve-start.js +35 -0
- package/dist/core/resolve-start.js.map +1 -0
- package/dist/core/run-claim.d.ts +36 -0
- package/dist/core/run-claim.js +46 -0
- package/dist/core/run-claim.js.map +1 -0
- package/dist/core/run-lifecycle.d.ts +58 -0
- package/dist/core/run-lifecycle.js +104 -0
- package/dist/core/run-lifecycle.js.map +1 -0
- package/dist/core/run-status.d.ts +17 -0
- package/dist/core/run-status.js +28 -0
- package/dist/core/run-status.js.map +1 -0
- package/dist/core/runtime-mode.d.ts +21 -0
- package/dist/core/runtime-mode.js +43 -0
- package/dist/core/runtime-mode.js.map +1 -0
- package/dist/core/sandbox-domains.d.ts +13 -0
- package/dist/core/sandbox-domains.js +76 -0
- package/dist/core/sandbox-domains.js.map +1 -0
- package/dist/core/sandbox-feedback.d.ts +21 -0
- package/dist/core/sandbox-feedback.js +69 -0
- package/dist/core/sandbox-feedback.js.map +1 -0
- package/dist/core/sandbox.d.ts +106 -0
- package/dist/core/sandbox.js +383 -0
- package/dist/core/sandbox.js.map +1 -0
- package/dist/core/semantic-loop-check.d.ts +58 -0
- package/dist/core/semantic-loop-check.js +103 -0
- package/dist/core/semantic-loop-check.js.map +1 -0
- package/dist/core/session-compaction.d.ts +23 -0
- package/dist/core/session-compaction.js +54 -0
- package/dist/core/session-compaction.js.map +1 -0
- package/dist/core/session-export.d.ts +97 -0
- package/dist/core/session-export.js +368 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-history.d.ts +160 -0
- package/dist/core/session-history.js +467 -0
- package/dist/core/session-history.js.map +1 -0
- package/dist/core/session-manager.d.ts +512 -0
- package/dist/core/session-manager.js +1370 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/session-preview.d.ts +12 -0
- package/dist/core/session-preview.js +58 -0
- package/dist/core/session-preview.js.map +1 -0
- package/dist/core/session-storage.d.ts +78 -0
- package/dist/core/session-storage.js +659 -0
- package/dist/core/session-storage.js.map +1 -0
- package/dist/core/session-summary-index.d.ts +51 -0
- package/dist/core/session-summary-index.js +192 -0
- package/dist/core/session-summary-index.js.map +1 -0
- package/dist/core/settings-manager.d.ts +113 -0
- package/dist/core/settings-manager.js +281 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/shared-checkout-guard.d.ts +78 -0
- package/dist/core/shared-checkout-guard.js +219 -0
- package/dist/core/shared-checkout-guard.js.map +1 -0
- package/dist/core/shell-path.d.ts +13 -0
- package/dist/core/shell-path.js +175 -0
- package/dist/core/shell-path.js.map +1 -0
- package/dist/core/shell-threats-popular-packages.d.ts +11 -0
- package/dist/core/shell-threats-popular-packages.js +675 -0
- package/dist/core/shell-threats-popular-packages.js.map +1 -0
- package/dist/core/shell-threats.d.ts +21 -0
- package/dist/core/shell-threats.js +235 -0
- package/dist/core/shell-threats.js.map +1 -0
- package/dist/core/shell.d.ts +54 -0
- package/dist/core/shell.js +99 -0
- package/dist/core/shell.js.map +1 -0
- package/dist/core/shutdown.d.ts +70 -0
- package/dist/core/shutdown.js +144 -0
- package/dist/core/shutdown.js.map +1 -0
- package/dist/core/skill-scan.d.ts +112 -0
- package/dist/core/skill-scan.js +781 -0
- package/dist/core/skill-scan.js.map +1 -0
- package/dist/core/skills.d.ts +80 -0
- package/dist/core/skills.js +270 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +58 -0
- package/dist/core/slash-commands.js +242 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/steering.d.ts +47 -0
- package/dist/core/steering.js +65 -0
- package/dist/core/steering.js.map +1 -0
- package/dist/core/steroids.d.ts +66 -0
- package/dist/core/steroids.js +243 -0
- package/dist/core/steroids.js.map +1 -0
- package/dist/core/stream-diag-level.d.ts +3 -0
- package/dist/core/stream-diag-level.js +24 -0
- package/dist/core/stream-diag-level.js.map +1 -0
- package/dist/core/stream-rules.d.ts +30 -0
- package/dist/core/stream-rules.js +151 -0
- package/dist/core/stream-rules.js.map +1 -0
- package/dist/core/subagent-manager.d.ts +242 -0
- package/dist/core/subagent-manager.js +1075 -0
- package/dist/core/subagent-manager.js.map +1 -0
- package/dist/core/subagent-policy.d.ts +9 -0
- package/dist/core/subagent-policy.js +41 -0
- package/dist/core/subagent-policy.js.map +1 -0
- package/dist/core/subagent-receipt.d.ts +54 -0
- package/dist/core/subagent-receipt.js +274 -0
- package/dist/core/subagent-receipt.js.map +1 -0
- package/dist/core/subagent-store.d.ts +41 -0
- package/dist/core/subagent-store.js +284 -0
- package/dist/core/subagent-store.js.map +1 -0
- package/dist/core/subagent-turn-record.d.ts +18 -0
- package/dist/core/subagent-turn-record.js +82 -0
- package/dist/core/subagent-turn-record.js.map +1 -0
- package/dist/core/tasks-store.d.ts +31 -0
- package/dist/core/tasks-store.js +97 -0
- package/dist/core/tasks-store.js.map +1 -0
- package/dist/core/telegram-config.d.ts +20 -0
- package/dist/core/telegram-config.js +52 -0
- package/dist/core/telegram-config.js.map +1 -0
- package/dist/core/telegram.d.ts +114 -0
- package/dist/core/telegram.js +275 -0
- package/dist/core/telegram.js.map +1 -0
- package/dist/core/temp-paths.d.ts +5 -0
- package/dist/core/temp-paths.js +50 -0
- package/dist/core/temp-paths.js.map +1 -0
- package/dist/core/test-impact.d.ts +73 -0
- package/dist/core/test-impact.js +467 -0
- package/dist/core/test-impact.js.map +1 -0
- package/dist/core/threat-feed.d.ts +65 -0
- package/dist/core/threat-feed.js +334 -0
- package/dist/core/threat-feed.js.map +1 -0
- package/dist/core/trophies/catalog-more.d.ts +2 -0
- package/dist/core/trophies/catalog-more.js +837 -0
- package/dist/core/trophies/catalog-more.js.map +1 -0
- package/dist/core/trophies/catalog.d.ts +4 -0
- package/dist/core/trophies/catalog.js +649 -0
- package/dist/core/trophies/catalog.js.map +1 -0
- package/dist/core/trophies/engine.d.ts +70 -0
- package/dist/core/trophies/engine.js +347 -0
- package/dist/core/trophies/engine.js.map +1 -0
- package/dist/core/trophies/store.d.ts +17 -0
- package/dist/core/trophies/store.js +113 -0
- package/dist/core/trophies/store.js.map +1 -0
- package/dist/core/trophies/types.d.ts +87 -0
- package/dist/core/trophies/types.js +74 -0
- package/dist/core/trophies/types.js.map +1 -0
- package/dist/core/ui-adoption.d.ts +32 -0
- package/dist/core/ui-adoption.js +302 -0
- package/dist/core/ui-adoption.js.map +1 -0
- package/dist/core/ui-compatibility.d.ts +10 -0
- package/dist/core/ui-compatibility.js +51 -0
- package/dist/core/ui-compatibility.js.map +1 -0
- package/dist/core/ui-registry.d.ts +101 -0
- package/dist/core/ui-registry.js +292 -0
- package/dist/core/ui-registry.js.map +1 -0
- package/dist/core/user-shell-context.d.ts +8 -0
- package/dist/core/user-shell-context.js +12 -0
- package/dist/core/user-shell-context.js.map +1 -0
- package/dist/core/verification-evidence.d.ts +49 -0
- package/dist/core/verification-evidence.js +816 -0
- package/dist/core/verification-evidence.js.map +1 -0
- package/dist/core/verification-gate.d.ts +77 -0
- package/dist/core/verification-gate.js +504 -0
- package/dist/core/verification-gate.js.map +1 -0
- package/dist/core/verification-snapshot.d.ts +7 -0
- package/dist/core/verification-snapshot.js +109 -0
- package/dist/core/verification-snapshot.js.map +1 -0
- package/dist/core/verify-commands.d.ts +34 -0
- package/dist/core/verify-commands.js +203 -0
- package/dist/core/verify-commands.js.map +1 -0
- package/dist/core/voice-transcriber.d.ts +32 -0
- package/dist/core/voice-transcriber.js +114 -0
- package/dist/core/voice-transcriber.js.map +1 -0
- package/dist/core/workspace-guard.d.ts +56 -0
- package/dist/core/workspace-guard.js +334 -0
- package/dist/core/workspace-guard.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/session.d.ts +44 -0
- package/dist/session.js +105 -0
- package/dist/session.js.map +1 -0
- package/dist/system-prompt.d.ts +104 -0
- package/dist/system-prompt.js +480 -0
- package/dist/system-prompt.js.map +1 -0
- package/dist/test-support/fake-home.d.ts +19 -0
- package/dist/test-support/fake-home.js +37 -0
- package/dist/test-support/fake-home.js.map +1 -0
- package/dist/test-support/keep-alive.d.ts +14 -0
- package/dist/test-support/keep-alive.js +17 -0
- package/dist/test-support/keep-alive.js.map +1 -0
- package/dist/test-support/slow-git.d.ts +1 -0
- package/dist/test-support/slow-git.js +21 -0
- package/dist/test-support/slow-git.js.map +1 -0
- package/dist/test-support/system-tools.d.ts +6 -0
- package/dist/test-support/system-tools.js +36 -0
- package/dist/test-support/system-tools.js.map +1 -0
- package/dist/tools/ask-user.d.ts +34 -0
- package/dist/tools/ask-user.js +99 -0
- package/dist/tools/ask-user.js.map +1 -0
- package/dist/tools/background-watch-lint.d.ts +18 -0
- package/dist/tools/background-watch-lint.js +102 -0
- package/dist/tools/background-watch-lint.js.map +1 -0
- package/dist/tools/bash-read-evidence.d.ts +23 -0
- package/dist/tools/bash-read-evidence.js +180 -0
- package/dist/tools/bash-read-evidence.js.map +1 -0
- package/dist/tools/bash.d.ts +64 -0
- package/dist/tools/bash.js +552 -0
- package/dist/tools/bash.js.map +1 -0
- package/dist/tools/browser-api.d.ts +27 -0
- package/dist/tools/browser-api.js +449 -0
- package/dist/tools/browser-api.js.map +1 -0
- package/dist/tools/browser-sandbox.d.ts +16 -0
- package/dist/tools/browser-sandbox.js +158 -0
- package/dist/tools/browser-sandbox.js.map +1 -0
- package/dist/tools/browser-session.d.ts +84 -0
- package/dist/tools/browser-session.js +304 -0
- package/dist/tools/browser-session.js.map +1 -0
- package/dist/tools/browser-snapshot.d.ts +19 -0
- package/dist/tools/browser-snapshot.js +109 -0
- package/dist/tools/browser-snapshot.js.map +1 -0
- package/dist/tools/browser.d.ts +11 -0
- package/dist/tools/browser.js +106 -0
- package/dist/tools/browser.js.map +1 -0
- package/dist/tools/checklist.d.ts +49 -0
- package/dist/tools/checklist.js +154 -0
- package/dist/tools/checklist.js.map +1 -0
- package/dist/tools/compress.d.ts +56 -0
- package/dist/tools/compress.js +226 -0
- package/dist/tools/compress.js.map +1 -0
- package/dist/tools/debug.d.ts +54 -0
- package/dist/tools/debug.js +230 -0
- package/dist/tools/debug.js.map +1 -0
- package/dist/tools/document-text.d.ts +6 -0
- package/dist/tools/document-text.js +154 -0
- package/dist/tools/document-text.js.map +1 -0
- package/dist/tools/edit-diff.d.ts +123 -0
- package/dist/tools/edit-diff.js +476 -0
- package/dist/tools/edit-diff.js.map +1 -0
- package/dist/tools/edit-targets.d.ts +10 -0
- package/dist/tools/edit-targets.js +31 -0
- package/dist/tools/edit-targets.js.map +1 -0
- package/dist/tools/edit.d.ts +38 -0
- package/dist/tools/edit.js +695 -0
- package/dist/tools/edit.js.map +1 -0
- package/dist/tools/enter-plan.d.ts +7 -0
- package/dist/tools/enter-plan.js +20 -0
- package/dist/tools/enter-plan.js.map +1 -0
- package/dist/tools/exit-plan.d.ts +7 -0
- package/dist/tools/exit-plan.js +51 -0
- package/dist/tools/exit-plan.js.map +1 -0
- package/dist/tools/find.d.ts +17 -0
- package/dist/tools/find.js +100 -0
- package/dist/tools/find.js.map +1 -0
- package/dist/tools/generate-image.d.ts +83 -0
- package/dist/tools/generate-image.js +625 -0
- package/dist/tools/generate-image.js.map +1 -0
- package/dist/tools/grep-scan.d.ts +96 -0
- package/dist/tools/grep-scan.js +283 -0
- package/dist/tools/grep-scan.js.map +1 -0
- package/dist/tools/grep.d.ts +48 -0
- package/dist/tools/grep.js +1013 -0
- package/dist/tools/grep.js.map +1 -0
- package/dist/tools/html-extract.d.ts +57 -0
- package/dist/tools/html-extract.js +130 -0
- package/dist/tools/html-extract.js.map +1 -0
- package/dist/tools/index.d.ts +198 -0
- package/dist/tools/index.js +216 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/live-preview.d.ts +23 -0
- package/dist/tools/live-preview.js +41 -0
- package/dist/tools/live-preview.js.map +1 -0
- package/dist/tools/ls.d.ts +9 -0
- package/dist/tools/ls.js +59 -0
- package/dist/tools/ls.js.map +1 -0
- package/dist/tools/operations.d.ts +86 -0
- package/dist/tools/operations.js +117 -0
- package/dist/tools/operations.js.map +1 -0
- package/dist/tools/overflow.d.ts +17 -0
- package/dist/tools/overflow.js +68 -0
- package/dist/tools/overflow.js.map +1 -0
- package/dist/tools/path-utils.d.ts +30 -0
- package/dist/tools/path-utils.js +74 -0
- package/dist/tools/path-utils.js.map +1 -0
- package/dist/tools/pdf-extract.d.ts +17 -0
- package/dist/tools/pdf-extract.js +43 -0
- package/dist/tools/pdf-extract.js.map +1 -0
- package/dist/tools/prompt-hints.d.ts +46 -0
- package/dist/tools/prompt-hints.js +171 -0
- package/dist/tools/prompt-hints.js.map +1 -0
- package/dist/tools/read-only-bash.d.ts +31 -0
- package/dist/tools/read-only-bash.js +338 -0
- package/dist/tools/read-only-bash.js.map +1 -0
- package/dist/tools/read-tracker.d.ts +43 -0
- package/dist/tools/read-tracker.js +120 -0
- package/dist/tools/read-tracker.js.map +1 -0
- package/dist/tools/read.d.ts +18 -0
- package/dist/tools/read.js +316 -0
- package/dist/tools/read.js.map +1 -0
- package/dist/tools/redaction-guard.d.ts +10 -0
- package/dist/tools/redaction-guard.js +55 -0
- package/dist/tools/redaction-guard.js.map +1 -0
- package/dist/tools/routine-output.d.ts +39 -0
- package/dist/tools/routine-output.js +281 -0
- package/dist/tools/routine-output.js.map +1 -0
- package/dist/tools/safe-env.d.ts +1 -0
- package/dist/tools/safe-env.js +79 -0
- package/dist/tools/safe-env.js.map +1 -0
- package/dist/tools/session-stats.d.ts +26 -0
- package/dist/tools/session-stats.js +51 -0
- package/dist/tools/session-stats.js.map +1 -0
- package/dist/tools/side-web-search.d.ts +34 -0
- package/dist/tools/side-web-search.js +146 -0
- package/dist/tools/side-web-search.js.map +1 -0
- package/dist/tools/skill.d.ts +12 -0
- package/dist/tools/skill.js +94 -0
- package/dist/tools/skill.js.map +1 -0
- package/dist/tools/source-path.d.ts +8 -0
- package/dist/tools/source-path.js +135 -0
- package/dist/tools/source-path.js.map +1 -0
- package/dist/tools/steroids.d.ts +44 -0
- package/dist/tools/steroids.js +356 -0
- package/dist/tools/steroids.js.map +1 -0
- package/dist/tools/subagent-control.d.ts +5 -0
- package/dist/tools/subagent-control.js +211 -0
- package/dist/tools/subagent-control.js.map +1 -0
- package/dist/tools/subagent-shared.d.ts +115 -0
- package/dist/tools/subagent-shared.js +182 -0
- package/dist/tools/subagent-shared.js.map +1 -0
- package/dist/tools/subagent.d.ts +39 -0
- package/dist/tools/subagent.js +412 -0
- package/dist/tools/subagent.js.map +1 -0
- package/dist/tools/task-output.d.ts +10 -0
- package/dist/tools/task-output.js +74 -0
- package/dist/tools/task-output.js.map +1 -0
- package/dist/tools/task-send.d.ts +11 -0
- package/dist/tools/task-send.js +36 -0
- package/dist/tools/task-send.js.map +1 -0
- package/dist/tools/task-stop.d.ts +8 -0
- package/dist/tools/task-stop.js +15 -0
- package/dist/tools/task-stop.js.map +1 -0
- package/dist/tools/tasks.d.ts +15 -0
- package/dist/tools/tasks.js +94 -0
- package/dist/tools/tasks.js.map +1 -0
- package/dist/tools/tool-search.d.ts +26 -0
- package/dist/tools/tool-search.js +81 -0
- package/dist/tools/tool-search.js.map +1 -0
- package/dist/tools/tool-tiers.d.ts +65 -0
- package/dist/tools/tool-tiers.js +121 -0
- package/dist/tools/tool-tiers.js.map +1 -0
- package/dist/tools/truncate.d.ts +39 -0
- package/dist/tools/truncate.js +242 -0
- package/dist/tools/truncate.js.map +1 -0
- package/dist/tools/ui-adopt.d.ts +16 -0
- package/dist/tools/ui-adopt.js +66 -0
- package/dist/tools/ui-adopt.js.map +1 -0
- package/dist/tools/ui-registry.d.ts +15 -0
- package/dist/tools/ui-registry.js +39 -0
- package/dist/tools/ui-registry.js.map +1 -0
- package/dist/tools/verification-review.d.ts +2 -0
- package/dist/tools/verification-review.js +41 -0
- package/dist/tools/verification-review.js.map +1 -0
- package/dist/tools/web-fetch.d.ts +52 -0
- package/dist/tools/web-fetch.js +986 -0
- package/dist/tools/web-fetch.js.map +1 -0
- package/dist/tools/web-search.d.ts +35 -0
- package/dist/tools/web-search.js +926 -0
- package/dist/tools/web-search.js.map +1 -0
- package/dist/tools/write.d.ts +16 -0
- package/dist/tools/write.js +196 -0
- package/dist/tools/write.js.map +1 -0
- package/dist/types.d.ts +44 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/commit-message.d.ts +25 -0
- package/dist/utils/commit-message.js +72 -0
- package/dist/utils/commit-message.js.map +1 -0
- package/dist/utils/git.d.ts +102 -0
- package/dist/utils/git.js +325 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/github-ci.d.ts +9 -0
- package/dist/utils/github-ci.js +138 -0
- package/dist/utils/github-ci.js.map +1 -0
- package/dist/utils/github.d.ts +19 -0
- package/dist/utils/github.js +67 -0
- package/dist/utils/github.js.map +1 -0
- package/dist/utils/image.d.ts +166 -0
- package/dist/utils/image.js +673 -0
- package/dist/utils/image.js.map +1 -0
- package/dist/utils/open-browser.d.ts +13 -0
- package/dist/utils/open-browser.js +31 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/plan-steps.d.ts +90 -0
- package/dist/utils/plan-steps.js +209 -0
- package/dist/utils/plan-steps.js.map +1 -0
- package/dist/utils/process.d.ts +48 -0
- package/dist/utils/process.js +175 -0
- package/dist/utils/process.js.map +1 -0
- package/dist/utils/prompt-enhancer.d.ts +34 -0
- package/dist/utils/prompt-enhancer.js +178 -0
- package/dist/utils/prompt-enhancer.js.map +1 -0
- package/dist/utils/text.d.ts +61 -0
- package/dist/utils/text.js +68 -0
- package/dist/utils/text.js.map +1 -0
- package/package.json +87 -3
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# Full Review Protocol
|
|
2
|
+
|
|
3
|
+
The flow for "is this safe to ship", a hardening pass, or a requested audit. **Default: run it yourself, in the main thread.** Fan out only when SKILL.md's Scaling section says so (more than one deployable, or more ledger rows than you can read in full); see "Fan-out variant" below. For inline work, do not run this: apply the control and move on.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
- Ground rules (evidence bar, running code, how a review ends)
|
|
8
|
+
- Phase 1 Recon
|
|
9
|
+
- Phase 2 Plan the audit (coverage ledger)
|
|
10
|
+
- Fan-out variant
|
|
11
|
+
- Phase 3 Audits (hunting depth, candidate gate)
|
|
12
|
+
- Phase 3b Coverage gap pass
|
|
13
|
+
- Phase 4 False-positive filter (needs validation, exclusions)
|
|
14
|
+
- Phase 5 Report (template, writing for non-specialists)
|
|
15
|
+
- Phase 6 Ask before fixing
|
|
16
|
+
- Standards mapping
|
|
17
|
+
|
|
18
|
+
## Ground rules
|
|
19
|
+
|
|
20
|
+
**Every phase is authorized defensive review for the code owner.** The deliverable is a remediation report. No exploit code, no payloads, no attack tooling, at any phase. Describe risk at the data-flow level: where untrusted data enters, what it reaches, why it is fixable.
|
|
21
|
+
|
|
22
|
+
**Confidence bar: report only findings at ≥0.8 confidence with a concrete data-flow path.** Missing a theoretical issue is cheaper than burying a real one in noise. A real path whose deciding fact lives outside the repo is not dropped for low confidence: it goes to **Needs validation** (Phase 4).
|
|
23
|
+
|
|
24
|
+
**This protocol is stack-agnostic. Recon drives it.** Do not assume the language, the deploy target, or that an AI layer exists. Read first, decide second.
|
|
25
|
+
|
|
26
|
+
**Running code.** In the user's own project, running its tests or a small local check with dummy users and data is fine and gives `RUNTIME` evidence. For code the user did not write (a cloned third-party repo, a vendored dependency, a stranger's pull request), do not run its install scripts, builds, tests, hooks or binaries unless they are sandboxed with no network, no credentials, and writes limited to a scratch directory; otherwise stay static and put runtime questions under Needs validation. Never probe a deployed system, another person's data, or a paid API.
|
|
27
|
+
|
|
28
|
+
**How a review ends.** Exactly one of two ways: the Phase 5 report with every ledger row closed, or the report marked `Status: incomplete — <reason>` with the open rows listed under Not checked. Never stop mid-phase without saying so.
|
|
29
|
+
|
|
30
|
+
## Phase 1 — Recon
|
|
31
|
+
|
|
32
|
+
Work the **four lenses** below yourself, in order. Batch the reads and greps, since they are independent. **No vulnerabilities are flagged in this phase**: recon describes, it does not judge.
|
|
33
|
+
|
|
34
|
+
**Lens A — Stack & deployment.** Manifests, lockfiles, CI/CD configs, Dockerfiles, IaC, deploy scripts, store metadata. Produce: languages, frameworks, runtimes; deploy target (browser / server / CLI / desktop / mobile / embedded / serverless / container / contract / firmware / ML pipeline / library / SaaS / self-hosted); how it ships (registry, app store, binary, image, chart); where it runs, and whether it is multi-tenant; any CDN, proxy or edge layer in front of it.
|
|
35
|
+
|
|
36
|
+
**Lens B — Trust boundaries & sources.** Entry-point code: route handlers, server actions, argv/stdin parsing, env reads, queue consumers, cron and background jobs, WebSocket and IPC receivers, deep links and URL schemes, file and archive readers, importers, deserializers, plugin and model loaders, MCP and tool handlers, webhooks and payment callbacks. Produce a **sources table**: location (`file:line`), input shape, and who controls it: anonymous, authenticated user, another tenant, admin, another service, build-time, local user, physical.
|
|
37
|
+
|
|
38
|
+
**Lens C — Sinks.** Dangerous operations. Produce a **sinks table** with `file:line` and type: shell exec, SQL/NoSQL/LDAP/XPath, eval/Function/exec/pickle/yaml.load/Marshal/ObjectInputStream, file write, dynamic require/import, network egress, auth decisions, secret reads, balance and entitlement changes, native deserializers, contract external calls, privileged setters, child process spawn.
|
|
39
|
+
|
|
40
|
+
**Lens D — Assets & existing controls.** What must be protected, and what already protects it. Produce an **assets table** (credentials and token stores, PII stores, balances and entitlements, signing and update keys, CI secrets, model API keys, on-chain funds, session state, MCP configs, license keys) **plus a controls table**: the auth middleware, the ORM, RLS policies, CSP, sandbox, escaping layer, validation schema, webhook verifier. Also list the **derived copies** of user data (search indexes, exports, caches, analytics, logs) so Phase 3 checks them. The controls table is what stops Phase 3 from reporting forty things the framework already handles.
|
|
41
|
+
|
|
42
|
+
**Then synthesize:**
|
|
43
|
+
|
|
44
|
+
1. Assemble the four tables.
|
|
45
|
+
2. Write the **threat model**, specific to this project. Who realistically targets it, for what, and through which surface? Ground it in `threat-landscape.md`, but name concrete actors and objectives for *this* codebase: supply-chain risk to downstream users of a library; cross-tenant abuse on a SaaS; free credits on a paid AI app; a malicious repository opened by a developer tool; a hostile counterparty on a contract; a physical attacker with the device.
|
|
46
|
+
3. Note gaps recon flagged for a deeper look.
|
|
47
|
+
4. Count deployables (separately built or shipped units: web app, API, mobile app, worker, CLI, contract, infra repo). This decides Scaling.
|
|
48
|
+
|
|
49
|
+
## Phase 2 — Plan the audit
|
|
50
|
+
|
|
51
|
+
From recon, choose which audits apply. **Skip audits with no entry surface.** A static site gets no SQL audit. Firmware in Rust gets no prompt-injection audit. An ML pipeline gets deserialization. A published library weights supply chain heavily. What each audit looks for is its section in `attack-classes.md`, under the same name.
|
|
52
|
+
|
|
53
|
+
| Audit | Fires when |
|
|
54
|
+
|---|---|
|
|
55
|
+
| **Access control and tenant isolation** | any per-user, per-tenant, or role-gated data |
|
|
56
|
+
| **Data lifecycle and derived copies** | user data copied into search, exports, caches, logs or model context; deletion or restore; removable members |
|
|
57
|
+
| **Business logic, money and races** | payments, credits, quotas, coupons, invites, one-time tokens, multi-step workflows |
|
|
58
|
+
| **Webhooks and inbound integrations** | webhooks, payment or OAuth callbacks, events from another service |
|
|
59
|
+
| **Injection** | untrusted input reaches an interpreter |
|
|
60
|
+
| **Authentication, sessions and recovery** | any login, session, token, OAuth/SSO, MFA or reset logic |
|
|
61
|
+
| **HTTP edge, caching and browser** | HTML rendering, a CDN or proxy in front, cookie auth |
|
|
62
|
+
| **Secrets and exposure** | any credential exists |
|
|
63
|
+
| **Supply chain** | any dependency manager or external code |
|
|
64
|
+
| **CI/CD and release integrity** | any workflow, release or update pipeline |
|
|
65
|
+
| **SSRF, paths and files** | any URL, path, archive or upload built from input |
|
|
66
|
+
| **Cloud and infrastructure** | any IaC, container, or cloud SDK |
|
|
67
|
+
| **Cryptography** | any hashing, signing, encryption or random token |
|
|
68
|
+
| **Resource abuse and denial of wallet** | expensive, paid or model-calling work reachable by low-trust callers |
|
|
69
|
+
| **Agent surface** | recon found LLM, agent, MCP or tool-calling code |
|
|
70
|
+
| **Desktop, mobile and local IPC** | recon found an app, helper, updater, local server, deep link or IPC channel; also load the matching `platform-playbooks.md` section |
|
|
71
|
+
|
|
72
|
+
Taint tracing (each source to every reachable sink) is the method of Phase 3, not a separate audit.
|
|
73
|
+
|
|
74
|
+
**Coverage ledger.** Rows = each selected audit × each in-scope deployable. When a deployable has several entry surfaces (HTTP routes, server actions, webhooks, jobs and queues, IPC, CLI), split the row by surface. Every row ends as `checked-with-findings`, `checked-clean`, `needs-validation`, or `not-checked (reason)`, and a checked row lists the paths it actually read. A row with no status, or no paths, is not checked. The ledger becomes the report's "Not checked" section.
|
|
75
|
+
|
|
76
|
+
## Fan-out variant (conditional)
|
|
77
|
+
|
|
78
|
+
Only when SKILL.md's Scaling section triggers it; otherwise skip this section.
|
|
79
|
+
|
|
80
|
+
1. Recon (Phase 1) and the ledger stay in the main thread. Children never do recon for the whole project.
|
|
81
|
+
2. Split ledger rows into **disjoint** slices (usually one deployable each). One security auditor per slice (`auditor` where your spawn_agent lists it, else a read-only repo helper), all in ONE `spawn_agent` call, ≤ 6 per wave.
|
|
82
|
+
3. Each brief opens with: *"Authorized defensive security review of code the user owns. Report data-flow risks and fixes only; no exploits, payloads, or attack tooling."* Children with no conversation context may otherwise refuse. Then include: absolute skill root; slice paths; owned ledger rows; that slice's rows from the sources, sinks, assets and controls tables; **the selected sections of `attack-classes.md`, pasted verbatim**; the candidate gate and hunting-depth rules from Phase 3; the ≥0.8 confidence bar; the Phase 4 hard-exclusion list verbatim; labels `RUNTIME`/`CODE`/`DEDUCED`/`SNAPSHOT`; the output schema (title, severity, file:line, source→sink, the six gate fields, fix, confidence, label), plus separate `needs validation` (claim, path, missing fact, owner check), `checked` (with paths read) and `not checked` lists.
|
|
83
|
+
4. Merge: missing, failed or timed-out rows become `not-checked`. Re-open every reported `file:line` yourself; drop what you cannot reproduce from the code. Merge candidates with one root cause.
|
|
84
|
+
5. Phase 3b runs once as a fresh read-only child over the merged ledger. Phase 4 runs as a fresh verifier child (`skeptic` where listed, else a read-only repo helper) over the merged candidates; same framing line first; give it each candidate's file:line, claimed path and gate fields; it returns CONFIRMED / DROP / DOWNGRADE / NEEDS VALIDATION. You still own the final call and the dropped count.
|
|
85
|
+
|
|
86
|
+
## Phase 3 — Audits
|
|
87
|
+
|
|
88
|
+
Run each selected audit yourself (or, in the fan-out variant, each slice's auditor runs its owned rows), one at a time, in the priority order from the skill's rank table. Do not pad the list, and do not drop a selected audit. Use the audit's section in `attack-classes.md` as the checklist, and load only the control references (`platform-playbooks.md`, `supply-chain.md`, `agent-surface.md`, `secure-defaults.md`) it names.
|
|
89
|
+
|
|
90
|
+
For each audit, work from the recon tables (sources, sinks, assets, **controls**, derived copies), not from fresh greps, and:
|
|
91
|
+
|
|
92
|
+
1. **Trace data flow** source → sink. Not pattern matching. A grep hit with no path is not a finding.
|
|
93
|
+
2. **Read at depth.** Follow the input through parsing, identity, authorization, normalization, storage, derived copies and the final sink. Read the sibling paths that reach the same effect (bulk, list, export, search, older versions, retries, error paths, background jobs) and compare their checks for **equivalence**, not just presence. Compare what one component guarantees with what the next one assumes.
|
|
94
|
+
3. **Try the edges the interface accepts:** missing, empty, zero, negative, huge, duplicate, mixed encoding, stale or revoked, concurrent, out of order, partially failed.
|
|
95
|
+
4. Apply the **untrusted-input test**: is this input reachable by an untrusted party, or is it a constant, a build-time value, or operator-controlled configuration?
|
|
96
|
+
5. Check the **controls table** before flagging: does the ORM parameterize, does the template engine escape, does middleware already enforce this, does the type system make it unreachable?
|
|
97
|
+
6. Pass the **candidate gate** (below), then describe a concrete **risk scenario** at data-flow level: what input arrives, how the system processes it, what the attacker ends up holding. No payloads. If the steps cannot be described, it is not a finding.
|
|
98
|
+
7. Assign **confidence 0.0–1.0** and drop anything below 0.8, unless the only doubt is a fact outside the repo (Phase 4, Needs validation).
|
|
99
|
+
8. Record location, source→sink, gate fields, scenario, impact, CWE, and a concrete code-level fix at the last trusted decision point.
|
|
100
|
+
|
|
101
|
+
**Candidate gate.** A candidate names all six, or it is not a candidate:
|
|
102
|
+
|
|
103
|
+
1. the lower-trust **actor** (anonymous, another user, another tenant, a malicious repo, another local app);
|
|
104
|
+
2. the **input or action** they control;
|
|
105
|
+
3. the **control** that should stop them;
|
|
106
|
+
4. the **boundary** crossed;
|
|
107
|
+
5. the **affected** user, tenant or resource, which is not the actor's own;
|
|
108
|
+
6. the **result**: what they read, change, spend, run or keep.
|
|
109
|
+
|
|
110
|
+
Harm a user can only do to their own account, data or machine with their own authority is not a finding. One root cause reachable through several paths is one candidate, with the strongest path and the others listed; independent missing controls are separate candidates.
|
|
111
|
+
|
|
112
|
+
## Phase 3b — Coverage gap pass
|
|
113
|
+
|
|
114
|
+
Once, before filtering, check the ledger for gaps rather than trusting memory:
|
|
115
|
+
|
|
116
|
+
- entry points in the sources table that no row covered;
|
|
117
|
+
- sibling paths of a traced path (bulk, export, search, jobs, older versions) left unread;
|
|
118
|
+
- derived copies from Lens D that no row checked;
|
|
119
|
+
- a selected audit with no row, or a row closed without paths;
|
|
120
|
+
- earlier findings or needs-validation items (from a prior report or the project's Checklist record) that nothing re-checked.
|
|
121
|
+
|
|
122
|
+
Run the gaps you find, then mark anything still open `not-checked (reason)`. One pass, not a loop. In the fan-out variant a fresh read-only child does this pass.
|
|
123
|
+
|
|
124
|
+
## Phase 4 — False-positive filter
|
|
125
|
+
|
|
126
|
+
Switch sides. For each candidate, start from "this is a false positive" and try to kill it: re-read the actual code path (not your notes), hunt for the control you missed (middleware, ORM parameterization, framework escaping, a type that makes the path unreachable), re-check every gate field, and check whether the input is genuinely attacker-reachable rather than a constant or operator config. Each candidate ends as one of:
|
|
127
|
+
|
|
128
|
+
- **Keep**: the path survives; severity never exceeds what the path demonstrates.
|
|
129
|
+
- **Drop**: the code refutes it, or an exclusion below applies. Count it.
|
|
130
|
+
- **Downgrade**: real, but weaker than claimed.
|
|
131
|
+
- **Needs validation**: the path is real in the code, but the deciding fact lives outside the repo: a dashboard setting (RLS state, bucket policy), proxy or CDN configuration, provider behaviour, production environment, store or OS policy. It gets no severity and is not counted as a finding. Record the exact missing fact and a safe check the owner can run. Never use it for weak evidence: if the code refutes the path, drop it.
|
|
132
|
+
|
|
133
|
+
Only findings that survive your own attempt to disprove them get reported. In the fan-out variant, or for a pre-ship verdict with Critical/High findings, run this pass as a verifier child (see above) instead of only yourself.
|
|
134
|
+
|
|
135
|
+
**Hard exclusions — do not report these, even when technically real:**
|
|
136
|
+
|
|
137
|
+
- Denial of service, rate limiting, or memory exhaustion without a clear amplification primitive (exception: a missing rate limit on login, signup, password reset, or a paid/LLM endpoint is reportable)
|
|
138
|
+
- Theoretical races with no demonstrable trigger window (exception: a check-then-act on money, credits, quotas, coupons, invites or one-time tokens is reportable; parallel requests are free)
|
|
139
|
+
- Self-impact: a user harming only their own account, data or machine with their own authority
|
|
140
|
+
- Regex denial of service where the pattern is not attacker-supplied
|
|
141
|
+
- Log injection or log spoofing (cosmetic)
|
|
142
|
+
- SSRF where the URL is a constant or build-time string
|
|
143
|
+
- Environment-variable trust (the environment is operator-controlled by definition)
|
|
144
|
+
- Client-side validation "bypass" on an endpoint that revalidates server-side
|
|
145
|
+
- Framework-escaped rendering paths: only the explicit unsafe sinks (`dangerouslySetInnerHTML`, `v-html`, `bypassSecurityTrust*`, raw template filters) count
|
|
146
|
+
- Command injection in a shell script with no untrusted input path
|
|
147
|
+
- Findings in documentation, examples, or test fixtures
|
|
148
|
+
- Dev-only tooling that does not ship to users and does not process untrusted repositories
|
|
149
|
+
- Missing hardening headers or "could be improved" preferences with no demonstrated path
|
|
150
|
+
- Secrets that are obviously test fixtures or public sample keys (but say you saw them and confirmed they are not live)
|
|
151
|
+
|
|
152
|
+
## Phase 5 — Report
|
|
153
|
+
|
|
154
|
+
One report. No code edits in this phase.
|
|
155
|
+
|
|
156
|
+
**Write it for someone who has never read a CVE.**
|
|
157
|
+
|
|
158
|
+
- Lead with what an attacker gets, in plain words: "anyone who knows a user's ID can read their invoices", not "IDOR in the invoice controller".
|
|
159
|
+
- Name the file and line, then the fix, then the reason, in that order.
|
|
160
|
+
- Give the base rate honestly. Fear is not a lever; a scared user makes worse decisions and often ships nothing.
|
|
161
|
+
- Keep standards jargon (CWE, OWASP IDs) in a labelled field, not in the sentence that has to be understood.
|
|
162
|
+
- Fill "Not checked" honestly: a review that silently skips the mobile client, admin panel, or infra repo reads as complete coverage.
|
|
163
|
+
|
|
164
|
+
```
|
|
165
|
+
# Bulletproof Report — [project]
|
|
166
|
+
Date: [today] Scope: [what was reviewed] Not reviewed: [what was not]
|
|
167
|
+
Status: complete | incomplete — [reason]
|
|
168
|
+
|
|
169
|
+
## Exposure summary
|
|
170
|
+
[One paragraph: realistic exposure profile, where untrusted data enters, what an attacker would be after.]
|
|
171
|
+
|
|
172
|
+
## Threat model
|
|
173
|
+
[2–4 concrete scenarios from recon, each with actor, objective, and entry surface.]
|
|
174
|
+
|
|
175
|
+
## Sources / Sinks / Assets / Existing controls
|
|
176
|
+
[Compact tables from recon.]
|
|
177
|
+
|
|
178
|
+
## Risk matrix
|
|
179
|
+
| Severity | Count | Definition |
|
|
180
|
+
|---|---|---|
|
|
181
|
+
| Critical | N | RCE, full auth bypass, credential or key theft, cross-user data access, fund loss, shipped-artifact compromise |
|
|
182
|
+
| High | N | privilege escalation, cross-tenant access with auth, live secret exposure, unauthenticated admin surface, update-channel integrity |
|
|
183
|
+
| Medium | N | scoped disclosure, weakened crypto, partial bypass behind another control |
|
|
184
|
+
|
|
185
|
+
## Findings
|
|
186
|
+
|
|
187
|
+
### [BP-001] <title> — Critical
|
|
188
|
+
- Location: path:line
|
|
189
|
+
- Category: <slug> CWE: CWE-XXX Confidence: 0.95 Evidence: RUNTIME | CODE | DEDUCED | SNAPSHOT
|
|
190
|
+
- Reachable by: <anonymous internet / authenticated user / other tenant / local user / malicious repo / build system>
|
|
191
|
+
- Boundary: <control that should stop it> → <whose data or resource is affected>
|
|
192
|
+
- Source → Sink: <`POST /api/invoice` `body.id` → `db.query` string concat>
|
|
193
|
+
- Risk scenario (data-flow level, no payloads):
|
|
194
|
+
1. Untrusted input of <shape> reaches <source>
|
|
195
|
+
2. It is processed as <what>, with <no/ineffective> validation at <where>
|
|
196
|
+
3. Result: <what the attacker holds>
|
|
197
|
+
- Also reachable via: <sibling paths with the same root cause, if any>
|
|
198
|
+
- Impact: <blast radius: whose data, how many, what spreads>
|
|
199
|
+
- Fix: <concrete, code-level, at the chokepoint>
|
|
200
|
+
- Verify: <the test or command that proves the fix>
|
|
201
|
+
|
|
202
|
+
[…ordered Critical → High → Medium…]
|
|
203
|
+
|
|
204
|
+
## Needs validation
|
|
205
|
+
[No severity. For each: the claim in plain words, the code path (path:line), the exact fact the repo cannot show, and a safe check the owner can run (a dashboard setting, a header on a real response, a console command).]
|
|
206
|
+
|
|
207
|
+
## What was not flagged
|
|
208
|
+
[Which audits returned zero findings, how many candidates the filter dropped and why. Show the work, not only the survivors.]
|
|
209
|
+
|
|
210
|
+
## Not checked
|
|
211
|
+
[Ledger rows not checked, with reasons; surfaces, repos, or components outside this pass.]
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Phase 6 — Ask before fixing
|
|
215
|
+
|
|
216
|
+
After the report, ask which findings to fix — all Critical and High, specific IDs, a category, or none. **Do not start fixing until the user picks.**
|
|
217
|
+
|
|
218
|
+
When the user selects, do not fix directly in one pass. Add one task per finding (or per tightly coupled group) with the `tasks` tool, ordered by severity, exploitability and dependency. Each task needs a short title and a standalone prompt containing: the finding ID, the risk scenario, the affected files and anchors, the concrete remediation, an instruction to check security-sensitive implementation details against authoritative documentation before editing, the project's verification commands, and an instruction to re-check the finished fix against authoritative documentation before completing. Then tell the user where to find the task list, and do not begin executing unless they say so.
|
|
219
|
+
|
|
220
|
+
If a Critical finding involves an exposed live credential, do not wait for the fix queue: tell the user to rotate it now, in the first line of the report.
|
|
221
|
+
|
|
222
|
+
## Standards mapping
|
|
223
|
+
|
|
224
|
+
Cite these in the `Category`/`CWE` fields, not in prose. Re-verified 27 Nov 2026; re-verify before quoting as current.
|
|
225
|
+
|
|
226
|
+
- **OWASP Top 10:2025** (final) — A01 Broken Access Control (SSRF folded in), A02 Security Misconfiguration, A03 Software Supply Chain Failures, A04 Cryptographic Failures, A05 Injection, A06 Insecure Design, A07 Authentication Failures, A08 Software or Data Integrity Failures, A09 Security Logging & Alerting Failures, A10 Mishandling of Exceptional Conditions. Note the renumbering: A03 is supply chain now, not injection.
|
|
227
|
+
- **CWE Top 25 (2025 edition)**, top ten in order — CWE-79 XSS, CWE-89 SQLi, CWE-352 CSRF, CWE-862 Missing Authorization, CWE-787 Out-of-bounds Write, CWE-22 Path Traversal, CWE-416 Use After Free, CWE-125 Out-of-bounds Read, CWE-78 OS Command Injection, CWE-94 Code Injection.
|
|
228
|
+
- **OWASP API Security Top 10 (2023, still current)** — API1 BOLA, API2 Broken Authentication, API3 BOPLA, API4 Unrestricted Resource Consumption, API5 Broken Function Level Authorization, API6 Unrestricted Access to Sensitive Business Flows, API7 SSRF, API8 Misconfiguration, API9 Improper Inventory Management, API10 Unsafe Consumption of APIs.
|
|
229
|
+
- **OWASP ASVS 5.0.0** (May 2025) — ~350 requirements, cumulative L1/L2/L3. Requirement IDs were renumbered from 4.x; do not cite a 4.x ID as 5.0.
|
|
230
|
+
- **OWASP Top 10 for LLM Applications 2026** — LLM01:2026 Prompt Injection … LLM10:2026 Improper Output Handling (renumbered from 2025; cite IDs with the year).
|
|
231
|
+
- **OWASP Top 10 for Agentic Applications (2026)** — ASI01 Agent Goal Hijack, ASI02 Tool Misuse and Exploitation, ASI03 Identity and Privilege Abuse, ASI04 Agentic Supply Chain Vulnerabilities, ASI05 Unexpected Code Execution, ASI06 Memory and Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation, ASI10 Rogue Agents (exact titles not re-read from OWASP; cite by ID).
|
|
232
|
+
- **OWASP MASVS v2.1.0** — eight categories (STORAGE, CRYPTO, AUTH, NETWORK, PLATFORM, CODE, RESILIENCE, PRIVACY). **There are no L1/L2 levels since v2.0.0**; cite MASTG test IDs instead.
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# Platform Playbooks
|
|
2
|
+
|
|
3
|
+
Per-target controls. Load only the sections recon says apply. Format: **control → what to check in code → why it fails in practice.**
|
|
4
|
+
|
|
5
|
+
Snapshot 3 October 2026. **[V]** verified, **[S]** snapshot-volatile, **[U]** uncertain.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Contents
|
|
10
|
+
|
|
11
|
+
- Web & API
|
|
12
|
+
- Mobile (iOS / Android)
|
|
13
|
+
- Desktop
|
|
14
|
+
- CLI & developer tooling
|
|
15
|
+
- Embedded, IoT & firmware
|
|
16
|
+
- Smart contracts & web3
|
|
17
|
+
- ML & AI pipelines
|
|
18
|
+
- Games & client-side software
|
|
19
|
+
- Language hot zones
|
|
20
|
+
|
|
21
|
+
## Web & API
|
|
22
|
+
|
|
23
|
+
The best-understood surface; the failures are still the same three.
|
|
24
|
+
|
|
25
|
+
| Control | Check | Why it fails |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| **Authorization at the data layer** | Every query filtered by the acting user/tenant, enforced in one chokepoint (policy layer, RLS, scoped repository) — not per-handler | Per-handler checks are correct on the day they are written and drift on the fifth new endpoint. Object-level authorization (BOLA/IDOR) is the top API risk and CWE-862 is top-five |
|
|
28
|
+
| **Auth not only in middleware/edge** | Framework middleware (Next.js `middleware.ts`, edge functions, route guards) may redirect, but the route handler, server action, or data layer re-checks session and ownership | CVE-2025-29927 let a single `x-middleware-subrequest` header skip Next.js middleware entirely [V]; any app whose only check lived there was open. Server actions and API routes are public endpoints regardless of which page calls them |
|
|
29
|
+
| **Parameterized queries** | No string concatenation or f-strings into SQL/NoSQL/LDAP/XPath; ORM `raw`/`literal`/`$where` calls audited individually | The ORM covers 95% and the last 5% is a report filter or a dynamic sort column |
|
|
30
|
+
| **Output encoding** | Framework escaping left on; explicit unsafe sinks (`dangerouslySetInnerHTML`, `v-html`, `bypassSecurityTrust*`, `innerHTML`, raw template filters) each justified | XSS is still rank 1 in the 2025 CWE Top 25 (then SQLi, CSRF, Missing Authorization) [V]. Modern frameworks make the safe path default and the unsafe path a one-liner |
|
|
31
|
+
| **Server-side validation** | A schema at every entry point, allowlist-shaped, rejecting unknown fields; never trust client validation | Mass assignment: the model accepts `is_admin` because the schema was permissive |
|
|
32
|
+
| **CSRF** | State-changing routes require a token or `SameSite=Lax/Strict` cookies plus origin checks; API-token auth is exempt, cookie auth is not. Pre-auth flows need it too — login, signup, password reset (login CSRF is real). Validation must reject a **missing** token, not just a wrong one | Cookie-authenticated JSON endpoints assumed safe because "it's an API"; token checks that only run when a token is present |
|
|
33
|
+
| **SSRF** | Any URL from input: allowlist hosts, resolve then validate the IP, block private and link-local ranges, disable redirects or re-validate each hop — full sweep below | Metadata endpoints on cloud hosts turn SSRF into credential theft. Folded into A01 in the 2025 Top 10 |
|
|
34
|
+
| **Open redirect** | Any redirect target from input: prefer relative paths starting `/` (reject `//` and `/\`), or map named keys to URLs server-side; if full URLs are required, parse, canonicalize to Punycode, then match the hostname against an allowlist | Raw-string checks fall to `legit.com@evil.com` (userinfo trick), `legit.com.evil.com` (attacker subdomain), protocol-relative `//evil.com`, `javascript:`/`data:` schemes, backslash and double-encoded variants, and IDN homographs. Validate the **parsed hostname**, never the string |
|
|
35
|
+
| **File upload** | Three independent checks: extension allowlist **and** magic-byte sniff **and** a parse as the claimed type. Random generated names, original discarded; stored outside the web root; served from a separate origin with `Content-Disposition: attachment` and `nosniff`; size caps server-side | Any single check falls to double extensions (`x.php.jpg`), null bytes in names, spoofed `Content-Type`, prepended magic bytes, or polyglot files. SVG is a scriptable XML document — sanitize or refuse it. Archives get zip-slip path checks per entry |
|
|
36
|
+
| **XXE** | Every XML parse of untrusted input has DTDs, external entities, and XInclude disabled at the parser. XML hides in DOCX/XLSX/PPTX (ZIP of XML), SVG, SAML, RSS, SOAP — and in JSON APIs converted to XML server-side | Several stacks still default entity resolution on: Java needs `disallow-doctype-decl`; Python should parse with `defusedxml`; .NET needs `DtdProcessing.Prohibit` and a null resolver |
|
|
37
|
+
| **Rate limits on credential paths** | Login, reset, MFA, token exchange, invite acceptance | These are the endpoints where volume converts directly to account takeover |
|
|
38
|
+
| **Webhooks** | Signature verified on the raw body before any work; a missing signature rejected; timestamp window and event-ID dedupe; the object re-fetched from the provider before granting anything | A webhook that trusts its payload is a public "mark this order paid" endpoint |
|
|
39
|
+
| **Host & forwarded headers** | Links, redirects and "is HTTPS" decisions use a configured origin; `X-Forwarded-*` honoured only from a known proxy hop | Password-reset poisoning: the victim's reset link is built with the attacker's host and mailed to the victim |
|
|
40
|
+
| **Caching of private responses** | Authenticated responses send `Cache-Control: private` or `no-store`; CDN rules bypass the cache on auth cookies or include them in the key; no "cache everything" rule over dynamic paths; framework route caching checked per route | A CDN that caches one user's page serves it to the next; cache deception requests `/account/settings.css` to make a private page look static |
|
|
41
|
+
| **Account linking** | Social or SSO identities link to an existing account only after signing in to it, or by a verified email from a provider trusted for it | Auto-linking on an unverified email lets anyone sign up as the victim |
|
|
42
|
+
| **Errors** | Generic message to the client, detail to the log; no stack traces, SQL text, or env in responses | A10:2025 is new and is exactly this: fail-open and mishandled exceptional conditions |
|
|
43
|
+
|
|
44
|
+
**Backend-as-a-service (Supabase / Firebase / PocketBase and similar) — the highest-yield indie failure** (CVE-2025-48757: 170+ generated apps shipped Supabase tables without RLS) [S]:
|
|
45
|
+
|
|
46
|
+
1. RLS enabled on **every** table holding user data, including join tables and views.
|
|
47
|
+
2. No `using (true)` policies. That is the generated default when a model is told to "add a policy" without a rule, and the dashboard still shows a green badge.
|
|
48
|
+
3. Coverage for **all four verbs** — a common shape locks `SELECT` and leaves `INSERT`/`UPDATE`/`DELETE` open.
|
|
49
|
+
4. **Service-role keys never in client code**, never in `NEXT_PUBLIC_*`/`VITE_*`/`EXPO_PUBLIC_*`. Grep the built bundle, not just the source.
|
|
50
|
+
5. `auth.uid()` compared against the row's owner column, not merely present in the expression.
|
|
51
|
+
6. Assume table names are known — generated schemas converge on `users`, `profiles`, `messages`, `orders`, `subscriptions`. The REST layer self-describes to anyone holding the public anon key.
|
|
52
|
+
|
|
53
|
+
**Verification that actually proves it:** call the endpoint as user B for user A's row and require a 403/404. One such test per protected resource is worth more than a header audit.
|
|
54
|
+
|
|
55
|
+
**SSRF, hardened** — the naive "block 127.0.0.1 and 10.x" string check is the one that gets bypassed:
|
|
56
|
+
|
|
57
|
+
1. Validate the **resolved IP** with a canonical IP parser, not the hostname string. Internal ranges are reachable as decimal (`2130706433`), octal (`0177.0.0.1`), hex, shortened (`127.1`), IPv6 loopback (`[::1]`, `[::]`), and IPv4-mapped IPv6 (`[::ffff:127.0.0.1]`) forms — canonicalization collapses all of them; a denylist of spellings never will.
|
|
58
|
+
2. **Pin the resolved IP for the actual connection** (connect to the IP, send the hostname in the Host/SNI). Resolve-validate-then-fetch re-resolves, and that second resolution is the DNS-rebinding hole. A CNAME to an internal hostname is the same trick.
|
|
59
|
+
3. Block link-local `169.254.0.0/16` and metadata hostnames (`169.254.169.254`, `metadata.google.internal`) explicitly, and enforce IMDSv2 anyway — SSRF plus legacy metadata service equals cloud credentials.
|
|
60
|
+
4. Disable redirect following, or re-run the **full** validation on every hop; a compliant external URL that 302s to an internal address is the standard bypass.
|
|
61
|
+
5. Scheme allowlist `http`/`https` only; bounded timeout and response size.
|
|
62
|
+
|
|
63
|
+
**XSS enters from more than form fields.** When auditing sinks, sweep the indirect sources too: URL query **and fragment**, request headers the app displays (Referer, User-Agent), third-party API data rendered to users, WebSocket and `postMessage` payloads (validate `event.origin`), localStorage/sessionStorage values rendered later, uploaded file names, error messages that reflect input, markdown and rich-text renderers with HTML enabled, admin log viewers, and HTML-to-PDF or email-template generators — an injection there executes in the generator's context, often server-side. Sanitize rich text with an allowlist library (DOMPurify), never a homemade regex. Trusted Types plus nonce CSP (see `secure-defaults.md`) backstop the misses.
|
|
64
|
+
|
|
65
|
+
**GraphQL, if present:** introspection off in production; server-enforced depth limit (~10) and query cost/complexity limit; cap operations per request — batching turns one HTTP request into a thousand login attempts and walks past per-request rate limits; authorization still happens per-object in resolvers, because the graph is one endpoint and route-level auth checks nothing.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Mobile (iOS / Android)
|
|
70
|
+
|
|
71
|
+
Standards [V]: **MASVS v2.1.0** (8 categories, no L1/L2 levels since v2.0.0) and **MASTG v2.0.0** (30 Jun 2026) with atomic, referenceable test IDs — cite `MASTG-TEST-####`, not chapter names. Mobile Top 10 is the **2024** edition, led by M1 Improper Credential Usage.
|
|
72
|
+
|
|
73
|
+
| Control | Check | Why it fails |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| **Credential storage** | iOS Keychain with `kSecAttrAccessibleWhenUnlockedThisDeviceOnly`; Android Keystore with `setUserAuthenticationRequired`, StrongBox where available | Defaults sync to cloud keychains and survive device backup |
|
|
76
|
+
| **RN/Flutter/Expo storage** | `AsyncStorage` holding tokens is plaintext — unencrypted SQLite on Android, plist on iOS. Use `expo-secure-store` / `react-native-keychain` | Secure stores are small-value only; store a key there and encrypt the payload separately |
|
|
77
|
+
| **Secrets in the bundle** | Grep the built bundle and `EXPO_PUBLIC_*`/`REACT_APP_*` for API keys | The JS bundle is shipped, readable, and extracted routinely |
|
|
78
|
+
| **Exported components** | `android:exported` explicit on every activity/service/receiver with an intent filter; unexported unless required | Set to `true` to silence the build error, permanently |
|
|
79
|
+
| **Intent redirection** | `getParcelableExtra(..., Intent.class)` then `startActivity` | A nested attacker-supplied intent gets launched with your app's privileges. Android 16 adds stricter opt-in resolution [S] — opt in |
|
|
80
|
+
| **Deep / app links** | `android:autoVerify="true"` plus a served `assetlinks.json`; iOS `applinks:` entitlement plus AASA as `application/json`, no redirect | Verification propagation can take days [S] — a redeploy is not an instant fix. Never treat link parameters as authenticated |
|
|
81
|
+
| **WebView bridges** | `addJavascriptInterface`, `loadDataWithBaseURL`, `setJavaScriptEnabled`; iOS `WKScriptMessageHandler` — validate `frameInfo.isMainFrame` and origin | The classic in-app RCE path; a bridge exposed to remote content is a native API for the page |
|
|
82
|
+
| **Transport** | `networkSecurityConfig` for `cleartextTrafficPermitted="true"` and `<debug-overrides>`; iOS `NSAllowsArbitraryLoads` | Domain-specific overrides silently reopen cleartext |
|
|
83
|
+
| **Pinning** | If pinned: pin an SPKI set including a backup, with documented rotation and a kill switch | Hard-pinning a leaf certificate now causes more outages than the MITM it prevents [U] |
|
|
84
|
+
| **Backup / pasteboard** | `android:allowBackup`, `dataExtractionRules`; `UIPasteboard.general` for tokens | Auto Backup exfiltrates tokens off-device by default |
|
|
85
|
+
| **Client-side gating** | Any entitlement, price, or role decided in the app | Re-decide server-side. The client binary is attacker-owned |
|
|
86
|
+
|
|
87
|
+
**Store gates** [S]: Apple requires `PrivacyInfo.xcprivacy` privacy manifests with required-reason API declarations and signed binary dependencies for listed SDKs (rejection codes in the `ITMS-9105x` family). Google Play requires new apps and updates to target Android 16 (API level 36) since 31 Aug 2026; the extension window ended 1 Nov 2026 [V]. Data-safety declarations must match real SDK behavior.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Desktop
|
|
92
|
+
|
|
93
|
+
**Electron** — two layers, and teams do only the first.
|
|
94
|
+
|
|
95
|
+
- *Renderer config:* `contextIsolation: true`, `sandbox: true`, `nodeIntegration: false`, `nodeIntegrationInWorker/InSubFrames: false`, `webSecurity: true`, `allowRunningInsecureContent: false`, `webviewTag: false`, a `setWindowOpenHandler` and a `will-navigate` allowlist, and a preload that exposes a **narrow typed API** rather than `ipcRenderer` itself.
|
|
96
|
+
- *Packaging fuses* [V], flipped at package time before signing so the OS enforces them: `RunAsNode`, `EnableNodeOptionsEnvironmentVariable`, `EnableNodeCliInspectArguments`, `GrantFileProtocolExtraPrivileges` → **false**; `EnableEmbeddedAsarIntegrityValidation`, `OnlyLoadAppFromAsar`, `EnableCookieEncryption` → **true**. Verify the packaged app, not the config file. Left on, a signed app becomes a living-off-the-land Node runtime with the app's privileges and entitlements. Tradeoff: disabling `RunAsNode` breaks `child_process.fork` — use `UtilityProcess`.
|
|
97
|
+
- Electron's own position [V]: it is not a browser, and displaying arbitrary untrusted content is a risk it is not designed to contain.
|
|
98
|
+
|
|
99
|
+
**Tauri v2** — capability-scoped, and the defaults are good until someone widens them.
|
|
100
|
+
|
|
101
|
+
- Grep `src-tauri/capabilities/*.json` for: window label **globs** (a capability granted to `app-*` is granted to every future window with that prefix — boundaries are label-based); `remote.urls` (exposes the API to remote origins; on Linux and Android an embedded iframe cannot be distinguished from the window [V]); `fs:allow-*` without a matching deny scope; `shell:allow-execute`.
|
|
102
|
+
- Every registered command is callable from every window unless a capability restricts it. Least privilege means per-window capabilities, not one default file.
|
|
103
|
+
- `"csp": null` disables Tauri's CSP injection — set a real policy.
|
|
104
|
+
- Updater signature verification cannot be disabled [V], so the residual risk is **private key custody**, not transport. The signing key lives in CI secrets, never a `.env`.
|
|
105
|
+
|
|
106
|
+
**Cross-desktop, all frameworks:**
|
|
107
|
+
|
|
108
|
+
| Control | Check | Why it fails |
|
|
109
|
+
|---|---|---|
|
|
110
|
+
| **Loopback HTTP servers** | Bind `127.0.0.1` explicitly (never `0.0.0.0`), require a per-launch bearer token, validate `Origin` and `Host` | Any local process — and, via DNS rebinding, any web page the user visits — can reach an unauthenticated loopback port |
|
|
111
|
+
| **Local IPC** | Unix socket at `0700` with peer-credential checks; Windows named pipe with an explicit DACL and `PIPE_REJECT_REMOTE_CLIENTS` | Default pipe ACLs are broader than you expect |
|
|
112
|
+
| **Caller identity** | Authorize each IPC or loopback call from the channel's identity (peer credentials, per-launch token), never from a user, profile or account field in the request | An authenticated caller asks for another user's or profile's data and gets it |
|
|
113
|
+
| **Privileged helpers** | A helper running as root or admin allowlists its operations and re-validates every argument on every call; no caller-chosen command or path | A confused deputy runs whatever the unprivileged app, or anything impersonating it, asks |
|
|
114
|
+
| **Logout & account switch** | Tokens, caches, webview storage and pending actions are cleared on logout and on switching accounts | The next account sees, or acts as, the previous one |
|
|
115
|
+
| **Deep links** | Custom schemes are first-come-first-served (Windows) or last-registered-wins (macOS); any app can claim yours | Never treat a deep-link parameter as authenticated; bind auth codes to a state/nonce you generated |
|
|
116
|
+
| **Updater** | Verify the signature **before** unpacking; pin the public key in the binary; include version and target in the signed payload | Rollback and cross-target swaps are the bugs left after signing is added. Design key rotation before you need it |
|
|
117
|
+
| **Signing** | macOS: Developer ID, `--options runtime`, `--timestamp`, `notarytool`, then `stapler staple` so offline machines verify. Every nested binary and sidecar signed individually | Developer ID certificates from the current (G2) authority last one year, and certificates from the original authority stop signing on 1 Feb 2027 [V]. Publicly trusted code-signing certificates (Windows) are capped at 460 days under CA/B ballot CSC-31 [V] (from 1 Mar 2026 [S]), with keys in certified hardware. Build rotation into the release pipeline and always timestamp |
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## CLI & developer tooling
|
|
122
|
+
|
|
123
|
+
The distinguishing risk: **these programs open repositories, files, and projects that the user did not write.** Everything in the workspace is attacker-controlled input.
|
|
124
|
+
|
|
125
|
+
1. **Shelling out.** Grep `shell: true`, `execSync`, `exec(`, backtick or f-string interpolation into `bash -c`, `os.system`, `subprocess` with `shell=True`. Use `spawn(file, args)` with an argument array. Where a shell is genuinely required, the invariant is that no model-derived or repo-derived string reaches it uninterpolated.
|
|
126
|
+
2. **PATH and search-order hijack.** Bare command names in spawn calls resolve through `PATH`. Never prepend `.` or a repo-relative `node_modules/.bin` when the repo is untrusted; resolve to absolute paths.
|
|
127
|
+
3. **Repo config is data, not code.** A malicious repository ships `.git/config` (`core.fsmonitor` and `core.pager` are code execution), `.vscode/tasks.json` with `runOn: folderOpen`, agent hook configs, `Makefile`, `package.json` scripts, editor and linter plugin paths. **The ChainDrop worm (Aug 2026) used exactly the editor-task and agent-hook vectors** [V]. Never honor a repo-supplied plugin, loader, or interpreter path.
|
|
128
|
+
4. **Terminal escape injection.** Untrusted file contents, git refs, branch names, and tool output printed raw can emit OSC 8 hyperlinks, OSC 52 clipboard writes, and cursor/title sequences that some terminals echo back as input. Strip C0/C1, CSI and OSC sequences from untrusted strings before writing to a TTY.
|
|
129
|
+
5. **Symlinks and TOCTOU.** `existsSync` then `writeFile` is a race. Resolve with `realpath`, verify containment **after** opening, use `O_NOFOLLOW`/`openat` where available, and reject `..` and absolute entries when extracting archives.
|
|
130
|
+
6. **Install-time execution.** `preinstall`/`postinstall` run arbitrary code with full developer privileges before anything is evaluated. Set `ignore-scripts` with an explicit allowlist for the few packages that need builds. See `supply-chain.md`.
|
|
131
|
+
7. **Credentials on disk.** Token files at `0600`, never logged, redacted from diagnostics and crash reports, and outside any directory the tool uploads. Prefer the OS keychain where available.
|
|
132
|
+
8. **`curl | sh` installers.** If you ship one: HTTPS only, pinned to an immutable release URL rather than `latest`, verifying a published checksum or signature before executing anything.
|
|
133
|
+
9. **Sandboxing untrusted content.** macOS seatbelt, Linux Landlock (check the ABI at runtime and degrade gracefully; a descriptor opened before restriction stays usable, so use `O_CLOEXEC`), or a container with `--network none`. Most analysis tasks need no network at all.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Embedded, IoT & firmware
|
|
138
|
+
|
|
139
|
+
**Regulatory dates that drive engineering** [V]: the EU Cyber Resilience Act is in force since 10 Dec 2024 and fully applicable 11 Dec 2027, with **Article 14 reporting obligations starting 11 September 2026** — early warning within 24 hours, full notification within 72 hours, final report within 14 days once a fix exists. Two traps: only *actively exploited* vulnerabilities trigger reporting, and it applies to products already on the market, so shipping date is irrelevant. UK PSTI has been enforced since Apr 2024 — unique or user-set passwords, a disclosure programme, and a published support period. The US Cyber Trust Mark is still voluntary and not yet operating; the FCC was still taking comment on its labeling rules in Oct 2026 [S]. Do not plan around it as a market gate.
|
|
140
|
+
|
|
141
|
+
**Device controls:** hardware root of trust with secure boot and anti-rollback counters; OTA images signed and verified **before** flashing to an inactive slot, with A/B plus watchdog rollback; JTAG/SWD fused off and UART consoles disabled in production builds (grep build configs for debug flags and fuse-burn steps); no shared per-fleet keys — per-device identity or a compromise is fleet-wide; an SBOM generated in CI per firmware version and retained, because you cannot answer "which units are affected" in 24 hours without one.
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## Smart contracts & web3
|
|
146
|
+
|
|
147
|
+
**The strategic read** [S]: losses are dominated by key management, privileged-role governance, and oracle or collateral *configuration* — not arithmetic bugs. Multiple 2025–2026 nine-figure incidents hit protocols that had been audited by reputable firms; at least one turned on a months-long social-engineering campaign that obtained administrative control and then whitelisted a manipulable asset.
|
|
148
|
+
|
|
149
|
+
Grep priorities in this order: privileged setters without timelock and multisig; `onlyOwner` on collateral, oracle, or fee parameters; unbounded proxy `upgradeTo`; uninitialized implementations and missing `initializer`; spot prices read from `getReserves`/`slot0` used as an oracle; `ecrecover` without nonce, deadline, and chain ID (use EIP-712); cross-chain message verification that trusts a sender field; and reentrancy on external calls before state writes.
|
|
150
|
+
|
|
151
|
+
**Compiler** [V]: current is **0.8.39** (19 Nov 2026). Every release since 0.8.37 (Sep 2026) fixed a security bug: 0.8.39 a storage corruption when copying recursive structs, 0.8.38 stale Yul-optimizer knowledge that could drop needed stores, 0.8.37 memory-slot reuse under stack-too-deep workarounds. Earlier, 0.8.34 (Feb 2026) fixed a high-severity storage-clearing bug in the IR pipeline. Since 0.8.31 the default EVM target moved, so **pin `evmVersion` explicitly** or a compiler bump silently retargets your chain. 0.9.0-pre.1 (26 Nov 2026) removes ABI coder v1 and virtual modifiers and drops pre-Byzantium EVM targets; `send`/`transfer` on `address` are deprecated too. Plan the migration before 0.9.0 is final.
|
|
152
|
+
|
|
153
|
+
**CI gates:** Slither failing on high/medium, Foundry invariant and fuzz suites with bounded handlers (property tests catch the economic bugs unit tests miss), Echidna, and storage-layout diffing on every upgradeable deploy.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## ML & AI pipelines
|
|
158
|
+
|
|
159
|
+
| Control | Check | Why it fails |
|
|
160
|
+
|---|---|---|
|
|
161
|
+
| **Model deserialization** | The default flipped: `torch.load` is `weights_only=True` from PyTorch 2.6 [V]. So grep the **override** — `weights_only=False`, and `add_safe_globals`/`safe_globals` used to silence an error rather than allowlist a reviewed type | Re-running with `weights_only=False` makes the error go away and arbitrary code execution appear |
|
|
162
|
+
| **Other loaders** | `pickle.load`, `joblib.load`, `dill`, `numpy.load(allow_pickle=True)`, Keras `.h5`/`.keras` with Lambda layers | A model file is a program. Prefer `.safetensors` and reject code-capable formats at the ingestion boundary |
|
|
163
|
+
| **`trust_remote_code=True`** | Any occurrence | Equivalent to `curl \| sh` against a model hub |
|
|
164
|
+
| **Model provenance** | Sign at train time, verify **in the loader** at load time (OpenSSF Model Signing / sigstore) [V]; pin dataset revisions by content hash, not by a mutable hub tag | A README instruction to "verify the hash" is not verification |
|
|
165
|
+
| **Endpoint exposure** | Anything bound to `0.0.0.0`: experiment trackers, notebook servers, inference servers, dashboards, job-submission APIs, local model runtimes | Several 2025–2026 critical CVEs in this class chain auth bypass with traversal to unauthenticated RCE [S]; some job APIs are unauthenticated by design and must be network-isolated |
|
|
166
|
+
| **Default credentials** | Auth config files shipped with defaults; notebooks started with empty tokens and `--allow-root` | Generic credential-harvesting scanners find these incidentally, which is how most of these get popped [V] |
|
|
167
|
+
| **Model output** | Treat as untrusted input to whatever consumes it — never straight into `eval`, a shell, SQL, or `innerHTML` | This is LLM10:2026 Improper Output Handling, and it is how a prompt injection becomes code execution |
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Games & client-side software
|
|
172
|
+
|
|
173
|
+
Short, because one principle covers it: **the client is permanently untrusted input.** Anti-cheat raises cost; it never establishes trust.
|
|
174
|
+
|
|
175
|
+
- Grep the server for accepting client-supplied position, damage, currency, inventory, score, or elapsed-time deltas. The server simulates; the client predicts and reconciles. Bound and rate-limit every accepted delta.
|
|
176
|
+
- Licence keys, HMAC secrets and API tokens in a shipped binary are disclosed, not hidden — `strings` finds them immediately. Validate server-side; if offline validation is required, verify a signed per-user licence with an embedded public key and accept that it is tamperable.
|
|
177
|
+
- Mods and user-generated content are the untrusted-repo problem again: sandbox the scripting runtime, disable filesystem/network/FFI access, and never deserialize UGC with a code-capable format.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Language hot zones
|
|
182
|
+
|
|
183
|
+
Apply only to languages actually present. A grep hit here is a lead, not a finding — trace the path before flagging.
|
|
184
|
+
|
|
185
|
+
| Language | Check |
|
|
186
|
+
|---|---|
|
|
187
|
+
| **Node / TypeScript** | `child_process.exec`/`execSync`, `spawn(..., {shell:true})`, `eval`/`new Function`, `vm.runIn*`, prototype pollution via deep-merge helpers or `Object.assign({}, userJson)`, `node-serialize`, source maps in published packages, `JSON.parse` on untrusted input feeding an object used as a lookup table |
|
|
188
|
+
| **Python** | `pickle.load`, `yaml.load` without `SafeLoader`, `eval`/`exec`, `subprocess.*(shell=True)`, `os.system`, Jinja2 with `autoescape=False`, `render_template_string` on user input, `requests(verify=False)`, XML parsing without `defusedxml`, `torch.load(weights_only=False)` |
|
|
189
|
+
| **Go** | `exec.Command("sh", "-c", input)`, `text/template` where `html/template` was meant, unbounded `io.ReadAll`, unsynchronized map access, missing `http.Server` timeouts |
|
|
190
|
+
| **Rust** | `unsafe` blocks with raw pointers, `Command::new("sh").arg("-c")`, deserializing untrusted input without bounds, `unwrap()` on attacker-influenced input in a service path |
|
|
191
|
+
| **Java / JVM** | `ObjectInputStream` on untrusted bytes, JNDI lookups from input, `Runtime.exec(String)`, XXE in default XML parsers, expression-language injection |
|
|
192
|
+
| **Ruby** | `eval`/`instance_eval`, `Marshal.load`, `YAML.load` rather than `safe_load`, `system` with interpolation, mass assignment without strong parameters |
|
|
193
|
+
| **PHP** | `unserialize`, `eval`, `assert(string)`, `include`/`require` with a dynamic path, `preg_replace` with the `/e` modifier |
|
|
194
|
+
| **C / C++** | `strcpy`/`sprintf`/`gets`, integer overflow in size arithmetic, `printf(userInput)`, use-after-free, double-free. New parsing code here needs a written justification, sanitizers, and fuzzing |
|
|
195
|
+
| **Shell** | Unquoted variable expansion, `eval`, word splitting on filenames, `curl | sh`, missing `set -euo pipefail` |
|
|
196
|
+
| **SQL** | String-built queries, dynamic identifiers and `ORDER BY` columns (cannot be parameterized — allowlist them), `LIKE` patterns built from input without escaping `%`/`_`, `IN` lists interpolated instead of expanded as placeholders, `SECURITY DEFINER` functions without a locked `search_path` |
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Provenance
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
- Confidence markers
|
|
5
|
+
- Re-verified 3 October 2026
|
|
6
|
+
- Re-verified 22 October 2026
|
|
7
|
+
- Re-verified 22 November 2026
|
|
8
|
+
- Re-verified 27 November 2026
|
|
9
|
+
- Methodology update 27 November 2026
|
|
10
|
+
- Source classes
|
|
11
|
+
- Known gaps in this snapshot
|
|
12
|
+
- What this skill is not
|
|
13
|
+
- When to escalate to a human specialist
|
|
14
|
+
|
|
15
|
+
**Snapshot date: 3 October 2026**, partially re-verified **22 October 2026** and **22 November 2026** (previous full snapshot 12 August 2026). Items re-verified on either date are listed below; anything else carries its marker from the earlier snapshot. Security facts decay faster than any other content in this repository — a version number, a CVE, a default, or an incident detail that was accurate at snapshot time may be wrong by the time you read it.
|
|
16
|
+
|
|
17
|
+
## Confidence markers
|
|
18
|
+
|
|
19
|
+
Used throughout the reference files. Preserve them when repeating a claim to the user.
|
|
20
|
+
|
|
21
|
+
| Marker | Meaning | How to treat it |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| **[V]** | Verified against a primary source (standards body, vendor advisory, official documentation, CVE record) at snapshot time | State it plainly, with the date if it matters |
|
|
24
|
+
| **[S]** | Snapshot-accurate but volatile — versions, adoption status, statistics, vendor defaults | Re-verify before asserting as current; otherwise attribute to the snapshot |
|
|
25
|
+
| **[U]** | Single-sourced, secondary, or methodology not published | Do not build a recommendation on it alone; say it is uncertain |
|
|
26
|
+
|
|
27
|
+
Unmarked engineering guidance (parameterize queries, fail closed, least privilege) is durable practice, not a dated claim.
|
|
28
|
+
|
|
29
|
+
## Re-verified 3 October 2026
|
|
30
|
+
|
|
31
|
+
| Claim | Primary source |
|
|
32
|
+
|---|---|
|
|
33
|
+
| OWASP Top 10:2025 order (A01 Broken Access Control … A03 Software Supply Chain Failures … A10 Mishandling of Exceptional Conditions; SSRF folded into A01) | top10.owasp.org/2025 |
|
|
34
|
+
| 2025 CWE Top 25: 1 XSS, 2 SQLi, 3 CSRF, 4 Missing Authorization | MITRE CWE Top 25 (Dec 2025) |
|
|
35
|
+
| OWASP Top 10 for Agentic Applications 2026 (ASI01–ASI10), published 9 Dec 2025 | OWASP GenAI Security Project |
|
|
36
|
+
| MCP 2025-11-25 (superseded 22 Oct: see below) | modelcontextprotocol.io changelog |
|
|
37
|
+
| npm: classic tokens revoked 9 Dec 2025; 2-h session tokens; staged publishing GA 22 May 2026 (CLI 11.15.0); npm 12 scripts off by default (8 Jul 2026) | GitHub Changelog; npm release notes |
|
|
38
|
+
| GitHub Actions: SHA-pin enforcement policy (Aug 2025); `pull_request_target` default-branch source (8 Dec 2025); checkout fork-ref refusal (Jun/Jul 2026) | GitHub Changelog |
|
|
39
|
+
| TanStack compromise chain (11 May 2026) | TanStack postmortem |
|
|
40
|
+
| ChainDrop (4 Aug 2026) `.claude/settings.json` / `.vscode/tasks.json` persistence | Datadog Security Labs, StepSecurity |
|
|
41
|
+
| `postmark-mcp` BCC backdoor (Sept 2025) | Koi Security via press |
|
|
42
|
+
| CVE-2025-29927 Next.js middleware bypass | Vendor advisory / NVD |
|
|
43
|
+
| Package hallucination 19.7% / 43% recurrence | Spracklen et al., USENIX Security 2025 |
|
|
44
|
+
| GitGuardian 2026: 28.65M secrets, 24,008 in MCP configs, 64% of 2022 secrets still valid | State of Secrets Sprawl 2026 |
|
|
45
|
+
| NIST SP 800-63B-4 final (31 Jul 2025), syncable authenticators up to AAL2 | pages.nist.gov/800-63-4 |
|
|
46
|
+
| RFC 9700 current; OAuth 2.1 still a draft | IETF datatracker / oauth.net |
|
|
47
|
+
| X25519MLKEM768 default in OpenSSL 3.5, Chrome, Firefox | OpenSSL; browser release notes |
|
|
48
|
+
| GTG-1002 (13 Nov 2025) | Anthropic disclosure |
|
|
49
|
+
| VulnCheck 1H-2026: 1.3% of 1,061 AI-found vulns exploited | VulnCheck report (28 Jul 2026) |
|
|
50
|
+
| Adaptive attacks bypass 12 prompt-injection defenses | Nasr et al., arXiv 2510.09023 |
|
|
51
|
+
|
|
52
|
+
Dropped as not re-verifiable this pass: specific breakout-time figures, the "38% of organizations" workflow statistic, the 77-extension campaign count, the March 2026 scanner-action tag incident, ATT&CK campaign IDs, and Anthropic's banned-account mapping figures.
|
|
53
|
+
|
|
54
|
+
## Re-verified 22 October 2026
|
|
55
|
+
|
|
56
|
+
| Claim | Marker | Primary source |
|
|
57
|
+
|---|---|---|
|
|
58
|
+
| MCP current spec 2026-07-28: stateless (no initialize / `Mcp-Session-Id`), `Mcp-Method`/`Mcp-Name` headers, `requestState`, cacheable listings, DCR deprecated for CIMD, RFC 9207 `iss`, Roots/Sampling/Logging deprecated ≥12 months, MCP Apps | [V] (coordinator) | claude.com/blog/bringing-mcp-2026-07-28-to-claude; modelcontextprotocol.io/specification/2026-07-28 |
|
|
59
|
+
| MCP Streamable HTTP: MUST validate `Origin`, 403 if present and invalid; SHOULD bind localhost | [V] | modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http |
|
|
60
|
+
| OAuth 2.1 still an Internet-Draft (draft-ietf-oauth-v2-1-16) | [V] | datatracker.ietf.org/doc/draft-ietf-oauth-v2-1/ |
|
|
61
|
+
| npm: unvalidated trusted-publishing configs expire; staged publishing supports new packages (both 2 Oct 2026) | [V] | github.blog/changelog (2026-10-02 entries) |
|
|
62
|
+
| npm refuses trusted-publishing tokens from `issue_comment`; 48-hour validation window; SlugFest (Bloom Security, 13 Oct 2026) | [S] | Secondary reporting (workos.com, cybersecuritynews.com); changelog body not readable this pass |
|
|
63
|
+
| `tensorlake@0.5.144` malware advisory, 8 Oct 2026 | [V] | github.com/advisories/GHSA-rqxj-g25x-4v9v |
|
|
64
|
+
| tensorlake: valid provenance, preinstall hook, pushed to main | [S] | Aikido, StepSecurity reporting |
|
|
65
|
+
| Next.js 14 Oct 2026 critical RCEs (`use cache` typed arrays; SVG via sharp/librsvg) + Server Actions DoS | [V] (coordinator) | Next.js advisories |
|
|
66
|
+
| Node.js 21 Oct 2026 security releases incl. Brotli decoder OOB write and TLS hostname bypass | [V] | nodejs.org/en/blog/vulnerability/october-2026-security-releases |
|
|
67
|
+
| CWE Top 25 2025 is still the latest edition | [V] | cwe.mitre.org/top25 |
|
|
68
|
+
|
|
69
|
+
Changed this pass: `threat-landscape.md` rewritten as technique + fingerprint (counts and statistics dropped); package-manager version minimums for release-age cooldowns replaced with a rule; the "~80 days to exploitation" figure dropped.
|
|
70
|
+
|
|
71
|
+
## Re-verified 22 November 2026
|
|
72
|
+
|
|
73
|
+
| Claim | Marker | Primary source |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| OWASP Top 10 for LLM Applications 2026 (4 Aug 2026), renumbered; every bare LLMxx ID rewritten as LLMxx:2026 | [V] | github.com/GenAI-Security-Project/GenAI-LLM-Top10 |
|
|
76
|
+
| GitHub blocks `pull_request_target` by default in public repos from 2 Dec 2026 (brownouts 9 and 16 Nov) | [V] title/date; [S] scope | github.blog/changelog/2026-11-02-pull_request_target-blocked-by-default-december-2/ ; socket.dev |
|
|
77
|
+
| Next.js 3 Nov 2026 security release (16.4.5 / 15.5.29), incl. `use cache` cross-tenant disclosure GHSA-mfr8-8qww-v76h | [V] | nextjs.org/blog/november-2026-security-release |
|
|
78
|
+
| Node.js 11 Nov 2026 security releases (22.23.5, 24.22.3, 26.13.1) | [V] | nodejs.org/en/blog/vulnerability/november-2026-security-releases |
|
|
79
|
+
| OAuth 2.1 at draft-ietf-oauth-v2-1-17, still an Internet-Draft | [V] | datatracker.ietf.org/doc/draft-ietf-oauth-v2-1/ |
|
|
80
|
+
| MCP: no spec revision after 2026-07-28 | [V] | blog.modelcontextprotocol.io |
|
|
81
|
+
| CWE Top 25 2025 still the latest; CWE 5.0 (28 Oct 2026) deprecates CWE-377/391/613, none cited here | [V] | cwe.mitre.org/news/archives/news2026.html |
|
|
82
|
+
|
|
83
|
+
Not added, unverified: React Server Components CVE-2026-126187 (date disputed, React advisory not reached; resolved 27 Nov, below); GitHub secret scanning of Actions logs and Agentic Workflows GA (changelog bodies not read); the OWASP Agent Control Standard (not read). No supply-chain incident from 22 Oct to 22 Nov 2026 could be confirmed from a primary source: that is "no hits", not "none happened".
|
|
84
|
+
|
|
85
|
+
## Re-verified 27 November 2026
|
|
86
|
+
|
|
87
|
+
Unchanged and re-confirmed: MCP 2026-07-28 still current; OAuth 2.1 draft -17; RFC 9700; OWASP Top 10:2025, LLM Top 10 2026, API Top 10 2023, ASVS 5.0.0, MASVS 2.1.0 / MASTG 2.0.0; CWE Top 25 2025; NIST SP 800-63B-4; Node.js 11 Nov and Next.js 3 Nov releases still the latest security releases; npm 12 script blocking, staged publishing, 48-hour trusted-publishing expiry; GitGuardian 2026 figures; OpenSSL 3.5 and Firefox hybrid PQ defaults; CRA dates; UK PSTI; Electron fuse names.
|
|
88
|
+
|
|
89
|
+
| Claim | Marker | Primary source |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| React RSC CVE-2026-126187 (GHSA-xqc2-xf4c-x3h3), published 14 Oct 2026, fixed in 19.0.9 / 19.1.10 / 19.2.9 / 19.3.1 | [V] | github.com/advisories/GHSA-xqc2-xf4c-x3h3 |
|
|
92
|
+
| Solidity 0.8.39 (19 Nov 2026) current; 0.8.37–0.8.39 security fixes; 0.9.0-pre.1 (26 Nov 2026) | [V] | github.com/argotorg/solidity/releases |
|
|
93
|
+
| Granular-token direct publishing removed January 2027 (was [U]) | [V] | docs.npmjs.com/about-access-tokens |
|
|
94
|
+
| npm refuses trusted publishing from `issue_comment`; `strict-allow-scripts` (were [S]) | [V] | docs.npmjs.com/trusted-publishers; npm CLI config definitions |
|
|
95
|
+
| `pull_request_target` default policy: public repos without their own event policy, enforced 2 Dec 2026; read-only default-branch cache unless `cache-mode` opts out | [V] | docs.github.com/en/actions/reference/security/securely-using-pull_request_target |
|
|
96
|
+
| `actions/checkout` backports shipped 20 Jul 2026 (not 16 Jul); opt-out `allow-unsafe-pr-checkout` | [V] | github.com/actions/checkout/releases |
|
|
97
|
+
| ChainDrop hooks pushed as GitHub-signed `github-actions[bot]` commits (previous author detail not supported by the source) | [V] | securitylabs.datadoghq.com (5 Aug 2026) |
|
|
98
|
+
| Apple Developer ID G2 certificates last one year; original authority expires 1 Feb 2027; the 460-day cap is the CA/B code-signing rule (CSC-31), not Apple's | [V] | developer.apple.com/help/account/certificates; cabforum.org ballot CSC-31 |
|
|
99
|
+
| Google Play: target API 36 since 31 Aug 2026, extensions to 1 Nov 2026 | [V] | support.google.com/googleplay/android-developer/answer/11926878 |
|
|
100
|
+
| Apple OS 26 system TLS advertises X25519MLKEM768 | [V] | support.apple.com/en-us/122756 |
|
|
101
|
+
| "The Attacker Moves Second": the "human red-teamers beat every scenario" wording is not in the abstract; rewritten to what the abstract states | [V] | arxiv.org/abs/2510.09023 |
|
|
102
|
+
| MCP: binding local servers to 127.0.0.1 is a SHOULD, not a MUST | [V] | modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http |
|
|
103
|
+
| OWASP Agentic Top 10 titles: two files disagreed; aligned to the commonly cited titles | [S] | official page not readable this pass; cite by ASI ID |
|
|
104
|
+
| US Cyber Trust Mark: FCC sought comment on labeling rules in Oct 2026 | [S] | FCC DA-26-834A1; Oct notice via secondary reporting |
|
|
105
|
+
|
|
106
|
+
Not added: a Vite advisory (GHSA-p4f5-76q4-ffq7) reported by search could not be opened; Django, Rails and Electron advisories from Oct–Nov 2026 are routine patch releases, covered by the "patch latency" rule. No supply-chain or AI-agent incident from 22 to 27 Nov 2026 could be confirmed from a primary source: "no hits", not "none happened".
|
|
107
|
+
|
|
108
|
+
## Methodology update 27 November 2026
|
|
109
|
+
|
|
110
|
+
This section changed no dated facts (those are logged above). The review method was compared with Cloudflare's open-source `security-audit` skill (github.com/cloudflare/security-audit-skill, MIT License, © 2025–2026 Cloudflare, Inc.), and these ideas were adapted, in new wording, for small teams and a single agent:
|
|
111
|
+
|
|
112
|
+
- `attack-classes.md`: one section per audit in a fixed shape, pasted verbatim into child briefs; new audits for data lifecycle and derived copies, business logic and races, webhooks, the HTTP edge and caching, and denial of wallet.
|
|
113
|
+
- `audit-protocol.md`: the six-field candidate gate, the self-impact exclusion, hunting depth (sibling paths, edge inputs), the needs-validation outcome, one coverage gap pass, root-cause merging, safe execution limits for code the user did not write, and the rule that a review ends complete or explicitly incomplete.
|
|
114
|
+
- Controls for webhooks, account linking, reset-link host poisoning, private-response caching, IPC caller identity, privileged helpers and logout cleanup in `secure-defaults.md` and `platform-playbooks.md`.
|
|
115
|
+
|
|
116
|
+
Not adopted: its multi-agent hunting waves, budget accounting, JSON schema and validators, and the descriptor-level artifact promotion procedure. They suit a security team's fleet, not a single-agent review.
|
|
117
|
+
|
|
118
|
+
## Source classes
|
|
119
|
+
|
|
120
|
+
- **Standards and frameworks**: OWASP (Top 10:2025, ASVS 5.0.0, API Security Top 10 2023, MASVS 2.1.0 / MASTG 2.0.0, LLM Top 10 2026, Agentic Top 10 2026), MITRE (CWE Top 25 2025 edition, ATT&CK), NIST (SP 800-63B-4, SP 800-218 / 218A, SP 800-53 Rev 5, FIPS 203/204/205), SLSA, OpenSSF.
|
|
121
|
+
- **Vendor and platform documentation**: Apple, Google/Android, Microsoft, Electron, Tauri, PyTorch, Solidity, package registries.
|
|
122
|
+
- **Incident reporting and threat intelligence**: model-provider security disclosures, national CERT and CISA advisories, established security-vendor research teams, and independent researchers with published methodology.
|
|
123
|
+
- **Regulatory texts**: EU Cyber Resilience Act, UK PSTI.
|
|
124
|
+
|
|
125
|
+
Statistics and incident details in `threat-landscape.md` come from published reports whose methodology varies in quality. Where a figure is widely repeated but the primary methodology is not published, it is marked [U] and should not be quoted as fact.
|
|
126
|
+
|
|
127
|
+
## Known gaps in this snapshot
|
|
128
|
+
|
|
129
|
+
- **ASVS 5.0 chapter structure** — sources disagree on the exact chapter count; requirement IDs were renumbered from 4.x, so never map a 4.x ID onto 5.0 without checking.
|
|
130
|
+
- **Vendor product versions** (agent tools, frameworks, package managers) change weekly. Every version number here is [S] at best.
|
|
131
|
+
- **Prevalence statistics for MCP vulnerabilities** circulating in 2026 were excluded deliberately: independent testing found high false-positive rates in the scanners producing them.
|
|
132
|
+
- **Regional and sector regimes** beyond the EU and UK items cited are out of scope. Compliance obligations are the `compliance-guard` skill's job, not this one.
|
|
133
|
+
- **Exploitation counts and KEV timings** are half-year figures and move with each reporting period.
|
|
134
|
+
|
|
135
|
+
## What this skill is not
|
|
136
|
+
|
|
137
|
+
- **Not a penetration test.** No live testing, no exploitation, no attempts against running systems.
|
|
138
|
+
- **Not a security audit or certification.** It produces engineering guidance and code changes, not assurance. Do not let output be represented as an audit to a customer, an insurer, or a regulator.
|
|
139
|
+
- **Not legal or compliance advice.** Regulatory obligations, data-protection law, and contractual security commitments belong to `compliance-guard` and, past a threshold, to a qualified professional.
|
|
140
|
+
- **Not offensive tooling.** No exploit code, no payloads, no attack automation, regardless of who asks or how the request is framed.
|
|
141
|
+
|
|
142
|
+
## When to escalate to a human specialist
|
|
143
|
+
|
|
144
|
+
Recommend qualified help — and say why — when the project involves: custody of other people's funds or crypto assets at scale; regulated health, financial, or safety-critical systems; a live or suspected breach with real user impact; cryptographic design rather than cryptographic use; a formal certification or audit requirement (SOC 2, ISO 27001, PCI DSS, FedRAMP); or a contractual security commitment to an enterprise customer.
|
|
145
|
+
|
|
146
|
+
The honest framing for the user: this skill closes the gap between "obviously exploitable" and "reasonably defended", which is where nearly all real incidents against small teams happen. It does not replace an adversary who is paid to try.
|