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/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 host = new URL(resolved).hostname;
173
- if (host !== REGISTRY_HOST) {
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 ${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.1.3",
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": ">=22.13"
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.