cernus-core 0.1.0__tar.gz
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.
- cernus_core-0.1.0/.gitignore +10 -0
- cernus_core-0.1.0/LICENSE +202 -0
- cernus_core-0.1.0/PKG-INFO +51 -0
- cernus_core-0.1.0/README.md +27 -0
- cernus_core-0.1.0/catalogs/nist-800-53r5-crosswalk.json +139 -0
- cernus_core-0.1.0/contracts/asset.schema.json +39 -0
- cernus_core-0.1.0/contracts/common.schema.json +22 -0
- cernus_core-0.1.0/contracts/control-result.schema.json +23 -0
- cernus_core-0.1.0/contracts/decision.schema.json +26 -0
- cernus_core-0.1.0/contracts/deployment.schema.json +37 -0
- cernus_core-0.1.0/contracts/evidence-record.schema.json +23 -0
- cernus_core-0.1.0/contracts/finding.schema.json +236 -0
- cernus_core-0.1.0/contracts/ingest-batch.schema.json +34 -0
- cernus_core-0.1.0/contracts/policy.schema.json +49 -0
- cernus_core-0.1.0/contracts/system.schema.json +22 -0
- cernus_core-0.1.0/pyproject.toml +46 -0
- cernus_core-0.1.0/src/cernus_core/__init__.py +36 -0
- cernus_core-0.1.0/src/cernus_core/catalogs.py +36 -0
- cernus_core-0.1.0/src/cernus_core/contracts.py +98 -0
- cernus_core-0.1.0/src/cernus_core/ingest.py +103 -0
- cernus_core-0.1.0/src/cernus_core/model.py +332 -0
- cernus_core-0.1.0/src/cernus_core/plugins/__init__.py +38 -0
- cernus_core-0.1.0/src/cernus_core/plugins/base.py +96 -0
- cernus_core-0.1.0/src/cernus_core/plugins/registry.py +180 -0
- cernus_core-0.1.0/src/cernus_core/policy.py +244 -0
- cernus_core-0.1.0/src/cernus_core/serialize.py +92 -0
- cernus_core-0.1.0/tests/test_catalogs.py +10 -0
- cernus_core-0.1.0/tests/test_contracts.py +44 -0
- cernus_core-0.1.0/tests/test_model.py +55 -0
- cernus_core-0.1.0/tests/test_oss_boundary.py +30 -0
- cernus_core-0.1.0/tests/test_plugins_registry.py +67 -0
- cernus_core-0.1.0/tests/test_policy.py +111 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: cernus-core
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Cernus core: canonical security model, versioned JSON Schema contracts, plugin SDK, and deterministic triage policy engine for deployed applications.
|
|
5
|
+
Project-URL: Homepage, https://github.com/Inceptium-ai/cernus-framework
|
|
6
|
+
Project-URL: Repository, https://github.com/Inceptium-ai/cernus-framework
|
|
7
|
+
Project-URL: Issues, https://github.com/Inceptium-ai/cernus-framework/issues
|
|
8
|
+
Author-email: Inceptium <opensource@inceptium.ai>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: compliance,devsecops,fedramp,oscal,sarif,sbom,vulnerability-management
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Information Technology
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Security
|
|
20
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
21
|
+
Requires-Python: >=3.12
|
|
22
|
+
Requires-Dist: jsonschema>=4.21
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
|
|
25
|
+
# cernus-core
|
|
26
|
+
|
|
27
|
+
The open core of [Cernus](https://github.com/Inceptium-ai/cernus-framework):
|
|
28
|
+
runtime security, continuous compliance, and ATO evidence for deployed
|
|
29
|
+
applications.
|
|
30
|
+
|
|
31
|
+
`cernus-core` has no server, no database, and no network calls of its own. It gives you:
|
|
32
|
+
|
|
33
|
+
- **Contracts** (`contracts/*.schema.json`) — versioned JSON Schemas for
|
|
34
|
+
`Finding`, `Asset`, `System`, `Deployment`, `PolicySet`, `Decision`,
|
|
35
|
+
`ControlResult`, `EvidenceRecord`, and the `IngestBatch` envelope. Any tool
|
|
36
|
+
can produce or consume Cernus objects; the schemas ship inside the wheel.
|
|
37
|
+
- **Model** (`cernus_core.model`) — dataclasses for those objects, with stable
|
|
38
|
+
fingerprints for deduplication.
|
|
39
|
+
- **Plugin SDK** (`cernus_core.plugins`) — `Connector` (turn a tool's output
|
|
40
|
+
into an `IngestBatch`), `Scanner` (invoke a tool you already have),
|
|
41
|
+
`Exporter` (write OSCAL/SARIF). Plugins register via entry points; built-ins
|
|
42
|
+
win on name collision; a broken plugin is reported, never fatal.
|
|
43
|
+
- **Policy engine** (`cernus_core.policy`) — deterministic, priority-ordered,
|
|
44
|
+
first-match triage rules with a recorded reason per decision, and an explicit
|
|
45
|
+
*unmatched* outcome that becomes the human-review queue.
|
|
46
|
+
|
|
47
|
+
Most people want the CLI: `pip install cernus-cli`.
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
Apache-2.0.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# cernus-core
|
|
2
|
+
|
|
3
|
+
The open core of [Cernus](https://github.com/Inceptium-ai/cernus-framework):
|
|
4
|
+
runtime security, continuous compliance, and ATO evidence for deployed
|
|
5
|
+
applications.
|
|
6
|
+
|
|
7
|
+
`cernus-core` has no server, no database, and no network calls of its own. It gives you:
|
|
8
|
+
|
|
9
|
+
- **Contracts** (`contracts/*.schema.json`) — versioned JSON Schemas for
|
|
10
|
+
`Finding`, `Asset`, `System`, `Deployment`, `PolicySet`, `Decision`,
|
|
11
|
+
`ControlResult`, `EvidenceRecord`, and the `IngestBatch` envelope. Any tool
|
|
12
|
+
can produce or consume Cernus objects; the schemas ship inside the wheel.
|
|
13
|
+
- **Model** (`cernus_core.model`) — dataclasses for those objects, with stable
|
|
14
|
+
fingerprints for deduplication.
|
|
15
|
+
- **Plugin SDK** (`cernus_core.plugins`) — `Connector` (turn a tool's output
|
|
16
|
+
into an `IngestBatch`), `Scanner` (invoke a tool you already have),
|
|
17
|
+
`Exporter` (write OSCAL/SARIF). Plugins register via entry points; built-ins
|
|
18
|
+
win on name collision; a broken plugin is reported, never fatal.
|
|
19
|
+
- **Policy engine** (`cernus_core.policy`) — deterministic, priority-ordered,
|
|
20
|
+
first-match triage rules with a recorded reason per decision, and an explicit
|
|
21
|
+
*unmatched* outcome that becomes the human-review queue.
|
|
22
|
+
|
|
23
|
+
Most people want the CLI: `pip install cernus-cli`.
|
|
24
|
+
|
|
25
|
+
## License
|
|
26
|
+
|
|
27
|
+
Apache-2.0.
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"catalog": "nist-800-53r5",
|
|
3
|
+
"title": "NIST SP 800-53 Rev. 5 — Cernus runtime crosswalk (Moderate subset)",
|
|
4
|
+
"description": "Controls Cernus can evaluate from runtime facts: scan freshness, open findings and SLA state, SBOM inventory, gate evidence, exceptions. Each control lists the facts it reads and the rule used. Extend by adding entries; the evaluator is generic over `rule`.",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"controls": [
|
|
7
|
+
{
|
|
8
|
+
"id": "RA-5",
|
|
9
|
+
"title": "Vulnerability Monitoring and Scanning",
|
|
10
|
+
"family": "RA",
|
|
11
|
+
"rule": "scan_fresh",
|
|
12
|
+
"facts": ["freshness.stale", "last_scan_at"],
|
|
13
|
+
"evidence_kinds": ["scan", "rescan", "sbom"],
|
|
14
|
+
"statement": "Monitor and scan for vulnerabilities in the system and hosted applications at the organization-defined frequency (FedRAMP: monthly), and when new vulnerabilities are identified."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "RA-5(2)",
|
|
18
|
+
"title": "Update Vulnerabilities to be Scanned",
|
|
19
|
+
"family": "RA",
|
|
20
|
+
"rule": "rescan_present",
|
|
21
|
+
"facts": ["evidence.rescan"],
|
|
22
|
+
"evidence_kinds": ["rescan"],
|
|
23
|
+
"statement": "Update the system vulnerabilities to be scanned prior to a new scan and when new vulnerabilities are identified and reported."
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "SI-2",
|
|
27
|
+
"title": "Flaw Remediation",
|
|
28
|
+
"family": "SI",
|
|
29
|
+
"rule": "sla_met",
|
|
30
|
+
"facts": ["sla.overdue_total", "findings.open"],
|
|
31
|
+
"evidence_kinds": ["rescan", "change"],
|
|
32
|
+
"statement": "Identify, report, and correct system flaws; install security-relevant updates within the organization-defined time period (FedRAMP: 30/90/180 days by severity)."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "SI-2(2)",
|
|
36
|
+
"title": "Automated Flaw Remediation Status",
|
|
37
|
+
"family": "SI",
|
|
38
|
+
"rule": "rescan_present",
|
|
39
|
+
"facts": ["evidence.rescan"],
|
|
40
|
+
"evidence_kinds": ["rescan"],
|
|
41
|
+
"statement": "Determine if system components have applicable security-relevant updates installed using automated mechanisms."
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "CM-8",
|
|
45
|
+
"title": "System Component Inventory",
|
|
46
|
+
"family": "CM",
|
|
47
|
+
"rule": "inventory_with_sbom",
|
|
48
|
+
"facts": ["assets", "sboms"],
|
|
49
|
+
"evidence_kinds": ["sbom", "deploy"],
|
|
50
|
+
"statement": "Develop and document an inventory of system components that accurately reflects the system and is at the level of granularity deemed necessary for tracking and reporting."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "CM-3",
|
|
54
|
+
"title": "Configuration Change Control",
|
|
55
|
+
"family": "CM",
|
|
56
|
+
"rule": "change_controlled",
|
|
57
|
+
"facts": ["latest_deployment.change_id", "latest_deployment.gate_status"],
|
|
58
|
+
"evidence_kinds": ["gate_run", "deploy"],
|
|
59
|
+
"statement": "Determine and document the types of changes that are configuration-controlled; review and approve changes with explicit consideration for security impact."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "CM-6",
|
|
63
|
+
"title": "Configuration Settings",
|
|
64
|
+
"family": "CM",
|
|
65
|
+
"rule": "no_open_category",
|
|
66
|
+
"params": {"category": "misconfiguration"},
|
|
67
|
+
"facts": ["findings.open_by_category.misconfiguration"],
|
|
68
|
+
"evidence_kinds": ["scan"],
|
|
69
|
+
"statement": "Establish, document, and implement configuration settings using organization-defined security configuration checklists; identify and correct deviations."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "IA-5(7)",
|
|
73
|
+
"title": "No Embedded Unencrypted Static Authenticators",
|
|
74
|
+
"family": "IA",
|
|
75
|
+
"rule": "no_open_category",
|
|
76
|
+
"params": {"category": "secret"},
|
|
77
|
+
"facts": ["findings.open_by_category.secret"],
|
|
78
|
+
"evidence_kinds": ["scan", "gate_run"],
|
|
79
|
+
"statement": "Ensure that unencrypted static authenticators are not embedded in applications or other forms of static storage."
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"id": "SA-11",
|
|
83
|
+
"title": "Developer Testing and Evaluation",
|
|
84
|
+
"family": "SA",
|
|
85
|
+
"rule": "gates_passed",
|
|
86
|
+
"params": {"gates": ["unit-tests"]},
|
|
87
|
+
"facts": ["latest_deployment.evidence.gate_results"],
|
|
88
|
+
"evidence_kinds": ["gate_run"],
|
|
89
|
+
"statement": "Require the developer of the system to create and implement a security assessment plan and perform testing and evaluation at the organization-defined depth and coverage."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "SA-11(1)",
|
|
93
|
+
"title": "Static Code Analysis",
|
|
94
|
+
"family": "SA",
|
|
95
|
+
"rule": "gates_passed",
|
|
96
|
+
"params": {"gates": ["sast"]},
|
|
97
|
+
"facts": ["latest_deployment.evidence.gate_results"],
|
|
98
|
+
"evidence_kinds": ["gate_run"],
|
|
99
|
+
"statement": "Require the developer to employ static code analysis tools to identify common flaws and document the results of the analysis."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "SA-11(2)",
|
|
103
|
+
"title": "Threat Modeling and Vulnerability Analyses",
|
|
104
|
+
"family": "SA",
|
|
105
|
+
"rule": "gates_passed",
|
|
106
|
+
"params": {"gates": ["dependency-scan"]},
|
|
107
|
+
"facts": ["latest_deployment.evidence.gate_results"],
|
|
108
|
+
"evidence_kinds": ["gate_run"],
|
|
109
|
+
"statement": "Require the developer to perform vulnerability analyses during development and the subsequent testing and evaluation of the system."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "SR-4",
|
|
113
|
+
"title": "Provenance",
|
|
114
|
+
"family": "SR",
|
|
115
|
+
"rule": "inventory_with_sbom",
|
|
116
|
+
"facts": ["assets", "sboms"],
|
|
117
|
+
"evidence_kinds": ["sbom", "deploy"],
|
|
118
|
+
"statement": "Document, monitor, and maintain valid provenance of systems, system components, and associated data."
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"id": "CA-7",
|
|
122
|
+
"title": "Continuous Monitoring",
|
|
123
|
+
"family": "CA",
|
|
124
|
+
"rule": "scan_fresh",
|
|
125
|
+
"facts": ["freshness.stale"],
|
|
126
|
+
"evidence_kinds": ["scan", "rescan", "control_evaluation"],
|
|
127
|
+
"statement": "Develop a system-level continuous monitoring strategy and implement continuous monitoring including ongoing control assessments and security status reporting."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "CA-5",
|
|
131
|
+
"title": "Plan of Action and Milestones",
|
|
132
|
+
"family": "CA",
|
|
133
|
+
"rule": "poam_current",
|
|
134
|
+
"facts": ["sla.overdue_total", "exceptions"],
|
|
135
|
+
"evidence_kinds": ["exception", "control_evaluation"],
|
|
136
|
+
"statement": "Develop a plan of action and milestones to document planned remediation actions and update it based on findings from assessments and continuous monitoring."
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cernus.ai/schemas/asset.schema.json",
|
|
4
|
+
"title": "Cernus Asset",
|
|
5
|
+
"description": "Something that exists in a deployed environment and can carry findings.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["apiVersion", "kind", "id", "asset_kind", "name"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"apiVersion": { "const": "cernus.ai/v0" },
|
|
11
|
+
"kind": { "const": "Asset" },
|
|
12
|
+
"id": { "$ref": "common.schema.json#/$defs/id" },
|
|
13
|
+
"asset_kind": { "enum": ["container_image", "container", "service", "host", "database", "cloud_resource", "repository", "kubernetes_workload", "network", "identity", "other"] },
|
|
14
|
+
"name": { "type": "string" },
|
|
15
|
+
"identifiers": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"description": "Tool-neutral identity facets used for reconciliation.",
|
|
18
|
+
"additionalProperties": { "type": "string" },
|
|
19
|
+
"properties": {
|
|
20
|
+
"digest": { "type": "string" },
|
|
21
|
+
"image_ref": { "type": "string" },
|
|
22
|
+
"purl": { "type": "string" },
|
|
23
|
+
"arn": { "type": "string" },
|
|
24
|
+
"hostname": { "type": "string" },
|
|
25
|
+
"ip": { "type": "string" },
|
|
26
|
+
"url": { "type": "string" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"system_id": { "type": ["string", "null"] },
|
|
30
|
+
"deployment_id": { "type": ["string", "null"] },
|
|
31
|
+
"environment": { "$ref": "common.schema.json#/$defs/environment" },
|
|
32
|
+
"internet_facing": { "type": ["boolean", "null"] },
|
|
33
|
+
"data_classification": { "$ref": "common.schema.json#/$defs/dataClassification" },
|
|
34
|
+
"owner": { "type": ["string", "null"] },
|
|
35
|
+
"parent_id": { "type": ["string", "null"], "description": "Topology edge: the asset this one runs inside / behind" },
|
|
36
|
+
"tags": { "type": "array", "items": { "type": "string" } },
|
|
37
|
+
"source": { "$ref": "common.schema.json#/$defs/source" }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cernus.ai/schemas/common.schema.json",
|
|
4
|
+
"title": "Cernus shared definitions",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"id": { "type": "string", "minLength": 1 },
|
|
7
|
+
"timestamp": { "type": "string", "format": "date-time" },
|
|
8
|
+
"severity": { "enum": ["critical", "high", "medium", "low", "info"] },
|
|
9
|
+
"environment": { "enum": ["production", "staging", "development", "test", "ephemeral", "unknown"] },
|
|
10
|
+
"dataClassification": { "enum": ["public", "internal", "confidential", "pii", "phi", "cui", "unknown"] },
|
|
11
|
+
"source": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"required": ["tool"],
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"properties": {
|
|
16
|
+
"tool": { "type": "string", "description": "Producing tool, e.g. trivy, genesis-gates, nessus" },
|
|
17
|
+
"version": { "type": ["string", "null"] },
|
|
18
|
+
"connector": { "type": ["string", "null"], "description": "Cernus connector that normalized it" }
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cernus.ai/schemas/control-result.schema.json",
|
|
4
|
+
"title": "Cernus Control Result",
|
|
5
|
+
"description": "The evaluated state of one control for one system at a point in time. OSCAL-aligned: exports as an assessment-results observation/finding.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["apiVersion", "kind", "id", "system_id", "catalog", "control_id", "status", "evaluated_at"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"apiVersion": { "const": "cernus.ai/v0" },
|
|
11
|
+
"kind": { "const": "ControlResult" },
|
|
12
|
+
"id": { "$ref": "common.schema.json#/$defs/id" },
|
|
13
|
+
"system_id": { "$ref": "common.schema.json#/$defs/id" },
|
|
14
|
+
"catalog": { "type": "string", "description": "e.g. nist-800-53r5" },
|
|
15
|
+
"control_id": { "type": "string", "description": "e.g. RA-5, SI-2(2)" },
|
|
16
|
+
"status": { "enum": ["satisfied", "partial", "unsatisfied", "not_applicable", "unknown"] },
|
|
17
|
+
"rationale": { "type": ["string", "null"] },
|
|
18
|
+
"evidence_ids": { "type": "array", "items": { "type": "string" } },
|
|
19
|
+
"evaluated_at": { "$ref": "common.schema.json#/$defs/timestamp" },
|
|
20
|
+
"freshness_ttl_hours": { "type": ["integer", "null"], "minimum": 1 },
|
|
21
|
+
"evaluator": { "type": "string", "description": "rule id, validator plugin, or human" }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cernus.ai/schemas/decision.schema.json",
|
|
4
|
+
"title": "Cernus Decision",
|
|
5
|
+
"description": "One triage outcome for one finding, with provenance. Every classification — by rule, by model, or by a person — is one of these.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["apiVersion", "kind", "id", "finding_id", "actor", "action", "created_at"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"apiVersion": { "const": "cernus.ai/v0" },
|
|
11
|
+
"kind": { "const": "Decision" },
|
|
12
|
+
"id": { "$ref": "common.schema.json#/$defs/id" },
|
|
13
|
+
"finding_id": { "$ref": "common.schema.json#/$defs/id" },
|
|
14
|
+
"actor": { "enum": ["rule", "model", "human"] },
|
|
15
|
+
"policy_set_id": { "type": ["string", "null"] },
|
|
16
|
+
"policy_set_version": { "type": ["integer", "null"] },
|
|
17
|
+
"rule_id": { "type": ["string", "null"] },
|
|
18
|
+
"model": { "type": ["string", "null"] },
|
|
19
|
+
"actor_name": { "type": ["string", "null"], "description": "Username for human decisions" },
|
|
20
|
+
"action": { "enum": ["classify", "assign", "set_autonomy", "suppress", "accept", "escalate", "unmatched"] },
|
|
21
|
+
"params": { "type": "object", "additionalProperties": true },
|
|
22
|
+
"reason": { "type": ["string", "null"] },
|
|
23
|
+
"confidence": { "type": ["number", "null"], "minimum": 0, "maximum": 1 },
|
|
24
|
+
"created_at": { "$ref": "common.schema.json#/$defs/timestamp" }
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cernus.ai/schemas/deployment.schema.json",
|
|
4
|
+
"title": "Cernus Deployment",
|
|
5
|
+
"description": "One act of putting a system into an environment. Carries the build-time evidence so Day-2 findings can be compared against what was proven at deploy time.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["apiVersion", "kind", "id", "system_id", "environment", "deployed_at"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"apiVersion": { "const": "cernus.ai/v0" },
|
|
11
|
+
"kind": { "const": "Deployment" },
|
|
12
|
+
"id": { "$ref": "common.schema.json#/$defs/id" },
|
|
13
|
+
"system_id": { "$ref": "common.schema.json#/$defs/id" },
|
|
14
|
+
"environment": { "$ref": "common.schema.json#/$defs/environment" },
|
|
15
|
+
"deployed_at": { "$ref": "common.schema.json#/$defs/timestamp" },
|
|
16
|
+
"deployed_by": { "type": ["string", "null"] },
|
|
17
|
+
"change_id": { "type": ["string", "null"], "description": "Genesis change id / PR / ticket" },
|
|
18
|
+
"artifact_refs": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"required": ["name"],
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"properties": {
|
|
25
|
+
"name": { "type": "string" },
|
|
26
|
+
"image_ref": { "type": ["string", "null"] },
|
|
27
|
+
"digest": { "type": ["string", "null"] }
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"sbom_ids": { "type": "array", "items": { "type": "string" } },
|
|
32
|
+
"manifest": { "type": ["object", "null"], "description": "Embedded genesis-gates DeliveryManifest, if any" },
|
|
33
|
+
"evidence": { "type": ["object", "null"], "description": "Embedded genesis-gates EvidencePackage, if any" },
|
|
34
|
+
"preview_url": { "type": ["string", "null"] },
|
|
35
|
+
"source": { "$ref": "common.schema.json#/$defs/source" }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://cernus.ai/schemas/evidence-record.schema.json",
|
|
4
|
+
"title": "Cernus Evidence Record",
|
|
5
|
+
"description": "Immutable, hashed record of something that happened: a scan, a gate run, a decision, a change, a verification. The ledger primitive behind verified closure and ATO evidence.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["apiVersion", "kind", "id", "record_kind", "subject_kind", "subject_id", "hash", "produced_by", "created_at"],
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"apiVersion": { "const": "cernus.ai/v0" },
|
|
11
|
+
"kind": { "const": "EvidenceRecord" },
|
|
12
|
+
"id": { "$ref": "common.schema.json#/$defs/id" },
|
|
13
|
+
"record_kind": { "enum": ["scan", "gate_run", "sbom", "decision", "change", "deploy", "rescan", "approval", "exception", "control_evaluation", "other"] },
|
|
14
|
+
"subject_kind": { "enum": ["finding", "deployment", "system", "asset", "control", "policy_set"] },
|
|
15
|
+
"subject_id": { "$ref": "common.schema.json#/$defs/id" },
|
|
16
|
+
"summary": { "type": ["string", "null"] },
|
|
17
|
+
"payload": { "type": ["object", "null"] },
|
|
18
|
+
"payload_ref": { "type": ["string", "null"], "description": "URI to a stored blob when payload is large" },
|
|
19
|
+
"hash": { "type": "string", "description": "sha256 of canonical JSON of payload (or of the blob)" },
|
|
20
|
+
"produced_by": { "type": "string", "description": "tool, plugin, rule id, or user" },
|
|
21
|
+
"created_at": { "$ref": "common.schema.json#/$defs/timestamp" }
|
|
22
|
+
}
|
|
23
|
+
}
|