@kenkaiiii/ggcoder 6.3.0 → 7.0.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/README.md +9 -8
- package/dist/app-sidecar/app-settings.d.ts +1 -1
- package/dist/app-sidecar/app-settings.js +3 -4
- package/dist/app-sidecar/app-settings.js.map +1 -1
- package/dist/app-sidecar/attachments.js +1 -1
- package/dist/app-sidecar/attachments.js.map +1 -1
- package/dist/app-sidecar/auth-routes.js +2 -5
- package/dist/app-sidecar/auth-routes.js.map +1 -1
- package/dist/app-sidecar/autopilot-runner.d.ts +8 -8
- package/dist/app-sidecar/autopilot-runner.js +8 -8
- package/dist/app-sidecar/autopilot-runner.js.map +1 -1
- package/dist/app-sidecar/branch-routes.d.ts +8 -1
- package/dist/app-sidecar/branch-routes.js +154 -2
- package/dist/app-sidecar/branch-routes.js.map +1 -1
- package/dist/app-sidecar/detached-sessions.d.ts +7 -10
- package/dist/app-sidecar/detached-sessions.js +6 -2
- package/dist/app-sidecar/detached-sessions.js.map +1 -1
- package/dist/app-sidecar/file-search.js +1 -1
- package/dist/app-sidecar/file-search.js.map +1 -1
- package/dist/app-sidecar/git-branches.d.ts +18 -1
- package/dist/app-sidecar/git-branches.js +24 -6
- package/dist/app-sidecar/git-branches.js.map +1 -1
- package/dist/app-sidecar/git-ship.d.ts +42 -0
- package/dist/app-sidecar/git-ship.js +349 -0
- package/dist/app-sidecar/git-ship.js.map +1 -0
- package/dist/app-sidecar/git-target.d.ts +2 -2
- package/dist/app-sidecar/git-target.js +2 -2
- package/dist/app-sidecar/git-target.js.map +1 -1
- package/dist/app-sidecar/goal-routes.d.ts +1 -1
- package/dist/app-sidecar/goal-routes.js +5 -6
- package/dist/app-sidecar/goal-routes.js.map +1 -1
- package/dist/app-sidecar/hf-pull-manager.d.ts +5 -4
- package/dist/app-sidecar/hf-pull-manager.js +1 -1
- package/dist/app-sidecar/hf-pull-manager.js.map +1 -1
- package/dist/app-sidecar/history-routes.js +6 -6
- package/dist/app-sidecar/history-routes.js.map +1 -1
- package/dist/app-sidecar/history.d.ts +2 -2
- package/dist/app-sidecar/integration-routes.js +4 -6
- package/dist/app-sidecar/integration-routes.js.map +1 -1
- package/dist/app-sidecar/keep-awake.d.ts +1 -1
- package/dist/app-sidecar/keep-awake.js +1 -1
- package/dist/app-sidecar/keep-awake.js.map +1 -1
- package/dist/app-sidecar/ken-context.d.ts +2 -2
- package/dist/app-sidecar/ken-context.js +1 -1
- package/dist/app-sidecar/ken-context.js.map +1 -1
- package/dist/app-sidecar/live-preview/dev-url.d.ts +1 -1
- package/dist/app-sidecar/live-preview/manager.d.ts +2 -14
- package/dist/app-sidecar/live-preview/manager.js.map +1 -1
- package/dist/app-sidecar/live-preview/pages.d.ts +21 -1
- package/dist/app-sidecar/live-preview/pages.js +138 -4
- package/dist/app-sidecar/live-preview/pages.js.map +1 -1
- package/dist/app-sidecar/live-preview/routes.d.ts +7 -3
- package/dist/app-sidecar/live-preview/routes.js +32 -2
- package/dist/app-sidecar/live-preview/routes.js.map +1 -1
- package/dist/app-sidecar/live-preview/servers.js +1 -1
- package/dist/app-sidecar/live-preview/servers.js.map +1 -1
- package/dist/app-sidecar/mcp-routes.js +2 -2
- package/dist/app-sidecar/mcp-routes.js.map +1 -1
- package/dist/app-sidecar/mcp-rows.d.ts +3 -15
- package/dist/app-sidecar/mcp-rows.js +7 -2
- package/dist/app-sidecar/mcp-rows.js.map +1 -1
- package/dist/app-sidecar/mcp-shell-command.d.ts +1 -1
- package/dist/app-sidecar/mcp-shell-command.js +3 -3
- package/dist/app-sidecar/mcp-shell-command.js.map +1 -1
- package/dist/app-sidecar/mcp-sync.d.ts +2 -2
- package/dist/app-sidecar/mcp-sync.js +3 -3
- package/dist/app-sidecar/mcp-sync.js.map +1 -1
- package/dist/app-sidecar/progress-manager.d.ts +1 -1
- package/dist/app-sidecar/progress-manager.js +6 -6
- package/dist/app-sidecar/progress-manager.js.map +1 -1
- package/dist/app-sidecar/prompt-routes.js +5 -5
- package/dist/app-sidecar/prompt-routes.js.map +1 -1
- package/dist/app-sidecar/repo-polls.d.ts +3 -3
- package/dist/app-sidecar/repo-polls.js +4 -4
- package/dist/app-sidecar/repo-polls.js.map +1 -1
- package/dist/app-sidecar/route-context.d.ts +17 -17
- package/dist/app-sidecar/run-control-routes.js +2 -5
- package/dist/app-sidecar/run-control-routes.js.map +1 -1
- package/dist/app-sidecar/session-file-routes.d.ts +1 -1
- package/dist/app-sidecar/session-file-routes.js +2 -2
- package/dist/app-sidecar/session-file-routes.js.map +1 -1
- package/dist/app-sidecar/session-routes.js +3 -4
- package/dist/app-sidecar/session-routes.js.map +1 -1
- package/dist/app-sidecar/session-types.d.ts +11 -13
- package/dist/app-sidecar/shell-routes.js +1 -1
- package/dist/app-sidecar/shell-routes.js.map +1 -1
- package/dist/app-sidecar/shell-runs.js +2 -2
- package/dist/app-sidecar/shell-runs.js.map +1 -1
- package/dist/app-sidecar/shell-suggestions.d.ts +2 -8
- package/dist/app-sidecar/shell-suggestions.js +1 -1
- package/dist/app-sidecar/shell-suggestions.js.map +1 -1
- package/dist/app-sidecar/task-routes.js +5 -5
- package/dist/app-sidecar/task-routes.js.map +1 -1
- package/dist/app-sidecar/trophy-manager.d.ts +2 -2
- package/dist/app-sidecar/trophy-manager.js +3 -3
- package/dist/app-sidecar/trophy-manager.js.map +1 -1
- package/dist/app-sidecar/usage.d.ts +1 -1
- package/dist/app-sidecar/usage.js +3 -2
- package/dist/app-sidecar/usage.js.map +1 -1
- package/dist/app-sidecar/workspace-routes.js +4 -4
- package/dist/app-sidecar/workspace-routes.js.map +1 -1
- package/dist/app-sidecar/worktrees.js +1 -1
- package/dist/app-sidecar/worktrees.js.map +1 -1
- package/dist/app-sidecar-sessions.d.ts +2 -5
- package/dist/app-sidecar-sessions.js +1 -1
- package/dist/app-sidecar-sessions.js.map +1 -1
- package/dist/app-sidecar.d.ts +1 -1
- package/dist/app-sidecar.js +54 -45
- package/dist/app-sidecar.js.map +1 -1
- package/dist/chat-agents/general.d.ts +1 -1
- package/dist/chat-agents/index.d.ts +1 -1
- package/dist/chat-agents/jiwa.d.ts +2 -9
- package/dist/chat-agents/jiwa.js +1 -0
- package/dist/chat-agents/jiwa.js.map +1 -1
- package/dist/chat-agents/memory.d.ts +2 -9
- package/dist/chat-agents/memory.js +1 -0
- package/dist/chat-agents/memory.js.map +1 -1
- package/dist/chat-agents/research.d.ts +1 -1
- package/dist/chat-agents/shared.d.ts +1 -1
- package/dist/chat-agents/shared.js +1 -1
- package/dist/chat-agents/shared.js.map +1 -1
- package/dist/chat-agents/therapist.d.ts +1 -1
- package/dist/chat-agents/types.d.ts +2 -1
- package/dist/chat-agents/types.js +6 -1
- package/dist/chat-agents/types.js.map +1 -1
- package/dist/cli/auth.js +3 -6
- package/dist/cli/auth.js.map +1 -1
- package/dist/cli/mcp.js +4 -3
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +26 -27
- package/dist/cli.js.map +1 -1
- package/dist/goals-agent/goal-team.d.ts +1 -1
- package/dist/goals-agent/goals-agent.d.ts +3 -3
- package/dist/goals-agent/goals-agent.js +5 -5
- package/dist/goals-agent/goals-agent.js.map +1 -1
- package/dist/hf-pull.d.ts +2 -1
- package/dist/hf-pull.js +0 -1
- package/dist/hf-pull.js.map +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.js +1 -14
- package/dist/index.js.map +1 -1
- package/dist/modes/acp-autopilot.js +3 -3
- package/dist/modes/acp-autopilot.js.map +1 -1
- package/dist/modes/acp-goals.d.ts +2 -2
- package/dist/modes/acp-goals.js +3 -3
- package/dist/modes/acp-goals.js.map +1 -1
- package/dist/modes/acp-mode.d.ts +6 -6
- package/dist/modes/acp-mode.js +22 -23
- package/dist/modes/acp-mode.js.map +1 -1
- package/dist/modes/agent-home-mode.js +7 -8
- package/dist/modes/agent-home-mode.js.map +1 -1
- package/dist/modes/json-mode.js +4 -4
- package/dist/modes/json-mode.js.map +1 -1
- package/dist/modes/print-mode.js +4 -3
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc-mode.js +2 -2
- package/dist/modes/rpc-mode.js.map +1 -1
- package/dist/modes/serve-mode.js +10 -11
- package/dist/modes/serve-mode.js.map +1 -1
- package/dist/modes/subagent-worker-mode.d.ts +1 -1
- package/dist/modes/subagent-worker-mode.js +8 -8
- package/dist/modes/subagent-worker-mode.js.map +1 -1
- package/dist/motion-agent/motion-agent.d.ts +3 -2
- package/dist/motion-agent/motion-agent.js +3 -2
- package/dist/motion-agent/motion-agent.js.map +1 -1
- package/dist/motion-agent/motion-bundle.d.ts +18 -0
- package/dist/motion-agent/motion-bundle.js +34 -0
- package/dist/motion-agent/motion-bundle.js.map +1 -0
- package/dist/subagent-entry-path.d.ts +1 -0
- package/dist/subagent-entry-path.js +13 -0
- package/dist/subagent-entry-path.js.map +1 -0
- package/dist/subagent-entry.d.ts +1 -1
- package/dist/subagent-entry.js +2 -1
- package/dist/subagent-entry.js.map +1 -1
- package/dist/ui/App.d.ts +8 -8
- package/dist/ui/App.js +20 -21
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/app-items.d.ts +1 -1
- package/dist/ui/components/BackgroundTasksBar.d.ts +1 -1
- package/dist/ui/components/Banner.js +1 -1
- package/dist/ui/components/Banner.js.map +1 -1
- package/dist/ui/components/ChatFooterPane.d.ts +1 -1
- package/dist/ui/components/ChatScreen.d.ts +4 -4
- package/dist/ui/components/Footer.d.ts +1 -1
- package/dist/ui/components/Footer.js +1 -1
- package/dist/ui/components/Footer.js.map +1 -1
- package/dist/ui/components/FooterStatusRow.d.ts +1 -1
- package/dist/ui/components/InputArea.d.ts +2 -2
- package/dist/ui/components/InputArea.js +2 -2
- package/dist/ui/components/InputArea.js.map +1 -1
- package/dist/ui/components/ModelSelector.js +1 -1
- package/dist/ui/components/ModelSelector.js.map +1 -1
- package/dist/ui/components/RewindOverlay.d.ts +1 -1
- package/dist/ui/components/RewindOverlay.js.map +1 -1
- package/dist/ui/components/SessionSelector.d.ts +1 -1
- package/dist/ui/components/SettingsSelector.d.ts +1 -1
- package/dist/ui/components/SkillsOverlay.js +2 -2
- package/dist/ui/components/SkillsOverlay.js.map +1 -1
- package/dist/ui/components/StreamingArea.js +1 -1
- package/dist/ui/components/StreamingArea.js.map +1 -1
- package/dist/ui/components/TaskPickerMenu.d.ts +1 -1
- package/dist/ui/components/ToolExecution.js +1 -1
- package/dist/ui/components/ToolExecution.js.map +1 -1
- package/dist/ui/error-item.js +2 -2
- package/dist/ui/error-item.js.map +1 -1
- package/dist/ui/hooks/useAgentLoop.d.ts +2 -2
- package/dist/ui/hooks/useAgentLoop.js +8 -8
- package/dist/ui/hooks/useAgentLoop.js.map +1 -1
- package/dist/ui/hooks/useChatLayoutMeasurements.d.ts +1 -1
- package/dist/ui/hooks/useContextCompaction.d.ts +3 -3
- package/dist/ui/hooks/useContextCompaction.js +6 -7
- package/dist/ui/hooks/useContextCompaction.js.map +1 -1
- package/dist/ui/hooks/useModeState.d.ts +2 -2
- package/dist/ui/hooks/useModeState.js +2 -2
- package/dist/ui/hooks/useModeState.js.map +1 -1
- package/dist/ui/hooks/useSessionPersistence.d.ts +1 -1
- package/dist/ui/hooks/useSessionPersistence.js +3 -3
- package/dist/ui/hooks/useSessionPersistence.js.map +1 -1
- package/dist/ui/hooks/useTaskPickerController.d.ts +1 -1
- package/dist/ui/hooks/useTaskPickerController.js +1 -1
- package/dist/ui/hooks/useTaskPickerController.js.map +1 -1
- package/dist/ui/hooks/useTranscriptHistory.d.ts +1 -1
- package/dist/ui/item-helpers.js +1 -1
- package/dist/ui/item-helpers.js.map +1 -1
- package/dist/ui/language-pack-update.d.ts +1 -1
- package/dist/ui/language-pack-update.js +1 -1
- package/dist/ui/language-pack-update.js.map +1 -1
- package/dist/ui/login.js +1 -1
- package/dist/ui/login.js.map +1 -1
- package/dist/ui/mcp.d.ts +1 -1
- package/dist/ui/prompt-routing.d.ts +3 -3
- package/dist/ui/prompt-routing.js +3 -3
- package/dist/ui/prompt-routing.js.map +1 -1
- package/dist/ui/render.d.ts +8 -8
- package/dist/ui/sessions.js +1 -1
- package/dist/ui/sessions.js.map +1 -1
- package/dist/ui/stores/taskbar-store.d.ts +1 -1
- package/dist/ui/stores/taskbar-store.js.map +1 -1
- package/dist/ui/submit-prompt-command.d.ts +2 -2
- package/dist/ui/submit-prompt-command.js +2 -3
- package/dist/ui/submit-prompt-command.js.map +1 -1
- package/dist/ui/terminal-history-status-renderers.d.ts +1 -1
- package/dist/ui/terminal-history.js +2 -3
- package/dist/ui/terminal-history.js.map +1 -1
- package/dist/ui/theme/theme.d.ts +2 -1
- package/dist/ui/theme/theme.js.map +1 -1
- package/dist/ui/thinking-level.d.ts +1 -1
- package/dist/ui/thinking-level.js +1 -1
- package/dist/ui/thinking-level.js.map +1 -1
- package/dist/ui/tool-line-summary.js +1 -1
- package/dist/ui/tool-line-summary.js.map +1 -1
- package/dist/ui/transcript/presentation.js +1 -1
- package/dist/ui/transcript/presentation.js.map +1 -1
- package/dist/ui/utils/text-utils.js +1 -1
- package/dist/ui/utils/text-utils.js.map +1 -1
- package/dist/utils/git-overview.d.ts +2 -23
- package/dist/utils/git-overview.js +8 -1
- package/dist/utils/git-overview.js.map +1 -1
- package/package.json +13 -103
- package/assets/skills/bulletproof/SKILL.md +0 -132
- package/assets/skills/bulletproof/references/agent-surface.md +0 -113
- package/assets/skills/bulletproof/references/attack-classes.md +0 -226
- package/assets/skills/bulletproof/references/audit-protocol.md +0 -232
- package/assets/skills/bulletproof/references/platform-playbooks.md +0 -196
- package/assets/skills/bulletproof/references/provenance.md +0 -146
- package/assets/skills/bulletproof/references/secure-defaults.md +0 -137
- package/assets/skills/bulletproof/references/supply-chain.md +0 -84
- package/assets/skills/bulletproof/references/threat-landscape.md +0 -66
- package/assets/skills/bulletproof/references/verification.md +0 -74
- package/assets/skills/compliance-guard/SKILL.md +0 -115
- package/assets/skills/compliance-guard/references/artifacts.md +0 -199
- package/assets/skills/compliance-guard/references/eu-uk.md +0 -162
- package/assets/skills/compliance-guard/references/exposure-triage.md +0 -177
- package/assets/skills/compliance-guard/references/full-review.md +0 -155
- package/assets/skills/compliance-guard/references/lawsuit-vectors.md +0 -153
- package/assets/skills/compliance-guard/references/provenance.md +0 -135
- package/assets/skills/compliance-guard/references/sector-gates.md +0 -187
- package/assets/skills/compliance-guard/references/security-baseline.md +0 -117
- package/assets/skills/compliance-guard/references/trigger-map.md +0 -177
- package/assets/skills/compliance-guard/references/us.md +0 -194
- package/assets/skills/durable/SKILL.md +0 -114
- package/assets/skills/durable/references/agent-db-safety.md +0 -76
- package/assets/skills/durable/references/backups-and-runtime.md +0 -93
- package/assets/skills/durable/references/migrations-and-schema.md +0 -87
- package/assets/skills/gg-guide/SKILL.md +0 -43
- package/assets/skills/gg-guide/references/chat-motion-goals.md +0 -217
- package/assets/skills/gg-guide/references/checklist-and-safety.md +0 -177
- package/assets/skills/gg-guide/references/code-mode.md +0 -266
- package/assets/skills/gg-guide/references/getting-started.md +0 -291
- package/assets/skills/gg-guide/references/ken-and-autopilot.md +0 -172
- package/assets/skills/gg-guide/references/mcp-and-skills.md +0 -204
- package/assets/skills/gg-guide/references/models-and-sign-in.md +0 -200
- package/assets/skills/gg-guide/references/sessions-and-history.md +0 -213
- package/assets/skills/gg-guide/references/settings.md +0 -193
- package/assets/skills/gg-guide/references/troubleshooting-and-data.md +0 -186
- package/assets/skills/lean/SKILL.md +0 -117
- package/assets/skills/lean/references/memory-and-processes.md +0 -99
- package/assets/skills/lean/references/playbooks.md +0 -134
- package/dist/app-error.d.ts +0 -22
- package/dist/app-error.js +0 -41
- package/dist/app-error.js.map +0 -1
- package/dist/config.d.ts +0 -90
- package/dist/config.js +0 -240
- package/dist/config.js.map +0 -1
- package/dist/core/acceptance-checks.d.ts +0 -48
- package/dist/core/acceptance-checks.js +0 -151
- package/dist/core/acceptance-checks.js.map +0 -1
- package/dist/core/action-threats.d.ts +0 -68
- package/dist/core/action-threats.js +0 -894
- package/dist/core/action-threats.js.map +0 -1
- package/dist/core/agent-notifications.d.ts +0 -79
- package/dist/core/agent-notifications.js +0 -125
- package/dist/core/agent-notifications.js.map +0 -1
- package/dist/core/agent-session/helpers.d.ts +0 -26
- package/dist/core/agent-session/helpers.js +0 -47
- package/dist/core/agent-session/helpers.js.map +0 -1
- package/dist/core/agent-session/mcp-tools.d.ts +0 -87
- package/dist/core/agent-session/mcp-tools.js +0 -227
- package/dist/core/agent-session/mcp-tools.js.map +0 -1
- package/dist/core/agent-session/run-loop-monitor.d.ts +0 -63
- package/dist/core/agent-session/run-loop-monitor.js +0 -164
- package/dist/core/agent-session/run-loop-monitor.js.map +0 -1
- package/dist/core/agent-session/transcript-markers.d.ts +0 -57
- package/dist/core/agent-session/transcript-markers.js +0 -166
- package/dist/core/agent-session/transcript-markers.js.map +0 -1
- package/dist/core/agent-session/verification-tracker.d.ts +0 -71
- package/dist/core/agent-session/verification-tracker.js +0 -295
- package/dist/core/agent-session/verification-tracker.js.map +0 -1
- package/dist/core/agent-session.d.ts +0 -1398
- package/dist/core/agent-session.js +0 -5123
- package/dist/core/agent-session.js.map +0 -1
- package/dist/core/agents.d.ts +0 -63
- package/dist/core/agents.js +0 -160
- package/dist/core/agents.js.map +0 -1
- package/dist/core/ask-user.d.ts +0 -163
- package/dist/core/ask-user.js +0 -178
- package/dist/core/ask-user.js.map +0 -1
- package/dist/core/auth/index.d.ts +0 -11
- package/dist/core/auth/index.js +0 -11
- package/dist/core/auth/index.js.map +0 -1
- package/dist/core/auth-providers.d.ts +0 -2
- package/dist/core/auth-providers.js +0 -5
- package/dist/core/auth-providers.js.map +0 -1
- package/dist/core/auth-storage.d.ts +0 -1
- package/dist/core/auth-storage.js +0 -4
- package/dist/core/auth-storage.js.map +0 -1
- package/dist/core/auto-update.d.ts +0 -6
- package/dist/core/auto-update.js +0 -15
- package/dist/core/auto-update.js.map +0 -1
- package/dist/core/autopilot-cycle.d.ts +0 -127
- package/dist/core/autopilot-cycle.js +0 -182
- package/dist/core/autopilot-cycle.js.map +0 -1
- package/dist/core/autopilot-gate.d.ts +0 -106
- package/dist/core/autopilot-gate.js +0 -192
- package/dist/core/autopilot-gate.js.map +0 -1
- package/dist/core/autopilot-verdict.d.ts +0 -55
- package/dist/core/autopilot-verdict.js +0 -226
- package/dist/core/autopilot-verdict.js.map +0 -1
- package/dist/core/blocked-packages-file.d.ts +0 -33
- package/dist/core/blocked-packages-file.js +0 -274
- package/dist/core/blocked-packages-file.js.map +0 -1
- package/dist/core/bundled-agents.d.ts +0 -2
- package/dist/core/bundled-agents.js +0 -253
- package/dist/core/bundled-agents.js.map +0 -1
- package/dist/core/cache-diagnostics.d.ts +0 -72
- package/dist/core/cache-diagnostics.js +0 -200
- package/dist/core/cache-diagnostics.js.map +0 -1
- package/dist/core/cache-expiry.d.ts +0 -89
- package/dist/core/cache-expiry.js +0 -117
- package/dist/core/cache-expiry.js.map +0 -1
- package/dist/core/checklist-detection.d.ts +0 -11
- package/dist/core/checklist-detection.js +0 -238
- package/dist/core/checklist-detection.js.map +0 -1
- package/dist/core/checklist-git.d.ts +0 -19
- package/dist/core/checklist-git.js +0 -54
- package/dist/core/checklist-git.js.map +0 -1
- package/dist/core/checklist-items.d.ts +0 -181
- package/dist/core/checklist-items.js +0 -230
- package/dist/core/checklist-items.js.map +0 -1
- package/dist/core/checklist-prompt.d.ts +0 -14
- package/dist/core/checklist-prompt.js +0 -64
- package/dist/core/checklist-prompt.js.map +0 -1
- package/dist/core/checklist-snapshot.d.ts +0 -17
- package/dist/core/checklist-snapshot.js +0 -46
- package/dist/core/checklist-snapshot.js.map +0 -1
- package/dist/core/checklist-store.d.ts +0 -63
- package/dist/core/checklist-store.js +0 -273
- package/dist/core/checklist-store.js.map +0 -1
- package/dist/core/checkout-record.d.ts +0 -22
- package/dist/core/checkout-record.js +0 -68
- package/dist/core/checkout-record.js.map +0 -1
- package/dist/core/checkpoint-store.d.ts +0 -109
- package/dist/core/checkpoint-store.js +0 -260
- package/dist/core/checkpoint-store.js.map +0 -1
- package/dist/core/claude-code/complete.d.ts +0 -35
- package/dist/core/claude-code/complete.js +0 -125
- package/dist/core/claude-code/complete.js.map +0 -1
- package/dist/core/claude-code/events.d.ts +0 -67
- package/dist/core/claude-code/events.js +0 -460
- package/dist/core/claude-code/events.js.map +0 -1
- package/dist/core/claude-code/live-session.d.ts +0 -94
- package/dist/core/claude-code/live-session.js +0 -525
- package/dist/core/claude-code/live-session.js.map +0 -1
- package/dist/core/claude-code/loop.d.ts +0 -9
- package/dist/core/claude-code/loop.js +0 -15
- package/dist/core/claude-code/loop.js.map +0 -1
- package/dist/core/claude-code/session-sync.d.ts +0 -28
- package/dist/core/claude-code/session-sync.js +0 -53
- package/dist/core/claude-code/session-sync.js.map +0 -1
- package/dist/core/claude-code/tool-bridge.d.ts +0 -49
- package/dist/core/claude-code/tool-bridge.js +0 -352
- package/dist/core/claude-code/tool-bridge.js.map +0 -1
- package/dist/core/claude-code/transcripts.d.ts +0 -39
- package/dist/core/claude-code/transcripts.js +0 -195
- package/dist/core/claude-code/transcripts.js.map +0 -1
- package/dist/core/code-retrieval-chunkers.d.ts +0 -26
- package/dist/core/code-retrieval-chunkers.js +0 -264
- package/dist/core/code-retrieval-chunkers.js.map +0 -1
- package/dist/core/code-retrieval.d.ts +0 -18
- package/dist/core/code-retrieval.js +0 -124
- package/dist/core/code-retrieval.js.map +0 -1
- package/dist/core/codex-request-shape.d.ts +0 -7
- package/dist/core/codex-request-shape.js +0 -19
- package/dist/core/codex-request-shape.js.map +0 -1
- package/dist/core/compaction/active-context.d.ts +0 -16
- package/dist/core/compaction/active-context.js +0 -20
- package/dist/core/compaction/active-context.js.map +0 -1
- package/dist/core/compaction/compactor.d.ts +0 -281
- package/dist/core/compaction/compactor.js +0 -1452
- package/dist/core/compaction/compactor.js.map +0 -1
- package/dist/core/compaction/plan-step-policy.d.ts +0 -46
- package/dist/core/compaction/plan-step-policy.js +0 -57
- package/dist/core/compaction/plan-step-policy.js.map +0 -1
- package/dist/core/compaction/policy.d.ts +0 -36
- package/dist/core/compaction/policy.js +0 -144
- package/dist/core/compaction/policy.js.map +0 -1
- package/dist/core/compaction/query-aware-selector.d.ts +0 -32
- package/dist/core/compaction/query-aware-selector.js +0 -202
- package/dist/core/compaction/query-aware-selector.js.map +0 -1
- package/dist/core/compaction/token-estimator.d.ts +0 -36
- package/dist/core/compaction/token-estimator.js +0 -180
- package/dist/core/compaction/token-estimator.js.map +0 -1
- package/dist/core/compaction/tool-result-pruner.d.ts +0 -90
- package/dist/core/compaction/tool-result-pruner.js +0 -238
- package/dist/core/compaction/tool-result-pruner.js.map +0 -1
- package/dist/core/completion-review.d.ts +0 -24
- package/dist/core/completion-review.js +0 -2
- package/dist/core/completion-review.js.map +0 -1
- package/dist/core/context-files.d.ts +0 -8
- package/dist/core/context-files.js +0 -46
- package/dist/core/context-files.js.map +0 -1
- package/dist/core/context-limits.d.ts +0 -40
- package/dist/core/context-limits.js +0 -43
- package/dist/core/context-limits.js.map +0 -1
- package/dist/core/custom-commands.d.ts +0 -18
- package/dist/core/custom-commands.js +0 -57
- package/dist/core/custom-commands.js.map +0 -1
- package/dist/core/destructive-git-guard.d.ts +0 -113
- package/dist/core/destructive-git-guard.js +0 -874
- package/dist/core/destructive-git-guard.js.map +0 -1
- package/dist/core/encode-cwd.d.ts +0 -41
- package/dist/core/encode-cwd.js +0 -53
- package/dist/core/encode-cwd.js.map +0 -1
- package/dist/core/env-delta.d.ts +0 -34
- package/dist/core/env-delta.js +0 -84
- package/dist/core/env-delta.js.map +0 -1
- package/dist/core/event-bus.d.ts +0 -178
- package/dist/core/event-bus.js +0 -171
- package/dist/core/event-bus.js.map +0 -1
- package/dist/core/extensions/loader.d.ts +0 -7
- package/dist/core/extensions/loader.js +0 -68
- package/dist/core/extensions/loader.js.map +0 -1
- package/dist/core/extensions/plugin-bundles.d.ts +0 -13
- package/dist/core/extensions/plugin-bundles.js +0 -45
- package/dist/core/extensions/plugin-bundles.js.map +0 -1
- package/dist/core/extensions/types.d.ts +0 -18
- package/dist/core/extensions/types.js +0 -2
- package/dist/core/extensions/types.js.map +0 -1
- package/dist/core/foreign-session-import.d.ts +0 -119
- package/dist/core/foreign-session-import.js +0 -598
- package/dist/core/foreign-session-import.js.map +0 -1
- package/dist/core/foreign-transcript-blocks.d.ts +0 -50
- package/dist/core/foreign-transcript-blocks.js +0 -151
- package/dist/core/foreign-transcript-blocks.js.map +0 -1
- package/dist/core/frontmatter.d.ts +0 -22
- package/dist/core/frontmatter.js +0 -90
- package/dist/core/frontmatter.js.map +0 -1
- package/dist/core/goal-run-marker.d.ts +0 -32
- package/dist/core/goal-run-marker.js +0 -178
- package/dist/core/goal-run-marker.js.map +0 -1
- package/dist/core/goal-summary.d.ts +0 -32
- package/dist/core/goal-summary.js +0 -110
- package/dist/core/goal-summary.js.map +0 -1
- package/dist/core/goals-store.d.ts +0 -215
- package/dist/core/goals-store.js +0 -577
- package/dist/core/goals-store.js.map +0 -1
- package/dist/core/hashline.d.ts +0 -51
- package/dist/core/hashline.js +0 -76
- package/dist/core/hashline.js.map +0 -1
- package/dist/core/idle-wake.d.ts +0 -62
- package/dist/core/idle-wake.js +0 -103
- package/dist/core/idle-wake.js.map +0 -1
- package/dist/core/index.d.ts +0 -14
- package/dist/core/index.js +0 -14
- package/dist/core/index.js.map +0 -1
- package/dist/core/injection-detect.d.ts +0 -39
- package/dist/core/injection-detect.js +0 -241
- package/dist/core/injection-detect.js.map +0 -1
- package/dist/core/installed-threats.d.ts +0 -23
- package/dist/core/installed-threats.js +0 -71
- package/dist/core/installed-threats.js.map +0 -1
- package/dist/core/internal-diagnostics.d.ts +0 -159
- package/dist/core/internal-diagnostics.js +0 -495
- package/dist/core/internal-diagnostics.js.map +0 -1
- package/dist/core/keep-awake.d.ts +0 -88
- package/dist/core/keep-awake.js +0 -251
- package/dist/core/keep-awake.js.map +0 -1
- package/dist/core/ken-ask-answer.d.ts +0 -24
- package/dist/core/ken-ask-answer.js +0 -96
- package/dist/core/ken-ask-answer.js.map +0 -1
- package/dist/core/ken-context.d.ts +0 -119
- package/dist/core/ken-context.js +0 -447
- package/dist/core/ken-context.js.map +0 -1
- package/dist/core/ken-model.d.ts +0 -45
- package/dist/core/ken-model.js +0 -26
- package/dist/core/ken-model.js.map +0 -1
- package/dist/core/ken-prompt.d.ts +0 -21
- package/dist/core/ken-prompt.js +0 -370
- package/dist/core/ken-prompt.js.map +0 -1
- package/dist/core/language-detector.d.ts +0 -41
- package/dist/core/language-detector.js +0 -293
- package/dist/core/language-detector.js.map +0 -1
- package/dist/core/live-preview.d.ts +0 -26
- package/dist/core/live-preview.js +0 -80
- package/dist/core/live-preview.js.map +0 -1
- package/dist/core/local-endpoint-store.d.ts +0 -53
- package/dist/core/local-endpoint-store.js +0 -221
- package/dist/core/local-endpoint-store.js.map +0 -1
- package/dist/core/logger.d.ts +0 -22
- package/dist/core/logger.js +0 -95
- package/dist/core/logger.js.map +0 -1
- package/dist/core/loop-breaker.d.ts +0 -89
- package/dist/core/loop-breaker.js +0 -204
- package/dist/core/loop-breaker.js.map +0 -1
- package/dist/core/lsp/client.d.ts +0 -206
- package/dist/core/lsp/client.js +0 -685
- package/dist/core/lsp/client.js.map +0 -1
- package/dist/core/lsp/edit-telemetry.d.ts +0 -26
- package/dist/core/lsp/edit-telemetry.js +0 -52
- package/dist/core/lsp/edit-telemetry.js.map +0 -1
- package/dist/core/lsp/format.d.ts +0 -11
- package/dist/core/lsp/format.js +0 -30
- package/dist/core/lsp/format.js.map +0 -1
- package/dist/core/lsp/jsonrpc.d.ts +0 -68
- package/dist/core/lsp/jsonrpc.js +0 -153
- package/dist/core/lsp/jsonrpc.js.map +0 -1
- package/dist/core/lsp/manager.d.ts +0 -188
- package/dist/core/lsp/manager.js +0 -576
- package/dist/core/lsp/manager.js.map +0 -1
- package/dist/core/lsp/pool.d.ts +0 -114
- package/dist/core/lsp/pool.js +0 -259
- package/dist/core/lsp/pool.js.map +0 -1
- package/dist/core/lsp/project-root.d.ts +0 -9
- package/dist/core/lsp/project-root.js +0 -75
- package/dist/core/lsp/project-root.js.map +0 -1
- package/dist/core/lsp/reference-project.d.ts +0 -6
- package/dist/core/lsp/reference-project.js +0 -110
- package/dist/core/lsp/reference-project.js.map +0 -1
- package/dist/core/lsp/servers.d.ts +0 -44
- package/dist/core/lsp/servers.js +0 -289
- package/dist/core/lsp/servers.js.map +0 -1
- package/dist/core/lsp/test-support.d.ts +0 -17
- package/dist/core/lsp/test-support.js +0 -27
- package/dist/core/lsp/test-support.js.map +0 -1
- package/dist/core/mcp/catalog-cache.d.ts +0 -64
- package/dist/core/mcp/catalog-cache.js +0 -167
- package/dist/core/mcp/catalog-cache.js.map +0 -1
- package/dist/core/mcp/client.d.ts +0 -317
- package/dist/core/mcp/client.js +0 -1168
- package/dist/core/mcp/client.js.map +0 -1
- package/dist/core/mcp/content.d.ts +0 -23
- package/dist/core/mcp/content.js +0 -194
- package/dist/core/mcp/content.js.map +0 -1
- package/dist/core/mcp/defaults.d.ts +0 -26
- package/dist/core/mcp/defaults.js +0 -81
- package/dist/core/mcp/defaults.js.map +0 -1
- package/dist/core/mcp/deferred-catalog.d.ts +0 -53
- package/dist/core/mcp/deferred-catalog.js +0 -117
- package/dist/core/mcp/deferred-catalog.js.map +0 -1
- package/dist/core/mcp/elicitation-bridge.d.ts +0 -40
- package/dist/core/mcp/elicitation-bridge.js +0 -36
- package/dist/core/mcp/elicitation-bridge.js.map +0 -1
- package/dist/core/mcp/index.d.ts +0 -16
- package/dist/core/mcp/index.js +0 -10
- package/dist/core/mcp/index.js.map +0 -1
- package/dist/core/mcp/loopback.d.ts +0 -26
- package/dist/core/mcp/loopback.js +0 -66
- package/dist/core/mcp/loopback.js.map +0 -1
- package/dist/core/mcp/oauth-provider.d.ts +0 -55
- package/dist/core/mcp/oauth-provider.js +0 -106
- package/dist/core/mcp/oauth-provider.js.map +0 -1
- package/dist/core/mcp/oauth-store.d.ts +0 -44
- package/dist/core/mcp/oauth-store.js +0 -77
- package/dist/core/mcp/oauth-store.js.map +0 -1
- package/dist/core/mcp/parse-add-command.d.ts +0 -50
- package/dist/core/mcp/parse-add-command.js +0 -391
- package/dist/core/mcp/parse-add-command.js.map +0 -1
- package/dist/core/mcp/resolve-stdio.d.ts +0 -77
- package/dist/core/mcp/resolve-stdio.js +0 -359
- package/dist/core/mcp/resolve-stdio.js.map +0 -1
- package/dist/core/mcp/shared-pool.d.ts +0 -157
- package/dist/core/mcp/shared-pool.js +0 -236
- package/dist/core/mcp/shared-pool.js.map +0 -1
- package/dist/core/mcp/store.d.ts +0 -100
- package/dist/core/mcp/store.js +0 -202
- package/dist/core/mcp/store.js.map +0 -1
- package/dist/core/mcp/tool-guard.d.ts +0 -58
- package/dist/core/mcp/tool-guard.js +0 -215
- package/dist/core/mcp/tool-guard.js.map +0 -1
- package/dist/core/mcp/types.d.ts +0 -57
- package/dist/core/mcp/types.js +0 -2
- package/dist/core/mcp/types.js.map +0 -1
- package/dist/core/message-images.d.ts +0 -11
- package/dist/core/message-images.js +0 -52
- package/dist/core/message-images.js.map +0 -1
- package/dist/core/model-registry.d.ts +0 -1
- package/dist/core/model-registry.js +0 -5
- package/dist/core/model-registry.js.map +0 -1
- package/dist/core/model-unavailable.d.ts +0 -14
- package/dist/core/model-unavailable.js +0 -23
- package/dist/core/model-unavailable.js.map +0 -1
- package/dist/core/network-guard.d.ts +0 -28
- package/dist/core/network-guard.js +0 -251
- package/dist/core/network-guard.js.map +0 -1
- package/dist/core/node-debugger.d.ts +0 -148
- package/dist/core/node-debugger.js +0 -642
- package/dist/core/node-debugger.js.map +0 -1
- package/dist/core/oauth/openai.d.ts +0 -1
- package/dist/core/oauth/openai.js +0 -3
- package/dist/core/oauth/openai.js.map +0 -1
- package/dist/core/oauth/types.d.ts +0 -1
- package/dist/core/oauth/types.js +0 -2
- package/dist/core/oauth/types.js.map +0 -1
- package/dist/core/opencode-catalog-store.d.ts +0 -20
- package/dist/core/opencode-catalog-store.js +0 -82
- package/dist/core/opencode-catalog-store.js.map +0 -1
- package/dist/core/openrouter-catalog-store.d.ts +0 -24
- package/dist/core/openrouter-catalog-store.js +0 -140
- package/dist/core/openrouter-catalog-store.js.map +0 -1
- package/dist/core/package-cooldown.d.ts +0 -69
- package/dist/core/package-cooldown.js +0 -297
- package/dist/core/package-cooldown.js.map +0 -1
- package/dist/core/package-threats.d.ts +0 -92
- package/dist/core/package-threats.js +0 -1340
- package/dist/core/package-threats.js.map +0 -1
- package/dist/core/parked-requests.d.ts +0 -43
- package/dist/core/parked-requests.js +0 -34
- package/dist/core/parked-requests.js.map +0 -1
- package/dist/core/persistent-shell.d.ts +0 -81
- package/dist/core/persistent-shell.js +0 -452
- package/dist/core/persistent-shell.js.map +0 -1
- package/dist/core/plan-delta.d.ts +0 -23
- package/dist/core/plan-delta.js +0 -36
- package/dist/core/plan-delta.js.map +0 -1
- package/dist/core/plan-handoff.d.ts +0 -38
- package/dist/core/plan-handoff.js +0 -21
- package/dist/core/plan-handoff.js.map +0 -1
- package/dist/core/plan-submission-gate.d.ts +0 -28
- package/dist/core/plan-submission-gate.js +0 -27
- package/dist/core/plan-submission-gate.js.map +0 -1
- package/dist/core/platform-clis.d.ts +0 -15
- package/dist/core/platform-clis.js +0 -299
- package/dist/core/platform-clis.js.map +0 -1
- package/dist/core/process-gate.d.ts +0 -61
- package/dist/core/process-gate.js +0 -103
- package/dist/core/process-gate.js.map +0 -1
- package/dist/core/process-manager.d.ts +0 -242
- package/dist/core/process-manager.js +0 -902
- package/dist/core/process-manager.js.map +0 -1
- package/dist/core/progress/engine.d.ts +0 -22
- package/dist/core/progress/engine.js +0 -131
- package/dist/core/progress/engine.js.map +0 -1
- package/dist/core/progress/git-xp.d.ts +0 -15
- package/dist/core/progress/git-xp.js +0 -100
- package/dist/core/progress/git-xp.js.map +0 -1
- package/dist/core/progress/ranks.d.ts +0 -31
- package/dist/core/progress/ranks.js +0 -310
- package/dist/core/progress/ranks.js.map +0 -1
- package/dist/core/progress/rebuild.d.ts +0 -8
- package/dist/core/progress/rebuild.js +0 -125
- package/dist/core/progress/rebuild.js.map +0 -1
- package/dist/core/progress/store.d.ts +0 -34
- package/dist/core/progress/store.js +0 -200
- package/dist/core/progress/store.js.map +0 -1
- package/dist/core/progress/types.d.ts +0 -108
- package/dist/core/progress/types.js +0 -3
- package/dist/core/progress/types.js.map +0 -1
- package/dist/core/project-discovery.d.ts +0 -88
- package/dist/core/project-discovery.js +0 -907
- package/dist/core/project-discovery.js.map +0 -1
- package/dist/core/project-files.d.ts +0 -15
- package/dist/core/project-files.js +0 -37
- package/dist/core/project-files.js.map +0 -1
- package/dist/core/project-health-scan.d.ts +0 -109
- package/dist/core/project-health-scan.js +0 -673
- package/dist/core/project-health-scan.js.map +0 -1
- package/dist/core/project-health-score.d.ts +0 -41
- package/dist/core/project-health-score.js +0 -257
- package/dist/core/project-health-score.js.map +0 -1
- package/dist/core/prompt-command-expansion.d.ts +0 -13
- package/dist/core/prompt-command-expansion.js +0 -48
- package/dist/core/prompt-command-expansion.js.map +0 -1
- package/dist/core/prompt-commands.d.ts +0 -13
- package/dist/core/prompt-commands.js +0 -370
- package/dist/core/prompt-commands.js.map +0 -1
- package/dist/core/radio-players.d.ts +0 -28
- package/dist/core/radio-players.js +0 -133
- package/dist/core/radio-players.js.map +0 -1
- package/dist/core/radio.d.ts +0 -50
- package/dist/core/radio.js +0 -480
- package/dist/core/radio.js.map +0 -1
- package/dist/core/regrounding.d.ts +0 -37
- package/dist/core/regrounding.js +0 -89
- package/dist/core/regrounding.js.map +0 -1
- package/dist/core/resolve-start.d.ts +0 -28
- package/dist/core/resolve-start.js +0 -35
- package/dist/core/resolve-start.js.map +0 -1
- package/dist/core/run-claim.d.ts +0 -36
- package/dist/core/run-claim.js +0 -46
- package/dist/core/run-claim.js.map +0 -1
- package/dist/core/run-lifecycle.d.ts +0 -58
- package/dist/core/run-lifecycle.js +0 -104
- package/dist/core/run-lifecycle.js.map +0 -1
- package/dist/core/run-status.d.ts +0 -17
- package/dist/core/run-status.js +0 -28
- package/dist/core/run-status.js.map +0 -1
- package/dist/core/runtime-mode.d.ts +0 -21
- package/dist/core/runtime-mode.js +0 -43
- package/dist/core/runtime-mode.js.map +0 -1
- package/dist/core/sandbox-domains.d.ts +0 -13
- package/dist/core/sandbox-domains.js +0 -76
- package/dist/core/sandbox-domains.js.map +0 -1
- package/dist/core/sandbox-feedback.d.ts +0 -21
- package/dist/core/sandbox-feedback.js +0 -69
- package/dist/core/sandbox-feedback.js.map +0 -1
- package/dist/core/sandbox.d.ts +0 -106
- package/dist/core/sandbox.js +0 -383
- package/dist/core/sandbox.js.map +0 -1
- package/dist/core/semantic-loop-check.d.ts +0 -58
- package/dist/core/semantic-loop-check.js +0 -103
- package/dist/core/semantic-loop-check.js.map +0 -1
- package/dist/core/session-compaction.d.ts +0 -23
- package/dist/core/session-compaction.js +0 -54
- package/dist/core/session-compaction.js.map +0 -1
- package/dist/core/session-export.d.ts +0 -97
- package/dist/core/session-export.js +0 -368
- package/dist/core/session-export.js.map +0 -1
- package/dist/core/session-history.d.ts +0 -160
- package/dist/core/session-history.js +0 -467
- package/dist/core/session-history.js.map +0 -1
- package/dist/core/session-manager.d.ts +0 -509
- package/dist/core/session-manager.js +0 -1367
- package/dist/core/session-manager.js.map +0 -1
- package/dist/core/session-preview.d.ts +0 -12
- package/dist/core/session-preview.js +0 -58
- package/dist/core/session-preview.js.map +0 -1
- package/dist/core/session-storage.d.ts +0 -78
- package/dist/core/session-storage.js +0 -659
- package/dist/core/session-storage.js.map +0 -1
- package/dist/core/session-summary-index.d.ts +0 -51
- package/dist/core/session-summary-index.js +0 -192
- package/dist/core/session-summary-index.js.map +0 -1
- package/dist/core/settings-manager.d.ts +0 -113
- package/dist/core/settings-manager.js +0 -281
- package/dist/core/settings-manager.js.map +0 -1
- package/dist/core/shared-checkout-guard.d.ts +0 -78
- package/dist/core/shared-checkout-guard.js +0 -219
- package/dist/core/shared-checkout-guard.js.map +0 -1
- package/dist/core/shell-path.d.ts +0 -13
- package/dist/core/shell-path.js +0 -175
- package/dist/core/shell-path.js.map +0 -1
- package/dist/core/shell-threats-popular-packages.d.ts +0 -11
- package/dist/core/shell-threats-popular-packages.js +0 -675
- package/dist/core/shell-threats-popular-packages.js.map +0 -1
- package/dist/core/shell-threats.d.ts +0 -21
- package/dist/core/shell-threats.js +0 -235
- package/dist/core/shell-threats.js.map +0 -1
- package/dist/core/shell.d.ts +0 -54
- package/dist/core/shell.js +0 -99
- package/dist/core/shell.js.map +0 -1
- package/dist/core/shutdown.d.ts +0 -70
- package/dist/core/shutdown.js +0 -144
- package/dist/core/shutdown.js.map +0 -1
- package/dist/core/skill-scan.d.ts +0 -112
- package/dist/core/skill-scan.js +0 -781
- package/dist/core/skill-scan.js.map +0 -1
- package/dist/core/skills.d.ts +0 -100
- package/dist/core/skills.js +0 -299
- package/dist/core/skills.js.map +0 -1
- package/dist/core/slash-commands.d.ts +0 -58
- package/dist/core/slash-commands.js +0 -242
- package/dist/core/slash-commands.js.map +0 -1
- package/dist/core/steering.d.ts +0 -47
- package/dist/core/steering.js +0 -65
- package/dist/core/steering.js.map +0 -1
- package/dist/core/steroids.d.ts +0 -66
- package/dist/core/steroids.js +0 -243
- package/dist/core/steroids.js.map +0 -1
- package/dist/core/stream-diag-level.d.ts +0 -3
- package/dist/core/stream-diag-level.js +0 -24
- package/dist/core/stream-diag-level.js.map +0 -1
- package/dist/core/stream-rules.d.ts +0 -30
- package/dist/core/stream-rules.js +0 -151
- package/dist/core/stream-rules.js.map +0 -1
- package/dist/core/subagent-manager.d.ts +0 -239
- package/dist/core/subagent-manager.js +0 -1060
- package/dist/core/subagent-manager.js.map +0 -1
- package/dist/core/subagent-policy.d.ts +0 -9
- package/dist/core/subagent-policy.js +0 -41
- package/dist/core/subagent-policy.js.map +0 -1
- package/dist/core/subagent-receipt.d.ts +0 -54
- package/dist/core/subagent-receipt.js +0 -274
- package/dist/core/subagent-receipt.js.map +0 -1
- package/dist/core/subagent-store.d.ts +0 -41
- package/dist/core/subagent-store.js +0 -284
- package/dist/core/subagent-store.js.map +0 -1
- package/dist/core/subagent-turn-record.d.ts +0 -18
- package/dist/core/subagent-turn-record.js +0 -82
- package/dist/core/subagent-turn-record.js.map +0 -1
- package/dist/core/tasks-store.d.ts +0 -31
- package/dist/core/tasks-store.js +0 -97
- package/dist/core/tasks-store.js.map +0 -1
- package/dist/core/telegram-config.d.ts +0 -20
- package/dist/core/telegram-config.js +0 -52
- package/dist/core/telegram-config.js.map +0 -1
- package/dist/core/telegram.d.ts +0 -1
- package/dist/core/telegram.js +0 -3
- package/dist/core/telegram.js.map +0 -1
- package/dist/core/temp-paths.d.ts +0 -5
- package/dist/core/temp-paths.js +0 -50
- package/dist/core/temp-paths.js.map +0 -1
- package/dist/core/test-impact.d.ts +0 -73
- package/dist/core/test-impact.js +0 -467
- package/dist/core/test-impact.js.map +0 -1
- package/dist/core/thinking-level.d.ts +0 -1
- package/dist/core/thinking-level.js +0 -4
- package/dist/core/thinking-level.js.map +0 -1
- package/dist/core/threat-feed.d.ts +0 -65
- package/dist/core/threat-feed.js +0 -335
- package/dist/core/threat-feed.js.map +0 -1
- package/dist/core/trophies/catalog-more.d.ts +0 -2
- package/dist/core/trophies/catalog-more.js +0 -837
- package/dist/core/trophies/catalog-more.js.map +0 -1
- package/dist/core/trophies/catalog.d.ts +0 -4
- package/dist/core/trophies/catalog.js +0 -649
- package/dist/core/trophies/catalog.js.map +0 -1
- package/dist/core/trophies/engine.d.ts +0 -70
- package/dist/core/trophies/engine.js +0 -347
- package/dist/core/trophies/engine.js.map +0 -1
- package/dist/core/trophies/store.d.ts +0 -17
- package/dist/core/trophies/store.js +0 -113
- package/dist/core/trophies/store.js.map +0 -1
- package/dist/core/trophies/types.d.ts +0 -119
- package/dist/core/trophies/types.js +0 -76
- package/dist/core/trophies/types.js.map +0 -1
- package/dist/core/ui-adoption.d.ts +0 -32
- package/dist/core/ui-adoption.js +0 -302
- package/dist/core/ui-adoption.js.map +0 -1
- package/dist/core/ui-compatibility.d.ts +0 -10
- package/dist/core/ui-compatibility.js +0 -51
- package/dist/core/ui-compatibility.js.map +0 -1
- package/dist/core/ui-registry.d.ts +0 -101
- package/dist/core/ui-registry.js +0 -292
- package/dist/core/ui-registry.js.map +0 -1
- package/dist/core/user-shell-context.d.ts +0 -8
- package/dist/core/user-shell-context.js +0 -12
- package/dist/core/user-shell-context.js.map +0 -1
- package/dist/core/verification-evidence.d.ts +0 -49
- package/dist/core/verification-evidence.js +0 -816
- package/dist/core/verification-evidence.js.map +0 -1
- package/dist/core/verification-gate.d.ts +0 -77
- package/dist/core/verification-gate.js +0 -504
- package/dist/core/verification-gate.js.map +0 -1
- package/dist/core/verification-snapshot.d.ts +0 -7
- package/dist/core/verification-snapshot.js +0 -109
- package/dist/core/verification-snapshot.js.map +0 -1
- package/dist/core/verify-commands.d.ts +0 -34
- package/dist/core/verify-commands.js +0 -203
- package/dist/core/verify-commands.js.map +0 -1
- package/dist/core/voice-transcriber.d.ts +0 -1
- package/dist/core/voice-transcriber.js +0 -4
- package/dist/core/voice-transcriber.js.map +0 -1
- package/dist/core/workspace-guard.d.ts +0 -56
- package/dist/core/workspace-guard.js +0 -334
- package/dist/core/workspace-guard.js.map +0 -1
- package/dist/session.d.ts +0 -44
- package/dist/session.js +0 -105
- package/dist/session.js.map +0 -1
- package/dist/system-prompt.d.ts +0 -104
- package/dist/system-prompt.js +0 -480
- package/dist/system-prompt.js.map +0 -1
- package/dist/test-support/fake-home.d.ts +0 -19
- package/dist/test-support/fake-home.js +0 -37
- package/dist/test-support/fake-home.js.map +0 -1
- package/dist/test-support/keep-alive.d.ts +0 -14
- package/dist/test-support/keep-alive.js +0 -17
- package/dist/test-support/keep-alive.js.map +0 -1
- package/dist/test-support/slow-git.d.ts +0 -1
- package/dist/test-support/slow-git.js +0 -21
- package/dist/test-support/slow-git.js.map +0 -1
- package/dist/test-support/system-tools.d.ts +0 -6
- package/dist/test-support/system-tools.js +0 -36
- package/dist/test-support/system-tools.js.map +0 -1
- package/dist/tools/ask-user.d.ts +0 -34
- package/dist/tools/ask-user.js +0 -99
- package/dist/tools/ask-user.js.map +0 -1
- package/dist/tools/background-watch-lint.d.ts +0 -18
- package/dist/tools/background-watch-lint.js +0 -102
- package/dist/tools/background-watch-lint.js.map +0 -1
- package/dist/tools/bash-read-evidence.d.ts +0 -23
- package/dist/tools/bash-read-evidence.js +0 -180
- package/dist/tools/bash-read-evidence.js.map +0 -1
- package/dist/tools/bash.d.ts +0 -64
- package/dist/tools/bash.js +0 -552
- package/dist/tools/bash.js.map +0 -1
- package/dist/tools/browser-api.d.ts +0 -27
- package/dist/tools/browser-api.js +0 -449
- package/dist/tools/browser-api.js.map +0 -1
- package/dist/tools/browser-sandbox.d.ts +0 -16
- package/dist/tools/browser-sandbox.js +0 -158
- package/dist/tools/browser-sandbox.js.map +0 -1
- package/dist/tools/browser-session.d.ts +0 -84
- package/dist/tools/browser-session.js +0 -304
- package/dist/tools/browser-session.js.map +0 -1
- package/dist/tools/browser-snapshot.d.ts +0 -19
- package/dist/tools/browser-snapshot.js +0 -109
- package/dist/tools/browser-snapshot.js.map +0 -1
- package/dist/tools/browser.d.ts +0 -11
- package/dist/tools/browser.js +0 -106
- package/dist/tools/browser.js.map +0 -1
- package/dist/tools/checklist.d.ts +0 -49
- package/dist/tools/checklist.js +0 -154
- package/dist/tools/checklist.js.map +0 -1
- package/dist/tools/compress.d.ts +0 -56
- package/dist/tools/compress.js +0 -226
- package/dist/tools/compress.js.map +0 -1
- package/dist/tools/debug.d.ts +0 -54
- package/dist/tools/debug.js +0 -230
- package/dist/tools/debug.js.map +0 -1
- package/dist/tools/document-text.d.ts +0 -6
- package/dist/tools/document-text.js +0 -154
- package/dist/tools/document-text.js.map +0 -1
- package/dist/tools/edit-diff.d.ts +0 -123
- package/dist/tools/edit-diff.js +0 -476
- package/dist/tools/edit-diff.js.map +0 -1
- package/dist/tools/edit-targets.d.ts +0 -10
- package/dist/tools/edit-targets.js +0 -31
- package/dist/tools/edit-targets.js.map +0 -1
- package/dist/tools/edit.d.ts +0 -38
- package/dist/tools/edit.js +0 -695
- package/dist/tools/edit.js.map +0 -1
- package/dist/tools/enter-plan.d.ts +0 -7
- package/dist/tools/enter-plan.js +0 -20
- package/dist/tools/enter-plan.js.map +0 -1
- package/dist/tools/exit-plan.d.ts +0 -7
- package/dist/tools/exit-plan.js +0 -51
- package/dist/tools/exit-plan.js.map +0 -1
- package/dist/tools/find.d.ts +0 -17
- package/dist/tools/find.js +0 -100
- package/dist/tools/find.js.map +0 -1
- package/dist/tools/generate-image.d.ts +0 -83
- package/dist/tools/generate-image.js +0 -625
- package/dist/tools/generate-image.js.map +0 -1
- package/dist/tools/grep-scan.d.ts +0 -96
- package/dist/tools/grep-scan.js +0 -283
- package/dist/tools/grep-scan.js.map +0 -1
- package/dist/tools/grep.d.ts +0 -48
- package/dist/tools/grep.js +0 -1013
- package/dist/tools/grep.js.map +0 -1
- package/dist/tools/html-extract.d.ts +0 -57
- package/dist/tools/html-extract.js +0 -130
- package/dist/tools/html-extract.js.map +0 -1
- package/dist/tools/index.d.ts +0 -198
- package/dist/tools/index.js +0 -216
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/live-preview.d.ts +0 -23
- package/dist/tools/live-preview.js +0 -41
- package/dist/tools/live-preview.js.map +0 -1
- package/dist/tools/ls.d.ts +0 -9
- package/dist/tools/ls.js +0 -59
- package/dist/tools/ls.js.map +0 -1
- package/dist/tools/operations.d.ts +0 -86
- package/dist/tools/operations.js +0 -117
- package/dist/tools/operations.js.map +0 -1
- package/dist/tools/overflow.d.ts +0 -17
- package/dist/tools/overflow.js +0 -68
- package/dist/tools/overflow.js.map +0 -1
- package/dist/tools/path-utils.d.ts +0 -30
- package/dist/tools/path-utils.js +0 -74
- package/dist/tools/path-utils.js.map +0 -1
- package/dist/tools/pdf-extract.d.ts +0 -17
- package/dist/tools/pdf-extract.js +0 -43
- package/dist/tools/pdf-extract.js.map +0 -1
- package/dist/tools/prompt-hints.d.ts +0 -46
- package/dist/tools/prompt-hints.js +0 -171
- package/dist/tools/prompt-hints.js.map +0 -1
- package/dist/tools/read-only-bash.d.ts +0 -31
- package/dist/tools/read-only-bash.js +0 -338
- package/dist/tools/read-only-bash.js.map +0 -1
- package/dist/tools/read-tracker.d.ts +0 -43
- package/dist/tools/read-tracker.js +0 -120
- package/dist/tools/read-tracker.js.map +0 -1
- package/dist/tools/read.d.ts +0 -18
- package/dist/tools/read.js +0 -316
- package/dist/tools/read.js.map +0 -1
- package/dist/tools/redaction-guard.d.ts +0 -10
- package/dist/tools/redaction-guard.js +0 -55
- package/dist/tools/redaction-guard.js.map +0 -1
- package/dist/tools/routine-output.d.ts +0 -39
- package/dist/tools/routine-output.js +0 -281
- package/dist/tools/routine-output.js.map +0 -1
- package/dist/tools/safe-env.d.ts +0 -1
- package/dist/tools/safe-env.js +0 -79
- package/dist/tools/safe-env.js.map +0 -1
- package/dist/tools/session-stats.d.ts +0 -26
- package/dist/tools/session-stats.js +0 -51
- package/dist/tools/session-stats.js.map +0 -1
- package/dist/tools/side-web-search.d.ts +0 -34
- package/dist/tools/side-web-search.js +0 -146
- package/dist/tools/side-web-search.js.map +0 -1
- package/dist/tools/skill.d.ts +0 -12
- package/dist/tools/skill.js +0 -94
- package/dist/tools/skill.js.map +0 -1
- package/dist/tools/source-path.d.ts +0 -8
- package/dist/tools/source-path.js +0 -128
- package/dist/tools/source-path.js.map +0 -1
- package/dist/tools/steroids.d.ts +0 -44
- package/dist/tools/steroids.js +0 -356
- package/dist/tools/steroids.js.map +0 -1
- package/dist/tools/subagent-control.d.ts +0 -5
- package/dist/tools/subagent-control.js +0 -211
- package/dist/tools/subagent-control.js.map +0 -1
- package/dist/tools/subagent-shared.d.ts +0 -110
- package/dist/tools/subagent-shared.js +0 -180
- package/dist/tools/subagent-shared.js.map +0 -1
- package/dist/tools/subagent.d.ts +0 -37
- package/dist/tools/subagent.js +0 -406
- package/dist/tools/subagent.js.map +0 -1
- package/dist/tools/task-output.d.ts +0 -10
- package/dist/tools/task-output.js +0 -74
- package/dist/tools/task-output.js.map +0 -1
- package/dist/tools/task-send.d.ts +0 -11
- package/dist/tools/task-send.js +0 -36
- package/dist/tools/task-send.js.map +0 -1
- package/dist/tools/task-stop.d.ts +0 -8
- package/dist/tools/task-stop.js +0 -15
- package/dist/tools/task-stop.js.map +0 -1
- package/dist/tools/tasks.d.ts +0 -15
- package/dist/tools/tasks.js +0 -94
- package/dist/tools/tasks.js.map +0 -1
- package/dist/tools/tool-search.d.ts +0 -26
- package/dist/tools/tool-search.js +0 -81
- package/dist/tools/tool-search.js.map +0 -1
- package/dist/tools/tool-tiers.d.ts +0 -65
- package/dist/tools/tool-tiers.js +0 -121
- package/dist/tools/tool-tiers.js.map +0 -1
- package/dist/tools/truncate.d.ts +0 -39
- package/dist/tools/truncate.js +0 -242
- package/dist/tools/truncate.js.map +0 -1
- package/dist/tools/ui-adopt.d.ts +0 -16
- package/dist/tools/ui-adopt.js +0 -66
- package/dist/tools/ui-adopt.js.map +0 -1
- package/dist/tools/ui-registry.d.ts +0 -15
- package/dist/tools/ui-registry.js +0 -39
- package/dist/tools/ui-registry.js.map +0 -1
- package/dist/tools/verification-review.d.ts +0 -2
- package/dist/tools/verification-review.js +0 -41
- package/dist/tools/verification-review.js.map +0 -1
- package/dist/tools/web-fetch.d.ts +0 -52
- package/dist/tools/web-fetch.js +0 -986
- package/dist/tools/web-fetch.js.map +0 -1
- package/dist/tools/web-search.d.ts +0 -35
- package/dist/tools/web-search.js +0 -926
- package/dist/tools/web-search.js.map +0 -1
- package/dist/tools/write.d.ts +0 -16
- package/dist/tools/write.js +0 -196
- package/dist/tools/write.js.map +0 -1
- package/dist/types.d.ts +0 -44
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils/git.d.ts +0 -102
- package/dist/utils/git.js +0 -325
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/github-ci.d.ts +0 -18
- package/dist/utils/github-ci.js +0 -138
- package/dist/utils/github-ci.js.map +0 -1
- package/dist/utils/github.d.ts +0 -19
- package/dist/utils/github.js +0 -67
- package/dist/utils/github.js.map +0 -1
- package/dist/utils/image.d.ts +0 -166
- package/dist/utils/image.js +0 -673
- package/dist/utils/image.js.map +0 -1
- package/dist/utils/open-browser.d.ts +0 -13
- package/dist/utils/open-browser.js +0 -31
- package/dist/utils/open-browser.js.map +0 -1
- package/dist/utils/plan-steps.d.ts +0 -90
- package/dist/utils/plan-steps.js +0 -209
- package/dist/utils/plan-steps.js.map +0 -1
- package/dist/utils/process.d.ts +0 -48
- package/dist/utils/process.js +0 -175
- package/dist/utils/process.js.map +0 -1
- package/dist/utils/prompt-enhancer.d.ts +0 -53
- package/dist/utils/prompt-enhancer.js +0 -178
- package/dist/utils/prompt-enhancer.js.map +0 -1
- package/dist/utils/text.d.ts +0 -61
- package/dist/utils/text.js +0 -68
- package/dist/utils/text.js.map +0 -1
- package/dist/web.d.ts +0 -5
- package/dist/web.js +0 -5
- package/dist/web.js.map +0 -1
|
@@ -1,196 +0,0 @@
|
|
|
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` |
|
|
@@ -1,146 +0,0 @@
|
|
|
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.
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
# Secure Defaults
|
|
2
|
-
|
|
3
|
-
The values to write **while building**, so the audit finds nothing. When a choice is not obviously required by the project, pick the default here and state it in one line.
|
|
4
|
-
|
|
5
|
-
Snapshot 3 October 2026. **[V]** verified, **[S]** snapshot-volatile, **[U]** uncertain. Re-verify version-sensitive items before asserting them as current.
|
|
6
|
-
|
|
7
|
-
## Contents
|
|
8
|
-
|
|
9
|
-
- Secrets
|
|
10
|
-
- Authentication
|
|
11
|
-
- Authorization
|
|
12
|
-
- Money, quotas & webhooks
|
|
13
|
-
- Cryptography
|
|
14
|
-
- Input handling
|
|
15
|
-
- Web response headers
|
|
16
|
-
- Cloud, containers & infrastructure
|
|
17
|
-
- Logging & detection
|
|
18
|
-
- Failure behavior
|
|
19
|
-
|
|
20
|
-
## Secrets
|
|
21
|
-
|
|
22
|
-
**The single highest-yield control for a small team.** 28.65M new hardcoded secrets appeared on public GitHub in 2025, and 64% of valid secrets leaked in 2022 were still live in 2026 [V] — leaks are not revoked, so prevention and rotation both matter.
|
|
23
|
-
|
|
24
|
-
- Never in source, never in a client bundle, never in a log, never in an error response, never in a fixture that gets committed. `.env` in `.gitignore` from the first commit; commit `.env.example` with empty values.
|
|
25
|
-
- Anything prefixed `NEXT_PUBLIC_`, `VITE_`, `EXPO_PUBLIC_`, `REACT_APP_` **is published**. Check the built bundle, not the source.
|
|
26
|
-
- Scope every credential to the narrowest permission and shortest lifetime that works. Prefer short-lived OIDC federation over long-lived cloud keys; prefer per-service tokens over one shared key.
|
|
27
|
-
- **A secret that touched a public surface, a build log, a paste, a screenshot, or a third-party tool is compromised.** Rotate it. Removing the commit does not unpublish it.
|
|
28
|
-
- Config files for AI tooling count: 24,008 unique secrets turned up in public MCP configuration files in 2025 [V]. Treat `.mcp.json`, agent settings, and editor config as secret-bearing.
|
|
29
|
-
- Run a secret scanner in CI **and** as a pre-commit hook — gitleaks or trufflehog, both free. Detection after push is a rotation trigger, not prevention.
|
|
30
|
-
|
|
31
|
-
## Authentication
|
|
32
|
-
|
|
33
|
-
Baseline per **NIST SP 800-63B-4** (final 31 Jul 2025) [V]:
|
|
34
|
-
|
|
35
|
-
- **Minimum 15 characters** for single-factor passwords; support at least 64; allow all printable characters including spaces.
|
|
36
|
-
- **No composition rules** and **no scheduled rotation** — change only on evidence of compromise. Both are explicit SHALL NOTs now; the old advice is now a finding.
|
|
37
|
-
- **Screen against a breached-password blocklist** on set and change.
|
|
38
|
-
- Allow password managers and paste/autofill. No password hints, no knowledge-based questions.
|
|
39
|
-
- Passkeys/WebAuthn are the preferred factor: 800-63B-4 accepts syncable authenticators (synced passkeys) up to AAL2 [V]; device-bound keys are needed for AAL3. Offer them before SMS codes.
|
|
40
|
-
- **Passkey implementation**: use a maintained WebAuthn library, never hand-parse attestation; server-generated single-use challenge; verify `rpId` and origin; require user verification for sign-in; store credential ID + public key + sign count per user; let users register several passkeys; account recovery is the weak point — do not fall back to a weaker factor than the one being recovered.
|
|
41
|
-
|
|
42
|
-
Implementation:
|
|
43
|
-
|
|
44
|
-
- Hash with **argon2id** (memory-hard, tuned so a verification takes ~100–300 ms on your hardware) or bcrypt where argon2 is unavailable. Never a bare SHA family hash, never MD5.
|
|
45
|
-
- **OAuth**: cite **RFC 9700** (OAuth 2.0 Security BCP, Jan 2025) [V] — OAuth 2.1 is still an IETF Internet-Draft (draft -17 at 22 Nov 2026) [V]. Concretely: authorization code + PKCE for every client; no implicit or password grant; exact-string redirect-URI matching; `state`/PKCE/nonce against CSRF; mix-up defense when talking to several authorization servers; short-lived access tokens; refresh tokens rotated with reuse detection or sender-constrained. Prefer a maintained library or hosted IdP over writing the flow.
|
|
46
|
-
- Session tokens from a CSPRNG, ≥128 bits. Rotate the session identifier on login and on privilege change. Server-side revocation must exist — a stateless token you cannot revoke is an outage during an incident.
|
|
47
|
-
- Constant-time comparison for tokens, signatures, and MFA codes — but **validate the shape before you compare**. A stored credential whose hex/base64 decodes to the wrong length, or whose scheme/salt/hash does not parse, must be rejected as malformed and fail closed; never fall through to the comparison. `timingSafeEqual` on two empty buffers returns true, so an unparsed record can verify any password.
|
|
48
|
-
- Rate-limit and lock out on login, reset, MFA, and token exchange. Generic failure messages: never reveal whether the account exists.
|
|
49
|
-
- **Account linking:** attach a social or SSO identity to an existing account only after the user signs in to that account, or when both emails are verified and the provider is trusted for that address. Never link by matching an unverified email; that is account takeover with one sign-up.
|
|
50
|
-
- **Reset and magic links:** build the URL from a configured origin, never from the request's `Host` or `X-Forwarded-Host`. Tokens are single-use, short-lived (an hour at most), stored hashed, and voided by a password change or a newer token.
|
|
51
|
-
- **Sensitive account changes** (email, password, MFA, passkeys, recovery codes, API keys) require recent re-authentication and notify the old address.
|
|
52
|
-
- **JWTs, when used:** pin the verification algorithm from your own config — never read `alg` from the token header, reject `none`. HMAC secrets ≥256 bits from a CSPRNG, never a passphrase. Always set and validate `exp` (minutes, not days) and include `jti` so revocation is possible. In a browser, the token lives in an `HttpOnly`/`Secure`/`SameSite` cookie — localStorage is readable by any XSS. Rotate refresh tokens on use; a reused refresh token means theft — revoke the whole family.
|
|
53
|
-
|
|
54
|
-
## Authorization
|
|
55
|
-
|
|
56
|
-
- **One chokepoint.** A policy function, a scoped repository, or database RLS — not a check copy-pasted into each handler.
|
|
57
|
-
- Default deny. New endpoints and new tables are inaccessible until a rule grants access.
|
|
58
|
-
- Authorize on the **object**, not just the route: `canRead(user, invoice)`, never "the route is under `/admin` so it is fine".
|
|
59
|
-
- Never accept a client-supplied user, tenant, role, or price. Derive them from the session server-side.
|
|
60
|
-
- Re-check on every request; a permission granted at login can be revoked mid-session.
|
|
61
|
-
- **Removal is revocation.** Leaving an org, a role downgrade, or account deletion must invalidate that user's sessions, refresh tokens, and API keys immediately — not at next login.
|
|
62
|
-
- Return the same 404 for "does not exist" and "not yours" — a 403 confirms the resource exists and invites enumeration. Non-guessable IDs (UUIDv4) are defense-in-depth on top; authorization is still the control.
|
|
63
|
-
- Check the **parent chain**: accessing a comment means verifying ownership of the post it belongs to, not just that the comment ID resolves.
|
|
64
|
-
- **Derived copies inherit the rule.** Search indexes, exports, reports, caches, analytics, notifications and model context apply the same owner or tenant filter as the main read, and soft-deleted rows are excluded everywhere.
|
|
65
|
-
- Test it: the cross-user access test (user B requests user A's resource, expect 403/404) is the highest-value security test a small team can write.
|
|
66
|
-
|
|
67
|
-
## Money, quotas & webhooks
|
|
68
|
-
|
|
69
|
-
Where a bug turns directly into money, these are the defaults:
|
|
70
|
-
|
|
71
|
-
- **The server sets the price.** Price, plan, currency and discount come from the server's catalog; the client sends an ID and a quantity, validated as a positive integer under a limit.
|
|
72
|
-
- **Spend atomically.** Redeem, spend and claim with one conditional write (`UPDATE … SET balance = balance - :n WHERE id = :id AND balance >= :n`, then check the affected row count), a row lock, or a unique constraint on the one-time item. Never read, check, then write in application code.
|
|
73
|
-
- **Idempotency keys** on every request that charges, grants or sends, and on outgoing calls to the payment provider.
|
|
74
|
-
- **Entitlements come from the provider,** via a verified event or an API call, stored server-side. A success redirect or a client flag grants nothing.
|
|
75
|
-
- **Webhooks:** verify the signature over the raw request body with the provider's library (or HMAC plus a constant-time compare); reject a missing signature; enforce the timestamp tolerance; dedupe by event ID; re-fetch the object from the provider before granting anything that matters; use a separate secret per environment.
|
|
76
|
-
- **Multi-step flows** keep their state server-side and allow only valid transitions. On partial failure, roll back or compensate.
|
|
77
|
-
|
|
78
|
-
## Cryptography
|
|
79
|
-
|
|
80
|
-
Do not invent constructions. Use a vetted library's high-level API.
|
|
81
|
-
|
|
82
|
-
| Need | Default | Notes |
|
|
83
|
-
|---|---|---|
|
|
84
|
-
| Password hashing | argon2id | Never a fast hash |
|
|
85
|
-
| Symmetric encryption | AES-256-GCM or XChaCha20-Poly1305 | Always AEAD. **Never reuse a nonce with GCM** — random 96-bit nonces are only safe under a key-rotation bound; XChaCha's 192-bit nonce is safer for high volume |
|
|
86
|
-
| Hashing | SHA-256 or SHA-512 | MD5 and SHA-1 are dead for anything security-relevant |
|
|
87
|
-
| MAC | HMAC-SHA-256 | Verify with a constant-time compare — only after both operands are known well-formed (a malformed operand can make an empty-empty compare return true) |
|
|
88
|
-
| Signatures | Ed25519, or ECDSA P-256 | Verify the algorithm from your own policy, not from the token header |
|
|
89
|
-
| Randomness | The OS CSPRNG (`crypto.randomBytes`, `secrets`, `getrandom`) | Never `Math.random`, `rand()`, or a seeded PRNG for tokens, IDs, or salts |
|
|
90
|
-
| Transport | TLS 1.3, HSTS with a long max-age | TLS 1.0/1.1 gone; 1.2 only for legacy peers |
|
|
91
|
-
| Tokens | Short-lived, audience-bound, revocable | Reject `alg: none`; pin the expected algorithm |
|
|
92
|
-
|
|
93
|
-
**Post-quantum** [V]: FIPS 203 (ML-KEM), 204 (ML-DSA) and 205 (SLH-DSA) were finalised Aug 2024. Hybrid key exchange `X25519MLKEM768` is on by default in Chrome and Firefox [V], and advertised by default in system TLS on iOS, iPadOS, macOS and visionOS 26 [V] (Safari specifically [S]); it is also the default TLS 1.3 group in **OpenSSL 3.5+** [V]. Certificates remain classical; only key exchange is PQ-protected. What a small team does: (1) if a CDN/PaaS terminates TLS, nothing — check it negotiates the hybrid; (2) if you run nginx/Apache/HAProxy yourself, run TLS 1.3 on OpenSSL 3.5+ and **delete or update any pinned curve list** (`ssl_ecdh_curve`, `Groups`) that omits `X25519MLKEM768`, which silently disables it; (3) don't touch PQ signatures or hand-roll PQC; (4) treat harvest-now-decrypt-later as material only for data that must stay secret for 10+ years.
|
|
94
|
-
|
|
95
|
-
## Input handling
|
|
96
|
-
|
|
97
|
-
- **Validate at the boundary with a schema**, allowlist-shaped, rejecting unknown fields. Parse into typed structures rather than passing raw maps inward.
|
|
98
|
-
- Encode at the point of use, not on input. Escaping for HTML, SQL, shell, and JSON are different operations; a single "sanitize" pass at ingress is a false sense of safety.
|
|
99
|
-
- Bound everything: body size, array length, string length, upload size, nesting depth, page size, and decompressed size.
|
|
100
|
-
- Canonicalize paths with `realpath` and verify containment **after** resolution; reject `..` and absolute entries in archives.
|
|
101
|
-
- For file uploads: validate content by sniffing, not by extension or client-supplied MIME; store outside the web root with generated names; never serve them from your app's origin if they can be HTML.
|
|
102
|
-
|
|
103
|
-
## Web response headers
|
|
104
|
-
|
|
105
|
-
Baseline for anything rendering HTML:
|
|
106
|
-
|
|
107
|
-
- **CSP with nonces and `strict-dynamic`**, `object-src 'none'`, `base-uri 'none'`, `frame-ancestors 'none'`. An allowlist-only CSP is bypassable in practice; nonce-based is the current recommendation.
|
|
108
|
-
- `Strict-Transport-Security` with a long max-age and `includeSubDomains`.
|
|
109
|
-
- `X-Content-Type-Options: nosniff`; `Referrer-Policy: strict-origin-when-cross-origin`; a restrictive `Permissions-Policy`.
|
|
110
|
-
- Cookies: `Secure`, `HttpOnly`, `SameSite=Lax` (or `Strict` for sensitive actions), `__Host-` prefix where scoping allows.
|
|
111
|
-
- CORS: never `Access-Control-Allow-Origin: *` together with credentials; echo only from an allowlist; never reflect arbitrary origins.
|
|
112
|
-
- `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Resource-Policy` for isolation; add COEP when you need cross-origin isolation.
|
|
113
|
-
- Subresource Integrity on third-party scripts, or self-host them.
|
|
114
|
-
- Trusted Types where the framework supports it — it eliminates DOM XSS sinks structurally [S].
|
|
115
|
-
|
|
116
|
-
## Cloud, containers & infrastructure
|
|
117
|
-
|
|
118
|
-
- **OIDC federation instead of long-lived cloud keys** in CI. This removes the credential that supply-chain worms are hunting.
|
|
119
|
-
- IAM scoped to specific actions and resources. No `Action: *`, no wildcard `PassRole`. Separate roles per service.
|
|
120
|
-
- Storage private by default; block public access at the account level; presigned URLs short-lived and scoped.
|
|
121
|
-
- Enforce the hardened instance metadata service (IMDSv2 / hop limit 1). SSRF plus a legacy metadata service equals cloud credentials.
|
|
122
|
-
- Containers: non-root user, read-only root filesystem, dropped capabilities, no `--privileged`, no Docker socket mount, a seccomp profile, minimal or distroless base images, pinned by digest.
|
|
123
|
-
- Kubernetes: enforce the `restricted` Pod Security Standard, network policies default-deny, no cluster-admin service accounts, secrets from a manager rather than plain manifests.
|
|
124
|
-
- Databases and caches never on a public interface. Redis, Postgres, Mongo, Elasticsearch bound to private networks with authentication on.
|
|
125
|
-
|
|
126
|
-
## Logging & detection
|
|
127
|
-
|
|
128
|
-
You cannot respond to what you cannot see, and A09:2025 covers alerting, not just logging.
|
|
129
|
-
|
|
130
|
-
- Log authentication outcomes, authorization denials, privilege changes, secret access, admin actions, and payment events — with actor, source, and timestamp.
|
|
131
|
-
- **Never log** credentials, tokens, session identifiers, full card numbers, or request bodies containing them. Redact at the logger, not at each call site.
|
|
132
|
-
- Alert on the few things that mean compromise: a spike in authorization denials, a new admin, a credential used from an unexpected location, a dependency-install failure in CI, an unexpected published release.
|
|
133
|
-
- Keep enough retention to investigate — 90 days is a reasonable floor for a small team.
|
|
134
|
-
|
|
135
|
-
## Failure behavior
|
|
136
|
-
|
|
137
|
-
A10:2025 exists because of this: **fail closed.** When the auth service times out, deny. When the policy engine errors, deny. When signature verification throws, reject. Grep for `catch` blocks that swallow an error and continue on the success path, and for defaults that grant access when a value is missing or `undefined`.
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
# Supply Chain & Build Integrity
|
|
2
|
-
|
|
3
|
-
A03:2025 is Software Supply Chain Failures — promoted because this is now the dominant compromise route for small teams. Your dependencies, your CI, and your release pipeline are all code you ship, written by people you have not met.
|
|
4
|
-
|
|
5
|
-
Snapshot 3 October 2026, publishing and worm items re-verified 22 October 2026. **[V]** verified, **[S]** volatile, **[U]** uncertain.
|
|
6
|
-
|
|
7
|
-
## Adding a dependency
|
|
8
|
-
|
|
9
|
-
Before adding any package — and **especially** one you or a model produced from memory:
|
|
10
|
-
|
|
11
|
-
1. **Confirm it exists and is the one you mean** — query the registry (`npm view <name>`, `pip index versions <name>`) before writing the install command. In a USENIX Security 2025 study, 19.7% of model-recommended packages did not exist and 43% of invented names recurred on every rerun [V]; squatters register them (slopsquatting). An agent removes the human "does that name look right" check, so the check is yours.
|
|
12
|
-
2. **Check identity, not vibes:** registry age, download history, repository link that actually resolves, maintainer with other work, a version history that is not a single `0.0.1`. New package + high download count + no history is the squat signature.
|
|
13
|
-
3. **Check character-level lookalikes** against the package you meant: hyphen vs underscore, singular vs plural, scoped vs unscoped, `-js` suffix, homoglyphs.
|
|
14
|
-
4. **Prefer what is already in the project.** The safest dependency is the one you do not add. For a few dozen lines, write the code.
|
|
15
|
-
5. **Pin it.** Exact version in the manifest, lockfile committed, and for containers and Actions pin by digest or commit SHA.
|
|
16
|
-
6. **Let it age.** Malicious worm versions were typically pulled within hours, so a cooldown blocks most of them. Set one in whatever package manager the project uses (npm `min-release-age`, pnpm `minimumReleaseAge`, Yarn `npmMinimalAgeGate`); check the installed version supports it rather than trusting a remembered minimum [S]. Exempt a version only to take an urgent security fix.
|
|
17
|
-
|
|
18
|
-
## Install-time execution
|
|
19
|
-
|
|
20
|
-
`preinstall`/`postinstall` scripts run arbitrary code with full developer privileges before anything is reviewed, with access to your registry tokens, cloud credentials, source, and filesystem [V]. This is the mechanism behind the worm lineage.
|
|
21
|
-
|
|
22
|
-
- **npm ≥ 12** (8 Jul 2026) [V] blocks dependency `preinstall`/`install`/`postinstall`, implicit `node-gyp` builds, and git/remote-URL dependencies by default; approve per package in `allowScripts`. A blocked script only **warns and exits 0** — add `strict-allow-scripts=true` [V] so CI fails loudly.
|
|
23
|
-
- **pnpm ≥ 10** blocks dependency scripts by default; allowlist builders explicitly. On older npm: `ignore-scripts=true` plus manual builds.
|
|
24
|
-
- Review every change to the script allowlist like a code change.
|
|
25
|
-
- In CI, install with a frozen lockfile (`npm ci`, `pnpm install --frozen-lockfile`) in a job with no cloud credentials and no `id-token: write`.
|
|
26
|
-
|
|
27
|
-
## Publishing your own package
|
|
28
|
-
|
|
29
|
-
If others install your code, you are their supply chain.
|
|
30
|
-
|
|
31
|
-
- **npm state of play** [V]: classic tokens were permanently revoked on 9 Dec 2025; `npm login` now yields 2-hour session tokens; granular write tokens enforce 2FA by default (Bypass-2FA is opt-in) and are capped at 90 days. Direct publishing with granular tokens is removed in January 2027 [V]: move CI to a stage-only token or trusted publishing now.
|
|
32
|
-
- **Trusted publishing (OIDC) instead of stored tokens.** A token in CI is the exact asset every worm enumerates. But OIDC alone did not stop TanStack or ChainDrop: put `id-token: write` only on the publish job, never in a job that runs PR code or restores a cache a PR could have written.
|
|
33
|
-
- **Staged publishing** (GA 22 May 2026, npm CLI ≥ 11.15.0) [V]: CI uploads to a stage queue and a maintainer approves with 2FA; since Sep 2026 approval waits for npm's malware scan; since 2 Oct 2026 it also covers creating brand-new packages [V]. For a solo maintainer, this is the single best publish control — a stolen CI identity can stage but not release.
|
|
34
|
-
- **Bind trust to immutable IDs.** Until its first publish, an npm trusted-publishing config matched the repo by renameable `owner/repo` name, so whoever claimed a freed name could publish ("SlugFest", disclosed 13 Oct 2026) [S]. Since 2 Oct 2026 unvalidated configs expire after 48 hours [V] and npm refuses trusted-publishing tokens from `issue_comment` workflows as well as `pull_request_target` [V]. Publish once right after creating a binding, recreate bindings after any rename or transfer, and apply the same rule to your own authorization code: key on IDs, not names.
|
|
35
|
-
- 2FA on the registry and source-control accounts, phishing-resistant (passkey/security key) where possible.
|
|
36
|
-
- Generate provenance/attestations — but **provenance proves where an artifact was built, not that the build was honest.** ChainDrop (Aug 2026) and the `tensorlake@0.5.144` worm (8 Oct 2026, GHSA-rqxj-g25x-4v9v [V], via a preinstall hook) both shipped valid provenance [S].
|
|
37
|
-
- Verify what is in the tarball before it ships: `npm pack --dry-run` or equivalent. Ship no source maps, no `.env`, no test fixtures, no internal docs. A source-map leak has already exposed a major product's source [S].
|
|
38
|
-
- Review the diff of every release, including dependency bumps. Maintainer-account compromise is the entry point in most of these incidents; a second pair of eyes on the release commit is the cheapest control.
|
|
39
|
-
|
|
40
|
-
## CI/CD
|
|
41
|
-
|
|
42
|
-
The highest-value target, because CI holds every credential at once — 59% of machines compromised in one worm forensic study were CI runners, not laptops [V].
|
|
43
|
-
|
|
44
|
-
| Control | Check |
|
|
45
|
-
|---|---|
|
|
46
|
-
| **Pin actions by SHA** | `uses: org/action@<40-char-sha>`. A version tag is mutable: the 2025 `tj-actions/changed-files` compromise retroactively repointed its tags at malicious code [S] |
|
|
47
|
-
| **Least-privilege token** | An explicit `permissions:` block, default `contents: read`, elevated only in the job that needs it |
|
|
48
|
-
| **Enforce pinning** | Repo/org setting: Actions policy → require full-SHA pins (fails unpinned workflows; available since Aug 2025) [V]. Let Dependabot bump the SHAs |
|
|
49
|
-
| **`pull_request_target` / `workflow_run`** | Avoid them. These run with the base repo's token and secrets [V]; `pull_request_target` gets read-only access to the default branch's cache unless the workflow declares a write-capable `cache-mode`, which reopens cache poisoning [V]. Since 8 Dec 2025 the workflow always comes from the default branch [V], and current `actions/checkout` refuses fork-PR head refs under `pull_request_target` unless `allow-unsafe-pr-checkout: true` is set (v7; backported 20 Jul 2026 as v6.1.0, v5.1.0 and older majors — **SHA- or patch-pinned checkouts must be bumped to get it**) [V]. Never check out or run PR code there. From 2 Dec 2026 GitHub enforces a default policy blocking `pull_request_target` in public repositories that have no Actions event policy of their own; private and internal repos are not affected, and an event policy can re-allow specific workflows [V]: treat any re-allow as a reviewed security decision, not a fix for a broken workflow |
|
|
50
|
-
| **Cache poisoning** | Any job that runs untrusted code must not save caches the release job restores; key release caches separately or skip caching in release. This was TanStack's initial access [V] |
|
|
51
|
-
| **OIDC scope** | `id-token: write` only on the deploy/publish job; cloud trust policies pinned to repo + branch/environment, not just the org |
|
|
52
|
-
| **Script injection** | Never interpolate `${{ github.event.* }}` (titles, branch names, comment bodies) directly into a `run:` block. Pass through `env:` and quote |
|
|
53
|
-
| **Secret hygiene** | No secrets echoed, no `set -x` around them, masked in logs, scoped per environment, rotated on any suspicion |
|
|
54
|
-
| **Runners** | Prefer ephemeral. A reused self-hosted runner leaks state between jobs, including from forks |
|
|
55
|
-
| **Branch protection** | Required review on the release branch, signed commits where feasible, no force-push |
|
|
56
|
-
|
|
57
|
-
## Consuming other people's code beyond packages
|
|
58
|
-
|
|
59
|
-
- **Editor extensions**: lookalike-name campaigns recur [U]; extensions auto-update and registry removal does not clean installed copies. Check publisher identity, install history, and repository link — not the display name.
|
|
60
|
-
- **MCP servers**: the first in-the-wild malicious server, `postmark-mcp`, cloned the official server under the same npm name and added a silent BCC in its 16th release [V]. Install from the official registry with signing and verification where possible; pin versions; review the tool list after every update. See `agent-surface.md`.
|
|
61
|
-
- **Container base images**: pin by digest, scan, prefer minimal or distroless, rebuild regularly rather than pinning to a stale digest forever.
|
|
62
|
-
- **Model artifacts**: signed and verified at load, code-capable formats rejected, dataset revisions pinned by hash. See the ML section of `platform-playbooks.md`.
|
|
63
|
-
- **Opening an untrusted repository is itself an install.** Before opening one in an editor or an agent, check `.vscode/tasks.json` for `runOn: folderOpen`, agent hook configuration (`.claude/settings.json` hooks and equivalents), `.git/config` for `core.fsmonitor` and `core.pager`, and any install script. ChainDrop persisted through exactly these, pushed to `main`, release and older version branches as GitHub-signed `github-actions[bot]` commits [V] — `git log --all -- .claude/settings.json .vscode/tasks.json` on your own repos after any suspected token theft.
|
|
64
|
-
|
|
65
|
-
## Keeping it current
|
|
66
|
-
|
|
67
|
-
- Automated dependency updates with a review gate, plus a scanner that fails the build on known-exploited vulnerabilities in reachable code — not on every advisory, or the team learns to ignore it.
|
|
68
|
-
- Track a real SBOM (CycloneDX or SPDX) generated in CI per release. It is a regulatory obligation for some products [V], and independently it is the only way to answer "are we affected" in hours instead of days.
|
|
69
|
-
- **The controllable variable is your patch latency**, not the attacker's speed.
|
|
70
|
-
- **Run a currently patched runtime line.** Node ships security releases several times a year (21 Oct 2026: a Brotli decoder out-of-bounds write and a TLS hostname-check bypass; 11 Nov 2026: an HTTPS re-entrancy read that can leak TLS private keys, plus HTTP/2 remote crashes, fixed in 22.23.5 / 24.22.3 / 26.13.1) [V]; stay on a supported line and take its patch releases, rather than pinning a remembered version.
|
|
71
|
-
- **React Server Components:** CVE-2026-126187 (GHSA-xqc2-xf4c-x3h3, published 14 Oct 2026) is an unauthenticated RCE in `react-server-dom-webpack`/`-parcel`/`-turbopack`, fixed in 19.0.9, 19.1.10, 19.2.9 and 19.3.1 [V]. Any app using a framework with RSC needs the patched package, not only a framework bump; check the lockfile.
|
|
72
|
-
- **After a framework upgrade, check its transitive native dependencies.** Next.js's 14 Oct 2026 advisories included unauthenticated RCE through SVG handling in image optimization and `next/og` (native `sharp`/librsvg) [V]: the framework version was the fix, but the reachable code was a native image library. List native deps (`npm ls sharp`, lockfile) and confirm they moved too.
|
|
73
|
-
- Subscribe to advisories for your actual stack. For a small team, three feeds you read beats thirty you filter.
|
|
74
|
-
|
|
75
|
-
## If you suspect compromise
|
|
76
|
-
|
|
77
|
-
Order matters:
|
|
78
|
-
|
|
79
|
-
1. **Rotate every credential the affected machine or pipeline could reach** — registry tokens, cloud keys, model API keys, source-control tokens, SSH keys, session secrets. Assume everything on that host is gone.
|
|
80
|
-
2. Revoke sessions and active tokens; re-issue signing keys if a signing key could have been touched.
|
|
81
|
-
3. Check for published artifacts you did not publish, and for commits, branches, and workflow files you did not author.
|
|
82
|
-
4. Check persistence: editor tasks, agent hooks, git config, shell profiles, scheduled jobs, new deploy keys, new OAuth app grants.
|
|
83
|
-
5. Preserve logs before cleaning. Then rebuild the machine rather than cleaning it.
|
|
84
|
-
6. Only then work out how it happened.
|