@cyclonedx/cdxgen 12.3.3 → 12.4.1
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/README.md +69 -25
- package/bin/audit.js +21 -7
- package/bin/cdxgen.js +270 -127
- package/bin/convert.js +34 -15
- package/bin/hbom.js +495 -0
- package/bin/repl.js +592 -37
- package/bin/validate.js +31 -4
- package/bin/verify.js +18 -5
- package/data/README.md +298 -25
- package/data/component-tags.json +6 -0
- package/data/crypto-oid.json +16 -0
- package/data/cyclonedx-2.0-bundled.schema.json +7182 -0
- package/data/predictive-audit-allowlist.json +11 -0
- package/data/queries-darwin.json +12 -1
- package/data/queries-win.json +7 -1
- package/data/queries.json +39 -2
- package/data/rules/ai-agent-governance.yaml +16 -0
- package/data/rules/asar-archives.yaml +150 -0
- package/data/rules/chrome-extensions.yaml +8 -0
- package/data/rules/ci-permissions.yaml +42 -18
- package/data/rules/container-risk.yaml +14 -7
- package/data/rules/dependency-sources.yaml +11 -0
- package/data/rules/hbom-compliance.yaml +325 -0
- package/data/rules/hbom-performance.yaml +307 -0
- package/data/rules/hbom-security.yaml +248 -0
- package/data/rules/host-topology.yaml +165 -0
- package/data/rules/mcp-servers.yaml +18 -3
- package/data/rules/obom-runtime.yaml +907 -22
- package/data/rules/package-integrity.yaml +14 -0
- package/data/rules/rootfs-hardening.yaml +179 -0
- package/data/rules/vscode-extensions.yaml +9 -0
- package/lib/audit/index.js +210 -8
- package/lib/audit/index.poku.js +332 -0
- package/lib/audit/reporters.js +222 -0
- package/lib/audit/targets.js +146 -1
- package/lib/audit/targets.poku.js +186 -0
- package/lib/cli/asar.poku.js +328 -0
- package/lib/cli/index.js +527 -99
- package/lib/cli/index.poku.js +1469 -212
- package/lib/evinser/evinser.js +14 -9
- package/lib/helpers/analyzer.js +1406 -29
- package/lib/helpers/analyzer.poku.js +342 -0
- package/lib/helpers/analyzerScope.js +712 -0
- package/lib/helpers/asarutils.js +1556 -0
- package/lib/helpers/asarutils.poku.js +443 -0
- package/lib/helpers/auditCategories.js +12 -0
- package/lib/helpers/auditCategories.poku.js +32 -0
- package/lib/helpers/bomUtils.js +155 -1
- package/lib/helpers/bomUtils.poku.js +79 -1
- package/lib/helpers/cbomutils.js +271 -1
- package/lib/helpers/cbomutils.poku.js +248 -5
- package/lib/helpers/display.js +291 -1
- package/lib/helpers/display.poku.js +149 -0
- package/lib/helpers/evidenceUtils.js +58 -0
- package/lib/helpers/evidenceUtils.poku.js +54 -0
- package/lib/helpers/exportUtils.js +9 -0
- package/lib/helpers/gtfobins.js +142 -8
- package/lib/helpers/gtfobins.poku.js +24 -1
- package/lib/helpers/hbom.js +710 -0
- package/lib/helpers/hbom.poku.js +496 -0
- package/lib/helpers/hbomAnalysis.js +268 -0
- package/lib/helpers/hbomAnalysis.poku.js +249 -0
- package/lib/helpers/hbomLoader.js +35 -0
- package/lib/helpers/hostTopology.js +803 -0
- package/lib/helpers/hostTopology.poku.js +363 -0
- package/lib/helpers/inventoryStats.js +69 -0
- package/lib/helpers/inventoryStats.poku.js +86 -0
- package/lib/helpers/lolbas.js +19 -1
- package/lib/helpers/lolbas.poku.js +23 -0
- package/lib/helpers/osqueryTransform.js +47 -0
- package/lib/helpers/osqueryTransform.poku.js +47 -0
- package/lib/helpers/plugins.js +350 -0
- package/lib/helpers/plugins.poku.js +57 -0
- package/lib/helpers/protobom.js +209 -45
- package/lib/helpers/protobom.poku.js +183 -5
- package/lib/helpers/protobomLoader.js +43 -0
- package/lib/helpers/protobomLoader.poku.js +31 -0
- package/lib/helpers/remote/dependency-track.js +36 -3
- package/lib/helpers/remote/dependency-track.poku.js +44 -0
- package/lib/helpers/source.js +24 -0
- package/lib/helpers/source.poku.js +32 -0
- package/lib/helpers/utils.js +1438 -93
- package/lib/helpers/utils.poku.js +846 -4
- package/lib/managers/binary.e2e.poku.js +367 -0
- package/lib/managers/binary.js +2293 -353
- package/lib/managers/binary.poku.js +1699 -1
- package/lib/managers/docker.js +201 -79
- package/lib/managers/docker.poku.js +337 -12
- package/lib/server/server.js +4 -28
- package/lib/stages/postgen/annotator.js +38 -0
- package/lib/stages/postgen/annotator.poku.js +107 -1
- package/lib/stages/postgen/auditBom.js +121 -18
- package/lib/stages/postgen/auditBom.poku.js +1366 -31
- package/lib/stages/postgen/hostTopologyAudit.poku.js +186 -0
- package/lib/stages/postgen/postgen.js +406 -8
- package/lib/stages/postgen/postgen.poku.js +484 -0
- package/lib/stages/postgen/ruleEngine.js +116 -0
- package/lib/stages/pregen/envAudit.js +14 -3
- package/lib/validator/bomValidator.js +90 -38
- package/lib/validator/bomValidator.poku.js +90 -0
- package/lib/validator/complianceRules.js +4 -2
- package/lib/validator/index.poku.js +14 -0
- package/package.json +23 -21
- package/types/bin/hbom.d.ts +3 -0
- package/types/bin/hbom.d.ts.map +1 -0
- package/types/bin/repl.d.ts +1 -1
- package/types/bin/repl.d.ts.map +1 -1
- package/types/lib/audit/index.d.ts +44 -0
- package/types/lib/audit/index.d.ts.map +1 -1
- package/types/lib/audit/reporters.d.ts +16 -0
- package/types/lib/audit/reporters.d.ts.map +1 -1
- package/types/lib/audit/targets.d.ts.map +1 -1
- package/types/lib/cli/index.d.ts +16 -0
- package/types/lib/cli/index.d.ts.map +1 -1
- package/types/lib/evinser/evinser.d.ts +4 -0
- package/types/lib/evinser/evinser.d.ts.map +1 -1
- package/types/lib/helpers/analyzer.d.ts +33 -0
- package/types/lib/helpers/analyzer.d.ts.map +1 -1
- package/types/lib/helpers/analyzerScope.d.ts +11 -0
- package/types/lib/helpers/analyzerScope.d.ts.map +1 -0
- package/types/lib/helpers/asarutils.d.ts +34 -0
- package/types/lib/helpers/asarutils.d.ts.map +1 -0
- package/types/lib/helpers/auditCategories.d.ts +5 -0
- package/types/lib/helpers/auditCategories.d.ts.map +1 -1
- package/types/lib/helpers/bomUtils.d.ts +10 -0
- package/types/lib/helpers/bomUtils.d.ts.map +1 -1
- package/types/lib/helpers/cbomutils.d.ts +3 -2
- package/types/lib/helpers/cbomutils.d.ts.map +1 -1
- package/types/lib/helpers/display.d.ts.map +1 -1
- package/types/lib/helpers/evidenceUtils.d.ts +8 -0
- package/types/lib/helpers/evidenceUtils.d.ts.map +1 -0
- package/types/lib/helpers/exportUtils.d.ts.map +1 -1
- package/types/lib/helpers/gtfobins.d.ts +8 -0
- package/types/lib/helpers/gtfobins.d.ts.map +1 -1
- package/types/lib/helpers/hbom.d.ts +49 -0
- package/types/lib/helpers/hbom.d.ts.map +1 -0
- package/types/lib/helpers/hbomAnalysis.d.ts +76 -0
- package/types/lib/helpers/hbomAnalysis.d.ts.map +1 -0
- package/types/lib/helpers/hbomLoader.d.ts +7 -0
- package/types/lib/helpers/hbomLoader.d.ts.map +1 -0
- package/types/lib/helpers/hostTopology.d.ts +12 -0
- package/types/lib/helpers/hostTopology.d.ts.map +1 -0
- package/types/lib/helpers/inventoryStats.d.ts +11 -0
- package/types/lib/helpers/inventoryStats.d.ts.map +1 -0
- package/types/lib/helpers/lolbas.d.ts.map +1 -1
- package/types/lib/helpers/osqueryTransform.d.ts +3 -0
- package/types/lib/helpers/osqueryTransform.d.ts.map +1 -1
- package/types/lib/helpers/plugins.d.ts +58 -0
- package/types/lib/helpers/plugins.d.ts.map +1 -0
- package/types/lib/helpers/protobom.d.ts +5 -4
- package/types/lib/helpers/protobom.d.ts.map +1 -1
- package/types/lib/helpers/protobomLoader.d.ts +17 -0
- package/types/lib/helpers/protobomLoader.d.ts.map +1 -0
- package/types/lib/helpers/remote/dependency-track.d.ts +10 -3
- package/types/lib/helpers/remote/dependency-track.d.ts.map +1 -1
- package/types/lib/helpers/source.d.ts.map +1 -1
- package/types/lib/helpers/utils.d.ts +45 -8
- package/types/lib/helpers/utils.d.ts.map +1 -1
- package/types/lib/managers/binary.d.ts +5 -0
- package/types/lib/managers/binary.d.ts.map +1 -1
- package/types/lib/managers/docker.d.ts.map +1 -1
- package/types/lib/server/server.d.ts +2 -1
- package/types/lib/server/server.d.ts.map +1 -1
- package/types/lib/stages/postgen/annotator.d.ts.map +1 -1
- package/types/lib/stages/postgen/auditBom.d.ts +26 -1
- package/types/lib/stages/postgen/auditBom.d.ts.map +1 -1
- package/types/lib/stages/postgen/postgen.d.ts +2 -1
- package/types/lib/stages/postgen/postgen.d.ts.map +1 -1
- package/types/lib/stages/postgen/ruleEngine.d.ts.map +1 -1
- package/types/lib/stages/pregen/envAudit.d.ts.map +1 -1
- package/types/lib/third-party/arborist/lib/node.d.ts +23 -0
- package/types/lib/third-party/arborist/lib/node.d.ts.map +1 -1
- package/types/lib/validator/bomValidator.d.ts.map +1 -1
- package/types/lib/validator/complianceRules.d.ts.map +1 -1
- package/data/spdx-model-v3.0.1.jsonld +0 -15999
package/data/queries-darwin.json
CHANGED
|
@@ -35,6 +35,12 @@
|
|
|
35
35
|
"purlType": "swid",
|
|
36
36
|
"componentType": "application"
|
|
37
37
|
},
|
|
38
|
+
"gatekeeper": {
|
|
39
|
+
"query": "SELECT 'gatekeeper' as name, COALESCE(NULLIF(version, ''), opaque_version) as version, opaque_version as description, assessments_enabled, dev_id_enabled FROM gatekeeper;",
|
|
40
|
+
"description": "macOS Gatekeeper policy status, including assessment enforcement and identified-developer allowance.",
|
|
41
|
+
"purlType": "swid",
|
|
42
|
+
"componentType": "data"
|
|
43
|
+
},
|
|
38
44
|
"system_extensions": {
|
|
39
45
|
"query": "select * from system_extensions;",
|
|
40
46
|
"description": "macOS (>= 10.15) system extension table.",
|
|
@@ -71,6 +77,11 @@
|
|
|
71
77
|
"purlType": "swid",
|
|
72
78
|
"componentType": "application"
|
|
73
79
|
},
|
|
80
|
+
"npm_packages": {
|
|
81
|
+
"query": "SELECT * FROM npm_packages;",
|
|
82
|
+
"description": "Node packages installed on the system, including recursively discovered modern package manager layouts.",
|
|
83
|
+
"purlType": "npm"
|
|
84
|
+
},
|
|
74
85
|
"launchd_services": {
|
|
75
86
|
"query": "SELECT name, label, path, program, run_at_load, keep_alive, disabled, username, groupname, stdout_path, stderr_path, start_interval, program_arguments, watch_paths, queue_directories, start_on_mount, working_directory, process_type FROM launchd;",
|
|
76
87
|
"description": "LaunchAgents and LaunchDaemons configuration used for macOS persistence.",
|
|
@@ -108,7 +119,7 @@
|
|
|
108
119
|
"componentType": "data"
|
|
109
120
|
},
|
|
110
121
|
"package_bom": {
|
|
111
|
-
"query": "SELECT * FROM package_bom;",
|
|
122
|
+
"query": "SELECT * FROM package_bom WHERE path IN (SELECT REPLACE(package_receipts.path, '.plist', '.bom') FROM package_receipts JOIN file ON file.path = REPLACE(package_receipts.path, '.plist', '.bom') WHERE package_receipts.path LIKE '%.plist' AND file.size <= 52428800);",
|
|
112
123
|
"description": "macOS package bill of materials (BOM) file list.",
|
|
113
124
|
"purlType": "swid",
|
|
114
125
|
"componentType": "application"
|
package/data/queries-win.json
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"purlType": "swid"
|
|
37
37
|
},
|
|
38
38
|
"ie_extensions": {
|
|
39
|
-
"query": "select
|
|
39
|
+
"query": "select * from ie_extensions;",
|
|
40
40
|
"description": "Retrieves the list of extensions for IE in the target system.",
|
|
41
41
|
"purlType": "swid"
|
|
42
42
|
},
|
|
@@ -112,6 +112,12 @@
|
|
|
112
112
|
"purlType": "swid",
|
|
113
113
|
"componentType": "data"
|
|
114
114
|
},
|
|
115
|
+
"process_open_handles_snapshot": {
|
|
116
|
+
"query": "SELECT processes.name, process_open_handles.type as version, process_open_handles.name as description, processes.path, processes.cmdline, processes.pid, process_open_handles.value, process_open_handles.type, process_open_handles.name as handle_name, process_open_handles.access, process_open_handles.attributes, process_open_handles.count, process_open_handles.raw_pointer_count, process_open_handles.error_stage, process_open_handles.error_code FROM processes JOIN process_open_handles USING (pid) WHERE process_open_handles.name != '' AND processes.name IN ('powershell.exe', 'pwsh.exe', 'cmd.exe', 'wscript.exe', 'cscript.exe', 'mshta.exe', 'rundll32.exe', 'regsvr32.exe', 'wmic.exe', 'certutil.exe', 'bitsadmin.exe') AND ((process_open_handles.type = 'File' AND (lower(process_open_handles.name) LIKE '%\\appdata\\local\\temp\\%' OR lower(process_open_handles.name) LIKE '%\\appdata\\roaming\\microsoft\\windows\\start menu\\programs\\startup\\%' OR lower(process_open_handles.name) LIKE '%\\programdata\\microsoft\\windows\\start menu\\programs\\startup\\%' OR lower(process_open_handles.name) LIKE '%\\windows\\tasks\\%' OR lower(process_open_handles.name) LIKE '%\\system32\\tasks\\%' OR lower(process_open_handles.name) LIKE '%\\wbem\\repository\\%')) OR (process_open_handles.type = 'Key' AND (lower(process_open_handles.name) LIKE '%\\software\\microsoft\\windows\\currentversion\\run%' OR lower(process_open_handles.name) LIKE '%\\software\\microsoft\\windows\\currentversion\\runonce%' OR lower(process_open_handles.name) LIKE '%\\software\\microsoft\\windows nt\\currentversion\\winlogon%' OR lower(process_open_handles.name) LIKE '%\\system\\currentcontrolset\\services\\%' OR lower(process_open_handles.name) LIKE '%\\software\\microsoft\\windows nt\\currentversion\\schedule\\taskcache\\%' OR lower(process_open_handles.name) LIKE '%\\software\\microsoft\\wbem\\cimom%')));",
|
|
117
|
+
"description": "Open handles owned by high-signal scripting and proxy-execution processes, filtered to persistence-oriented file and registry locations on Windows endpoints.",
|
|
118
|
+
"purlType": "swid",
|
|
119
|
+
"componentType": "data"
|
|
120
|
+
},
|
|
115
121
|
"services_snapshot": {
|
|
116
122
|
"query": "SELECT * FROM services;",
|
|
117
123
|
"description": "Services snapshot query.",
|
package/data/queries.json
CHANGED
|
@@ -38,12 +38,26 @@
|
|
|
38
38
|
"apt_sources": {
|
|
39
39
|
"query": "select * from apt_sources;",
|
|
40
40
|
"description": "Retrieves all the APT sources to install packages from in the target Linux system.",
|
|
41
|
-
"purlType": "
|
|
41
|
+
"purlType": "generic",
|
|
42
|
+
"componentType": "data"
|
|
43
|
+
},
|
|
44
|
+
"apt_ppa_sources": {
|
|
45
|
+
"query": "SELECT COALESCE(name, base_uri, source) as name, release as version, maintainer as publisher, source as description, source, base_uri, release, components, architectures FROM apt_sources WHERE base_uri LIKE '%ppa.launchpadcontent.net%' OR base_uri LIKE '%ppa.launchpad.net%';",
|
|
46
|
+
"description": "APT Personal Package Archive (PPA) sources configured on the target Linux system.",
|
|
47
|
+
"purlType": "generic",
|
|
48
|
+
"componentType": "data"
|
|
42
49
|
},
|
|
43
50
|
"yum_sources": {
|
|
44
51
|
"query": "select * from yum_sources;",
|
|
45
52
|
"description": "Display yum package manager sources.",
|
|
46
|
-
"purlType": "
|
|
53
|
+
"purlType": "generic",
|
|
54
|
+
"componentType": "data"
|
|
55
|
+
},
|
|
56
|
+
"trusted_gpg_keys": {
|
|
57
|
+
"query": "SELECT COALESCE(file.filename, file.path) as name, hash.sha256 as version, file.path as description, file.path, file.directory, file.filename, file.uid, file.gid, file.mode, file.size, file.mtime, hash.sha1, hash.sha256, CASE WHEN file.path LIKE '/etc/apt/%' OR file.path LIKE '/usr/share/keyrings/%' THEN 'apt' WHEN file.path LIKE '/etc/pki/rpm-gpg/%' OR file.path LIKE '/usr/share/distribution-gpg-keys/%' THEN 'rpm' WHEN file.path LIKE '/etc/apk/keys/%' THEN 'apk' ELSE 'generic' END AS trust_domain FROM file JOIN hash USING (path) WHERE (file.path = '/etc/apt/trusted.gpg' OR file.path LIKE '/etc/apt/trusted.gpg.d/%' OR file.path LIKE '/usr/share/keyrings/%' OR file.path LIKE '/etc/pki/rpm-gpg/%' OR file.path LIKE '/usr/share/distribution-gpg-keys/%' OR file.path LIKE '/etc/apk/keys/%') AND file.type = 'regular';",
|
|
58
|
+
"description": "Trusted repository keyring material for APT, RPM/DNF, and APK package trust validation.",
|
|
59
|
+
"purlType": "generic",
|
|
60
|
+
"componentType": "cryptographic-asset"
|
|
47
61
|
},
|
|
48
62
|
"portage_packages": {
|
|
49
63
|
"query": "select * from portage_packages;",
|
|
@@ -60,6 +74,11 @@
|
|
|
60
74
|
"description": "Python packages installed on system.",
|
|
61
75
|
"purlType": "pypi"
|
|
62
76
|
},
|
|
77
|
+
"npm_packages": {
|
|
78
|
+
"query": "SELECT * FROM npm_packages;",
|
|
79
|
+
"description": "Node packages installed on the system, including recursively discovered modern package manager layouts.",
|
|
80
|
+
"purlType": "npm"
|
|
81
|
+
},
|
|
63
82
|
"system_info_snapshot": {
|
|
64
83
|
"query": "SELECT * FROM system_info;",
|
|
65
84
|
"description": "System info snapshot query.",
|
|
@@ -108,12 +127,30 @@
|
|
|
108
127
|
"purlType": "swid",
|
|
109
128
|
"componentType": "data"
|
|
110
129
|
},
|
|
130
|
+
"sysctl_hardening": {
|
|
131
|
+
"query": "SELECT name, current_value as version, name as sysctl_key, current_value FROM sysctl WHERE name IN ('kernel.randomize_va_space', 'kernel.kptr_restrict', 'net.ipv4.conf.all.accept_redirects', 'net.ipv4.conf.default.accept_redirects', 'net.ipv4.conf.all.send_redirects', 'net.ipv4.conf.default.send_redirects');",
|
|
132
|
+
"description": "Linux sysctl posture entries aligned with common hardening baselines.",
|
|
133
|
+
"purlType": "swid",
|
|
134
|
+
"componentType": "data"
|
|
135
|
+
},
|
|
111
136
|
"kernel_modules": {
|
|
112
137
|
"query": "SELECT * FROM kernel_modules;",
|
|
113
138
|
"description": "Linux kernel modules both loaded and within the load search path.",
|
|
114
139
|
"purlType": "swid",
|
|
115
140
|
"componentType": "data"
|
|
116
141
|
},
|
|
142
|
+
"secureboot_certificates": {
|
|
143
|
+
"query": "SELECT COALESCE(common_name, subject, sha1) as name, COALESCE(subject_key_id, sha1) as version, issuer as publisher, subject as description, common_name, subject, issuer, serial, sha1, revoked, path, is_ca, self_signed, key_usage, authority_key_id, subject_key_id, signing_algorithm, key_algorithm, key_strength, not_valid_before, not_valid_after FROM secureboot_certificates;",
|
|
144
|
+
"description": "UEFI Secure Boot certificate inventory, including trusted and revoked entries, for firmware trust posture reviews.",
|
|
145
|
+
"purlType": "swid",
|
|
146
|
+
"componentType": "data"
|
|
147
|
+
},
|
|
148
|
+
"mount_hardening": {
|
|
149
|
+
"query": "SELECT path as name, flags as version, device as description, path, device, type, flags FROM mounts WHERE path IN ('/tmp', '/var/tmp', '/dev/shm', '/home');",
|
|
150
|
+
"description": "Linux mount points commonly reviewed for noexec, nodev, and nosuid hardening.",
|
|
151
|
+
"purlType": "swid",
|
|
152
|
+
"componentType": "data"
|
|
153
|
+
},
|
|
117
154
|
"systemd_units": {
|
|
118
155
|
"query": "SELECT id as name, active_state as version, description, load_state, sub_state, unit_file_state, user, fragment_path, source_path FROM systemd_units;",
|
|
119
156
|
"description": "Systemd unit state and execution source inventory.",
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
description: "Hidden Unicode in AI agent instructions or skill files can conceal misleading prompts, hidden tool behavior, or review-evasion content."
|
|
4
4
|
severity: medium
|
|
5
5
|
category: ai-agent
|
|
6
|
+
dry-run-support: full
|
|
6
7
|
standards:
|
|
7
8
|
owasp-ai-top-10:
|
|
8
9
|
- "LLM05: Supply Chain Vulnerabilities"
|
|
10
|
+
- "LLM03:2025 Supply Chain"
|
|
9
11
|
nist-ai-rmf:
|
|
10
12
|
- "Govern"
|
|
11
13
|
- "Manage"
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
description: "Public MCP endpoints referenced from agent or skill files deserve review when the instruction surface does not indicate any bearer, token, or OAuth controls."
|
|
36
38
|
severity: high
|
|
37
39
|
category: ai-agent
|
|
40
|
+
dry-run-support: full
|
|
38
41
|
attack:
|
|
39
42
|
tactics: [TA0001]
|
|
40
43
|
techniques: [T1190]
|
|
@@ -42,6 +45,7 @@
|
|
|
42
45
|
owasp-ai-top-10:
|
|
43
46
|
- "LLM07: Insecure Plugin Design"
|
|
44
47
|
- "LLM08: Excessive Agency"
|
|
48
|
+
- "LLM06:2025 Excessive Agency"
|
|
45
49
|
nist-ai-rmf:
|
|
46
50
|
- "Map"
|
|
47
51
|
- "Manage"
|
|
@@ -72,10 +76,13 @@
|
|
|
72
76
|
description: "Agent files that mention MCP servers, packages, or endpoints without corresponding MCP package inventory or source-derived MCP services can hide runtime trust dependencies from reviewers."
|
|
73
77
|
severity: medium
|
|
74
78
|
category: ai-agent
|
|
79
|
+
dry-run-support: full
|
|
75
80
|
standards:
|
|
76
81
|
owasp-ai-top-10:
|
|
77
82
|
- "LLM05: Supply Chain Vulnerabilities"
|
|
78
83
|
- "LLM08: Excessive Agency"
|
|
84
|
+
- "LLM03:2025 Supply Chain"
|
|
85
|
+
- "LLM06:2025 Excessive Agency"
|
|
79
86
|
nist-ai-rmf:
|
|
80
87
|
- "Map"
|
|
81
88
|
- "Govern"
|
|
@@ -107,6 +114,7 @@
|
|
|
107
114
|
description: "Localhost tunneling and reverse-proxy references in agent files can turn development-only MCP servers into remotely reachable control surfaces."
|
|
108
115
|
severity: high
|
|
109
116
|
category: ai-agent
|
|
117
|
+
dry-run-support: full
|
|
110
118
|
attack:
|
|
111
119
|
tactics: [TA0001, TA0011]
|
|
112
120
|
techniques: [T1190, T1071]
|
|
@@ -114,6 +122,7 @@
|
|
|
114
122
|
owasp-ai-top-10:
|
|
115
123
|
- "LLM07: Insecure Plugin Design"
|
|
116
124
|
- "LLM08: Excessive Agency"
|
|
125
|
+
- "LLM06:2025 Excessive Agency"
|
|
117
126
|
nist-ai-rmf:
|
|
118
127
|
- "Map"
|
|
119
128
|
- "Manage"
|
|
@@ -142,10 +151,12 @@
|
|
|
142
151
|
description: "Non-official MCP wrappers referenced directly from agent instructions deserve extra review before they are trusted in developer tooling or automation flows."
|
|
143
152
|
severity: medium
|
|
144
153
|
category: ai-agent
|
|
154
|
+
dry-run-support: full
|
|
145
155
|
standards:
|
|
146
156
|
owasp-ai-top-10:
|
|
147
157
|
- "LLM05: Supply Chain Vulnerabilities"
|
|
148
158
|
- "LLM07: Insecure Plugin Design"
|
|
159
|
+
- "LLM03:2025 Supply Chain"
|
|
149
160
|
nist-ai-rmf:
|
|
150
161
|
- "Govern"
|
|
151
162
|
- "Map"
|
|
@@ -174,6 +185,7 @@
|
|
|
174
185
|
description: "Agent or skill files that embed bearer tokens, API keys, or similar secrets create immediate review and credential-rotation risk."
|
|
175
186
|
severity: critical
|
|
176
187
|
category: ai-agent
|
|
188
|
+
dry-run-support: full
|
|
177
189
|
attack:
|
|
178
190
|
tactics: [TA0006]
|
|
179
191
|
techniques: [T1552]
|
|
@@ -181,6 +193,7 @@
|
|
|
181
193
|
owasp-ai-top-10:
|
|
182
194
|
- "LLM05: Supply Chain Vulnerabilities"
|
|
183
195
|
- "LLM07: Insecure Plugin Design"
|
|
196
|
+
- "LLM03:2025 Supply Chain"
|
|
184
197
|
nist-ai-rmf:
|
|
185
198
|
- "Govern"
|
|
186
199
|
- "Manage"
|
|
@@ -210,10 +223,13 @@
|
|
|
210
223
|
description: "Shipped AI instruction and skill files deserve explicit review because they can alter developer tooling, release-time automation, and downstream runtime behavior."
|
|
211
224
|
severity: medium
|
|
212
225
|
category: ai-agent
|
|
226
|
+
dry-run-support: full
|
|
213
227
|
standards:
|
|
214
228
|
owasp-ai-top-10:
|
|
215
229
|
- "LLM05: Supply Chain Vulnerabilities"
|
|
216
230
|
- "LLM08: Excessive Agency"
|
|
231
|
+
- "LLM03:2025 Supply Chain"
|
|
232
|
+
- "LLM06:2025 Excessive Agency"
|
|
217
233
|
nist-ai-rmf:
|
|
218
234
|
- "Govern"
|
|
219
235
|
- "Map"
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Electron ASAR archive security rules
|
|
2
|
+
# Category: asar-archive
|
|
3
|
+
# Evaluates packaged Electron application archives for dynamic execution,
|
|
4
|
+
# capability overlap, integrity mismatches, and embedded install-time scripts.
|
|
5
|
+
|
|
6
|
+
- id: ASAR-001
|
|
7
|
+
name: "Archived JavaScript with eval or dynamic loading"
|
|
8
|
+
description: "ASAR-packaged JavaScript using eval, Function, or dynamic import/require deserves review for arbitrary code execution and remote payload loading risk."
|
|
9
|
+
severity: high
|
|
10
|
+
category: asar-archive
|
|
11
|
+
dry-run-support: full
|
|
12
|
+
condition: |
|
|
13
|
+
components[
|
|
14
|
+
$prop($, 'cdx:file:kind') = 'asar-entry'
|
|
15
|
+
and (
|
|
16
|
+
$propBool($, 'cdx:asar:js:hasEval') = true
|
|
17
|
+
or $propBool($, 'cdx:asar:js:capability:dynamicImport') = true
|
|
18
|
+
or $listContains($propList($, 'cdx:asar:js:executionIndicators'), 'eval')
|
|
19
|
+
or $listContains($propList($, 'cdx:asar:js:executionIndicators'), 'function-constructor')
|
|
20
|
+
)
|
|
21
|
+
]
|
|
22
|
+
location: |
|
|
23
|
+
{
|
|
24
|
+
"bomRef": $. "bom-ref",
|
|
25
|
+
"srcFile": $prop($, 'SrcFile'),
|
|
26
|
+
"archivePath": $prop($, 'cdx:asar:path')
|
|
27
|
+
}
|
|
28
|
+
message: "Archived JavaScript '{{ name }}' uses eval-like or dynamic loading behavior inside an ASAR package"
|
|
29
|
+
mitigation: "Review the packaged source for eval, Function, dynamic import, or runtime module resolution. Prefer static imports and signed update channels."
|
|
30
|
+
evidence: |
|
|
31
|
+
{
|
|
32
|
+
"archivePath": $prop($, 'cdx:asar:path'),
|
|
33
|
+
"executionIndicators": $prop($, 'cdx:asar:js:executionIndicators'),
|
|
34
|
+
"dynamicImport": $prop($, 'cdx:asar:js:capability:dynamicImport'),
|
|
35
|
+
"hasEval": $prop($, 'cdx:asar:js:hasEval')
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
- id: ASAR-002
|
|
39
|
+
name: "Archived JavaScript with network plus file or hardware access"
|
|
40
|
+
description: "Packaged JavaScript that combines outbound network capability with filesystem or hardware access can materially increase exfiltration or device-control risk."
|
|
41
|
+
severity: high
|
|
42
|
+
category: asar-archive
|
|
43
|
+
dry-run-support: full
|
|
44
|
+
condition: |
|
|
45
|
+
components[
|
|
46
|
+
$prop($, 'cdx:file:kind') = 'asar-entry'
|
|
47
|
+
and $propBool($, 'cdx:asar:js:capability:network') = true
|
|
48
|
+
and (
|
|
49
|
+
$propBool($, 'cdx:asar:js:capability:fileAccess') = true
|
|
50
|
+
or $propBool($, 'cdx:asar:js:capability:hardware') = true
|
|
51
|
+
or $propBool($, 'cdx:asar:js:hasDynamicFetch') = true
|
|
52
|
+
)
|
|
53
|
+
]
|
|
54
|
+
location: |
|
|
55
|
+
{
|
|
56
|
+
"bomRef": $. "bom-ref",
|
|
57
|
+
"srcFile": $prop($, 'SrcFile'),
|
|
58
|
+
"archivePath": $prop($, 'cdx:asar:path')
|
|
59
|
+
}
|
|
60
|
+
message: "Archived JavaScript '{{ name }}' combines network behavior with sensitive local access capabilities"
|
|
61
|
+
mitigation: "Review outbound endpoints, local file access, and hardware APIs. Limit packaged code to explicit allowlisted operations and sign release artifacts."
|
|
62
|
+
evidence: |
|
|
63
|
+
{
|
|
64
|
+
"archivePath": $prop($, 'cdx:asar:path'),
|
|
65
|
+
"capabilities": $prop($, 'cdx:asar:js:capabilities'),
|
|
66
|
+
"networkIndicators": $prop($, 'cdx:asar:js:networkIndicators'),
|
|
67
|
+
"hardwareIndicators": $prop($, 'cdx:asar:js:hardwareIndicators'),
|
|
68
|
+
"fileAccessIndicators": $prop($, 'cdx:asar:js:fileAccessIndicators')
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
- id: ASAR-003
|
|
72
|
+
name: "Declared ASAR integrity mismatch"
|
|
73
|
+
description: "An ASAR entry whose declared integrity hash does not match the computed file hash may indicate tampering or packaging defects."
|
|
74
|
+
severity: high
|
|
75
|
+
category: asar-archive
|
|
76
|
+
dry-run-support: full
|
|
77
|
+
condition: |
|
|
78
|
+
components[
|
|
79
|
+
$prop($, 'cdx:file:kind') = 'asar-entry'
|
|
80
|
+
and $prop($, 'cdx:asar:integrityVerified') = 'false'
|
|
81
|
+
]
|
|
82
|
+
location: |
|
|
83
|
+
{
|
|
84
|
+
"bomRef": $. "bom-ref",
|
|
85
|
+
"srcFile": $prop($, 'SrcFile'),
|
|
86
|
+
"archivePath": $prop($, 'cdx:asar:path')
|
|
87
|
+
}
|
|
88
|
+
message: "Archived entry '{{ name }}' has a declared integrity hash mismatch inside an ASAR package"
|
|
89
|
+
mitigation: "Rebuild the archive from trusted sources, verify signing provenance, and compare the packaged file to the expected release artifact."
|
|
90
|
+
evidence: |
|
|
91
|
+
{
|
|
92
|
+
"archivePath": $prop($, 'cdx:asar:path'),
|
|
93
|
+
"declaredHash": $prop($, 'cdx:asar:declaredIntegrityHash'),
|
|
94
|
+
"verified": $prop($, 'cdx:asar:integrityVerified')
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
- id: ASAR-004
|
|
98
|
+
name: "Embedded npm package with install-time scripts inside ASAR"
|
|
99
|
+
description: "Node packages shipped inside ASAR archives that declare install/preinstall hooks are still useful compromise indicators during artifact review."
|
|
100
|
+
severity: high
|
|
101
|
+
category: asar-archive
|
|
102
|
+
dry-run-support: partial
|
|
103
|
+
condition: |
|
|
104
|
+
components[
|
|
105
|
+
$propBool($, 'cdx:npm:hasInstallScript') = true
|
|
106
|
+
and $contains($prop($, 'SrcFile'), '.asar#/')
|
|
107
|
+
]
|
|
108
|
+
location: |
|
|
109
|
+
{
|
|
110
|
+
"bomRef": $. "bom-ref",
|
|
111
|
+
"purl": purl,
|
|
112
|
+
"srcFile": $prop($, 'SrcFile')
|
|
113
|
+
}
|
|
114
|
+
message: "Embedded npm package '{{ name }}@{{ version }}' inside ASAR declares install-time lifecycle scripts"
|
|
115
|
+
mitigation: "Review the embedded package source and build provenance. Remove unnecessary lifecycle hooks or vendor only prebuilt trusted artifacts."
|
|
116
|
+
evidence: |
|
|
117
|
+
{
|
|
118
|
+
"srcFile": $prop($, 'SrcFile'),
|
|
119
|
+
"lifecycleScripts": $prop($, 'cdx:npm:risky_scripts'),
|
|
120
|
+
"executionIndicators": $prop($, 'cdx:npm:lifecycleExecutionIndicators'),
|
|
121
|
+
"obfuscationIndicators": $prop($, 'cdx:npm:lifecycleObfuscationIndicators')
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
- id: ASAR-005
|
|
125
|
+
name: "Electron ASAR signing metadata failed verification"
|
|
126
|
+
description: "Electron Info.plist signing metadata that fails verification is a high-signal indicator of packaging defects or release-artifact tampering."
|
|
127
|
+
severity: high
|
|
128
|
+
category: asar-archive
|
|
129
|
+
dry-run-support: full
|
|
130
|
+
condition: |
|
|
131
|
+
components[
|
|
132
|
+
$prop($, 'cdx:file:kind') = 'asar-archive'
|
|
133
|
+
and $propBool($, 'cdx:asar:hasSigningMetadata') = true
|
|
134
|
+
and $prop($, 'cdx:asar:signingVerified') = 'false'
|
|
135
|
+
]
|
|
136
|
+
location: |
|
|
137
|
+
{
|
|
138
|
+
"bomRef": $. "bom-ref",
|
|
139
|
+
"srcFile": $prop($, 'SrcFile')
|
|
140
|
+
}
|
|
141
|
+
message: "ASAR archive '{{ name }}' has Electron signing metadata that failed verification"
|
|
142
|
+
mitigation: "Rebuild the Electron package from trusted sources, verify the Info.plist ElectronAsarIntegrity data, and confirm the shipped ASAR matches the expected signed release artifact."
|
|
143
|
+
evidence: |
|
|
144
|
+
{
|
|
145
|
+
"signingDeclaredHash": $prop($, 'cdx:asar:signingDeclaredHash'),
|
|
146
|
+
"signingAlgorithm": $prop($, 'cdx:asar:signingAlgorithm'),
|
|
147
|
+
"signingSource": $prop($, 'cdx:asar:signingSource'),
|
|
148
|
+
"signingScope": $prop($, 'cdx:asar:signingScope'),
|
|
149
|
+
"signingVerified": $prop($, 'cdx:asar:signingVerified')
|
|
150
|
+
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
description: "Browser extensions with <all_urls> or wildcard host permissions can access and manipulate content on most websites"
|
|
8
8
|
severity: high
|
|
9
9
|
category: chrome-extension
|
|
10
|
+
dry-run-support: full
|
|
10
11
|
condition: |
|
|
11
12
|
components[
|
|
12
13
|
$startsWith(purl, 'pkg:chrome-extension/')
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
description: "Extensions that combine webRequest and webRequestBlocking can intercept and modify browser network traffic"
|
|
36
37
|
severity: critical
|
|
37
38
|
category: chrome-extension
|
|
39
|
+
dry-run-support: full
|
|
38
40
|
condition: |
|
|
39
41
|
components[
|
|
40
42
|
$startsWith(purl, 'pkg:chrome-extension/')
|
|
@@ -60,6 +62,7 @@
|
|
|
60
62
|
description: "Extensions injecting content scripts at document_start together with broad host permissions increase pre-DOM execution risk"
|
|
61
63
|
severity: high
|
|
62
64
|
category: chrome-extension
|
|
65
|
+
dry-run-support: full
|
|
63
66
|
condition: |
|
|
64
67
|
components[
|
|
65
68
|
$startsWith(purl, 'pkg:chrome-extension/')
|
|
@@ -89,6 +92,7 @@
|
|
|
89
92
|
description: "Autofill features handling credential or PII flows should be reviewed when broad host permissions are granted"
|
|
90
93
|
severity: medium
|
|
91
94
|
category: chrome-extension
|
|
95
|
+
dry-run-support: full
|
|
92
96
|
condition: |
|
|
93
97
|
components[
|
|
94
98
|
$startsWith(purl, 'pkg:chrome-extension/')
|
|
@@ -119,6 +123,7 @@
|
|
|
119
123
|
description: "Extensions requesting file or device-adjacent capabilities alongside broad host scope can increase data collection and exfiltration risk."
|
|
120
124
|
severity: high
|
|
121
125
|
category: chrome-extension
|
|
126
|
+
dry-run-support: full
|
|
122
127
|
condition: |
|
|
123
128
|
components[
|
|
124
129
|
$startsWith(purl, 'pkg:chrome-extension/')
|
|
@@ -153,6 +158,7 @@
|
|
|
153
158
|
description: "Extensions with explicit code-injection capability and broad host scope may execute arbitrary script logic across many origins."
|
|
154
159
|
severity: critical
|
|
155
160
|
category: chrome-extension
|
|
161
|
+
dry-run-support: full
|
|
156
162
|
condition: |
|
|
157
163
|
components[
|
|
158
164
|
$startsWith(purl, 'pkg:chrome-extension/')
|
|
@@ -183,6 +189,7 @@
|
|
|
183
189
|
description: "Fingerprinting-related capability indicators combined with broad host access can increase tracking and privacy risk."
|
|
184
190
|
severity: high
|
|
185
191
|
category: chrome-extension
|
|
192
|
+
dry-run-support: full
|
|
186
193
|
condition: |
|
|
187
194
|
components[
|
|
188
195
|
$startsWith(purl, 'pkg:chrome-extension/')
|
|
@@ -213,6 +220,7 @@
|
|
|
213
220
|
description: "Extensions targeting AI assistant domains (OpenAI/ChatGPT/Claude/Copilot) with code-injection capability should be reviewed for prompt/session manipulation risk."
|
|
214
221
|
severity: high
|
|
215
222
|
category: chrome-extension
|
|
223
|
+
dry-run-support: full
|
|
216
224
|
condition: |
|
|
217
225
|
components[
|
|
218
226
|
$startsWith(purl, 'pkg:chrome-extension/')
|