@agenticcli/shipguard 0.7.1 → 0.8.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 +2 -6
- package/dist/checksum-manifest.json +5 -5
- package/dist/{chunk-MPQ42F54.js → chunk-KGIK7XNK.js} +4 -18
- package/dist/{chunk-3NSULPWH.js → chunk-MVYY4QWT.js} +3 -3
- package/dist/{chunk-A63X4LUJ.js → chunk-VJBU6FNW.js} +264 -103
- package/dist/cli-facts.json +5 -5
- package/dist/cli.js +293 -93
- package/dist/{config-generator-2BVUZGEU.js → config-generator-4MK6PGY5.js} +2 -2
- package/dist/{dist-3SW45O4F.js → dist-YSE6YNXH.js} +1 -3
- package/dist/{pro-scanner-QDOFUEXZ.js → pro-scanner-5GYWJ7AS.js} +2 -2
- package/docs/llms.txt +2 -2
- package/package.json +5 -4
- package/rules/free-bundle.json +9 -9
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
DEFAULT_MAX_FILES,
|
|
3
3
|
DEFAULT_MAX_FILE_SIZE_BYTES,
|
|
4
4
|
DEFAULT_MAX_TOTAL_BYTES
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MVYY4QWT.js";
|
|
6
|
+
import "./chunk-KGIK7XNK.js";
|
|
7
7
|
|
|
8
8
|
// src/core/config-generator.ts
|
|
9
9
|
import { writeFileSync, existsSync } from "fs";
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
allConformanceVectors,
|
|
15
15
|
canonicalJson,
|
|
16
16
|
canonicalizeFinding,
|
|
17
|
-
compileCached,
|
|
18
17
|
computeExecutableHash,
|
|
19
18
|
computeMatcherRuntimeId,
|
|
20
19
|
decodeUtf8Strict,
|
|
@@ -35,7 +34,7 @@ import {
|
|
|
35
34
|
selectExpected,
|
|
36
35
|
stripBom,
|
|
37
36
|
verifyExactSet
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KGIK7XNK.js";
|
|
39
38
|
export {
|
|
40
39
|
CapTracker,
|
|
41
40
|
DEFAULT_CAPS,
|
|
@@ -52,7 +51,6 @@ export {
|
|
|
52
51
|
allConformanceVectors,
|
|
53
52
|
canonicalJson,
|
|
54
53
|
canonicalizeFinding,
|
|
55
|
-
compileCached,
|
|
56
54
|
computeExecutableHash,
|
|
57
55
|
computeMatcherRuntimeId,
|
|
58
56
|
decodeUtf8Strict,
|
package/docs/llms.txt
CHANGED
|
@@ -24,10 +24,10 @@ shipguard history — show recent local scan history for this repo (read-only)
|
|
|
24
24
|
- Deployment: CORS misconfiguration, debug mode, missing headers
|
|
25
25
|
|
|
26
26
|
## Target Users
|
|
27
|
-
Solo SaaS
|
|
27
|
+
Solo SaaS builders, indie hackers, small dev teams using Claude Code, Codex, Cursor, or Lovable
|
|
28
28
|
|
|
29
29
|
## GitHub
|
|
30
|
-
https://github.com/
|
|
30
|
+
https://github.com/agenticcli/shipguard
|
|
31
31
|
|
|
32
32
|
## npm
|
|
33
33
|
https://www.npmjs.com/package/@agenticcli/shipguard
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticcli/shipguard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "CLI-first release gate for AI-built apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"eslint": "^8",
|
|
32
32
|
"tsup": "^8.5.1",
|
|
33
33
|
"typescript": "^5.8.0",
|
|
34
|
-
"vitest": "^
|
|
34
|
+
"vitest": "^4.1.11",
|
|
35
35
|
"@agenticcli/matcher-contract": "0.5.1",
|
|
36
36
|
"@agenticcli/shared": "0.1.0"
|
|
37
37
|
},
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"type": "git",
|
|
58
58
|
"url": "git+https://github.com/agenticcli/shipguard.git"
|
|
59
59
|
},
|
|
60
|
-
"homepage": "https://agenticcli.dev/shipguard",
|
|
60
|
+
"homepage": "https://agenticcli.dev/shipguard?utm_source=npm_homepage&utm_medium=package&utm_campaign=shipguard_evergreen",
|
|
61
61
|
"bugs": {
|
|
62
62
|
"url": "https://github.com/agenticcli/shipguard/issues"
|
|
63
63
|
},
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"node": ">=20"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
|
-
"access": "public"
|
|
68
|
+
"access": "public",
|
|
69
|
+
"provenance": true
|
|
69
70
|
},
|
|
70
71
|
"scripts": {
|
|
71
72
|
"build": "tsup",
|
package/rules/free-bundle.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"description": "Offline free rule bundle compiled from rule-corpus/*/rule.yaml where bundleEligible=true and enabled=true. Governed by rules.md §4/§5/§9. Generated by scripts/build-free-bundle.ts — never hand-edited.",
|
|
4
|
-
"corpusVersion":
|
|
5
|
-
"corpusHash": "sha256:
|
|
4
|
+
"corpusVersion": 19,
|
|
5
|
+
"corpusHash": "sha256:4edcc0b1a6f89a2c34e796f022a693cf7b89dbc4e3bcf4afd5e7b54804150a97",
|
|
6
6
|
"ruleCount": 30,
|
|
7
|
-
"contentHash": "sha256:
|
|
7
|
+
"contentHash": "sha256:1e274f5f8176c4ad8566703a67b110d038b528942c26c25c2b7299367bc8ffa8",
|
|
8
8
|
"rules": [
|
|
9
9
|
{
|
|
10
10
|
"id": "generic.auth.jwt-none-algorithm",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"severity": "high",
|
|
148
148
|
"confidence": "MEDIUM",
|
|
149
149
|
"action": "warn",
|
|
150
|
-
"version":
|
|
150
|
+
"version": 5,
|
|
151
151
|
"status": "experimental",
|
|
152
152
|
"cwe": [
|
|
153
153
|
"CWE-942",
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
"flags": "",
|
|
174
174
|
"antiPatternScope": "block"
|
|
175
175
|
},
|
|
176
|
-
"explanation": "The server reflects the incoming Origin request header back into Access-Control-Allow-Origin without validating it against an allowlist. This is more dangerous than a static wildcard: any attacker-controlled origin can read authenticated API responses. CVE-2024-25124 (CVSS 9.8) in the Fiber Go framework exploited exactly this pattern, granting any origin full credentialed access to protected endpoints (CWE-942, CWE-346)
|
|
176
|
+
"explanation": "The server reflects the incoming Origin request header back into Access-Control-Allow-Origin without validating it against an allowlist. This is more dangerous than a static wildcard: any attacker-controlled origin can read authenticated API responses. CVE-2024-25124 (CVSS 9.8) in the Fiber Go framework exploited exactly this pattern, granting any origin full credentialed access to protected endpoints (CWE-942, CWE-346).",
|
|
177
177
|
"recommendation": "Validate the incoming Origin header against a server-side allowlist before reflecting it. Store allowed origins in an environment variable (ALLOWED_ORIGINS) and check membership before setting Access-Control-Allow-Origin. Never reflect req.headers.origin directly.",
|
|
178
178
|
"fix": "const allowed = (process.env.ALLOWED_ORIGINS || '').split(','); if (allowed.includes(req.headers.origin)) res.setHeader('Access-Control-Allow-Origin', req.headers.origin);",
|
|
179
179
|
"findingType": "vulnerability",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"severity": "high",
|
|
195
195
|
"confidence": "MEDIUM",
|
|
196
196
|
"action": "warn",
|
|
197
|
-
"version":
|
|
197
|
+
"version": 6,
|
|
198
198
|
"status": "experimental",
|
|
199
199
|
"cwe": [
|
|
200
200
|
"CWE-942",
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
],
|
|
229
229
|
"flags": ""
|
|
230
230
|
},
|
|
231
|
-
"explanation": "A wildcard CORS origin (Access-Control-Allow-Origin: *) was detected. For API endpoints returning user data, this allows any origin on the internet to read responses. Combined with credentials: 'include', wildcard origins are rejected by browsers — but without credentials, sensitive data is still exposed to cross-origin requests from attacker-controlled pages
|
|
231
|
+
"explanation": "A wildcard CORS origin (Access-Control-Allow-Origin: *) was detected. For API endpoints returning user data, this allows any origin on the internet to read responses. Combined with credentials: 'include', wildcard origins are rejected by browsers — but without credentials, sensitive data is still exposed to cross-origin requests from attacker-controlled pages.",
|
|
232
232
|
"recommendation": "Replace the wildcard with an explicit allowlist of trusted origins. Use environment variables for origin configuration (ALLOWED_ORIGINS) so production and development settings can differ. Audit whether this endpoint requires CORS at all.",
|
|
233
233
|
"fix": "Replace `'*'` with `process.env.ALLOWED_ORIGIN` and validate against an allowlist.",
|
|
234
234
|
"findingType": "vulnerability",
|
|
@@ -1161,7 +1161,7 @@
|
|
|
1161
1161
|
"severity": "critical",
|
|
1162
1162
|
"confidence": "HIGH",
|
|
1163
1163
|
"action": "block",
|
|
1164
|
-
"version":
|
|
1164
|
+
"version": 6,
|
|
1165
1165
|
"status": "experimental",
|
|
1166
1166
|
"cwe": [
|
|
1167
1167
|
"CWE-798"
|
|
@@ -1186,7 +1186,7 @@
|
|
|
1186
1186
|
],
|
|
1187
1187
|
"flags": ""
|
|
1188
1188
|
},
|
|
1189
|
-
"explanation": "A hardcoded Stripe live secret key (sk_live_ prefix) was detected in source. This key grants full access to the Stripe account including charges, refunds, customer data, and payouts — immediate payment account compromise if exposed
|
|
1189
|
+
"explanation": "A hardcoded Stripe live secret key (sk_live_ prefix) was detected in source. This key grants full access to the Stripe account including charges, refunds, customer data, and payouts — immediate payment account compromise if exposed.",
|
|
1190
1190
|
"recommendation": "Remove the key immediately and roll it in the Stripe dashboard under Developers > API Keys. Store the key in an environment variable (STRIPE_SECRET_KEY) loaded at runtime. Never commit live API keys to version control.",
|
|
1191
1191
|
"fix": "Replace with `process.env.STRIPE_SECRET_KEY` and add it to .env.local (gitignored). Rotate the exposed key immediately.",
|
|
1192
1192
|
"findingType": "vulnerability",
|