fullshield 0.2.6 → 0.4.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/dist/vex.js CHANGED
@@ -49,14 +49,16 @@ function openVexStatement(finding) {
49
49
  vulnerability: { name: vulnName(finding) },
50
50
  products: [{ "@id": npmPurl(finding.snippet) }]
51
51
  };
52
+ const detail = process.env.FULLSHIELD_EXPERIMENTAL_SBOM_REACH === "1" && finding.reachabilityEvidence?.reason !== void 0 ? { detail: finding.reachabilityEvidence.reason } : {};
52
53
  if (notImported(finding)) {
53
54
  return {
54
55
  ...base,
55
56
  status: "not_affected",
56
- justification: OPENVEX_NOT_AFFECTED_JUSTIFICATION
57
+ justification: OPENVEX_NOT_AFFECTED_JUSTIFICATION,
58
+ ...detail
57
59
  };
58
60
  }
59
- return { ...base, status: "under_investigation" };
61
+ return { ...base, status: "under_investigation", ...detail };
60
62
  }
61
63
  function buildOpenVex(findings) {
62
64
  const statements = depFindings(findings).map(openVexStatement);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullshield",
3
- "version": "0.2.6",
3
+ "version": "0.4.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",
package/rules/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # FullShield rules
2
2
 
3
+ New work is `SECURITY_SCANNER_SPEC.md` Section 32. These pages describe rules that already exist. They are not the Phase 46–59 designs.
4
+
3
5
  Each Core rule has a positive fixture in `test/fixtures/vulnerable-app` and a
4
6
  negative counterpart in `test/fixtures/clean-app`.
5
7
 
@@ -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.
@@ -0,0 +1,3 @@
1
+ # SUPPLY-CHAINC2-001
2
+
3
+ A package file names a public blockchain RPC method (`getSignaturesForAddress` or `eth_getLogs`) and also fetches or evaluates a value. Either signal alone is not a finding. Experimental: `FULLSHIELD_EXPERIMENTAL_SUPPLY=1`. Static only. Fixtures use `example.invalid`.
@@ -0,0 +1,3 @@
1
+ # SUPPLY-PLATFORMGATE-001
2
+
3
+ A `process.platform === 'win32'` or `os.platform()` check, a download, and a process spawn or executable write all appear in the same file. One of those signals alone is not a finding. Experimental: `FULLSHIELD_EXPERIMENTAL_SUPPLY=1`. Fixtures use `example.invalid`.
@@ -0,0 +1,3 @@
1
+ # SUPPLY-SECHOLDER-001
2
+
3
+ The registry `latest` dist-tag for a locked package is npm's removed-for-security placeholder `0.0.1-security`, and the locked version is not that placeholder. Missing registry data produces no finding. `--offline` reads the cache only. Critical. Not downgraded by reachability. Remove the package, delete `node_modules`, reinstall from a clean lockfile, and rotate credentials the machine could read.
@@ -0,0 +1,3 @@
1
+ # SUPPLY-STEALER-001
2
+
3
+ A package file names a browser, Discord, or wallet store path and also makes a network call. A path alone, or a network call alone, is not a finding. Experimental: `FULLSHIELD_EXPERIMENTAL_SUPPLY=1`. Critical. Not downgraded by reachability.