fullshield 0.1.3 → 0.3.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/CHANGELOG.md +112 -1
- package/README.md +27 -3
- package/dist/agent.js +934 -96
- package/dist/cli/index.js +1550 -139
- package/dist/compliance.js +5 -0
- package/dist/dashboard.js +18 -1
- package/dist/iac.js +48 -0
- package/dist/index.d.ts +69 -6
- package/dist/index.js +1227 -103
- package/dist/mcp.js +934 -96
- package/dist/supply.js +13 -3
- package/package.json +2 -2
- package/rules/SAST-SKIP-001.md +9 -0
package/dist/supply.js
CHANGED
|
@@ -168,14 +168,24 @@ function checkLockfileIntegrity(lock) {
|
|
|
168
168
|
if (name === "") continue;
|
|
169
169
|
const resolved = entry.resolved;
|
|
170
170
|
if (!resolved) continue;
|
|
171
|
+
if (entry.integrity === void 0 || entry.integrity.length === 0) {
|
|
172
|
+
findings.push(
|
|
173
|
+
finding(
|
|
174
|
+
"SUPPLY-LOCKINTEGRITY-001",
|
|
175
|
+
"Lockfile entry has no integrity hash",
|
|
176
|
+
`${name} resolved without an integrity hash`,
|
|
177
|
+
"package-lock.json"
|
|
178
|
+
)
|
|
179
|
+
);
|
|
180
|
+
}
|
|
171
181
|
try {
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
182
|
+
const url = new URL(resolved);
|
|
183
|
+
if (url.protocol !== "https:" || url.hostname !== REGISTRY_HOST) {
|
|
174
184
|
findings.push(
|
|
175
185
|
finding(
|
|
176
186
|
"SUPPLY-LOCKURL-001",
|
|
177
187
|
"Lockfile entry resolves from a non-npm registry host",
|
|
178
|
-
`${name} resolved host ${
|
|
188
|
+
`${name} resolved host ${url.hostname || resolved}`,
|
|
179
189
|
"package-lock.json"
|
|
180
190
|
)
|
|
181
191
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fullshield",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Full-cycle security scanner for Node.js/TypeScript backends: detect, classify, report, notify, fix, prevent.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/kathanp/fullshield.git"
|
|
10
10
|
},
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=20.11"
|
|
13
13
|
},
|
|
14
14
|
"bin": {
|
|
15
15
|
"fullshield": "dist/cli/index.js"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# SAST-SKIP-001
|
|
2
|
+
|
|
3
|
+
**A source file was not parsed.** Severity info.
|
|
4
|
+
|
|
5
|
+
The file is larger than `sast.maxFileBytes` (default 1 MB) or it contains NUL bytes. This is a skip notice, not a vulnerability.
|
|
6
|
+
|
|
7
|
+
## Remediation
|
|
8
|
+
|
|
9
|
+
Raise `sast.maxFileBytes` in `fullshield.config.json` when the file should be parsed. Generated and vendored trees are excluded before this check.
|