sbom-vulnerability-scanner 0.0.0-stage → 9.7.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 +274 -0
- package/CONTRIBUTING.md +57 -0
- package/LICENSE +176 -0
- package/README.ja.md +310 -0
- package/README.md +314 -2
- package/bin/mcp-server.js +7 -0
- package/bin/sbom-scanner.js +16 -0
- package/dist/THIRD_PARTY_NOTICES.txt +1107 -0
- package/dist/extension.js +34809 -0
- package/dist/extension.js.LEGAL.txt +21 -0
- package/docs/TROUBLESHOOTING.ja.md +24 -0
- package/docs/USER_GUIDE.ja.md +338 -0
- package/extension.js +216 -0
- package/l10n/bundle.l10n.ja.json +13 -0
- package/l10n/cli.en.json +18 -0
- package/l10n/cli.ja.json +18 -0
- package/l10n/compliance.en.json +42 -0
- package/l10n/compliance.ja.json +42 -0
- package/l10n/report.en.json +199 -0
- package/l10n/report.ja.json +199 -0
- package/lib/application/analysisService.js +18 -0
- package/lib/application/analysisWorkflow.js +12 -0
- package/lib/application/documentExplorerService.js +22 -0
- package/lib/application/headlessScanService.js +78 -0
- package/lib/application/monorepoWorkflow.js +54 -0
- package/lib/application/operationRunner.js +27 -0
- package/lib/application/reportService.js +42 -0
- package/lib/application/toolInstallationService.js +32 -0
- package/lib/cli/arguments.js +49 -0
- package/lib/cli/headlessCli.js +94 -0
- package/lib/common.js +166 -0
- package/lib/compliance/checks.js +101 -0
- package/lib/compliance/engine.js +60 -0
- package/lib/compliance/syntax.js +120 -0
- package/lib/compliance/validators/bsi.js +50 -0
- package/lib/compliance/validators/cisa.js +39 -0
- package/lib/compliance/validators/cra.js +34 -0
- package/lib/compliance/validators/fda.js +29 -0
- package/lib/config/constants.js +205 -0
- package/lib/config/settings.js +6 -0
- package/lib/config/toolSetupCatalog.js +23 -0
- package/lib/dashboardView.js +147 -0
- package/lib/data/spdxLicenseList.json +835 -0
- package/lib/i18n.js +274 -0
- package/lib/mcp/mcpServer.js +416 -0
- package/lib/model/analysisSnapshot.js +35 -0
- package/lib/model/monorepoSummary.js +19 -0
- package/lib/policy/policyEvaluator.js +235 -0
- package/lib/policy/policyLoader.js +58 -0
- package/lib/profile/profileLoader.js +47 -0
- package/lib/report/analysisPanel.js +71 -0
- package/lib/report/artifacts.js +104 -0
- package/lib/report/builder.js +362 -0
- package/lib/report/dependencyTree.js +50 -0
- package/lib/report/docx.js +26 -0
- package/lib/report/docxContent.js +165 -0
- package/lib/report/docxDocument.js +13 -0
- package/lib/report/docxFrontMatter.js +60 -0
- package/lib/report/docxLayout.js +48 -0
- package/lib/report/inventoryExport.js +16 -0
- package/lib/report/labels.js +8 -0
- package/lib/report/monorepo.js +55 -0
- package/lib/report/monorepoDocx.js +34 -0
- package/lib/report/projectCheck.js +32 -0
- package/lib/report/sarifExporter.js +183 -0
- package/lib/report/sbomExplorer.js +970 -0
- package/lib/report/sbomLens.js +9 -0
- package/lib/report/store.js +68 -0
- package/lib/report/styles.js +416 -0
- package/lib/reportViewer.js +42 -0
- package/lib/sbom/craAuditor.js +204 -0
- package/lib/sbom/diff.js +328 -0
- package/lib/sbom/documentCollection.js +71 -0
- package/lib/sbom/documentQuality.js +27 -0
- package/lib/sbom/enricher.js +267 -0
- package/lib/sbom/exporter.js +109 -0
- package/lib/sbom/generator.js +133 -0
- package/lib/sbom/inventory.js +63 -0
- package/lib/sbom/licenseClassifier.js +124 -0
- package/lib/sbom/manifestReader.js +15 -0
- package/lib/sbom/normalizer.js +509 -0
- package/lib/sbom/workspaceLock.js +41 -0
- package/lib/scanner.js +8 -0
- package/lib/tool/environment.js +21 -0
- package/lib/tool/executor.js +93 -0
- package/lib/tool/projectDiscovery.js +63 -0
- package/lib/tool/sbomDocumentReader.js +22 -0
- package/lib/tool/setupAdapter.js +8 -0
- package/lib/tool/workspaceContext.js +6 -0
- package/lib/ui/analysisCommands.js +122 -0
- package/lib/ui/chatParticipant.js +252 -0
- package/lib/ui/dashboardState.js +71 -0
- package/lib/ui/dashboardStyles.js +101 -0
- package/lib/ui/diagnostics.js +121 -0
- package/lib/ui/explorerPanel.js +18 -0
- package/lib/ui/importSbom.js +24 -0
- package/lib/ui/inventoryExport.js +17 -0
- package/lib/ui/languageModelTools.js +137 -0
- package/lib/ui/results.js +101 -0
- package/lib/ui/settingsCommands.js +32 -0
- package/lib/ui/toolSetup.js +57 -0
- package/lib/ui/workspace.js +39 -0
- package/lib/vex/vexEngine.js +314 -0
- package/lib/vex/vexLoader.js +44 -0
- package/lib/vulnerability/epss.js +225 -0
- package/lib/vulnerability/manifestDiagnostics.js +72 -0
- package/lib/vulnerability/npmAudit.js +162 -0
- package/lib/vulnerability/parser.js +280 -0
- package/lib/vulnerability/scanning.js +72 -0
- package/lib/vulnerability/suppression.js +129 -0
- package/lib/vulnerability/triageClassifier.js +154 -0
- package/media/icon.png +0 -0
- package/media/icon.svg +30 -0
- package/media/logo.svg +10 -0
- package/media/marketplace/inspection-detail.en.png +0 -0
- package/media/marketplace/inspection-detail.ja.png +0 -0
- package/media/marketplace/inspection-inventory.en.png +0 -0
- package/media/marketplace/inspection-inventory.ja.png +0 -0
- package/media/marketplace/inspection-tree.en.png +0 -0
- package/media/marketplace/inspection-tree.ja.png +0 -0
- package/media/marketplace/reports.png +0 -0
- package/media/marketplace/reports.svg +8 -0
- package/media/marketplace/workflow.png +0 -0
- package/media/marketplace/workflow.svg +9 -0
- package/media/sbom.svg +1 -0
- package/media/yuna.svg +30 -0
- package/package.json +377 -4
- package/package.nls.ja.json +38 -0
- package/package.nls.json +38 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 9.7.0
|
|
4
|
+
|
|
5
|
+
- **SPDX export**: With Syft or Trivy, `sbom-spdx-*.json` now contains the generator's SPDX JSON. Previously it contained tag-value text despite the `.json` extension. The built-in manifest generator still writes tag-value to `.spdx`.
|
|
6
|
+
|
|
7
|
+
## 9.6.0
|
|
8
|
+
|
|
9
|
+
- **npm distribution**: The `sbom-scanner` and `sbom-scanner-mcp` commands are published to npm with provenance alongside each release.
|
|
10
|
+
- **Standards validators**: `sbom-scanner scan --standard cisa,cra,bsi,fda` checks an SBOM against the CISA 2026 SBOM Minimum Elements, Regulation (EU) 2024/2847 (CRA), BSI TR-03183-2 v2.1.0 and FD&C Act section 524B. Each finding carries its clause; PURL/CPE, RFC 3339 timestamps and SPDX license expressions are validated syntactically.
|
|
11
|
+
- **`.sbom-profile.json`**: Select standards and require fields, hash algorithms, contacts and support properties (`--profile <file>`). A missing or invalid explicit profile, or an unknown standard, ends with exit code 2 rather than a pass.
|
|
12
|
+
- **SARIF and CI**: Failed checks appear as `sbom-compliance/<standard>/<check>` results. Failed error-severity checks return exit code 1.
|
|
13
|
+
|
|
14
|
+
## 9.4.0
|
|
15
|
+
|
|
16
|
+
- **SARIF 2.1.0 Export**: Each scan writes `security-scan-<timestamp>.sarif` with vulnerability findings and `.sbom-policy.json` violations as SARIF rules/results (severity levels, `security-severity`, stable `partialFingerprints`), compatible with `github/codeql-action/upload-sarif`. Failed or skipped scans are marked `executionSuccessful: false`.
|
|
17
|
+
- **Headless CLI for CI/CD**: New `sbom-scanner scan` command (`bin/sbom-scanner.js`) with `--policy`, `--format sarif|json`, `--out`, `--scanner` and `--sbom-generator`. Exit codes gate pipelines: `0` pass, `1` policy violation, `2` scan incomplete, `3` usage error. Messages are localized (English/Japanese) and cancellation (SIGINT/SIGTERM) propagates to the scanners.
|
|
18
|
+
- **Dependency security**: Resolved all `npm audit` advisories (`qs` update, `minimatch` override to 11.x).
|
|
19
|
+
|
|
20
|
+
## 9.3.0
|
|
21
|
+
|
|
22
|
+
- Security hardening: removed an untrusted command-line path sink from the package verification script.
|
|
23
|
+
|
|
24
|
+
## 9.2.0
|
|
25
|
+
|
|
26
|
+
- **VS Code Copilot Integration (`@sbom` Chat Participant & Language Model Tools)**:
|
|
27
|
+
- Added `@sbom` Chat Participant for GitHub Copilot Chat with dedicated commands:
|
|
28
|
+
- `/scan`: Generate SBOM and scan dependencies directly in the chat view.
|
|
29
|
+
- `/triage`: Prioritize vulnerabilities using FIRST.org EPSS scores and CISA KEV data.
|
|
30
|
+
- `/policy`: Evaluate compliance against `.sbom-policy.json`.
|
|
31
|
+
- `/vex`: Formulate OpenVEX / CycloneDX VEX statements for non-affecting vulnerabilities.
|
|
32
|
+
- Implemented Language Model Tools (`sbom_scan_workspace`, `sbom_evaluate_policy`, `sbom_get_vulnerabilities`) allowing Copilot and LLMs to autonomously invoke SBOM tools.
|
|
33
|
+
- **Model Context Protocol (MCP) Server Integration**:
|
|
34
|
+
- Full support for Anthropic's Model Context Protocol (MCP) over JSON-RPC stdio.
|
|
35
|
+
- Enables direct tool usage from Claude Desktop, Claude Code, Cursor, Codex, and Antigravity.
|
|
36
|
+
- Exposes `scan_workspace`, `evaluate_policy`, `query_epss`, `record_vex`, and `get_sbom`.
|
|
37
|
+
- Executable via `bin/mcp-server.js` or `npx sbom-scanner-mcp`.
|
|
38
|
+
- **Architectural Refactoring & Code Quality Hardening**:
|
|
39
|
+
- Modularized MCP server tools and Copilot chat commands using the Strategy pattern / command dispatchers, dramatically lowering cyclomatic complexity and improving maintainability.
|
|
40
|
+
- Strict compliance with ESLint rules (magic numbers ban, shell injection prohibition), architecture boundary assertions, and TypeScript typecheck clean verification.
|
|
41
|
+
|
|
42
|
+
## 9.1.0
|
|
43
|
+
|
|
44
|
+
- **Standard VEX (OpenVEX & CycloneDX VEX) Statement Engine**:
|
|
45
|
+
- Full support for Vulnerability Exploitability eXchange (VEX) input, output, and recording to formally document and communicate non-exploitable vulnerabilities.
|
|
46
|
+
- Automatically loads project VEX statements from `.sbom-vex.json`, `openvex.json`, or `.openvex.json`.
|
|
47
|
+
- Supports standard VEX statuses (`not_affected`, `affected`, `fixed`, `under_investigation`) and standard justifications (`component_not_present`, `vulnerable_code_not_present`, `vulnerable_code_not_in_execute_path`, `vulnerable_code_cannot_be_controlled_by_adversary`, `inline_mitigations_already_exist`).
|
|
48
|
+
- Automatically exports both standard OpenVEX document (`openvex.json`) and CycloneDX VEX statement artifact (`cyclonedx-vex.json`).
|
|
49
|
+
- Seamlessly filters and tags findings in scan results, HTML vulnerability reports, DOCX reports, and SBOM Explorer.
|
|
50
|
+
- **Project Security & Compliance Policy Engine (`.sbom-policy.json`)**:
|
|
51
|
+
- Implement project-level policy enforcement with configurable license denylists/allowlists (`denyLicenses`, `allowLicenses`), vulnerability severity thresholds (`maxSeverity`), CISA KEV restrictions (`failOnKev`), EPSS exploit probability limits (`maxEpss`), minimum CRA readiness scores (`minCraScore`), and mandatory metadata checks (`requireSupplier`, `requireHashes`).
|
|
52
|
+
- Integrated policy compliance evaluation into SBOM Explorer with header status badges (`PASS`/`FAIL`/`WARN`), a dedicated `🛡️ Policy Violations` filter pill, per-component violation badges, and inspector violation breakdowns.
|
|
53
|
+
- Automatically export `policy-report.json` and embed policy audit summaries into HTML and Word (DOCX) reports.
|
|
54
|
+
- **EPSS & Smart Triage Priority Integration**:
|
|
55
|
+
- Integrate FIRST.org Exploit Prediction Scoring System (EPSS) to predict 30-day real-world exploitation probabilities for identified CVEs.
|
|
56
|
+
- Implement multi-factor Smart Triage Priority combining CVSS severity, EPSS scores, and CISA Known Exploited Vulnerabilities (KEV) into `IMMEDIATE`, `HIGH`, `MEDIUM`, `LOW`, and `INFO`.
|
|
57
|
+
- Display EPSS scores and smart priority badges across SBOM Explorer, HTML vulnerability reports, and Word (DOCX) security reports.
|
|
58
|
+
- Add dedicated `⚡ High Exploit Risk` filter pill and inspector warnings in SBOM Explorer with full Japanese and English localization.
|
|
59
|
+
- Provide zero-failure offline execution with built-in seed cache for prominent vulnerabilities (Log4Shell, Spring4Shell, XZ Utils, Struts2, Ivanti, Lodash, etc.).
|
|
60
|
+
|
|
61
|
+
## 9.0.0
|
|
62
|
+
|
|
63
|
+
- Add sortable, searchable inventory, SPDX license-list status and multiple-version conflict tables with source-document provenance.
|
|
64
|
+
- Export the current filtered/sorted inventory, licenses and conflicts as CSV, JSON or Markdown through VS Code's save dialog; support browser downloads and protect CSV formula cells.
|
|
65
|
+
- Import multiple SPDX 2.x JSON and CycloneDX 1.x JSON documents with isolated IDs, checksum/namespace-based SPDX dependency references, and CycloneDX dependency BOM-Links.
|
|
66
|
+
- Show unresolved references, per-document field coverage and hash-format diagnostics; reject ambiguous identifiers, oversized files and excessive selections, and allow cancellation.
|
|
67
|
+
- Distinguish unscanned/failed vulnerability results from completed scans and adapt scanner findings for Explorer.
|
|
68
|
+
- Keep the explicitly committed version for push/manual Marketplace publication; scheduled maintenance can still increment the minor version.
|
|
69
|
+
- Document remaining format, standards-profile, VEX, AI and cryptographic-inventory limitations.
|
|
70
|
+
|
|
71
|
+
## 8.14.1
|
|
72
|
+
|
|
73
|
+
- Open SBOM Explorer in a dependency tree with expandable branches, disconnected component coverage, and cycle-safe traversal.
|
|
74
|
+
- Keep ancestor branches when filtering and show package metadata beside the tree.
|
|
75
|
+
- Add real inspection screenshots and walkthroughs in English and Japanese.
|
|
76
|
+
- Display the registered OpenSSF Best Practices passing badge.
|
|
77
|
+
|
|
78
|
+
## 8.9.0
|
|
79
|
+
|
|
80
|
+
- **Release Diff & Version Comparison (SBOM Diff機能)**:
|
|
81
|
+
- **Automated Run-to-Run Comparison**: Automatically compares the current analysis against the previous snapshot in the output directory, calculating comprehensive metrics across added, removed, updated, and unchanged components.
|
|
82
|
+
- **Rebuild & Tampering Detection (同一版再ビルド・改ざん検知)**: Compares cryptographic checksums (SHA-512) and highlights instances where packages share identical version numbers but have differing hash digests, guarding against supply-chain tampering and unexpected rebuilds.
|
|
83
|
+
- **Interactive Diff Explorer**: Integrated Diff view into the SBOM Explorer with real-time delta badges (`+ Added`, `- Removed`, `🔼 Upgrade`, `🔽 Downgrade`, `⚠️ Rebuilt`), dedicated Diff filter pills, and in-depth inspector diff panels detailing version, license, supplier, and checksum transitions.
|
|
84
|
+
- **Multi-Format Export & Release Notes (Markdown差分出力)**: Automatically writes `sbom-diff.json` and release-ready `sbom-diff.md` alongside Explorer HTML, plus an instant "📋 Copy Diff" clipboard button for fast release note generation.
|
|
85
|
+
|
|
86
|
+
## 8.8.0
|
|
87
|
+
|
|
88
|
+
- **Automated Local Metadata Enrichment (自動メタデータ補完)**:
|
|
89
|
+
- **Supplier & Author Resolution**: Automatically inspects `node_modules` and package manifests to resolve missing component suppliers and creators (from `author`, `maintainers`, `publisher`, and `repository`), eliminating "Not specified" gaps.
|
|
90
|
+
- **Cryptographic Hash Enrichment**: Automatically extracts package archive `integrity` checksums (SHA-512 / SHA-1) from lockfiles (`package-lock.json`), populating cryptographic hashes for components as required/recommended by EU CRA & German BSI TR-03183.
|
|
91
|
+
- **Comprehensive Standards Compliance**: Boosts multi-standard readiness audits (EU CRA, US NTIA Minimum Elements, Japan METI, Germany BSI) to 100% compliance with Grade A ratings.
|
|
92
|
+
- **Complete Export Persistence**: Enriched supplier and hash metadata is fully serialized into exported CycloneDX JSON, SPDX documents, HTML, and Word (DOCX) reports.
|
|
93
|
+
- **Brand & Visual Identity**:
|
|
94
|
+
- Maintained approved brand icon asset to satisfy VS Code Marketplace 3-change rolling limit policies.
|
|
95
|
+
|
|
96
|
+
## 8.7.0
|
|
97
|
+
|
|
98
|
+
- **Repository Cleanup & Author Alignment**:
|
|
99
|
+
- Published verified update with internal deployment notes and citation metadata moved to private local configuration.
|
|
100
|
+
- Formally aligned extension authorship with official GitHub profile (`masahiroid`).
|
|
101
|
+
|
|
102
|
+
## 8.6.0
|
|
103
|
+
|
|
104
|
+
- **Interactive SBOM Explorer & UX Modernization**:
|
|
105
|
+
- **Script Execution Support**: Enabled webview script execution (`enableScripts: true`) for interactive SBOM Explorer panels, restoring instant component search, category filter pills, tree view expansion, and detail inspection.
|
|
106
|
+
- **Real-Time Bilingual Toggle (日英切り替え)**: Added instant English / Japanese language switcher (`🌐 日本語 / English`) in both the extension Dashboard and the interactive SBOM Explorer, allowing live translation of all cards, pills, metadata, and regulatory checks without reloading.
|
|
107
|
+
- **Tool Detection Performance**: Optimized Syft / Trivy CLI detection with extended environment PATH support (`/opt/homebrew/bin`, `/usr/local/bin`) and filesystem executable fallback, eliminating launch delays and ensuring immediate detection upon installation.
|
|
108
|
+
- **Component List Layout Optimization**: Redesigned SBOM HTML report table with fixed column widths, automatic text truncation with tooltips for long component names, and vertical height constraints with scrolling for multi-line PURL identifiers.
|
|
109
|
+
- **Dashboard Simplification**: Streamlined dashboard layout with a single prominent "Generate Report" hero action, organized result links, and clean status indicators.
|
|
110
|
+
|
|
111
|
+
## 8.5.0
|
|
112
|
+
|
|
113
|
+
- **Verified Marketplace Package Update**:
|
|
114
|
+
- Validated automated end-to-end publishing pipeline with clean security audit and zero vulnerabilities.
|
|
115
|
+
|
|
116
|
+
## 8.4.0
|
|
117
|
+
|
|
118
|
+
- **Marketplace Compliance & Icon Stability**:
|
|
119
|
+
- Maintained approved brand icon asset to satisfy VS Code Marketplace 3-change rolling limit policies.
|
|
120
|
+
|
|
121
|
+
## 8.3.0
|
|
122
|
+
|
|
123
|
+
- **Visual Brand Refinement**:
|
|
124
|
+
- Updated visual identity assets to align with official isometric cube branding.
|
|
125
|
+
|
|
126
|
+
## 8.2.0
|
|
127
|
+
|
|
128
|
+
- **Brand Re-alignment & Interactive SBOM Explorer**:
|
|
129
|
+
- Rebranded interactive viewer to **SBOM Explorer** (`sbom-explorer-*.html`) to ensure independent, original brand identity.
|
|
130
|
+
- Added primary command `sbomScanner.openLatestSbomExplorer` with automatic backward compatibility aliases for `sbomScanner.openLatestSbomLens` and legacy artifacts.
|
|
131
|
+
- Full TypeScript type-checking (`checkJs: true`) with 0 errors across entire production codebase.
|
|
132
|
+
|
|
133
|
+
## 8.0.0
|
|
134
|
+
|
|
135
|
+
- **Global SBOM Regulations & Standards Compliance**:
|
|
136
|
+
- Expanded compliance auditing beyond EU CRA to include:
|
|
137
|
+
- 🇺🇸 **US Executive Order 14028 / NTIA Minimum Elements** & **US FDA Medical Device Cybersecurity Guidance**.
|
|
138
|
+
- 🇯🇵 **Japan METI Guidelines (経済産業省 ソフトウェア製品に向けた脆弱性管理手法等に関する手引き)**.
|
|
139
|
+
- 🇩🇪 **Germany BSI TR-03183 Technical Guideline**.
|
|
140
|
+
- Detailed international regulatory standards breakdown table in HTML and Word (DOCX) reports.
|
|
141
|
+
- Multi-standard readiness scores, compliance status (Pass/Gaps), and regional authority tracking.
|
|
142
|
+
- **Enhanced Interactive SBOM Explorer**:
|
|
143
|
+
- Global Compliance stat card and filter pill (`🌐 Compliance Gaps`).
|
|
144
|
+
- Component inspector displays multi-jurisdiction requirement statuses (CRA, NTIA, METI, BSI).
|
|
145
|
+
- **Architecture Optimization & TypeScript Foundation**:
|
|
146
|
+
- Modularized report builders conforming strictly to Single Responsibility Principle (SRP).
|
|
147
|
+
- Centralized constants and layout definitions in `lib/config/constants.js`.
|
|
148
|
+
- Added TypeScript declarations (`types/index.d.ts`) and integrated strict typecheck (`tsc --noEmit`) into automated test verification.
|
|
149
|
+
- **GitHub Actions Runner Upgrade**:
|
|
150
|
+
- Updated all CI and deployment workflows to force execution under Node.js 24 runner.
|
|
151
|
+
|
|
152
|
+
## 7.0.0
|
|
153
|
+
|
|
154
|
+
- Add interactive, graphical **SBOM Explorer** viewer (`sbom-explorer-*.html`).
|
|
155
|
+
- Fast incremental search across component names, versions, licenses, PURLs, and CVEs.
|
|
156
|
+
- Interactive multi-level dependency tree and flat tabular list views with direct/transitive badges.
|
|
157
|
+
- 1-click filter pills: All, Direct Only, Transitive Only, Copyleft (GPL), Vulnerable, and CRA Gaps.
|
|
158
|
+
- Comprehensive component inspector with metadata, CRA readiness checklist, license category, associated CVEs, and upstream/downstream dependency relations.
|
|
159
|
+
- Add command `sbomScanner.openLatestSbomExplorer` and quick-access dashboard button.
|
|
160
|
+
- 100% locally rendered with zero external CDN dependencies.
|
|
161
|
+
|
|
162
|
+
## 6.2.1
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
- Correct extension brand icon to align with official isometric cube design.
|
|
166
|
+
|
|
167
|
+
## 6.1.0
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
- Add companion extension guidance for [Codes Doctor](https://marketplace.visualstudio.com/items?itemName=masahirocom.codes-doctor) to README documentation.
|
|
171
|
+
- Highlight dual-approach security and source code quality optimization.
|
|
172
|
+
|
|
173
|
+
## 6.0.0
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
- Add EU Cyber Resilience Act (CRA 2024/2026-2027) & US NTIA Minimum Elements compliance audit.
|
|
177
|
+
- Automatically lint and verify critical SBOM fields (Supplier, Component, Version, PURL/CPE, License, Scope, Metadata).
|
|
178
|
+
- Calculate standardized CRA readiness scores (0–100%) and compliance grades (A through D).
|
|
179
|
+
- Add regulatory compliance audit checklist and remediation guidance to HTML and Word (DOCX) reports.
|
|
180
|
+
|
|
181
|
+
## 5.0.0
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
- Add CISA KEV (Known Exploited Vulnerabilities) prioritization and triage classification.
|
|
185
|
+
- Flag weaponized and actively exploited CVEs directly in editor diagnostics with `[🚨 Actively Exploited (CISA KEV)]`.
|
|
186
|
+
- Add urgent security alert banners and KEV badges to HTML and Word (DOCX) reports.
|
|
187
|
+
- Support custom KEV vulnerability definitions via `.sbom-ignore.json`.
|
|
188
|
+
- Add Open VSX Registry badges and documentation.
|
|
189
|
+
- Update user guide and documentation across all new features.
|
|
190
|
+
|
|
191
|
+
## 4.0.0
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
- Add inline editor diagnostics and Quick Fixes for `package.json`.
|
|
195
|
+
- Display wavy error/warning lines directly on vulnerable dependency declarations.
|
|
196
|
+
- Provide one-click Code Action Quick Fixes to automatically upgrade dependencies to secure fixed versions.
|
|
197
|
+
|
|
198
|
+
## 3.0.0
|
|
199
|
+
|
|
200
|
+
- Add license compliance audit and legal risk classification for dependencies.
|
|
201
|
+
- Classify open-source licenses into Permissive, Weak Copyleft, Strong Copyleft, and Unknown.
|
|
202
|
+
- Highlight strong copyleft risks (GPL/AGPL) in Word (DOCX) and HTML reports.
|
|
203
|
+
- Add license and legal risk columns to dependency inventory tables in reports.
|
|
204
|
+
|
|
205
|
+
## 2.0.0
|
|
206
|
+
|
|
207
|
+
- Add vulnerability suppression and VEX rule support with `.sbom-ignore.json`.
|
|
208
|
+
- Support CVE ID, GHSA ID, package name matching and expiration dates for suppressed findings.
|
|
209
|
+
- Include suppression reasons and counts in HTML and Word (DOCX) reports.
|
|
210
|
+
- Optimize icon SVG viewBox to remove excessive whitespace and scale up extension icon.
|
|
211
|
+
|
|
212
|
+
## 1.2.0
|
|
213
|
+
|
|
214
|
+
- Monorepo overall summary and per-project security report enhancements.
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
- Analyze all detected npm monorepo projects with an overall HTML/JSON/Word summary and separate project reports.
|
|
218
|
+
- Align SBOM and vulnerability scope for individual project selection; discover conventional folders and declared npm workspace paths.
|
|
219
|
+
- Support shared npm workspace lockfiles with reachable dependency inventories and workspace-filtered npm audits.
|
|
220
|
+
- Preserve failed, skipped and limited-coverage project status, continue independent projects after failures, and propagate batch cancellation.
|
|
221
|
+
- Keep latest-report opening, Word export and cleanup aware of batch summaries and project report directories.
|
|
222
|
+
|
|
223
|
+
## 1.0.0
|
|
224
|
+
|
|
225
|
+
- Finish report progress and release the workspace operation before waiting for a completion notification response.
|
|
226
|
+
- Preserve the output-folder action after HTML, JSON and Word report generation completes.
|
|
227
|
+
|
|
228
|
+
## 0.1.14
|
|
229
|
+
|
|
230
|
+
- Keep only the cover-to-body forced page break; flow contents and report sections naturally.
|
|
231
|
+
- Verify English report output uses the selected UI language while retaining source data verbatim.
|
|
232
|
+
|
|
233
|
+
## 0.1.13
|
|
234
|
+
|
|
235
|
+
- Use a centered formal cover with a project/version/date/recipient table and author name.
|
|
236
|
+
- Add an executive summary, linked contents and numbered report sections while preserving severity colors.
|
|
237
|
+
- Display project version separately from the extension version; retain explicit incomplete-scan status.
|
|
238
|
+
|
|
239
|
+
## 0.1.12
|
|
240
|
+
|
|
241
|
+
- Display the active extension version and report output folder in the dashboard.
|
|
242
|
+
- Show tool preparation only while tools are missing; add a recovery action for reinstallation.
|
|
243
|
+
- Default reports to the visible SBOM-Reports folder; retain explicit output settings and previous files.
|
|
244
|
+
- Add a Word cover with optional recipient/author, severity-sorted tables, red critical/high cells, repeating headers and page numbers.
|
|
245
|
+
- Separate document content from layout helpers and visually check Japanese sample pages.
|
|
246
|
+
|
|
247
|
+
## 0.1.11
|
|
248
|
+
|
|
249
|
+
- Install missing Syft/Trivy through an available Homebrew or WinGet with progress, cancellation and post-install checks.
|
|
250
|
+
- Add a primary action to generate matching HTML, JSON and Word reports in one analysis.
|
|
251
|
+
- Separate dashboard and command identifiers from the legacy SBOM Tool extension to avoid collisions; retain settings compatibility.
|
|
252
|
+
- Expand English/Japanese documentation with workflow and report illustrations.
|
|
253
|
+
- Separate UI, application workflows, tool adapters, report builders and storage; validate saved analysis before export.
|
|
254
|
+
- Exclude local internal documents from distribution and verify packaged documentation against an explicit allowlist.
|
|
255
|
+
|
|
256
|
+
## 0.1.10
|
|
257
|
+
|
|
258
|
+
- Execute scanners without passing workspace paths to a shell; bound tool execution time.
|
|
259
|
+
- Require trusted, local workspaces and restrict dashboard commands and report scripts.
|
|
260
|
+
- Distinguish failed and skipped npm audits from completed scans; preserve dependency-only findings and advisory severity.
|
|
261
|
+
- Read resolved versions, scoped names, nested dependencies, and development flags from npm lockfiles v1–v3.
|
|
262
|
+
- Stop silently creating package-lock.json during scans.
|
|
263
|
+
- Update packaging tools, repository links, tests, and publishing documentation.
|
|
264
|
+
|
|
265
|
+
- Allow built-in manifest generation from the UI without Syft/Trivy.
|
|
266
|
+
- Add user and troubleshooting guides and development instructions.
|
|
267
|
+
|
|
268
|
+
- Add execution logs, cancellation, duplicate-run protection and explicit fallback coverage.
|
|
269
|
+
- Select npm targets in monorepos and read folder-specific analysis settings.
|
|
270
|
+
- Export matching run results as Japanese/English DOCX via dashboard or command palette.
|
|
271
|
+
- Split UI adapters, application services, scanner strategies, renderers and persistence; add lint gates and engineering rules.
|
|
272
|
+
- Replace the brand mark and theme-aware Activity Bar icon with editable SVG assets.
|
|
273
|
+
|
|
274
|
+
- Bundle runtime dependencies and include in-extension user documentation.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thank you for helping improve SBOM Vulnerability Scanner.
|
|
4
|
+
|
|
5
|
+
## How to contribute
|
|
6
|
+
|
|
7
|
+
- **Bugs and feature requests**: open an issue at https://github.com/masahiroid/sbom-vulnerability-scanner/issues with your OS, VS Code version, extension version and reproduction steps.
|
|
8
|
+
- **Security vulnerabilities**: do not open a public issue; report privately via GitHub's "Report a vulnerability" on the Security tab.
|
|
9
|
+
- **Code changes**: fork the repository, create a branch from `develop`, and open a pull request against `develop`.
|
|
10
|
+
|
|
11
|
+
## Requirements for acceptable contributions
|
|
12
|
+
|
|
13
|
+
A pull request is accepted when it:
|
|
14
|
+
|
|
15
|
+
1. Passes `npm run lint` (ESLint config in `eslint.config.js`, including `no-magic-numbers` and complexity limits), `npm test` and `npm audit`.
|
|
16
|
+
2. Adds or updates tests that cover the changed behavior and its failure cases.
|
|
17
|
+
3. Follows the architecture rules in the Code map below (UI, application services, tool adapters, parsers, report builders and stores stay separate; parsing modules do not import VS Code).
|
|
18
|
+
4. Keeps numeric constants in `lib/config/constants.js` and user-facing strings in localization resources (`package.nls*.json`, `l10n/`).
|
|
19
|
+
5. Never interpolates user or workspace input into shell commands, and never logs credentials or absolute scan paths.
|
|
20
|
+
6. Is licensed under Apache-2.0, the project license.
|
|
21
|
+
|
|
22
|
+
When you add a new feature, add the corresponding tests under `test/` (they run with `npm test`).
|
|
23
|
+
|
|
24
|
+
# Development
|
|
25
|
+
|
|
26
|
+
Use Node.js 22 or later and npm. The extension runs in the VS Code desktop extension host.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm ci
|
|
30
|
+
npm run lint
|
|
31
|
+
npm test
|
|
32
|
+
npm audit
|
|
33
|
+
npm run package:release
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
npm test builds the standalone extension first. The runtime entry is dist/extension.js.
|
|
37
|
+
Tests use Node's built-in runner and temporary fixtures. Packaging runs the tests before creating a VSIX.
|
|
38
|
+
For manual validation use VS Code's “Extensions: Install from VSIX”, reload the window, and follow
|
|
39
|
+
the release checks (lint, tests, audit, packaging and supported-platform smoke tests). Tests do not replace extension-host or real Syft/Trivy checks.
|
|
40
|
+
The CI matrix covers Windows, macOS and Linux but must actually run before its results are claimed.
|
|
41
|
+
|
|
42
|
+
## Code map
|
|
43
|
+
|
|
44
|
+
- extension.js: command registration and UI orchestration; lib/ui holds workspace, setup and settings adapters.
|
|
45
|
+
- lib/scanner.js: stable facade; application services and generator/scanner adapters hold use cases.
|
|
46
|
+
- lib/tool/executor.js: external CLI execution. Pass arguments separately; never interpolate workspace input into a shell.
|
|
47
|
+
- lib/sbom/normalizer.js: manifest, CycloneDX and SPDX normalization.
|
|
48
|
+
- lib/vulnerability/parser.js: scan result normalization.
|
|
49
|
+
- lib/report/: HTML output; keep values escaped and links restricted to HTTP(S).
|
|
50
|
+
- lib/dashboardView.js and lib/reportViewer.js: dashboard and result UI.
|
|
51
|
+
- lib/i18n.js, package.nls*.json and l10n/: translations.
|
|
52
|
+
|
|
53
|
+
Keep failed/skipped/completed distinct. A tool error must never produce a successful zero-finding result.
|
|
54
|
+
Add regression fixtures for different lockfile versions and CLI error responses when changing parsers.
|
|
55
|
+
Publish and push only when explicitly authorized; packaging is a local operation.
|
|
56
|
+
|
|
57
|
+
Keep UI, application orchestration, tool execution, normalization, rendering and persistence responsibilities separate. npm run build:brand regenerates the PNG from SVG.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|