fullshield 0.3.0 → 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/CHANGELOG.md +34 -0
- package/README.md +4 -4
- package/dist/agent.js +1535 -348
- package/dist/cli/index.js +2175 -387
- package/dist/compliance.js +4 -0
- package/dist/index.d.ts +54 -3
- package/dist/index.js +1890 -426
- package/dist/mcp.js +1546 -359
- package/dist/vex.js +4 -2
- package/package.json +2 -2
- package/rules/README.md +2 -0
- package/rules/SUPPLY-CHAINC2-001.md +3 -0
- package/rules/SUPPLY-PLATFORMGATE-001.md +3 -0
- package/rules/SUPPLY-SECHOLDER-001.md +3 -0
- package/rules/SUPPLY-STEALER-001.md +3 -0
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.
|
|
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",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "git+https://github.com/kathanp/fullshield.git"
|
|
10
10
|
},
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=22.13"
|
|
13
13
|
},
|
|
14
14
|
"bin": {
|
|
15
15
|
"fullshield": "dist/cli/index.js"
|
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,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.
|