cbomly 0.2.0__py3-none-any.whl

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.
@@ -0,0 +1,110 @@
1
+ # Baseline rule pack: country-neutral crypto hygiene and quantum readiness.
2
+ # Every jurisdiction pack extends this one.
3
+
4
+ [pack]
5
+ id = "baseline"
6
+ name = "Baseline: quantum readiness and crypto hygiene"
7
+ version = "2026.11"
8
+ jurisdiction = "global"
9
+ review_status = "stable"
10
+ summary = "Flags quantum-vulnerable public-key crypto, broken or deprecated algorithms, weak keys and committed private keys."
11
+
12
+ [references.nist-fips-203]
13
+ title = "FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)"
14
+ issuer = "NIST"
15
+ date = "2024-08-13"
16
+ url = "https://csrc.nist.gov/pubs/fips/203/final"
17
+ status = "standard"
18
+
19
+ [references.nist-fips-204]
20
+ title = "FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA)"
21
+ issuer = "NIST"
22
+ date = "2024-08-13"
23
+ url = "https://csrc.nist.gov/pubs/fips/204/final"
24
+ status = "standard"
25
+
26
+ [references.nist-ir-8547]
27
+ title = "NIST IR 8547 (draft): Transition to Post-Quantum Cryptography Standards"
28
+ issuer = "NIST"
29
+ date = "2024-11-12"
30
+ url = "https://csrc.nist.gov/pubs/ir/8547/ipd"
31
+ status = "draft"
32
+
33
+ [[rules]]
34
+ id = "BASE-Q-001"
35
+ title = "Quantum-vulnerable public-key cryptography"
36
+ severity = "high"
37
+ match = { quantum = ["vulnerable"] }
38
+ message = "RSA, elliptic-curve, DSA and Diffie-Hellman can be broken by a large quantum computer. Data encrypted today can be recorded now and decrypted later."
39
+ action = "Plan migration to ML-KEM (key exchange) and ML-DSA or SLH-DSA (signatures). Use hybrid classical + post-quantum modes during the transition."
40
+ references = ["nist-fips-203", "nist-fips-204", "nist-ir-8547"]
41
+
42
+ [[rules]]
43
+ id = "BASE-Q-002"
44
+ title = "Symmetric crypto weakened by quantum attacks"
45
+ severity = "low"
46
+ match = { quantum = ["reduced"] }
47
+ message = "Grover's algorithm roughly halves the effective strength of symmetric keys. AES-128 stays usable for now but AES-256 is the long-term choice."
48
+ action = "Prefer AES-256 for new designs and long-lived data."
49
+ references = ["nist-ir-8547"]
50
+
51
+ [[rules]]
52
+ id = "BASE-C-001"
53
+ title = "Broken algorithm or protocol in use"
54
+ severity = "critical"
55
+ match = { classical = ["broken"] }
56
+ message = "These are unsafe today, with no quantum computer needed (for example MD5, SHA-1 signatures, DES, RC4, ECB mode, TLS 1.0/1.1)."
57
+ action = "Replace now. See each item's recommended replacement."
58
+ references = []
59
+
60
+ [[rules]]
61
+ id = "BASE-C-002"
62
+ title = "Deprecated algorithm in use"
63
+ severity = "medium"
64
+ match = { classical = ["deprecated"] }
65
+ message = "Standards bodies are phasing these out (for example Triple DES, DSA)."
66
+ action = "Replace in the next release cycle."
67
+ references = []
68
+
69
+ [[rules]]
70
+ id = "BASE-K-001"
71
+ title = "Private key stored in the codebase"
72
+ severity = "critical"
73
+ match = { material = ["private-key"] }
74
+ message = "A private key file is in the scanned folder. Anyone with access to the code can impersonate this system."
75
+ action = "Remove it from the code and its history, rotate the key, and load keys from a secrets manager or environment instead. If it is a test fixture, add the folder to --exclude."
76
+ references = []
77
+
78
+ [[rules]]
79
+ id = "BASE-K-002"
80
+ title = "RSA key shorter than 2048 bits"
81
+ severity = "high"
82
+ match = { algorithm = ["rsa", "rsa-sig", "dh"], max_key_bits = 2047 }
83
+ message = "Keys under 2048 bits are below current minimums even before quantum attacks."
84
+ action = "Use at least 3072-bit keys if RSA must stay for now, and plan the move to ML-KEM / ML-DSA."
85
+ references = ["nist-ir-8547"]
86
+
87
+ [[rules]]
88
+ id = "BASE-K-003"
89
+ title = "Expired certificate in the codebase"
90
+ severity = "medium"
91
+ match = { expired = true }
92
+ message = "A certificate found in the code is past its validity date."
93
+ action = "Renew or remove it."
94
+ references = []
95
+
96
+ [[rules]]
97
+ id = "BASE-P-001"
98
+ title = "Post-quantum cryptography already in use"
99
+ severity = "info"
100
+ positive = true
101
+ match = { quantum = ["resistant"], primitive = ["kem", "signature"] }
102
+ message = "Good news: post-quantum or hybrid algorithms were found."
103
+ action = "Keep them, and record them in your migration plan as completed items."
104
+ references = ["nist-fips-203", "nist-fips-204"]
105
+
106
+ [[checks]]
107
+ id = "BASE-INV-001"
108
+ title = "Cryptographic inventory produced"
109
+ severity = "info"
110
+ type = "crypto-inventory"
cbomly/packs/ca.toml ADDED
@@ -0,0 +1,61 @@
1
+ # Canada rule pack: Government of Canada PQC migration (Cyber Centre roadmap and TBS SPIN) and OSFI.
2
+ #
3
+ # REVIEW STATUS: draft (checked 2026-11-29 against the Cyber Centre, TBS and OSFI pages).
4
+
5
+ [pack]
6
+ id = "ca"
7
+ name = "Canada: Government of Canada post-quantum migration (Cyber Centre and TBS) and OSFI"
8
+ version = "2026.11-draft"
9
+ jurisdiction = "CA"
10
+ extends = ["baseline"]
11
+ review_status = "draft"
12
+ summary = "For vendors selling to the Government of Canada or to federally regulated financial institutions."
13
+
14
+ [references.cccs-itsm-40-001]
15
+ title = "Roadmap for the migration to post-quantum cryptography for the Government of Canada (ITSM.40.001)"
16
+ issuer = "Canadian Centre for Cyber Security"
17
+ date = "2025-06-23"
18
+ url = "https://www.cyber.gc.ca/en/guidance/roadmap-migration-post-quantum-cryptography-government-canada-itsm40001"
19
+ status = "recommended roadmap: plans by April 2026, high-priority systems by end of 2031, the rest by end of 2035"
20
+
21
+ [references.tbs-spin-pqc]
22
+ title = "Migrating the Government of Canada to Post-Quantum Cryptography: Security Policy Implementation Notice (SPIN)"
23
+ issuer = "Treasury Board of Canada Secretariat"
24
+ date = "2025-10-09"
25
+ url = "https://www.canada.ca/en/government/system/digital-government/policies-standards/spin/migrating-government-canada-post-quantum-cryptography.html"
26
+ status = "expected of departments. Contracts with a digital component signed after 2026-04-01 include PQC, CMVP and crypto-agility clauses; crypto inventory recorded by 2028-04-01; transition starts 2028-04-01; high-priority systems by end of 2031; the rest by end of 2035."
27
+
28
+ [references.osfi-quantum]
29
+ title = "Quantum readiness: phases and timelines (technology risk bulletin)"
30
+ issuer = "Office of the Superintendent of Financial Institutions (OSFI)"
31
+ date = "2026-03"
32
+ url = "https://www.osfi-bsif.gc.ca/en/risks/technology-cyber-risk-management/technology-risk-bulletin/quantum-readiness-phases-timelines"
33
+ status = "supervisory bulletin (best practice): keep a central inventory of cryptographic assets including third-party dependencies; quantum readiness across all systems by 2035"
34
+
35
+ [[rules]]
36
+ id = "CA-PQC-001"
37
+ title = "Quantum-vulnerable crypto in a product sold to the Government of Canada"
38
+ severity = "high"
39
+ match = { quantum = ["vulnerable"] }
40
+ message = "Since 1 April 2026, Government of Canada contracts with a digital component should include clauses requiring post-quantum support (ITSP.40.111), CMVP-validated modules and crypto agility. Departments must finish high-priority systems by the end of 2031 and all systems by the end of 2035."
41
+ action = "Publish a PQC roadmap for your product with dates, and show how crypto can be swapped without a redesign."
42
+ references = ["tbs-spin-pqc", "cccs-itsm-40-001"]
43
+ due = "End of 2031 (high priority), end of 2035 (all)"
44
+
45
+ [[rules]]
46
+ id = "CA-PQC-002"
47
+ title = "Quantum-vulnerable key exchange (harvest now, decrypt later)"
48
+ severity = "high"
49
+ match = { quantum = ["vulnerable"], primitive = ["key-agree", "pke"] }
50
+ message = "The Cyber Centre makes systems exposed to harvest-now-decrypt-later attacks high priority, with a deadline of the end of 2031."
51
+ action = "Enable hybrid X25519MLKEM768 in TLS and plan ML-KEM for stored-data key wrapping."
52
+ references = ["cccs-itsm-40-001"]
53
+ due = "End of 2031"
54
+
55
+ [[checks]]
56
+ id = "CA-CBOM-001"
57
+ title = "Cryptographic inventory (CBOM) produced"
58
+ severity = "medium"
59
+ type = "crypto-inventory"
60
+ references = ["tbs-spin-pqc", "osfi-quantum"]
61
+ message = "By 1 April 2028 departments must record, for each system, the algorithms and protocols in use plus vendor and product version. OSFI expects banks and insurers to keep a similar inventory, including third-party dependencies. Both will ask vendors for it."
cbomly/packs/eu.toml ADDED
@@ -0,0 +1,117 @@
1
+ # European Union rule pack: Cyber Resilience Act, the coordinated PQC roadmap, NIS2 and DORA.
2
+ #
3
+ # REVIEW STATUS: draft (checked 2026-11-29). CRA and roadmap dates are from official EU pages.
4
+ # The NIS2 and DORA article references are from the regulation texts but were not re-read for
5
+ # this release (the EUR-Lex pages did not load); check them before a paid report quotes them.
6
+
7
+ [pack]
8
+ id = "eu"
9
+ name = "European Union: Cyber Resilience Act, EU post-quantum roadmap, NIS2 and DORA"
10
+ version = "2026.11-draft"
11
+ jurisdiction = "EU"
12
+ extends = ["baseline"]
13
+ review_status = "draft"
14
+ summary = "For vendors placing software or connected products on the EU market, or selling to NIS2 essential entities and DORA financial entities."
15
+
16
+ [references.cra]
17
+ title = "Regulation (EU) 2024/2847, the Cyber Resilience Act"
18
+ issuer = "European Parliament and Council"
19
+ date = "2024-11-20"
20
+ url = "https://eur-lex.europa.eu/eli/reg/2024/2847/oj"
21
+ status = "law. In force 2024-12-10; vulnerability and incident reporting (Article 14) from 2026-09-11; full product requirements, including the SBOM, from 2027-12-11."
22
+
23
+ [references.eu-pqc-roadmap]
24
+ title = "A Coordinated Implementation Roadmap for the Transition to Post-Quantum Cryptography"
25
+ issuer = "EU Member States (NIS Cooperation Group), supported by the European Commission"
26
+ date = "2025-06-23"
27
+ url = "https://digital-strategy.ec.europa.eu/en/library/coordinated-implementation-roadmap-transition-post-quantum-cryptography"
28
+ status = "coordinated roadmap following the Commission Recommendation of 2024-04-11. Start the transition by end of 2026; high-risk use cases by end of 2030; as much as feasible by 2035 (2035 date from the roadmap text, not on the summary page)."
29
+
30
+ [references.nis2]
31
+ title = "Directive (EU) 2022/2555 (NIS2), Article 21(2): cryptography and supply-chain security measures"
32
+ issuer = "European Parliament and Council"
33
+ date = "2022-12-14"
34
+ url = "https://eur-lex.europa.eu/eli/dir/2022/2555/oj"
35
+ status = "law, transposed nationally from 2024-10-18. Essential and important entities need policies on cryptography and supply-chain security, which they pass on to vendors."
36
+
37
+ [references.nis2-ir-2024-2690]
38
+ title = "Commission Implementing Regulation (EU) 2024/2690 (technical measures for digital infrastructure and ICT service providers)"
39
+ issuer = "European Commission"
40
+ date = "2024-10-17"
41
+ url = "https://eur-lex.europa.eu/eli/reg_impl/2024/2690/oj"
42
+ status = "law for the covered entities (cloud, data centre, managed service and similar providers). Annex sections on cryptography and asset inventory NOT re-checked."
43
+
44
+ [references.dora]
45
+ title = "Regulation (EU) 2022/2554 (DORA) and Delegated Regulation (EU) 2024/1774 on ICT risk management, Articles 6 and 7 (encryption and key management)"
46
+ issuer = "European Parliament and Council; European Commission"
47
+ date = "2024-03-13"
48
+ url = "https://eur-lex.europa.eu/eli/reg_del/2024/1774/oj"
49
+ status = "law for EU financial entities from 2025-01-17. Article wording (crypto updated as cryptanalysis develops; register of certificates) NOT re-checked."
50
+
51
+ # --- Crypto (CBOM) ------------------------------------------------------
52
+
53
+ [[rules]]
54
+ id = "EU-PQC-001"
55
+ title = "Quantum-vulnerable crypto: start the transition by end of 2026"
56
+ severity = "high"
57
+ match = { quantum = ["vulnerable"] }
58
+ message = "The EU roadmap asks every Member State to start moving to post-quantum crypto by the end of 2026, beginning with an inventory, and to finish high-risk use cases by the end of 2030. Public buyers and NIS2 entities will ask suppliers for the same."
59
+ action = "Keep this CBOM with each release and record a planned post-quantum or hybrid replacement for each item."
60
+ references = ["eu-pqc-roadmap", "nis2"]
61
+ due = "Start by 2026-12-31; high-risk by 2030-12-31"
62
+
63
+ [[rules]]
64
+ id = "EU-PQC-002"
65
+ title = "Quantum-vulnerable key exchange in high-risk use (by end of 2030)"
66
+ severity = "high"
67
+ match = { quantum = ["vulnerable"], primitive = ["key-agree", "pke"] }
68
+ message = "Data protected by RSA or (EC)DH key exchange can be recorded now and decrypted later, which is why the roadmap puts high-risk uses first, with a 2030 deadline. DORA expects financial entities to update their crypto as cryptanalysis develops."
69
+ action = "Enable hybrid X25519MLKEM768 in TLS and plan ML-KEM for stored-data key wrapping."
70
+ references = ["eu-pqc-roadmap", "dora"]
71
+ due = "2030-12-31"
72
+
73
+ [[rules]]
74
+ id = "EU-CRA-001"
75
+ title = "Broken crypto in a product with digital elements"
76
+ severity = "critical"
77
+ match = { classical = ["broken"] }
78
+ message = "From 11 December 2027 the CRA's essential requirements (Annex I, Part I) require products to protect the confidentiality and integrity of data with state-of-the-art mechanisms. Broken algorithms such as MD5, SHA-1 signatures, DES, RC4 or TLS 1.0 will not meet that."
79
+ action = "Replace before the product is placed on the EU market under the CRA."
80
+ references = ["cra"]
81
+ due = "2027-12-11"
82
+
83
+ [[checks]]
84
+ id = "EU-CBOM-001"
85
+ title = "Cryptographic inventory (CBOM) produced"
86
+ severity = "medium"
87
+ type = "crypto-inventory"
88
+ references = ["eu-pqc-roadmap", "nis2", "dora"]
89
+ message = "The roadmap's first step is a cryptographic inventory. NIS2 entities need a crypto policy and DORA financial entities manage keys and certificates, so both ask suppliers what crypto their products use."
90
+
91
+ # --- Software list (SBOM) ----------------------------------------------
92
+
93
+ [[checks]]
94
+ id = "EU-SBOM-001"
95
+ title = "Software bill of materials (SBOM) produced"
96
+ severity = "high"
97
+ type = "sbom-present"
98
+ references = ["cra"]
99
+ message = "CRA Annex I, Part II, point 1 requires manufacturers to draw up an SBOM in a commonly used, machine-readable format, covering at least the top-level dependencies, from 11 December 2027. Market surveillance authorities can ask for it."
100
+
101
+ [[checks]]
102
+ id = "EU-SBOM-002"
103
+ title = "Dependency relationships recorded"
104
+ severity = "medium"
105
+ type = "dependencies-present"
106
+ references = ["cra"]
107
+ message = "The CRA SBOM must cover at least the product's top-level dependencies."
108
+
109
+ [[checks]]
110
+ id = "EU-SBOM-003"
111
+ title = "SBOM component data"
112
+ severity = "low"
113
+ type = "sbom-fields"
114
+ fields = ["name", "version", "supplier", "unique-id", "hashes"]
115
+ min_coverage = 0.8
116
+ references = ["cra"]
117
+ message = "The CRA does not list SBOM fields. These are the common baseline that buyers and authorities expect; a Commission implementing act may set more."
@@ -0,0 +1,102 @@
1
+ # India rule pack: CERT-In BOM guidelines, SEBI CSCRF, DST PQC roadmap.
2
+ #
3
+ # REVIEW STATUS: draft. The requirement summaries below come from secondary
4
+ # sources (law-firm and industry write-ups). Check each one against the
5
+ # official documents before any paid report quotes them.
6
+
7
+ [pack]
8
+ id = "india"
9
+ name = "India: CERT-In BOM guidelines, SEBI CSCRF and the DST quantum-safe roadmap"
10
+ version = "2026.11-draft"
11
+ jurisdiction = "IN"
12
+ extends = ["baseline"]
13
+ review_status = "draft"
14
+ summary = "For software vendors selling to Indian government, public sector, essential services and SEBI-regulated entities."
15
+
16
+ [references.certin-bom-v2]
17
+ title = "CERT-In Technical Guidelines on SBOM, QBOM & CBOM, AIBOM and HBOM, version 2.0"
18
+ issuer = "CERT-In (Indian Computer Emergency Response Team)"
19
+ date = "2025-07-09"
20
+ url = "https://www.cert-in.org.in/"
21
+ status = "advisory; buyers are advised to make it a procurement requirement"
22
+
23
+ [references.certin-sbom-v1]
24
+ title = "CERT-In Technical Guidelines on Software Bill of Materials (SBOM), version 1.0"
25
+ issuer = "CERT-In"
26
+ date = "2024-10"
27
+ url = "https://www.cert-in.org.in/"
28
+ status = "advisory (superseded in scope by v2.0)"
29
+
30
+ [references.sebi-cscrf]
31
+ title = "SEBI Cybersecurity and Cyber Resilience Framework (CSCRF) for SEBI Regulated Entities"
32
+ issuer = "SEBI (Securities and Exchange Board of India)"
33
+ date = "2024-08-20"
34
+ url = "https://www.sebi.gov.in/"
35
+ status = "mandatory for SEBI regulated entities, phased"
36
+
37
+ [references.dst-pqc-roadmap]
38
+ title = "Task Force report: roadmap for migration to post-quantum cryptography"
39
+ issuer = "Department of Science and Technology (DST), Government of India"
40
+ date = "2026-02"
41
+ url = "https://dst.gov.in/"
42
+ status = "roadmap; critical sectors prepare by 2027, high-priority migration by 2028, enterprises by 2028-2030"
43
+
44
+ # --- Crypto (CBOM) ------------------------------------------------------
45
+
46
+ [[rules]]
47
+ id = "IN-PQC-001"
48
+ title = "Quantum-vulnerable crypto must appear in your CBOM and migration plan"
49
+ severity = "high"
50
+ match = { quantum = ["vulnerable"] }
51
+ message = "The DST roadmap asks vendors to submit a cryptographic bill of materials (CBOM) from FY 2027-28 and to plan the move off RSA, elliptic-curve and Diffie-Hellman. CERT-In's BOM guidelines v2.0 define the CBOM."
52
+ action = "Keep this CBOM with each release. For each item, record the planned post-quantum or hybrid replacement and a target release."
53
+ references = ["dst-pqc-roadmap", "certin-bom-v2"]
54
+ due = "FY 2027-28 (Apr 2027 to Mar 2028)"
55
+
56
+ [[rules]]
57
+ id = "IN-PQC-002"
58
+ title = "Quantum-vulnerable digital signatures (first in line for migration)"
59
+ severity = "high"
60
+ match = { quantum = ["vulnerable"], primitive = ["signature"] }
61
+ message = "The DST roadmap asks critical sectors to start using post-quantum or hybrid signatures first, with preparation due by 2027. Code signing, firmware signing and document signing are typical first targets."
62
+ action = "Offer a hybrid signature (classical + ML-DSA) for release artifacts and signed documents; keep the classical one for older verifiers."
63
+ references = ["dst-pqc-roadmap"]
64
+ due = "2027 (critical sectors)"
65
+
66
+ [[rules]]
67
+ id = "IN-PQC-003"
68
+ title = "Quantum-vulnerable key exchange (harvest now, decrypt later)"
69
+ severity = "high"
70
+ match = { quantum = ["vulnerable"], primitive = ["key-agree", "pke"] }
71
+ message = "Traffic and data protected by RSA or (EC)DH key exchange can be recorded today and decrypted once quantum computers arrive. Long-lived sensitive data (financial, identity, government) is most exposed."
72
+ action = "Enable hybrid X25519MLKEM768 in TLS where your stack supports it (OpenSSL 3.5+, Go 1.24+, recent browsers), and plan ML-KEM for stored-data key wrapping."
73
+ references = ["dst-pqc-roadmap"]
74
+ due = "2028 (high-priority systems)"
75
+
76
+ # --- Software list (SBOM) ----------------------------------------------
77
+
78
+ [[checks]]
79
+ id = "IN-SBOM-001"
80
+ title = "Software bill of materials (SBOM) produced"
81
+ severity = "high"
82
+ type = "sbom-present"
83
+ references = ["certin-bom-v2", "certin-sbom-v1", "sebi-cscrf"]
84
+ message = "CERT-In's guidelines ask for an SBOM, and SEBI's CSCRF requires regulated entities to obtain SBOMs for software used in core and critical operations, which they pass on to vendors."
85
+
86
+ [[checks]]
87
+ id = "IN-SBOM-002"
88
+ title = "SBOM minimum data fields"
89
+ severity = "medium"
90
+ type = "sbom-fields"
91
+ fields = ["name", "version", "supplier", "licenses", "hashes", "unique-id"]
92
+ min_coverage = 0.8
93
+ references = ["certin-sbom-v1", "certin-bom-v2"]
94
+ message = "CERT-In lists minimum elements for each component, including name, version, supplier, licence, checksum (hash) and a unique identifier. This checks the ones a scanner can fill in; others (criticality, end-of-life, patch status) need your input."
95
+
96
+ [[checks]]
97
+ id = "IN-SBOM-003"
98
+ title = "Dependency relationships recorded"
99
+ severity = "low"
100
+ type = "dependencies-present"
101
+ references = ["certin-sbom-v1"]
102
+ message = "CERT-In's SBOM elements include each component's dependencies."
cbomly/packs/jp.toml ADDED
@@ -0,0 +1,44 @@
1
+ # Japan rule pack: government PQC migration target and FSA guidance for banks.
2
+ #
3
+ # REVIEW STATUS: draft (checked 2026-11-29; Japanese sources, our translation).
4
+
5
+ [pack]
6
+ id = "jp"
7
+ name = "Japan: government post-quantum migration by 2035 and FSA guidance for banks"
8
+ version = "2026.11-draft"
9
+ jurisdiction = "JP"
10
+ extends = ["baseline"]
11
+ review_status = "draft"
12
+ summary = "For vendors selling to Japanese government agencies and deposit-taking financial institutions."
13
+
14
+ [references.nco-pqc-interim]
15
+ title = "Migration to post-quantum cryptography in government agencies: interim summary (政府機関等における耐量子計算機暗号(PQC)への移行について(中間とりまとめ))"
16
+ issuer = "National Cybersecurity Office, Cabinet Secretariat (内閣官房国家サイバー統括室)"
17
+ date = "2025-11"
18
+ url = "https://www.cas.go.jp/jp/seisaku/pqc/"
19
+ status = "government policy: agencies migrate to PQC by 2035 in principle; ministries draw up a roadmap in FY2026; recommends a crypto inventory. Critical infrastructure and businesses are asked to consider it too."
20
+
21
+ [references.fsa-pqc-report]
22
+ title = "Report of the study group on deposit-taking financial institutions' response to post-quantum cryptography"
23
+ issuer = "Financial Services Agency (FSA)"
24
+ date = "2024-11-26"
25
+ url = "https://www.fsa.go.jp/singi/pqc/houkokusyo.pdf"
26
+ status = "study group report: high-priority systems able to use PQC by the mid-2030s; inventory crypto use regularly"
27
+
28
+ [[rules]]
29
+ id = "JP-PQC-001"
30
+ title = "Quantum-vulnerable crypto: Japanese government target 2035"
31
+ severity = "high"
32
+ match = { quantum = ["vulnerable"] }
33
+ message = "Japan's National Cybersecurity Office targets PQC migration of government systems by 2035, earlier for long-retention sensitive data. The FSA asks banks to make PQC available on high-priority systems by the mid-2030s."
34
+ action = "Keep this CBOM with each release and give Japanese customers a dated plan, with hybrid options for long-lived data."
35
+ references = ["nco-pqc-interim", "fsa-pqc-report"]
36
+ due = "2035 (government); mid-2030s (banks)"
37
+
38
+ [[checks]]
39
+ id = "JP-CBOM-001"
40
+ title = "Cryptographic inventory (CBOM) produced"
41
+ severity = "medium"
42
+ type = "crypto-inventory"
43
+ references = ["nco-pqc-interim", "fsa-pqc-report"]
44
+ message = "Both the NCO and the FSA recommend a crypto inventory (クリプト・インベントリ) as the first step."
@@ -0,0 +1,55 @@
1
+ # PCI DSS rule pack: cryptography inventory requirements in PCI DSS v4.0.1.
2
+ #
3
+ # REVIEW STATUS: draft (checked 2026-11-29 against secondary summaries; the PCI SSC standard is
4
+ # behind a licence click-through and was not re-read). Requirement numbers need checking.
5
+
6
+ [pack]
7
+ id = "pci-dss"
8
+ name = "PCI DSS v4.0.1: cryptography inventory and review"
9
+ version = "2026.11-draft"
10
+ jurisdiction = "global"
11
+ extends = ["baseline"]
12
+ review_status = "draft"
13
+ summary = "For vendors whose software stores, processes or transmits payment card data, anywhere in the world."
14
+
15
+ [references.pci-dss-4]
16
+ title = "Payment Card Industry Data Security Standard v4.0.1 (requirements 4.2.1, 4.2.1.1, 6.3.2 and 12.3.3)"
17
+ issuer = "PCI Security Standards Council"
18
+ date = "2024-06"
19
+ url = "https://www.pcisecuritystandards.org/document_library/"
20
+ status = "contractual through the card brands. Requirements 4.2.1.1 and 12.3.3 became mandatory on 2025-03-31."
21
+
22
+ [[rules]]
23
+ id = "PCI-12.3.3"
24
+ title = "Quantum-vulnerable cipher suites: needs a response plan"
25
+ severity = "medium"
26
+ match = { quantum = ["vulnerable"] }
27
+ message = "Requirement 12.3.3 asks for all cipher suites and protocols in use to be documented and reviewed at least every 12 months, with a plan to respond to anticipated changes in cryptographic vulnerabilities. Quantum attacks on RSA and elliptic curves are the best-known anticipated change."
28
+ action = "Add these items to the yearly cipher suite review and record the post-quantum replacement and target date for each."
29
+ references = ["pci-dss-4"]
30
+ due = "Every 12 months (mandatory since 2025-03-31)"
31
+
32
+ [[rules]]
33
+ id = "PCI-4.2.1"
34
+ title = "Expired certificate"
35
+ severity = "high"
36
+ match = { expired = true }
37
+ message = "Requirement 4.2.1 requires certificates that protect card data in transit to be valid and not expired or revoked."
38
+ action = "Renew or remove the certificate."
39
+ references = ["pci-dss-4"]
40
+
41
+ [[checks]]
42
+ id = "PCI-12.3.3-INV"
43
+ title = "Inventory of cipher suites, protocols, keys and certificates"
44
+ severity = "medium"
45
+ type = "crypto-inventory"
46
+ references = ["pci-dss-4"]
47
+ message = "Requirement 12.3.3 needs an up-to-date list of cipher suites and protocols and where they are used; 4.2.1.1 needs an inventory of trusted keys and certificates. The CBOM is evidence for both, for the code you scanned."
48
+
49
+ [[checks]]
50
+ id = "PCI-6.3.2"
51
+ title = "Inventory of software components"
52
+ severity = "medium"
53
+ type = "sbom-present"
54
+ references = ["pci-dss-4"]
55
+ message = "Requirement 6.3.2 asks for an inventory of bespoke and custom software and the third-party components in it. An SBOM covers this."
cbomly/packs/sg.toml ADDED
@@ -0,0 +1,45 @@
1
+ # Singapore rule pack: MAS quantum advisory and proposed quantum-safe migration timelines.
2
+ #
3
+ # REVIEW STATUS: draft (checked 2026-11-29 against MAS consultation paper P019-2026).
4
+ # The 2027-2034 dates are PROPOSALS: the consultation closed on 2026-11-23 and MAS may change them.
5
+
6
+ [pack]
7
+ id = "sg"
8
+ name = "Singapore: MAS quantum-safe migration (advisory and proposed timelines)"
9
+ version = "2026.11-draft"
10
+ jurisdiction = "SG"
11
+ extends = ["baseline"]
12
+ review_status = "draft"
13
+ summary = "For vendors selling to banks, insurers and other financial institutions regulated by MAS."
14
+
15
+ [references.mas-quantum-advisory]
16
+ title = "Advisory on Addressing the Cybersecurity Risks Associated with Quantum (MAS/TCRS/2024/01)"
17
+ issuer = "Monetary Authority of Singapore (MAS)"
18
+ date = "2024-02-20"
19
+ url = "https://www.mas.gov.sg/regulation/circulars"
20
+ status = "advisory: keep an inventory of cryptographic assets and work with IT vendors on quantum risk (content from secondary summaries)"
21
+
22
+ [references.mas-p019-2026]
23
+ title = "Consultation Paper on Quantum-Safe Migration Guidance and Timelines for the Financial Sector (P019-2026)"
24
+ issuer = "MAS"
25
+ date = "2026-11"
26
+ url = "https://www.mas.gov.sg/-/media/mas-media-library/publications/consultations/trpd/2026/p019-2026-november-2026-consultation-paper-on-quantumsafe-migration-guidance-and-timelines-for-the-f.pdf"
27
+ status = "PROPOSED supervisory expectations, not legally binding. Plan by 2027-12-31; critical systems by 2030-12-31; all systems by 2034-12-31. CII owners and D-SIBs submit plans by 2027-06-30 and migrate CII by 2029-12-31. New systems must support quantum-safe algorithms or be upgradable."
28
+
29
+ [[rules]]
30
+ id = "SG-PQC-001"
31
+ title = "Quantum-vulnerable crypto in systems sold to Singapore financial institutions"
32
+ severity = "high"
33
+ match = { quantum = ["vulnerable"] }
34
+ message = "MAS proposes that financial institutions migrate critical systems to quantum-safe crypto by 31 December 2030 and all systems by 31 December 2034, and that new systems support quantum-safe algorithms or can be upgraded to them. Institutions are expected to align vendors' roadmaps with these dates."
35
+ action = "Give each Singapore customer a dated migration roadmap and show that your product can be upgraded to ML-KEM and ML-DSA."
36
+ references = ["mas-p019-2026", "mas-quantum-advisory"]
37
+ due = "2030-12-31 (critical, proposed), 2034-12-31 (all, proposed)"
38
+
39
+ [[checks]]
40
+ id = "SG-CBOM-001"
41
+ title = "Cryptographic inventory (CBOM) produced"
42
+ severity = "medium"
43
+ type = "crypto-inventory"
44
+ references = ["mas-quantum-advisory", "mas-p019-2026"]
45
+ message = "MAS asks institutions for a comprehensive inventory of cryptographic assets (algorithms, key lengths, protocols, systems and dependencies), so they will ask you what your product uses."
cbomly/packs/uk.toml ADDED
@@ -0,0 +1,47 @@
1
+ # United Kingdom rule pack: NCSC post-quantum migration timelines.
2
+ #
3
+ # REVIEW STATUS: draft (checked 2026-11-29 against the NCSC guidance, version 1.0 of 2025-03-20).
4
+
5
+ [pack]
6
+ id = "uk"
7
+ name = "United Kingdom: NCSC post-quantum migration timelines"
8
+ version = "2026.11-draft"
9
+ jurisdiction = "GB"
10
+ extends = ["baseline"]
11
+ review_status = "draft"
12
+ summary = "For vendors selling to UK government, critical national infrastructure and large organisations following NCSC guidance."
13
+
14
+ [references.ncsc-pqc-timelines]
15
+ title = "Timelines for migration to post-quantum cryptography"
16
+ issuer = "National Cyber Security Centre (NCSC)"
17
+ date = "2025-03-20"
18
+ url = "https://www.ncsc.gov.uk/guidance/pqc-migration-timelines"
19
+ status = "guidance. 2028: finish discovery and assessment, make an initial plan and tell suppliers what you need; 2031: finish highest-priority migrations; 2035: complete migration."
20
+
21
+ [[rules]]
22
+ id = "UK-PQC-001"
23
+ title = "Quantum-vulnerable crypto: discovery by 2028, migration by 2035"
24
+ severity = "high"
25
+ match = { quantum = ["vulnerable"] }
26
+ message = "The NCSC asks organisations to finish discovering where they use quantum-vulnerable crypto by 2028, to tell their suppliers what they need, and to complete migration by 2035. UK customers will ask you for this list and a plan."
27
+ action = "Send this CBOM and a dated migration plan to UK customers who ask. Show which items you will move by 2031."
28
+ references = ["ncsc-pqc-timelines"]
29
+ due = "2028 (discovery), 2035 (complete)"
30
+
31
+ [[rules]]
32
+ id = "UK-PQC-002"
33
+ title = "Quantum-vulnerable crypto protecting critical assets (by 2031)"
34
+ severity = "high"
35
+ match = { quantum = ["vulnerable"], primitive = ["key-agree", "pke", "signature"] }
36
+ message = "The NCSC expects the highest-priority migrations, protecting the most critical assets, to be complete by 2031. Key exchange for long-lived data and signatures on software updates are usually top of the list."
37
+ action = "Offer hybrid X25519MLKEM768 in TLS and ML-DSA (or hybrid) signatures on releases."
38
+ references = ["ncsc-pqc-timelines"]
39
+ due = "2031"
40
+
41
+ [[checks]]
42
+ id = "UK-CBOM-001"
43
+ title = "Cryptographic inventory (CBOM) produced"
44
+ severity = "medium"
45
+ type = "crypto-inventory"
46
+ references = ["ncsc-pqc-timelines"]
47
+ message = "The NCSC's first phase, due by 2028, is discovery: finding where cryptography is used, including in suppliers' products."