@kenkaiiii/ggcoder 6.0.0 → 6.0.2
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/assets/skills/bulletproof/SKILL.md +18 -12
- package/assets/skills/bulletproof/references/agent-surface.md +3 -3
- package/assets/skills/bulletproof/references/attack-classes.md +226 -0
- package/assets/skills/bulletproof/references/audit-protocol.md +102 -49
- package/assets/skills/bulletproof/references/platform-playbooks.md +11 -4
- package/assets/skills/bulletproof/references/provenance.md +36 -1
- package/assets/skills/bulletproof/references/secure-defaults.md +17 -1
- package/assets/skills/bulletproof/references/supply-chain.md +6 -5
- package/assets/skills/bulletproof/references/verification.md +8 -1
- package/dist/core/agent-session.d.ts +7 -0
- package/dist/core/agent-session.js +3 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/bundled-agents.js +17 -8
- package/dist/core/bundled-agents.js.map +1 -1
- package/dist/core/claude-code/events.d.ts +2 -0
- package/dist/core/claude-code/events.js +28 -2
- package/dist/core/claude-code/events.js.map +1 -1
- package/dist/core/claude-code/live-session.d.ts +2 -0
- package/dist/core/claude-code/live-session.js +7 -1
- package/dist/core/claude-code/live-session.js.map +1 -1
- package/dist/core/event-bus.d.ts +7 -0
- package/dist/core/event-bus.js +9 -0
- package/dist/core/event-bus.js.map +1 -1
- package/dist/system-prompt.js +3 -1
- package/dist/system-prompt.js.map +1 -1
- package/dist/tools/ask-user.js +2 -1
- package/dist/tools/ask-user.js.map +1 -1
- package/dist/tools/enter-plan.js +2 -1
- package/dist/tools/enter-plan.js.map +1 -1
- package/dist/tools/prompt-hints.js +1 -1
- package/dist/tools/prompt-hints.js.map +1 -1
- package/package.json +4 -4
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
name: bulletproof
|
|
3
3
|
description: "Use to secure code an attacker can reach: finding and fixing ways someone could break in, steal secrets or reach another user's data. Do NOT use for local-only scripts, legal questions or performance."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "2026.11.
|
|
5
|
+
version: "2026.11.27"
|
|
6
6
|
# Checklist audits only (Security, Dependencies, Secrets / Performance); hidden from routine coding after the 27 Oct 2026 skill-value bench.
|
|
7
7
|
hidden: true
|
|
8
8
|
license: Apache-2.0. Content is defensive engineering guidance, not a security certification or a penetration test. See references/provenance.md.
|
|
9
|
-
compatibility: Works offline from the bundled references, a snapshot dated 22 October 2026, partly re-verified 22 November 2026. Versions, CVEs and incident details decay fast; re-verify date-sensitive claims with web access before stating them as current. Never certifies that software is secure.
|
|
9
|
+
compatibility: Works offline from the bundled references, a snapshot dated 22 October 2026, partly re-verified 22 and 27 November 2026. Versions, CVEs and incident details decay fast; re-verify date-sensitive claims with web access before stating them as current. Never certifies that software is secure.
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# Bulletproof
|
|
@@ -24,7 +24,7 @@ Small teams get breached through a short list of boring mistakes, found by autom
|
|
|
24
24
|
|
|
25
25
|
## Governing rules
|
|
26
26
|
|
|
27
|
-
1. **Reachability decides everything.** Trace source → hops → sink before ranking. No path, no finding; a real path is not saved by the framework's reputation.
|
|
27
|
+
1. **Reachability decides everything.** Trace source → hops → sink before ranking, and name the boundary: a lower-trust actor reaching data, money or power that is not theirs. No path, no finding; harm users can only do to themselves with their own authority is not one either; a real path is not saved by the framework's reputation.
|
|
28
28
|
2. **Untrusted by default.** Anything you did not author and pin is input: requests, files, archives, the repo you are in, fetched pages, dependencies, model and tool output, other agents.
|
|
29
29
|
3. **Assume a machine-speed adversary.** Leaked credentials get used, not filed. Make one mistake survivable: scoped credentials, capped blast radius, possible rotation.
|
|
30
30
|
4. **Fix, do not just flag.** Inline, build the control in. In a full review, report first, then fix what the user selects; fix straight away only when they asked for fixes.
|
|
@@ -58,13 +58,16 @@ A surface the user puts out of scope is recorded as not-checked, never dropped.
|
|
|
58
58
|
| Rank | Failure | Reference |
|
|
59
59
|
|---|---|---|
|
|
60
60
|
| 1 | Secrets in code, history, bundles (`NEXT_PUBLIC_*`, `VITE_*`), logs, CI, agent/MCP config: exposed means burned, rotate | `references/secure-defaults.md` |
|
|
61
|
-
| 2 | Authorization missing at the data layer: IDOR/BOLA, open row-level security, middleware-only auth | `references/platform-playbooks.md` |
|
|
62
|
-
| 3 |
|
|
63
|
-
| 4 |
|
|
64
|
-
| 5 |
|
|
65
|
-
| 6 |
|
|
66
|
-
| 7 |
|
|
67
|
-
| 8 |
|
|
61
|
+
| 2 | Authorization missing at the data layer: IDOR/BOLA, open row-level security, middleware-only auth, and copies (search, exports, caches) or access that outlive removal | `references/platform-playbooks.md` |
|
|
62
|
+
| 3 | Money and state: unsigned webhooks, client-set prices, credits or coupons spent twice in parallel, skippable payment steps | `references/secure-defaults.md` |
|
|
63
|
+
| 4 | Supply chain: nonexistent or squatted packages, install hooks, CI workflows, publishing, auto-run editor/agent config | `references/supply-chain.md` |
|
|
64
|
+
| 5 | Injection: SQL, shell, template, deserialization, dynamic load, XSS | `references/platform-playbooks.md` |
|
|
65
|
+
| 6 | Agent surfaces: injected content reaching a credentialed tool with egress | `references/agent-surface.md` |
|
|
66
|
+
| 7 | Auth, session and crypto correctness, including account linking by email and reset links built from the `Host` header | `references/secure-defaults.md` |
|
|
67
|
+
| 8 | Platform exposure: deep links, IPC, loopback servers, updaters, debug interfaces | `references/platform-playbooks.md` |
|
|
68
|
+
| 9 | Everything else: backlog unless recon shows a path | — |
|
|
69
|
+
|
|
70
|
+
What to look for in each of these lives in `references/attack-classes.md`, one section per audit.
|
|
68
71
|
|
|
69
72
|
**Control preference:** eliminate the class (parameterize, argv, safetensors) → enforce at one chokepoint → default deny (allowlists) → least privilege and least agency → contain the blast → fail closed (an exception in an auth check denies). Say in one line what each security change enforces. If a control blocks the feature, say so and propose the safe path; never silently weaken it.
|
|
70
73
|
|
|
@@ -85,7 +88,9 @@ Rank by what the attacker ends up holding.
|
|
|
85
88
|
| **Medium** | Scoped disclosure, weakened crypto, partial bypass needing an unlikely precondition |
|
|
86
89
|
| **Low** | Hardening gaps with no demonstrated path. Backlog. |
|
|
87
90
|
|
|
88
|
-
Downgrade one level for a working compensating control in the path; upgrade one level when the asset is a credential, signing key, or update channel.
|
|
91
|
+
Downgrade one level for a working compensating control in the path; upgrade one level when the asset is a credential, signing key, or update channel. Severity never exceeds what the traced path demonstrates.
|
|
92
|
+
|
|
93
|
+
A real path whose deciding fact lives outside the repo (a dashboard setting, proxy or CDN config, provider behaviour) is **needs validation**: listed separately with the missing fact and a safe check the owner can run, with no severity.
|
|
89
94
|
|
|
90
95
|
## Hard stops
|
|
91
96
|
|
|
@@ -116,7 +121,8 @@ Helper types, brief contents and merge rules come with the skill loader.
|
|
|
116
121
|
|
|
117
122
|
Resolve paths from the skill root; load only what the profile triggered.
|
|
118
123
|
|
|
119
|
-
- `references/audit-protocol.md` — full-review protocol, ledger, filter, report template. Required for any full review.
|
|
124
|
+
- `references/audit-protocol.md` — full-review protocol, ledger, candidate gate, filter, report template. Required for any full review.
|
|
125
|
+
- `references/attack-classes.md` — what to look for, one section per audit; pasted verbatim into child briefs when fanning out.
|
|
120
126
|
- `references/threat-landscape.md` — attacker techniques and defensive fingerprints. Once per full review.
|
|
121
127
|
- `references/platform-playbooks.md` — per-platform controls and grep targets.
|
|
122
128
|
- `references/supply-chain.md` — dependencies, install hooks, registries, CI/CD, publishing, provenance.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Load this when the project calls a model, exposes tools to a model, runs an agent, serves or consumes MCP, or ships a chat feature. Also load it when hardening a developer tool, because a developer tool is an agent target.
|
|
4
4
|
|
|
5
|
-
Standards [V]: **OWASP Top 10 for LLM Applications 2026** (published 4 Aug 2026 and renumbered from 2025, so always cite an ID with its year) — LLM01:2026 Prompt Injection, LLM02:2026 Sensitive Information Disclosure, LLM03:2026 Excessive Agency, LLM04:2026 Supply Chain, LLM05:2026 Data and Model Poisoning, LLM06:2026 Unbounded Consumption, LLM07:2026 Misinformation, LLM08:2026 Hidden Context Exposure, LLM09:2026 Vector and Embedding Weaknesses, LLM10:2026 Improper Output Handling. **OWASP Top 10 for Agentic Applications (2026)**, published 9 Dec 2025 — ASI01 Goal Hijack, ASI02 Tool Misuse, ASI03 Identity
|
|
5
|
+
Standards [V]: **OWASP Top 10 for LLM Applications 2026** (published 4 Aug 2026 and renumbered from 2025, so always cite an ID with its year) — LLM01:2026 Prompt Injection, LLM02:2026 Sensitive Information Disclosure, LLM03:2026 Excessive Agency, LLM04:2026 Supply Chain, LLM05:2026 Data and Model Poisoning, LLM06:2026 Unbounded Consumption, LLM07:2026 Misinformation, LLM08:2026 Hidden Context Exposure, LLM09:2026 Vector and Embedding Weaknesses, LLM10:2026 Improper Output Handling. **OWASP Top 10 for Agentic Applications (2026)**, published 9 Dec 2025 — ASI01 Agent Goal Hijack, ASI02 Tool Misuse and Exploitation, ASI03 Identity and Privilege Abuse, ASI04 Agentic Supply Chain Vulnerabilities, ASI05 Unexpected Code Execution, ASI06 Memory and Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation, ASI10 Rogue Agents (exact titles [S]: cite by ID). Its core principle is **least agency** — grant the minimum autonomy the task requires, not merely minimum permissions.
|
|
6
6
|
|
|
7
7
|
## Contents
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ Standards [V]: **OWASP Top 10 for LLM Applications 2026** (published 4 Aug 2026
|
|
|
18
18
|
|
|
19
19
|
## The one thing to internalize
|
|
20
20
|
|
|
21
|
-
**Prompt injection cannot be reliably prevented.** "The Attacker Moves Second" (Oct 2025) bypassed 12 published defenses
|
|
21
|
+
**Prompt injection cannot be reliably prevented.** "The Attacker Moves Second" (Oct 2025) bypassed 12 published defenses with attack success above 90% for most, using adaptive attacks that included human-guided exploration; most of those defenses had reported near-zero attack success [V]. Any design whose safety depends on the model refusing a malicious instruction is already broken. Filters, delimiters, "ignore instructions in user content", and a second model checking the first are mitigations, not controls.
|
|
22
22
|
|
|
23
23
|
Design for **containment**: assume the instruction lands, and make the outcome survivable.
|
|
24
24
|
|
|
@@ -77,7 +77,7 @@ Instructions hidden in files the agent reads land directly in its context, which
|
|
|
77
77
|
- **Multi-round-trip requests carry `requestState`** back from the client. Treat it as untrusted: sign it, bind it to the caller, and expire it.
|
|
78
78
|
- **Cacheable tool/resource listings**: bound cache lifetime and re-validate, so stale or poisoned descriptions do not outlive an update or a rug-pull.
|
|
79
79
|
- **Auth**: the server is an OAuth resource server; RFC 8707 `resource` binds tokens to one server; validate audience; never pass the client's token through upstream; RFC 9728 Protected Resource Metadata. Client ID Metadata Documents replace Dynamic Client Registration (DCR deprecated); clients check the `iss` response parameter (RFC 9207) against mix-up. A CIMD-fetching authorization server fetches a client-supplied URL: apply the SSRF sweep from `platform-playbooks.md`.
|
|
80
|
-
- **Origin**: Streamable HTTP servers MUST validate `Origin` and return 403 when it is present and invalid
|
|
80
|
+
- **Origin**: Streamable HTTP servers MUST validate `Origin` and return 403 when it is present and invalid, and SHOULD bind to 127.0.0.1 when running locally [V].
|
|
81
81
|
- **Roots, Sampling and Logging are deprecated** with at least 12 months' notice [V]; do not build new trust on them.
|
|
82
82
|
- **MCP Apps** (server-built UIs rendered in the client) are a phishing surface: treat them as untrusted content, never as the client's own UI, and never let them collect credentials.
|
|
83
83
|
- Stdio servers do not use the OAuth flow; they get credentials from the environment, so scope those.
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Attack Classes
|
|
2
|
+
|
|
3
|
+
What to look for, one section per audit in `audit-protocol.md` Phase 2. Each section stands alone and uses the same shape: **Fires when**, **Look for**, **Not a finding**, **Controls**. Working alone, use the selected sections as your checklist; in the fan-out variant, paste them verbatim into each child's brief so every child hunts the same way.
|
|
4
|
+
|
|
5
|
+
Every candidate must still pass the candidate gate in `audit-protocol.md` Phase 3. A lead below is a place to trace, not a finding.
|
|
6
|
+
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- Access control and tenant isolation
|
|
10
|
+
- Data lifecycle and derived copies
|
|
11
|
+
- Business logic, money and races
|
|
12
|
+
- Webhooks and inbound integrations
|
|
13
|
+
- Injection
|
|
14
|
+
- Authentication, sessions and recovery
|
|
15
|
+
- HTTP edge, caching and browser
|
|
16
|
+
- Secrets and exposure
|
|
17
|
+
- Supply chain
|
|
18
|
+
- CI/CD and release integrity
|
|
19
|
+
- SSRF, paths and files
|
|
20
|
+
- Cloud and infrastructure
|
|
21
|
+
- Cryptography
|
|
22
|
+
- Resource abuse and denial of wallet
|
|
23
|
+
- Agent surface
|
|
24
|
+
- Desktop, mobile and local IPC
|
|
25
|
+
|
|
26
|
+
## Access control and tenant isolation
|
|
27
|
+
|
|
28
|
+
**Fires when:** any per-user, per-tenant or role-gated data.
|
|
29
|
+
|
|
30
|
+
**Look for:**
|
|
31
|
+
- Every route to the same object: get, list, update, delete, bulk and batch endpoints, GraphQL resolvers, server actions, background jobs, admin and older API versions. One path with the check and a sibling without it is the most common real finding.
|
|
32
|
+
- Identity read from the request (body, query, header, path) instead of the session. User, tenant, role, owner or price fields accepted on write (mass assignment).
|
|
33
|
+
- Checks only in the UI, middleware or edge layer. RLS off, `using (true)`, or covering only some of select, insert, update, delete.
|
|
34
|
+
- Lookups by object ID alone where the ID is only unique within a tenant. A child object reachable without checking its parent.
|
|
35
|
+
- Policy and query disagreeing: the policy checks one field, the query filters another, or an `OR` widens the filter.
|
|
36
|
+
|
|
37
|
+
**Not a finding:** a user reading or changing their own data with their own authority; an intended admin power used by an admin.
|
|
38
|
+
|
|
39
|
+
**Controls:** `secure-defaults.md` Authorization; `platform-playbooks.md` Web & API.
|
|
40
|
+
|
|
41
|
+
## Data lifecycle and derived copies
|
|
42
|
+
|
|
43
|
+
**Fires when:** user data is copied into search, exports, caches, logs, analytics or model context, can be deleted or restored, or members can be removed.
|
|
44
|
+
|
|
45
|
+
**Look for:**
|
|
46
|
+
- Other readers of the same data: search indexes, exports and reports, analytics, logs, traces, error trackers, caches, notifications and emails, embeddings and model context. Each needs the same owner or tenant filter as the main read.
|
|
47
|
+
- Access that outlives removal: sessions, refresh tokens, API keys, share links, invites, signed URLs and queued jobs that still work after a member leaves, a role drops, or an account is deleted.
|
|
48
|
+
- Soft-deleted or archived rows still returned by search, counts, exports or joins.
|
|
49
|
+
- Import and restore that create records the user could not create through the normal path, skip validation, or overwrite other users' records.
|
|
50
|
+
- Oracles: search, filters, sorting, counts or different errors that reveal whether a record the user cannot read exists.
|
|
51
|
+
|
|
52
|
+
**Not a finding:** retention periods (`compliance-guard` owns those); copies only the owner can read.
|
|
53
|
+
|
|
54
|
+
**Controls:** `secure-defaults.md` Authorization.
|
|
55
|
+
|
|
56
|
+
## Business logic, money and races
|
|
57
|
+
|
|
58
|
+
**Fires when:** payments, credits, quotas, coupons, invites, one-time tokens, inventory, voting, or any multi-step workflow.
|
|
59
|
+
|
|
60
|
+
**Look for:**
|
|
61
|
+
- Prices, discounts, quantities, plan IDs or currency sent by the client and trusted by the server.
|
|
62
|
+
- Negative, zero, fractional, huge or non-numeric amounts; rounding and unit mismatches between steps.
|
|
63
|
+
- Check-then-act on a shared balance or one-time item without an atomic update, row lock or unique constraint: two concurrent requests redeem one coupon, spend the same credits twice, or accept one invite twice.
|
|
64
|
+
- Steps that can be skipped, repeated or reordered: replaying a success callback, calling the final step directly, a cancelled order that still delivers.
|
|
65
|
+
- Partial failure: step two fails and step one's grant or charge is never rolled back.
|
|
66
|
+
- Entitlements decided by a client flag, a success-page redirect, or a cached plan that is never re-checked.
|
|
67
|
+
|
|
68
|
+
**Not a finding:** a race with nothing shared at stake, or a window no outsider can reach. A check-then-act on money, credits, quotas or one-time items is reportable even when the window is short, because parallel requests are free.
|
|
69
|
+
|
|
70
|
+
**Controls:** `secure-defaults.md` Money, quotas & webhooks.
|
|
71
|
+
|
|
72
|
+
## Webhooks and inbound integrations
|
|
73
|
+
|
|
74
|
+
**Fires when:** the app receives webhooks, payment or OAuth callbacks, or events from another service.
|
|
75
|
+
|
|
76
|
+
**Look for:**
|
|
77
|
+
- A handler that acts without verifying the provider's signature, verifies a re-serialized body instead of the raw bytes, compares with `==`, or skips verification when the header is missing.
|
|
78
|
+
- No timestamp tolerance or event-ID dedupe, so a captured event can be replayed.
|
|
79
|
+
- Payload fields (amount, customer, status) trusted instead of re-fetching the object from the provider's API.
|
|
80
|
+
- Callback parameters that pick the account, tenant or pending transaction without binding to state the app generated.
|
|
81
|
+
- One webhook secret shared across environments, or committed.
|
|
82
|
+
|
|
83
|
+
**Not a finding:** an endpoint that only enqueues the event ID and re-fetches from the provider before acting.
|
|
84
|
+
|
|
85
|
+
**Controls:** `secure-defaults.md` Money, quotas & webhooks; `platform-playbooks.md` Web & API.
|
|
86
|
+
|
|
87
|
+
## Injection
|
|
88
|
+
|
|
89
|
+
**Fires when:** untrusted input reaches an interpreter.
|
|
90
|
+
|
|
91
|
+
**Look for:** SQL/NoSQL/LDAP/XPath built from strings, including dynamic `ORDER BY` columns and `IN` lists; shell strings and `shell: true`; user-supplied templates; `eval`, `Function`, `vm`, dynamic `import`/`require`; unsafe deserializers (`pickle`, `yaml.load`, `Marshal`, `ObjectInputStream`); XML parsed with entities on; model output reaching any of these.
|
|
92
|
+
|
|
93
|
+
**Not a finding:** framework-escaped rendering, parameterized ORM calls, and input that is a constant, build-time value or operator config.
|
|
94
|
+
|
|
95
|
+
**Controls:** `platform-playbooks.md` Web & API and Language hot zones.
|
|
96
|
+
|
|
97
|
+
## Authentication, sessions and recovery
|
|
98
|
+
|
|
99
|
+
**Fires when:** any login, session, token, OAuth/SSO, MFA or password-reset logic.
|
|
100
|
+
|
|
101
|
+
**Look for:**
|
|
102
|
+
- Token checks: algorithm read from the token, `none` accepted, `exp`/`aud`/`iss` unchecked, or a valid signature whose claims are never bound to the tenant or user being acted on.
|
|
103
|
+
- OAuth/OIDC: missing `state` or PKCE, loose redirect-URI matching, ID token audience or nonce unchecked.
|
|
104
|
+
- Account linking: a social or SSO sign-in that attaches to an existing account by matching email alone, especially an unverified one. That is account takeover with one sign-up.
|
|
105
|
+
- Reset and magic links built from the request's `Host` or `X-Forwarded-Host`, which mails the victim's token to the attacker's domain. Reset tokens that are reusable, long-lived, or survive a password change.
|
|
106
|
+
- Sessions not rotated on login or privilege change; logout or password change leaving other sessions and refresh tokens alive.
|
|
107
|
+
- MFA enrolled or removed without recent re-authentication; recovery weaker than the factor it recovers; step-up not bound to the action it guards.
|
|
108
|
+
- Enumeration: a different status, message or timing for "no such account" on login, signup, reset or invite.
|
|
109
|
+
- No rate limit on login, reset, MFA or token exchange.
|
|
110
|
+
|
|
111
|
+
**Not a finding:** a signed-in user changing their own settings, unless the design requires step-up for that action.
|
|
112
|
+
|
|
113
|
+
**Controls:** `secure-defaults.md` Authentication.
|
|
114
|
+
|
|
115
|
+
## HTTP edge, caching and browser
|
|
116
|
+
|
|
117
|
+
**Fires when:** the app renders HTML, sits behind a CDN or proxy, or authenticates with cookies.
|
|
118
|
+
|
|
119
|
+
**Look for:**
|
|
120
|
+
- Private responses a CDN or shared cache can store: authenticated pages or API responses without `Cache-Control: private` or `no-store`, cache keys that ignore cookies or `Authorization`, and "static" cache rules that match paths like `/account/x.css` (cache deception). Check framework route-level caching too, not only headers.
|
|
121
|
+
- `Host`, `X-Forwarded-For`, `X-Forwarded-Host` or `X-Forwarded-Proto` trusted from clients that are not behind a configured proxy, then used for links, redirects, rate-limit keys, IP allowlists or "is HTTPS" decisions.
|
|
122
|
+
- Cookie-authenticated state changes without CSRF protection, including login and JSON endpoints; CORS reflecting any origin with credentials; WebSockets that accept any `Origin` with cookie auth.
|
|
123
|
+
- DOM sinks fed from the URL, `postMessage` without an origin check, browser storage or third-party data; prototype pollution from deep-merging user JSON into objects used for config or checks.
|
|
124
|
+
- Tokens in `localStorage`; service workers or caches that keep one user's data after logout or account switch.
|
|
125
|
+
- A one-click damaging action that can be framed (no `frame-ancestors`).
|
|
126
|
+
|
|
127
|
+
**Not a finding:** a missing header with no reachable consequence; caching genuinely public responses.
|
|
128
|
+
|
|
129
|
+
**Controls:** `secure-defaults.md` Web response headers; `platform-playbooks.md` Web & API.
|
|
130
|
+
|
|
131
|
+
## Secrets and exposure
|
|
132
|
+
|
|
133
|
+
**Fires when:** any credential exists.
|
|
134
|
+
|
|
135
|
+
**Look for:** keys in source, git history, client bundles and source maps, public env prefixes, logs, error responses, telemetry, CI output, agent and MCP config, container layers and published packages; debug endpoints; served `.env` or `.git`.
|
|
136
|
+
|
|
137
|
+
**Not a finding:** obvious test fixtures and public sample keys. Say you saw them and checked they are not live.
|
|
138
|
+
|
|
139
|
+
**Controls:** `secure-defaults.md` Secrets.
|
|
140
|
+
|
|
141
|
+
## Supply chain
|
|
142
|
+
|
|
143
|
+
**Fires when:** any dependency manager, vendored code, editor or agent config, or MCP server.
|
|
144
|
+
|
|
145
|
+
**Look for:** dependencies that do not exist or look like squats; unpinned or mutable versions; install scripts allowed; lockfile drift; git or URL dependencies; auto-run editor and agent config; MCP servers unpinned or re-trusted after an update.
|
|
146
|
+
|
|
147
|
+
**Not a finding:** a known advisory in code that is never reached. Note it as maintenance, not a vulnerability.
|
|
148
|
+
|
|
149
|
+
**Controls:** `supply-chain.md`.
|
|
150
|
+
|
|
151
|
+
## CI/CD and release integrity
|
|
152
|
+
|
|
153
|
+
**Fires when:** any workflow, release or update pipeline.
|
|
154
|
+
|
|
155
|
+
**Look for:** untrusted code in a privileged workflow (`pull_request_target`, `workflow_run`); `${{ github.event.* }}` interpolated into `run:`; actions not pinned by SHA; broad `permissions:` or `id-token: write` outside the publish job; caches and artifacts shared between untrusted and release jobs; secrets echoed; artifacts that can be swapped between build and publish; updates that are unsigned or accept an older version.
|
|
156
|
+
|
|
157
|
+
**Not a finding:** a workflow that only runs trusted, already-merged code with read-only permissions.
|
|
158
|
+
|
|
159
|
+
**Controls:** `supply-chain.md` CI/CD and Publishing.
|
|
160
|
+
|
|
161
|
+
## SSRF, paths and files
|
|
162
|
+
|
|
163
|
+
**Fires when:** a URL, path, archive or upload comes from input.
|
|
164
|
+
|
|
165
|
+
**Look for:** server fetches of user URLs (webhook targets, link previews, imports, image proxies, OAuth metadata) without a resolved-IP check and re-validation on every redirect; path joins without a containment check after resolution; archive entries with `..`, absolute paths or symlinks; check-then-use on paths; uploads served from the app's origin.
|
|
166
|
+
|
|
167
|
+
**Not a finding:** URLs that are constants or build-time strings.
|
|
168
|
+
|
|
169
|
+
**Controls:** `platform-playbooks.md` Web & API (SSRF, File upload) and CLI & developer tooling.
|
|
170
|
+
|
|
171
|
+
## Cloud and infrastructure
|
|
172
|
+
|
|
173
|
+
**Fires when:** IaC, containers, serverless config or cloud SDK calls.
|
|
174
|
+
|
|
175
|
+
**Look for:** wildcard IAM or roles shared across services; authorization delegated to "anything inside the network"; public buckets; long-lived or unscoped presigned URLs; the legacy metadata service; admin or database ports open to the internet; privileged containers or a mounted Docker socket; secrets in plain manifests; default credentials.
|
|
176
|
+
|
|
177
|
+
**Not a finding:** a setting the repo cannot show. That is needs validation, with the console or CLI check that settles it.
|
|
178
|
+
|
|
179
|
+
**Controls:** `secure-defaults.md` Cloud, containers & infrastructure.
|
|
180
|
+
|
|
181
|
+
## Cryptography
|
|
182
|
+
|
|
183
|
+
**Fires when:** any hashing, signing, encryption or random token.
|
|
184
|
+
|
|
185
|
+
**Look for:** fast hashes for passwords; non-AEAD or ECB modes; nonce reuse; `Math.random` or a seeded PRNG for tokens; non-constant-time compares, or compares before the shape is validated; signatures unverified or verified with an algorithm taken from the input; crypto errors that fall through to success.
|
|
186
|
+
|
|
187
|
+
**Not a finding:** a weak hash used for a non-security purpose such as cache keys or ETags.
|
|
188
|
+
|
|
189
|
+
**Controls:** `secure-defaults.md` Cryptography and Failure behavior.
|
|
190
|
+
|
|
191
|
+
## Resource abuse and denial of wallet
|
|
192
|
+
|
|
193
|
+
**Fires when:** public or low-trust callers can trigger expensive work, paid APIs or model calls, file parsing, or queued jobs.
|
|
194
|
+
|
|
195
|
+
**Look for:** pre-auth work that costs far more than the request (model calls, email or SMS sends, image or PDF rendering, heavy queries); unbounded page size, batch size or GraphQL depth; decompression and archive bombs; quotas keyed on something the caller can change, or reset by a new account or API key; retries that multiply load on failure; one poison message that blocks a queue.
|
|
196
|
+
|
|
197
|
+
**Not a finding:** a missing rate limit on a cheap endpoint; slowness the caller pays for themselves.
|
|
198
|
+
|
|
199
|
+
**Controls:** `agent-surface.md` (spend caps); `platform-playbooks.md` Web & API.
|
|
200
|
+
|
|
201
|
+
## Agent surface
|
|
202
|
+
|
|
203
|
+
**Fires when:** the code calls a model, exposes tools to one, runs an agent, or serves or consumes MCP.
|
|
204
|
+
|
|
205
|
+
**Look for:** private data, untrusted content and egress in one context (the lethal trifecta); model-chosen tool arguments reaching a shell, SQL, path or URL unchecked; approvals that show intent instead of the concrete effect, or are not bound to the action that actually runs; one user's context, memory or retrieved documents reaching another; sub-agents or MCP servers inheriting the parent's credentials; tool descriptions or server identity trusted after an update; model output rendered as HTML, or markdown with remote images; loops and spend without caps.
|
|
206
|
+
|
|
207
|
+
**Not a finding:** prompt injection with no privileged tool, private data or egress behind it.
|
|
208
|
+
|
|
209
|
+
**Controls:** `agent-surface.md`.
|
|
210
|
+
|
|
211
|
+
## Desktop, mobile and local IPC
|
|
212
|
+
|
|
213
|
+
**Fires when:** a desktop or mobile app, privileged helper, updater, local server, deep link, webview bridge or IPC channel.
|
|
214
|
+
|
|
215
|
+
**Look for:**
|
|
216
|
+
- Loopback servers and IPC that accept any local process: no per-launch token, no peer-credential check, a `0.0.0.0` bind, no `Origin` or `Host` check (DNS rebinding).
|
|
217
|
+
- A caller authenticated as one app or user whose request fields then select another user, profile or capability.
|
|
218
|
+
- Privileged helpers that run a caller-chosen command, file or setting without checking it on every call.
|
|
219
|
+
- Deep links and file-open events that change state, finish sign-in or pick an account without a one-time binding to a request the app started.
|
|
220
|
+
- Webview bridges reachable from remote content or after a navigation; capability or permission files wider than the windows that need them.
|
|
221
|
+
- Updates verified after unpacking, or without pinning version and target; install and repair paths writable by a lower-privilege user.
|
|
222
|
+
- Logout or account switch leaving the previous user's tokens, caches or pending actions behind.
|
|
223
|
+
|
|
224
|
+
**Not a finding:** the same OS user harming their own data; a missing hardening flag with no reachable content behind it.
|
|
225
|
+
|
|
226
|
+
**Controls:** `platform-playbooks.md` Desktop, Mobile, and CLI & developer tooling.
|