complyroll 0.3.0a0__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.
- complyroll-0.3.0a0/LICENSE +202 -0
- complyroll-0.3.0a0/NOTICE +35 -0
- complyroll-0.3.0a0/PKG-INFO +307 -0
- complyroll-0.3.0a0/README.md +283 -0
- complyroll-0.3.0a0/pyproject.toml +64 -0
- complyroll-0.3.0a0/setup.cfg +4 -0
- complyroll-0.3.0a0/src/complyroll/__init__.py +31 -0
- complyroll-0.3.0a0/src/complyroll/__main__.py +6 -0
- complyroll-0.3.0a0/src/complyroll/adapters/__init__.py +42 -0
- complyroll-0.3.0a0/src/complyroll/adapters/base.py +172 -0
- complyroll-0.3.0a0/src/complyroll/adapters/safeio.py +180 -0
- complyroll-0.3.0a0/src/complyroll/adapters/stig.py +841 -0
- complyroll-0.3.0a0/src/complyroll/cli.py +1274 -0
- complyroll-0.3.0a0/src/complyroll/compat/__init__.py +1 -0
- complyroll-0.3.0a0/src/complyroll/compat/stigroll.py +370 -0
- complyroll-0.3.0a0/src/complyroll/correlation/__init__.py +200 -0
- complyroll-0.3.0a0/src/complyroll/data/README.md +34 -0
- complyroll-0.3.0a0/src/complyroll/data/fedramp-accepted-vulnerability-info-schema-2026-06-24.json +31 -0
- complyroll-0.3.0a0/src/complyroll/data/fedramp-common-definitions-schema-2026-06-24.json +268 -0
- complyroll-0.3.0a0/src/complyroll/data/fedramp-consolidated-rules.json +12296 -0
- complyroll-0.3.0a0/src/complyroll/data/fedramp-historical-ver-activity-schema-2026-06-24.json +41 -0
- complyroll-0.3.0a0/src/complyroll/data/fedramp-rules-source.json +14 -0
- complyroll-0.3.0a0/src/complyroll/data/fedramp-ver-schemas-source.json +37 -0
- complyroll-0.3.0a0/src/complyroll/data/fedramp-vulnerability-detail-report-schema-2026-06-24.json +31 -0
- complyroll-0.3.0a0/src/complyroll/events/__init__.py +89 -0
- complyroll-0.3.0a0/src/complyroll/events/contracts.py +655 -0
- complyroll-0.3.0a0/src/complyroll/events/repository.py +683 -0
- complyroll-0.3.0a0/src/complyroll/history/__init__.py +97 -0
- complyroll-0.3.0a0/src/complyroll/history/fold.py +1166 -0
- complyroll-0.3.0a0/src/complyroll/history/writers.py +942 -0
- complyroll-0.3.0a0/src/complyroll/models.py +682 -0
- complyroll-0.3.0a0/src/complyroll/policy/__init__.py +61 -0
- complyroll-0.3.0a0/src/complyroll/policy/rules.py +592 -0
- complyroll-0.3.0a0/src/complyroll/policy/source.py +248 -0
- complyroll-0.3.0a0/src/complyroll/py.typed +0 -0
- complyroll-0.3.0a0/src/complyroll/reports/__init__.py +65 -0
- complyroll-0.3.0a0/src/complyroll/reports/evaluations.py +492 -0
- complyroll-0.3.0a0/src/complyroll/reports/replay.py +267 -0
- complyroll-0.3.0a0/src/complyroll/reports/vdt.py +1538 -0
- complyroll-0.3.0a0/src/complyroll/schemas/__init__.py +57 -0
- complyroll-0.3.0a0/src/complyroll/schemas/source.py +380 -0
- complyroll-0.3.0a0/src/complyroll/schemas/validation.py +215 -0
- complyroll-0.3.0a0/src/complyroll/store/__init__.py +37 -0
- complyroll-0.3.0a0/src/complyroll/store/sqlite.py +1667 -0
- complyroll-0.3.0a0/src/complyroll.egg-info/PKG-INFO +307 -0
- complyroll-0.3.0a0/src/complyroll.egg-info/SOURCES.txt +62 -0
- complyroll-0.3.0a0/src/complyroll.egg-info/dependency_links.txt +1 -0
- complyroll-0.3.0a0/src/complyroll.egg-info/entry_points.txt +3 -0
- complyroll-0.3.0a0/src/complyroll.egg-info/requires.txt +1 -0
- complyroll-0.3.0a0/src/complyroll.egg-info/top_level.txt +1 -0
- complyroll-0.3.0a0/tests/test_adapters.py +231 -0
- complyroll-0.3.0a0/tests/test_cli.py +2365 -0
- complyroll-0.3.0a0/tests/test_compat.py +142 -0
- complyroll-0.3.0a0/tests/test_correlation.py +273 -0
- complyroll-0.3.0a0/tests/test_events.py +1816 -0
- complyroll-0.3.0a0/tests/test_history.py +2924 -0
- complyroll-0.3.0a0/tests/test_models.py +695 -0
- complyroll-0.3.0a0/tests/test_policy_rules.py +327 -0
- complyroll-0.3.0a0/tests/test_policy_source.py +25 -0
- complyroll-0.3.0a0/tests/test_replay.py +989 -0
- complyroll-0.3.0a0/tests/test_reports.py +1431 -0
- complyroll-0.3.0a0/tests/test_safeio.py +323 -0
- complyroll-0.3.0a0/tests/test_schemas.py +224 -0
- complyroll-0.3.0a0/tests/test_store.py +1726 -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,35 @@
|
|
|
1
|
+
ComplyRoll
|
|
2
|
+
Copyright 2026 Kyle Versluis
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
|
|
5
|
+
software except in compliance with the License. You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software distributed under the
|
|
10
|
+
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
|
11
|
+
either express or implied. See the License for the specific language governing permissions
|
|
12
|
+
and limitations under the License.
|
|
13
|
+
|
|
14
|
+
The "ComplyRoll" name is not licensed under the License (Section 6); it identifies this
|
|
15
|
+
project and may not be used to endorse or promote derived products without permission.
|
|
16
|
+
|
|
17
|
+
Third-party data redistributed unmodified under src/complyroll/data/:
|
|
18
|
+
|
|
19
|
+
fedramp-consolidated-rules.json
|
|
20
|
+
fedramp-common-definitions-schema-2026-06-24.json
|
|
21
|
+
fedramp-vulnerability-detail-report-schema-2026-06-24.json
|
|
22
|
+
fedramp-accepted-vulnerability-info-schema-2026-06-24.json
|
|
23
|
+
fedramp-historical-ver-activity-schema-2026-06-24.json
|
|
24
|
+
|
|
25
|
+
These files are published by the U.S. General Services Administration (GSA) FedRAMP Program
|
|
26
|
+
Management Office in the public repositories https://github.com/FedRAMP/rules and
|
|
27
|
+
https://github.com/FedRAMP/schemas. As works of the United States Government they are not
|
|
28
|
+
subject to copyright protection in the United States (17 U.S.C. 105). They are redistributed
|
|
29
|
+
here byte-for-byte at the Git commits recorded in src/complyroll/data/fedramp-rules-source.json
|
|
30
|
+
and src/complyroll/data/fedramp-ver-schemas-source.json, and they are not covered by the
|
|
31
|
+
License above. See src/complyroll/data/README.md for provenance details.
|
|
32
|
+
|
|
33
|
+
FedRAMP is a registered trademark of the U.S. General Services Administration. ComplyRoll is an
|
|
34
|
+
independent project and is not affiliated with, endorsed by, or approved by GSA or the FedRAMP
|
|
35
|
+
Program Management Office.
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: complyroll
|
|
3
|
+
Version: 0.3.0a0
|
|
4
|
+
Summary: Evidence automation for continuous authorization
|
|
5
|
+
Author: Kyle Versluis
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Repository, https://github.com/ComplyRoll/ComplyRoll
|
|
8
|
+
Project-URL: Issues, https://github.com/ComplyRoll/ComplyRoll/issues
|
|
9
|
+
Keywords: fedramp,fedramp-20x,vdr,security,compliance
|
|
10
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Topic :: Security
|
|
17
|
+
Classifier: Typing :: Typed
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
License-File: NOTICE
|
|
22
|
+
Requires-Dist: jsonschema[format-nongpl]<5,>=4.23
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# ComplyRoll
|
|
26
|
+
|
|
27
|
+
**A local-first evidence compiler for FedRAMP® 20x Vulnerability Detection and Response (VDR).**
|
|
28
|
+
|
|
29
|
+
ComplyRoll turns scanner observations, validation runs, and operational evidence into traceable
|
|
30
|
+
vulnerability cases, class-aware response clocks, and official-format FedRAMP reports that a
|
|
31
|
+
provider can publish and an independent assessor can recompute.
|
|
32
|
+
|
|
33
|
+
> **Project status (2026-08-22):** pre-alpha. Phase 0 (hardened ingestion) and Phase 1 are
|
|
34
|
+
> complete: `complyroll report vdt` compiles scanner artifacts into a schema-valid Vulnerability
|
|
35
|
+
> Detail Report, `complyroll validate` checks any report against the pinned official schemas, and
|
|
36
|
+
> the persisted path (`ingest`, `cases`, `report vdt --db`, `store verify`) records the same work
|
|
37
|
+
> as append-only history and rebuilds the report from it byte for byte. ComplyRoll does not
|
|
38
|
+
> produce a FedRAMP submission package and must not be represented as FedRAMP approved. PyPI
|
|
39
|
+
> carries pre-releases only (`pip install --pre complyroll`); the source checkout below is the
|
|
40
|
+
> development path.
|
|
41
|
+
|
|
42
|
+
## What runs today
|
|
43
|
+
|
|
44
|
+
| Surface | What it does |
|
|
45
|
+
|---|---|
|
|
46
|
+
| `complyroll report vdt ARTIFACT... --class C --package-uri URI --from T --to T [--evaluations FILE] [--detected-at T] [--as-of T] [--calendar-tz NAME] [-o FILE] [--markdown FILE]` | Compiles CKLB, CKL, XCCDF, and ARF files into an official-format Vulnerability Detail Report (`VER-RPT-VDT`): open findings grouped into vulnerabilities with stable tracking ids, class-aware deadlines with rule ids and force, overdue flags with explanations, and a Markdown twin rendered from the same records. Validated against the bundled official schema before anything is written |
|
|
47
|
+
| `complyroll ingest ARTIFACT... --db STORE [--as-of T] [--actor NAME]` | Records each artifact and its observations as typed events (`artifact.ingested`, `observation.recorded`) in an append-only SQLite store, validated against published contracts before they are written. Re-running over the same bytes appends nothing |
|
|
48
|
+
| `complyroll cases correlate\|attest-detection\|evaluate\|list\|history --db STORE` | Opens one case per vulnerability, records attested detection times and operator evaluations as events, lists cases, and prints one case's full history. A changed evaluation appends a second `case.evaluated` event; the earlier one stays readable |
|
|
49
|
+
| `complyroll report vdt --db STORE --class C --package-uri URI --from T --to T [--as-of T] [--calendar-tz NAME] [-o FILE] [--markdown FILE]` | Rebuilds the Vulnerability Detail Report from the event log through the same record compiler as the stateless path. The output is byte-identical to the stateless report for the same inputs, and that equality is a test |
|
|
50
|
+
| `complyroll store verify --db STORE` | Walks the whole log checking payload digests, sequence and stream-version contiguity, the sequence counter, and the schema definitions, then audits the domain (every payload against its published contract, every event against its stream kind and the artifact identity its stream names, every artifact stream for completeness in both directions and for repeated observation identifiers, every metadata envelope), and exits non-zero on any fault, including on files the normal open refuses |
|
|
51
|
+
| `complyroll validate REPORT --schema vulnerability-detail\|accepted-vulnerability\|historical-activity` | Validates a report against the pinned official schema, offline, printing JSON Pointers for every failure and the exact schema provenance |
|
|
52
|
+
| `stigroll <files> [--cci-list U_CCI_List.xml] [--format markdown\|csv\|json] [-o FILE]` | The predecessor STIG roll-up, rebuilt on the hardened adapters and locked to its original output byte-for-byte |
|
|
53
|
+
| `complyroll.adapters.ingest_stig_artifact(path)` | CKLB, CKL, XCCDF, and ARF files become immutable observations with artifact digest, parser identity, timestamps, and structured diagnostics |
|
|
54
|
+
| `complyroll.policy.load_bundled_policy(profile)` | Selects the 36 provider-facing VDR and VER rules for a 20x Class B or Class C profile from the pinned official dataset and calculates evaluation, PAIN response, and acceptance-threshold deadlines with full provenance, in the provider's calendar timezone |
|
|
55
|
+
| `complyroll.store.SQLiteEventStore` | Append-only event log with optimistic concurrency, payload digests, schema and tail-integrity verification, and projection checkpoints. Domain events are written only through `complyroll.events.EventRepository`, which validates every payload against a published contract (ADR 0008) |
|
|
56
|
+
|
|
57
|
+
The report compiler is stateless by design (ADR 0007): the same artifacts, evaluations, options,
|
|
58
|
+
and `--as-of` instant produce the same bytes, which is the property an independent assessor is
|
|
59
|
+
asked to test. The persisted path (ADR 0008) records the same inputs as typed events and rebuilds
|
|
60
|
+
this same report from the log, so changing an evaluation creates history instead of overwriting
|
|
61
|
+
it. Accepted-vulnerability and historical-activity reports are the next slice. See
|
|
62
|
+
[`docs/BUILD_PLAN.md`](docs/BUILD_PLAN.md).
|
|
63
|
+
|
|
64
|
+
## Quick start
|
|
65
|
+
|
|
66
|
+
From a source checkout:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
python3 -m venv .venv
|
|
70
|
+
.venv/bin/python -m pip install -e .
|
|
71
|
+
.venv/bin/python -m complyroll version
|
|
72
|
+
.venv/bin/python -m unittest discover -s tests -v
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Compile the synthetic fixtures into a Vulnerability Detail Report and validate it:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
complyroll report vdt \
|
|
79
|
+
tests/fixtures/ubuntu-host.cklb \
|
|
80
|
+
tests/fixtures/windows-host.ckl \
|
|
81
|
+
tests/fixtures/openscap-results.xml \
|
|
82
|
+
--class C \
|
|
83
|
+
--package-uri https://example.test/cpo \
|
|
84
|
+
--from 2026-08-01T00:00:00Z \
|
|
85
|
+
--to 2026-08-31T23:59:59Z \
|
|
86
|
+
--as-of 2026-08-21T12:00:00Z \
|
|
87
|
+
--detected-at 2026-08-01T00:00:00Z \
|
|
88
|
+
--evaluations examples/evaluations.json \
|
|
89
|
+
-o report.json \
|
|
90
|
+
--markdown report.md
|
|
91
|
+
|
|
92
|
+
complyroll validate report.json --schema vulnerability-detail
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
The fixtures declare no assessment timestamp, so `--detected-at` attests one; ComplyRoll never
|
|
96
|
+
substitutes file modification or ingestion time. `--evaluations` supplies the contextual judgement
|
|
97
|
+
a scanner cannot provide (IRV, LEV, PAIN, impact, rationale, evaluator; see
|
|
98
|
+
[`examples/evaluations.json`](examples/evaluations.json)). `--as-of` pins the instant overdue
|
|
99
|
+
flags are computed against, which makes the run reproducible byte for byte; the expected output
|
|
100
|
+
is [`tests/golden/vdt-fixtures.json`](tests/golden/vdt-fixtures.json) and
|
|
101
|
+
[`tests/golden/vdt-fixtures.md`](tests/golden/vdt-fixtures.md).
|
|
102
|
+
|
|
103
|
+
The report period selects contents: a vulnerability appears when it had activity inside
|
|
104
|
+
`--from`/`--to` (detection, evaluation, a PAIN reduction, or a planned reduction), or when it is
|
|
105
|
+
still undisposed and was detected on or before the period end. Every exclusion is reported as an
|
|
106
|
+
`excluded_by_period` diagnostic and counted in the document, so "nothing happened" is
|
|
107
|
+
distinguishable from "nothing was compiled". Output files are written all-or-nothing: a failed
|
|
108
|
+
Markdown write leaves no JSON behind, a failure while publishing restores the previous files, and a
|
|
109
|
+
rollback that itself fails names the files left in their new state and where their previous
|
|
110
|
+
content was kept.
|
|
111
|
+
|
|
112
|
+
Everything ComplyRoll adds beyond the official minimum structure lives under one `x-complyroll`
|
|
113
|
+
key: generator and parser versions, the rules dataset and schema commits and digests, the
|
|
114
|
+
compile diagnostics, every computed deadline with its rule and force, the grouped observation ids
|
|
115
|
+
and affected resources, the detection-time source (`artifact`, `artifact-partial`, or
|
|
116
|
+
`attestation`), and the evaluator and rationale. The JSON is the complete machine record; the
|
|
117
|
+
Markdown twin renders the same records for a reader, with a per-vulnerability detail section and
|
|
118
|
+
a parity test proving every identifier, deadline, and artifact it prints is in the JSON. That makes the document the provider's and assessor's working record.
|
|
119
|
+
It includes internal resource identifiers and provider rationale, so redact it before sharing
|
|
120
|
+
with an agency; audience-specific views are a later slice.
|
|
121
|
+
|
|
122
|
+
Record the same work as history, then rebuild the report from the log (ADR 0008):
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
complyroll ingest \
|
|
126
|
+
tests/fixtures/ubuntu-host.cklb \
|
|
127
|
+
tests/fixtures/windows-host.ckl \
|
|
128
|
+
tests/fixtures/openscap-results.xml \
|
|
129
|
+
--db complyroll.db \
|
|
130
|
+
--as-of 2026-08-21T12:00:00Z
|
|
131
|
+
|
|
132
|
+
complyroll cases correlate --db complyroll.db
|
|
133
|
+
|
|
134
|
+
complyroll cases attest-detection \
|
|
135
|
+
--db complyroll.db \
|
|
136
|
+
--all-missing \
|
|
137
|
+
--detected-at 2026-08-01T00:00:00Z \
|
|
138
|
+
--rationale "The fixtures declare no assessment timestamp; the assessment ran on 1 August."
|
|
139
|
+
|
|
140
|
+
complyroll cases evaluate --db complyroll.db --evaluations examples/evaluations.json
|
|
141
|
+
|
|
142
|
+
complyroll report vdt \
|
|
143
|
+
--db complyroll.db \
|
|
144
|
+
--class C \
|
|
145
|
+
--package-uri https://example.test/cpo \
|
|
146
|
+
--from 2026-08-01T00:00:00Z \
|
|
147
|
+
--to 2026-08-31T23:59:59Z \
|
|
148
|
+
--as-of 2026-08-21T12:00:00Z \
|
|
149
|
+
-o report-from-history.json \
|
|
150
|
+
--markdown report-from-history.md
|
|
151
|
+
|
|
152
|
+
complyroll store verify --db complyroll.db
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
`report-from-history.json` and `.md` are byte-identical to `report.json` and `report.md` above:
|
|
156
|
+
both paths run one record compiler, and that equality is a test. Every write is idempotent, so
|
|
157
|
+
re-running any of those commands appends nothing. Change one PAIN rating in a copy of
|
|
158
|
+
`examples/evaluations.json`, run `cases evaluate` again with it, and
|
|
159
|
+
`complyroll cases history <tracking-id> --db complyroll.db` shows both evaluations while the
|
|
160
|
+
report carries the latest one. Nothing can update or delete an event; a correction is a new
|
|
161
|
+
event with its rationale, and `store verify` checks both the bytes (digests, contiguity, the
|
|
162
|
+
sequence counter, the schema) and the domain (every payload against its contract, every event
|
|
163
|
+
against its stream, every artifact stream complete, every metadata envelope well formed).
|
|
164
|
+
|
|
165
|
+
Roll up the synthetic fixtures with the predecessor command:
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
stigroll tests/fixtures/windows-host.ckl tests/fixtures/ubuntu-host.cklb --format json
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Ingest an artifact and inspect its observations and diagnostics:
|
|
172
|
+
|
|
173
|
+
```python
|
|
174
|
+
from pathlib import Path
|
|
175
|
+
|
|
176
|
+
from complyroll.adapters import ingest_stig_artifact
|
|
177
|
+
|
|
178
|
+
result = ingest_stig_artifact(Path("assessment.cklb"))
|
|
179
|
+
if not result.successful:
|
|
180
|
+
for diagnostic in result.errors:
|
|
181
|
+
print(diagnostic.code, diagnostic.message)
|
|
182
|
+
else:
|
|
183
|
+
print(result.observations[0].to_canonical_json())
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Calculate a Class C response target with rule provenance:
|
|
187
|
+
|
|
188
|
+
```python
|
|
189
|
+
from datetime import UTC, datetime
|
|
190
|
+
|
|
191
|
+
from complyroll.models import PainRating
|
|
192
|
+
from complyroll.policy import CertificationClass, CertificationProfile, load_bundled_policy
|
|
193
|
+
|
|
194
|
+
policy = load_bundled_policy(CertificationProfile(CertificationClass.C))
|
|
195
|
+
deadline = policy.response_deadline(
|
|
196
|
+
datetime(2026, 8, 21, 15, 0, tzinfo=UTC),
|
|
197
|
+
pain=PainRating.N4,
|
|
198
|
+
is_internet_reachable=True,
|
|
199
|
+
is_likely_exploitable=True,
|
|
200
|
+
)
|
|
201
|
+
print(deadline.rule_id, deadline.force.value, deadline.due_at.isoformat())
|
|
202
|
+
print(deadline.provenance.commit, deadline.provenance.dataset_sha256)
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Validate a report against the pinned official schema:
|
|
206
|
+
|
|
207
|
+
```python
|
|
208
|
+
from pathlib import Path
|
|
209
|
+
|
|
210
|
+
from complyroll.schemas import ReportSchema, validate_bundled_report_bytes
|
|
211
|
+
|
|
212
|
+
result = validate_bundled_report_bytes(
|
|
213
|
+
ReportSchema.VULNERABILITY_DETAIL, Path("vulnerability-detail.json").read_bytes()
|
|
214
|
+
)
|
|
215
|
+
for issue in result.issues:
|
|
216
|
+
print(issue.instance_pointer, issue.validator, issue.message)
|
|
217
|
+
print(result.provenance.schema_version, result.provenance.schema_sha256)
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
## Why this exists
|
|
221
|
+
|
|
222
|
+
FedRAMP 20x is based on measured outcomes and persistent validation. A failed STIG rule or CVE is
|
|
223
|
+
only a source observation. VDR additionally covers drift, failed validation pipelines, stale
|
|
224
|
+
security decisions, supply-chain exposures, and failures in the detection and response process
|
|
225
|
+
itself. ComplyRoll therefore separates immutable observations from stateful vulnerability cases.
|
|
226
|
+
|
|
227
|
+
Target pipeline (the stages after observations are not built yet):
|
|
228
|
+
|
|
229
|
+
```mermaid
|
|
230
|
+
flowchart TD
|
|
231
|
+
A["STIG, XCCDF, SARIF, SBOM and cloud sources"] --> B["Immutable observations"]
|
|
232
|
+
B --> C["Grouped vulnerability cases"]
|
|
233
|
+
C --> D["IRV, LEV and PAIN evaluation"]
|
|
234
|
+
D --> E["Class-aware deadlines and response history"]
|
|
235
|
+
E --> F["VER JSON, SDR evidence and human reports"]
|
|
236
|
+
G["KSI validation and process health"] --> B
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
## Non-negotiable rules
|
|
240
|
+
|
|
241
|
+
- Source severity, DISA CAT, CVSS, and PAIN are separate concepts.
|
|
242
|
+
- ComplyRoll must never infer PAIN solely from source severity or CVSS.
|
|
243
|
+
- A scanner pass may support a Key Security Indicator (KSI); it does not prove the complete KSI.
|
|
244
|
+
- Grouping observations must not destroy affected-resource or source-level details.
|
|
245
|
+
- Rule calculations must identify the exact pinned FedRAMP rules version used.
|
|
246
|
+
- Human-readable and machine-readable reports must come from the same normalized records.
|
|
247
|
+
- Historical evaluations and evidence must remain reproducible.
|
|
248
|
+
|
|
249
|
+
## For independent assessors
|
|
250
|
+
|
|
251
|
+
ComplyRoll is meant to be run cold on provider-supplied artifacts: ingest the raw scanner exports,
|
|
252
|
+
recompute the clocks and the report, and compare against what the provider published. Every
|
|
253
|
+
deadline names its rule identifier, force (MUST or SHOULD), certification class, dataset commit,
|
|
254
|
+
and digest. Assessors do not configure or operate ComplyRoll on a provider's behalf; under the
|
|
255
|
+
2026 recognition rules, advisory work on an offering bars assessing that offering for two years.
|
|
256
|
+
|
|
257
|
+
## Design documents
|
|
258
|
+
|
|
259
|
+
- [`docs/BUILD_PLAN.md`](docs/BUILD_PLAN.md): phased implementation plan and exit criteria
|
|
260
|
+
- [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md): system boundaries and component design
|
|
261
|
+
- [`docs/DATA_MODEL.md`](docs/DATA_MODEL.md): observation, case, evaluation, and evidence model
|
|
262
|
+
- [`docs/FEDRAMP_2026_MAPPING.md`](docs/FEDRAMP_2026_MAPPING.md): current rule and schema mapping
|
|
263
|
+
- [`docs/SECURITY.md`](docs/SECURITY.md): threat model and evidence-handling requirements
|
|
264
|
+
- [`docs/decisions/`](docs/decisions/): architecture decision records 0001 through 0007
|
|
265
|
+
(0007 fixes the report mappings: attested detection time, disposition table, clock semantics,
|
|
266
|
+
overdue wording, the `x-complyroll` extension, and the evaluations file)
|
|
267
|
+
- [`examples/`](examples/): the fixture-to-report demo inputs
|
|
268
|
+
- [`AGENTS.md`](AGENTS.md): repository rules and development commands
|
|
269
|
+
|
|
270
|
+
## Dependencies and data
|
|
271
|
+
|
|
272
|
+
Persistence uses Python's standard-library SQLite binding. Report validation uses the
|
|
273
|
+
major-version-bounded `jsonschema` package with its non-GPL format extra, because the standard
|
|
274
|
+
library does not implement JSON Schema Draft 2020-12 (ADR 0006). Everything else is the standard
|
|
275
|
+
library.
|
|
276
|
+
|
|
277
|
+
The official FedRAMP rules dataset and VER schemas are bundled unmodified and pinned to immutable
|
|
278
|
+
upstream commits with SHA-256 digests; see [`NOTICE`](NOTICE) and
|
|
279
|
+
[`src/complyroll/data/README.md`](src/complyroll/data/README.md) for provenance and license.
|
|
280
|
+
|
|
281
|
+
Authoritative sources ComplyRoll consumes and pins rather than copies into constants:
|
|
282
|
+
|
|
283
|
+
- [FedRAMP Consolidated Rules for 2026](https://www.fedramp.gov/2026/)
|
|
284
|
+
- [FedRAMP machine-readable rules](https://github.com/FedRAMP/rules)
|
|
285
|
+
- [FedRAMP JSON schemas](https://github.com/FedRAMP/schemas)
|
|
286
|
+
- [Vulnerability Detection and Response](https://www.fedramp.gov/2026/reference/vulnerability-detection-and-response/)
|
|
287
|
+
- [Vulnerability Evaluation and Reporting](https://www.fedramp.gov/2026/reference/vulnerability-evaluation-and-reporting/)
|
|
288
|
+
- [Key Security Indicators](https://www.fedramp.gov/2026/reference/key-security-indicators/)
|
|
289
|
+
|
|
290
|
+
## Disclaimer
|
|
291
|
+
|
|
292
|
+
ComplyRoll is informational tooling, not legal or compliance advice. A report that validates
|
|
293
|
+
against an official schema satisfies that schema's minimum structure; it is not a FedRAMP
|
|
294
|
+
determination, and the provider remains responsible for meeting the Consolidated Rules. Verify
|
|
295
|
+
every clock against <https://www.fedramp.gov/2026/> before relying on it.
|
|
296
|
+
|
|
297
|
+
## License
|
|
298
|
+
|
|
299
|
+
ComplyRoll's code is licensed under the Apache License, Version 2.0 (see [`LICENSE`](LICENSE)
|
|
300
|
+
and [`NOTICE`](NOTICE)). The bundled FedRAMP data files are works of the U.S. Government and are
|
|
301
|
+
not covered by that license. The ComplyRoll name is not licensed (Apache License, Section 6).
|
|
302
|
+
Contributions require a Developer Certificate of Origin sign-off
|
|
303
|
+
([`CONTRIBUTING.md`](CONTRIBUTING.md)).
|
|
304
|
+
|
|
305
|
+
FedRAMP® is a registered trademark of the U.S. General Services Administration. ComplyRoll is an
|
|
306
|
+
independent project and is not affiliated with, endorsed by, or approved by GSA or the FedRAMP
|
|
307
|
+
Program Management Office.
|