rune-audit 0.1.1__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.
Files changed (107) hide show
  1. rune_audit-0.1.1/LICENSE +199 -0
  2. rune_audit-0.1.1/NOTICE +4 -0
  3. rune_audit-0.1.1/PKG-INFO +353 -0
  4. rune_audit-0.1.1/README.md +111 -0
  5. rune_audit-0.1.1/pyproject.toml +120 -0
  6. rune_audit-0.1.1/rune_audit/__init__.py +4 -0
  7. rune_audit-0.1.1/rune_audit/__main__.py +15 -0
  8. rune_audit-0.1.1/rune_audit/cli/__init__.py +6 -0
  9. rune_audit-0.1.1/rune_audit/cli/app.py +74 -0
  10. rune_audit-0.1.1/rune_audit/cli/collect.py +61 -0
  11. rune_audit-0.1.1/rune_audit/cli/compliance.py +82 -0
  12. rune_audit-0.1.1/rune_audit/cli/config_cmd.py +33 -0
  13. rune_audit-0.1.1/rune_audit/cli/dashboard_cmd.py +40 -0
  14. rune_audit-0.1.1/rune_audit/cli/formal_cmd.py +60 -0
  15. rune_audit-0.1.1/rune_audit/cli/init_cmd.py +113 -0
  16. rune_audit-0.1.1/rune_audit/cli/operator_cmd.py +74 -0
  17. rune_audit-0.1.1/rune_audit/cli/rekor_cmd.py +73 -0
  18. rune_audit-0.1.1/rune_audit/cli/report.py +68 -0
  19. rune_audit-0.1.1/rune_audit/cli/sign_cmd.py +54 -0
  20. rune_audit-0.1.1/rune_audit/cli/slsa_cmd.py +128 -0
  21. rune_audit-0.1.1/rune_audit/cli/sr2_cmd.py +159 -0
  22. rune_audit-0.1.1/rune_audit/cli/tpm2_cmd.py +73 -0
  23. rune_audit-0.1.1/rune_audit/cli/vex.py +111 -0
  24. rune_audit-0.1.1/rune_audit/collectors/__init__.py +2 -0
  25. rune_audit-0.1.1/rune_audit/collectors/base.py +24 -0
  26. rune_audit-0.1.1/rune_audit/collectors/github.py +232 -0
  27. rune_audit-0.1.1/rune_audit/collectors/operator.py +191 -0
  28. rune_audit-0.1.1/rune_audit/collectors/tpm2.py +314 -0
  29. rune_audit-0.1.1/rune_audit/collectors/vex.py +97 -0
  30. rune_audit-0.1.1/rune_audit/config.py +75 -0
  31. rune_audit-0.1.1/rune_audit/dashboard/__init__.py +2 -0
  32. rune_audit-0.1.1/rune_audit/dashboard/collector.py +138 -0
  33. rune_audit-0.1.1/rune_audit/dashboard/models.py +37 -0
  34. rune_audit-0.1.1/rune_audit/dashboard/renderer.py +82 -0
  35. rune_audit-0.1.1/rune_audit/formal/__init__.py +11 -0
  36. rune_audit-0.1.1/rune_audit/formal/checker.py +127 -0
  37. rune_audit-0.1.1/rune_audit/formal/models.py +27 -0
  38. rune_audit-0.1.1/rune_audit/models/__init__.py +42 -0
  39. rune_audit-0.1.1/rune_audit/models/attestation.py +66 -0
  40. rune_audit-0.1.1/rune_audit/models/cve.py +203 -0
  41. rune_audit-0.1.1/rune_audit/models/evidence.py +55 -0
  42. rune_audit-0.1.1/rune_audit/models/gate.py +65 -0
  43. rune_audit-0.1.1/rune_audit/models/operator.py +40 -0
  44. rune_audit-0.1.1/rune_audit/models/sbom.py +111 -0
  45. rune_audit-0.1.1/rune_audit/models/sigstore.py +37 -0
  46. rune_audit-0.1.1/rune_audit/models/slsa.py +109 -0
  47. rune_audit-0.1.1/rune_audit/models/vex.py +134 -0
  48. rune_audit-0.1.1/rune_audit/py.typed +0 -0
  49. rune_audit-0.1.1/rune_audit/reporters/__init__.py +2 -0
  50. rune_audit-0.1.1/rune_audit/reporters/compliance.py +256 -0
  51. rune_audit-0.1.1/rune_audit/reporters/report_generator.py +357 -0
  52. rune_audit-0.1.1/rune_audit/sr2/__init__.py +19 -0
  53. rune_audit-0.1.1/rune_audit/sr2/builtin_packs/__init__.py +2 -0
  54. rune_audit-0.1.1/rune_audit/sr2/builtin_packs/cis-kubernetes.yaml +16 -0
  55. rune_audit-0.1.1/rune_audit/sr2/builtin_packs/iec-62443-ml4.yaml +17 -0
  56. rune_audit-0.1.1/rune_audit/sr2/builtin_packs/nist-ssdf.yaml +16 -0
  57. rune_audit-0.1.1/rune_audit/sr2/builtin_packs/owasp-asvs.yaml +16 -0
  58. rune_audit-0.1.1/rune_audit/sr2/builtin_packs/slsa-l3.yaml +16 -0
  59. rune_audit-0.1.1/rune_audit/sr2/catalog.py +37 -0
  60. rune_audit-0.1.1/rune_audit/sr2/compliance_config.py +114 -0
  61. rune_audit-0.1.1/rune_audit/sr2/dashboard_matrix.py +236 -0
  62. rune_audit-0.1.1/rune_audit/sr2/engine.py +68 -0
  63. rune_audit-0.1.1/rune_audit/sr2/inspectors/__init__.py +32 -0
  64. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/__init__.py +49 -0
  65. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/_util.py +44 -0
  66. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/container_signing.py +25 -0
  67. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/dependabot_config.py +24 -0
  68. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/dockerfile_security.py +31 -0
  69. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/github_actions_pinning.py +42 -0
  70. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/go_coverage.py +22 -0
  71. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/helm_security_context.py +38 -0
  72. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/license_compliance.py +25 -0
  73. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/network_policy_presence.py +31 -0
  74. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/python_coverage.py +32 -0
  75. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/rbac_least_privilege.py +29 -0
  76. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/sast_coverage.py +25 -0
  77. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/sbom_completeness.py +20 -0
  78. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/secret_scanning.py +25 -0
  79. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/slsa_verification.py +25 -0
  80. rune_audit-0.1.1/rune_audit/sr2/inspectors/stdlib/vulnerability_scanning.py +25 -0
  81. rune_audit-0.1.1/rune_audit/sr2/models.py +45 -0
  82. rune_audit-0.1.1/rune_audit/sr2/packs.py +70 -0
  83. rune_audit-0.1.1/rune_audit/sr2/project_config.py +44 -0
  84. rune_audit-0.1.1/rune_audit/sr2/registry.py +70 -0
  85. rune_audit-0.1.1/rune_audit/sr2/standard_inspectors.py +13 -0
  86. rune_audit-0.1.1/rune_audit/validators/__init__.py +6 -0
  87. rune_audit-0.1.1/rune_audit/validators/vex_validator.py +179 -0
  88. rune_audit-0.1.1/rune_audit/verifiers/__init__.py +2 -0
  89. rune_audit-0.1.1/rune_audit/verifiers/slsa.py +462 -0
  90. rune_audit-0.1.1/rune_audit.egg-info/PKG-INFO +353 -0
  91. rune_audit-0.1.1/rune_audit.egg-info/SOURCES.txt +105 -0
  92. rune_audit-0.1.1/rune_audit.egg-info/dependency_links.txt +1 -0
  93. rune_audit-0.1.1/rune_audit.egg-info/entry_points.txt +2 -0
  94. rune_audit-0.1.1/rune_audit.egg-info/requires.txt +21 -0
  95. rune_audit-0.1.1/rune_audit.egg-info/top_level.txt +1 -0
  96. rune_audit-0.1.1/setup.cfg +4 -0
  97. rune_audit-0.1.1/tests/test_compliance_and_packs.py +156 -0
  98. rune_audit-0.1.1/tests/test_config.py +111 -0
  99. rune_audit-0.1.1/tests/test_init.py +11 -0
  100. rune_audit-0.1.1/tests/test_init_cli.py +42 -0
  101. rune_audit-0.1.1/tests/test_ollama_integration.py +54 -0
  102. rune_audit-0.1.1/tests/test_sr2_catalog.py +98 -0
  103. rune_audit-0.1.1/tests/test_sr2_dashboard_matrix.py +107 -0
  104. rune_audit-0.1.1/tests/test_sr2_engine_and_errors.py +111 -0
  105. rune_audit-0.1.1/tests/test_sr2_future_inspectors.py +12 -0
  106. rune_audit-0.1.1/tests/test_stdlib_inspectors.py +635 -0
  107. rune_audit-0.1.1/tests/test_stdlib_inspectors_integration.py +64 -0
@@ -0,0 +1,199 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by the Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding any notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. Please also get an approval
185
+ from the project maintainer(s) before applying the license.
186
+
187
+ Copyright 2025 The Rune Authors
188
+
189
+ Licensed under the Apache License, Version 2.0 (the "License");
190
+ you may not use this file except in compliance with the License.
191
+ You may obtain a copy of the License at
192
+
193
+ http://www.apache.org/licenses/LICENSE-2.0
194
+
195
+ Unless required by applicable law or agreed to in writing, software
196
+ distributed under the License is distributed on an "AS IS" BASIS,
197
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
198
+ See the License for the specific language governing permissions and
199
+ limitations under the License.
@@ -0,0 +1,4 @@
1
+ RUNE Audit
2
+ Copyright 2025-2026 The Rune Authors
3
+
4
+ This product is licensed under the Apache License, Version 2.0.
@@ -0,0 +1,353 @@
1
+ Metadata-Version: 2.4
2
+ Name: rune-audit
3
+ Version: 0.1.1
4
+ Summary: RUNE Audit — compliance evidence collection and verification for IEC 62443 / SLSA
5
+ License: Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to the Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by the Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding any notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for reasonable and customary use in describing the
145
+ origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing
170
+ the Work or Derivative Works thereof, You may choose to offer,
171
+ and charge a fee for, acceptance of support, warranty, indemnity,
172
+ or other liability obligations and/or rights consistent with this
173
+ License. However, in accepting such obligations, You may act only
174
+ on Your own behalf and on Your sole responsibility, not on behalf
175
+ of any other Contributor, and only if You agree to indemnify,
176
+ defend, and hold each Contributor harmless for any liability
177
+ incurred by, or claims asserted against, such Contributor by reason
178
+ of your accepting any such warranty or additional liability.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. Please also get an approval
189
+ from the project maintainer(s) before applying the license.
190
+
191
+ Copyright 2025 The Rune Authors
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
204
+
205
+ Project-URL: Homepage, https://github.com/lpasquali/rune-audit
206
+ Project-URL: Documentation, https://lpasquali.github.io/rune-docs/
207
+ Project-URL: Repository, https://github.com/lpasquali/rune-audit
208
+ Project-URL: Issues, https://github.com/lpasquali/rune-audit/issues
209
+ Keywords: audit,compliance,iec-62443,slsa,sbom,vex
210
+ Classifier: Development Status :: 2 - Pre-Alpha
211
+ Classifier: Programming Language :: Python :: 3
212
+ Classifier: Programming Language :: Python :: 3.11
213
+ Classifier: Programming Language :: Python :: 3.12
214
+ Classifier: Programming Language :: Python :: 3.13
215
+ Classifier: License :: OSI Approved :: Apache Software License
216
+ Classifier: Operating System :: OS Independent
217
+ Classifier: Topic :: Security
218
+ Requires-Python: >=3.11
219
+ Description-Content-Type: text/markdown
220
+ License-File: LICENSE
221
+ License-File: NOTICE
222
+ Requires-Dist: typer>=0.9
223
+ Requires-Dist: rich>=13.7
224
+ Requires-Dist: httpx>=0.27.0
225
+ Requires-Dist: pydantic>=2.0
226
+ Requires-Dist: pyyaml>=6.0
227
+ Provides-Extra: all
228
+ Requires-Dist: typer>=0.9; extra == "all"
229
+ Requires-Dist: rich>=13.7; extra == "all"
230
+ Requires-Dist: httpx>=0.27.0; extra == "all"
231
+ Requires-Dist: pydantic>=2.0; extra == "all"
232
+ Requires-Dist: pyyaml>=6.0; extra == "all"
233
+ Provides-Extra: dev
234
+ Requires-Dist: pytest>=8; extra == "dev"
235
+ Requires-Dist: pytest-cov; extra == "dev"
236
+ Requires-Dist: ruff>=0.9.0; extra == "dev"
237
+ Requires-Dist: mypy; extra == "dev"
238
+ Requires-Dist: bandit; extra == "dev"
239
+ Requires-Dist: types-PyYAML>=6.0.12; extra == "dev"
240
+ Requires-Dist: respx>=0.22.0; extra == "dev"
241
+ Dynamic: license-file
242
+
243
+ # rune-audit
244
+
245
+ Auditing and compliance tracking for the
246
+ [RUNE](https://github.com/lpasquali/rune) platform.
247
+
248
+ rune-audit collects, verifies, and reports on security and compliance evidence
249
+ across the RUNE ecosystem. It verifies SLSA Level 3 build provenance, manages
250
+ VEX (Vulnerability Exploitability eXchange) documents, and generates IEC 62443
251
+ evidence matrices.
252
+
253
+ ## Architecture
254
+
255
+ ```
256
+ rune-audit
257
+ collect Gather SBOMs, CVE scans, VEX documents from all repos
258
+ vex Manage and validate OpenVEX documents
259
+ compliance IEC 62443 evidence matrix and gap analysis
260
+ slsa SLSA Level 3 provenance verification
261
+ report Full, summary, and delta audit reports
262
+ config Display current configuration
263
+ ```
264
+
265
+ **Evidence sources**: GitHub Attestations API, SBOM files, CVE scan results,
266
+ OpenVEX documents.
267
+
268
+ **Outputs**: Rich terminal tables, Markdown reports, JSON exports.
269
+
270
+ ## Installation
271
+
272
+ ```bash
273
+ pip install rune-audit
274
+ ```
275
+
276
+ Or for development:
277
+
278
+ ```bash
279
+ git clone https://github.com/lpasquali/rune-audit.git
280
+ cd rune-audit
281
+ pip install -e ".[dev]"
282
+ ```
283
+
284
+ ## Quick Start
285
+
286
+ ```bash
287
+ # Verify SLSA L3 provenance for a single repo
288
+ rune-audit slsa verify rune --tag v0.0.0a2
289
+
290
+ # Verify SLSA across all ecosystem repos
291
+ rune-audit slsa verify-all --tag v0.0.0a2
292
+
293
+ # Show IEC 62443 evidence matrix
294
+ rune-audit compliance matrix
295
+
296
+ # Show compliance gaps
297
+ rune-audit compliance gaps
298
+
299
+ # Validate VEX documents
300
+ rune-audit vex validate
301
+
302
+ # List VEX statements
303
+ rune-audit vex list
304
+
305
+ # Generate full audit report
306
+ rune-audit report full
307
+
308
+ # Show configuration
309
+ rune-audit config show
310
+ ```
311
+
312
+ ## External OSS projects (compliance-config & packs)
313
+
314
+ For non-RUNE repositories, use `compliance-config.yaml` and builtin packs (`rune-audit init`, `rune-audit sr2 verify --pack …`). Documentation lives in **[rune-docs: External projects](https://github.com/lpasquali/rune-docs/blob/main/docs/external-projects/index.md)** ([rune-docs#227](https://github.com/lpasquali/rune-docs/issues/227)–[#232](https://github.com/lpasquali/rune-docs/issues/232)).
315
+
316
+ Multi-repo SR-2 matrix (HTML / JSON / Markdown): `rune-audit sr2 dashboard --base-path ..` (see [rune-docs#212](https://github.com/lpasquali/rune-docs/issues/212)).
317
+
318
+ ## Supported Evidence Types
319
+
320
+ | Type | Description | Source |
321
+ |------|-------------|--------|
322
+ | SLSA Provenance | Build attestation verification | GitHub Attestations API |
323
+ | SBOM | Software Bill of Materials | CycloneDX / SPDX |
324
+ | CVE Scans | Vulnerability scan results | pip-audit, grype |
325
+ | VEX | Vulnerability Exploitability eXchange | OpenVEX documents |
326
+ | License | License compliance status | SPDX headers, LICENSE files |
327
+
328
+ ## Configuration
329
+
330
+ | Variable | Description | Default |
331
+ |----------|-------------|---------|
332
+ | `RUNE_AUDIT_GITHUB_TOKEN` | GitHub API token (fallback: `gh auth token`) | -- |
333
+ | `RUNE_AUDIT_REPOS` | Comma-separated repo list | All 8 RUNE program repos |
334
+ | `RUNE_AUDIT_OUTPUT_DIR` | Report output directory | `./audit-output/` |
335
+
336
+ Optional YAML config file: `rune-audit.yaml`
337
+
338
+ ## Compliance Context
339
+
340
+ - **IEC 62443-4-1 ML4**: This repository aligns with IEC 62443-4-1 Maturity
341
+ Level 4 secure development requirements.
342
+ - **SLSA Level 3**: Build provenance is verified against all five SLSA L3
343
+ requirements (provenance exists, signed, trusted builder, version-controlled
344
+ source, isolated build).
345
+
346
+ ## Documentation
347
+
348
+ Full documentation is consolidated in
349
+ [rune-docs](https://github.com/lpasquali/rune-docs).
350
+
351
+ ## License
352
+
353
+ Apache License 2.0. See [LICENSE](LICENSE).
@@ -0,0 +1,111 @@
1
+ # rune-audit
2
+
3
+ Auditing and compliance tracking for the
4
+ [RUNE](https://github.com/lpasquali/rune) platform.
5
+
6
+ rune-audit collects, verifies, and reports on security and compliance evidence
7
+ across the RUNE ecosystem. It verifies SLSA Level 3 build provenance, manages
8
+ VEX (Vulnerability Exploitability eXchange) documents, and generates IEC 62443
9
+ evidence matrices.
10
+
11
+ ## Architecture
12
+
13
+ ```
14
+ rune-audit
15
+ collect Gather SBOMs, CVE scans, VEX documents from all repos
16
+ vex Manage and validate OpenVEX documents
17
+ compliance IEC 62443 evidence matrix and gap analysis
18
+ slsa SLSA Level 3 provenance verification
19
+ report Full, summary, and delta audit reports
20
+ config Display current configuration
21
+ ```
22
+
23
+ **Evidence sources**: GitHub Attestations API, SBOM files, CVE scan results,
24
+ OpenVEX documents.
25
+
26
+ **Outputs**: Rich terminal tables, Markdown reports, JSON exports.
27
+
28
+ ## Installation
29
+
30
+ ```bash
31
+ pip install rune-audit
32
+ ```
33
+
34
+ Or for development:
35
+
36
+ ```bash
37
+ git clone https://github.com/lpasquali/rune-audit.git
38
+ cd rune-audit
39
+ pip install -e ".[dev]"
40
+ ```
41
+
42
+ ## Quick Start
43
+
44
+ ```bash
45
+ # Verify SLSA L3 provenance for a single repo
46
+ rune-audit slsa verify rune --tag v0.0.0a2
47
+
48
+ # Verify SLSA across all ecosystem repos
49
+ rune-audit slsa verify-all --tag v0.0.0a2
50
+
51
+ # Show IEC 62443 evidence matrix
52
+ rune-audit compliance matrix
53
+
54
+ # Show compliance gaps
55
+ rune-audit compliance gaps
56
+
57
+ # Validate VEX documents
58
+ rune-audit vex validate
59
+
60
+ # List VEX statements
61
+ rune-audit vex list
62
+
63
+ # Generate full audit report
64
+ rune-audit report full
65
+
66
+ # Show configuration
67
+ rune-audit config show
68
+ ```
69
+
70
+ ## External OSS projects (compliance-config & packs)
71
+
72
+ For non-RUNE repositories, use `compliance-config.yaml` and builtin packs (`rune-audit init`, `rune-audit sr2 verify --pack …`). Documentation lives in **[rune-docs: External projects](https://github.com/lpasquali/rune-docs/blob/main/docs/external-projects/index.md)** ([rune-docs#227](https://github.com/lpasquali/rune-docs/issues/227)–[#232](https://github.com/lpasquali/rune-docs/issues/232)).
73
+
74
+ Multi-repo SR-2 matrix (HTML / JSON / Markdown): `rune-audit sr2 dashboard --base-path ..` (see [rune-docs#212](https://github.com/lpasquali/rune-docs/issues/212)).
75
+
76
+ ## Supported Evidence Types
77
+
78
+ | Type | Description | Source |
79
+ |------|-------------|--------|
80
+ | SLSA Provenance | Build attestation verification | GitHub Attestations API |
81
+ | SBOM | Software Bill of Materials | CycloneDX / SPDX |
82
+ | CVE Scans | Vulnerability scan results | pip-audit, grype |
83
+ | VEX | Vulnerability Exploitability eXchange | OpenVEX documents |
84
+ | License | License compliance status | SPDX headers, LICENSE files |
85
+
86
+ ## Configuration
87
+
88
+ | Variable | Description | Default |
89
+ |----------|-------------|---------|
90
+ | `RUNE_AUDIT_GITHUB_TOKEN` | GitHub API token (fallback: `gh auth token`) | -- |
91
+ | `RUNE_AUDIT_REPOS` | Comma-separated repo list | All 8 RUNE program repos |
92
+ | `RUNE_AUDIT_OUTPUT_DIR` | Report output directory | `./audit-output/` |
93
+
94
+ Optional YAML config file: `rune-audit.yaml`
95
+
96
+ ## Compliance Context
97
+
98
+ - **IEC 62443-4-1 ML4**: This repository aligns with IEC 62443-4-1 Maturity
99
+ Level 4 secure development requirements.
100
+ - **SLSA Level 3**: Build provenance is verified against all five SLSA L3
101
+ requirements (provenance exists, signed, trusted builder, version-controlled
102
+ source, isolated build).
103
+
104
+ ## Documentation
105
+
106
+ Full documentation is consolidated in
107
+ [rune-docs](https://github.com/lpasquali/rune-docs).
108
+
109
+ ## License
110
+
111
+ Apache License 2.0. See [LICENSE](LICENSE).