kleinnner commited on
Commit
72432ab
·
verified ·
1 Parent(s): 0429c7d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +305 -0
README.md ADDED
@@ -0,0 +1,305 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CODEQL PRIOR DOCS
2
+
3
+ ![license](https://img.shields.io/badge/license-MIT-blue) ![offline-first](https://img.shields.io/badge/offline--first-air--gap-green) ![audit](https://img.shields.io/badge/audit-SHA3--256-orange) ![category](https://img.shields.io/badge/category-software_development-lightgrey)
4
+
5
+ > Anticloud-hardened packaging of the upstream project `CODEQL_PRIOR_DOCS` in category **SOFTWARE DEVELOPMENT**. Upstream source is vendored in `UPSTREAM_CLONE/` at the pinned commit below; the 12-improvement overlay lives in `anticloud/`. Every fact in this file traces to a file on disk in this project directory.
6
+
7
+ **Category:** SOFTWARE DEVELOPMENT · **Upstream:** https://github.com/github/codeql · **Upstream pin:** `4f40d241e9891bf397f48cbfc1084490773c3cc5` · **Vendor:** Anticloud FZ LLE
8
+
9
+ ---
10
+
11
+ ## What This Project Does
12
+
13
+ # CodeQL
14
+
15
+ This open source project contains the standard CodeQL libraries and queries that power [GitHub Advanced Security](https://github.com/features/security/code) and the other application security products that [GitHub](https://github.com/features/security/) makes available to its customers worldwide.
16
+
17
+ ## How do I learn CodeQL and run queries?
18
+
19
+ There is extensive documentation about the [CodeQL language](https://codeql.github.com/docs/), writing CodeQL using the [CodeQL extension for Visual Studio Code](https://docs.github.com/en/code-security/codeql-for-vs-code/) and using the [CodeQL CLI](https://docs.github.com/en/code-security/codeql-cli).
20
+
21
+ ## Contributing
22
+
23
+ We welcome contributions to our standard library and standard checks. Do you have an idea for a new check, or how to improve an existing query? Then please go ahead and open a pull request! Before you do, though, please take the time to read our [contributing guidelines](CONTRIBUTING.md). You can also consult our [style guides](https://github.com/github/codeql/tree/main/docs) to learn how to format your code for consistency and clarity, how to write query metadata, and how to write query help documentation for your query.
24
+
25
+ For information on contributing to CodeQL documentation, see the "[contributing guide](docs/codeql/CONTRIBUTING.md)" for docs.
26
+
27
+ ## License
28
+
29
+ The code in this project is licensed under the [MIT License](LICENSE) by [GitHub](https://github.com).
30
+
31
+ The CodeQL CLI (including the CodeQL engine) is hosted in a [different project](https://github.com/github/codeql-cli-binaries) and is [licensed separately](https://github.com/github/codeql-cli-binaries/blob/main/LICENSE.md). If you'd like to use the CodeQL CLI to analyze closed-source code, you will need a separate commercial license; please [contact us](https://github.com/enterprise/contact) for further help.
32
+
33
+ ## Visual Studio Code integration
34
+
35
+ If you use Visual Studio Code to work in this project, there are a few integration features to make development easier.
36
+
37
+ ### CodeQL for Visual Studio Code
38
+
39
+ You can install the [CodeQL for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-codeql) extension to get syntax highlighting, IntelliSense, and code navigation for the QL language, as well as unit test support for testing CodeQL libraries and queries.
40
+
41
+ ### Tasks
42
+
43
+ The `.vscode/tasks.json` file defines custom tasks specific to working in this project. To invoke one of these tasks, select the `Terminal | Run Task...` menu option, and then select the desired task from the dropdown. You can also invoke the `Tasks: Run Task` command from the command palette.
44
+
45
+ *Quoted from the upstream `README.md` file in `UPSTREAM_CLONE/`.*
46
+ Project-specific facts detected in this directory:
47
+
48
+ - Ecosystem: **Rust / Cargo** (manifests: Cargo.toml, Cargo.lock; scanned in UPSTREAM_CLONE)
49
+ - Top-level source layout: `actions/`, `change-notes/`, `config/`, `cpp/`, `csharp/`, `go/`, `java/`, `javascript/`, `misc/`, `python/`, `ql/`, `ruby/`
50
+ - Snapshot size: **58213 files**, **1201502 lines of code** (measured; see Benchmarks)
51
+ - Primary languages: `.java` (8198), `.ql` (7705), `.expected` (6851), `.qll` (5675), `.md` (4611), `.js` (2731)
52
+ - Upstream commit pinned for this packaging: `4f40d241e9891bf397f48cbfc1084490773c3cc5`
53
+
54
+ ---
55
+
56
+ ## Installation
57
+
58
+ No installation section was found in the upstream readme, so the commands below are generated from the manifests detected in this project directory.
59
+
60
+ ```sh
61
+ cargo build --release
62
+ ```
63
+
64
+ Overlay install (this project):
65
+
66
+ ```sh
67
+ python -m pip install -e anticloud/ # overlay package with the 12 improvements
68
+ python anticloud/cli.py --help # 13 subcommands, JSON stdout
69
+ ```
70
+
71
+ ---
72
+
73
+ ## Usage
74
+
75
+ No usage section was found in the upstream readme. Entry points detected in this project directory:
76
+
77
+ ```sh
78
+ cargo run --release
79
+ ```
80
+
81
+ Anticloud overlay CLI (available in every project):
82
+
83
+ ```sh
84
+ python anticloud/cli.py --help # 13 subcommands, JSON stdout
85
+ python anticloud/cli.py checks # run the 16-check suite
86
+ ```
87
+
88
+ ---
89
+
90
+ ## API
91
+
92
+ The upstream API surface is defined by the `CODEQL_PRIOR_DOCS` source tree vendored in `UPSTREAM_CLONE/` (Rust / Cargo ecosystem). Public entry points:
93
+
94
+ - Source modules: `actions/`, `change-notes/`, `config/`, `cpp/`, `csharp/`, `go/`, `java/`, `javascript/`
95
+ - The snapshot declares 1066 dependency references across 4 ecosystem(s); see Dependencies below.
96
+ - Overlay API: `anticloud/cli.py` exposes 13 subcommands with JSON stdout; `anticloud/bench/runner.py` runs the 16-check suite; `anticloud/provenance/chain.py` exposes the SHA3-256 + Ed25519 provenance chain.
97
+
98
+ ---
99
+
100
+ ## Dependencies
101
+
102
+ | Metric | Value |
103
+ |--------|-------|
104
+ | Ecosystem | Rust / Cargo |
105
+ | Manifests detected | Cargo.toml, Cargo.lock |
106
+ | Files in snapshot | 58213 |
107
+ | Lines of code | 1201502 |
108
+ | Dependency references | 1066 |
109
+ | Dependencies by ecosystem | cargo: 223, go: 699, npm: 143, pypi: 1 |
110
+ | Upstream license | MIT |
111
+ | Overlay license | Anticommons 0.1.0 |
112
+
113
+ Top dependency references recorded in the benchmark snapshot:
114
+
115
+ | Ecosystem | Name | Version | Source file |
116
+ |-----------|------|---------|-------------|
117
+ | cargo | resolver | 2 | Cargo.toml |
118
+ | cargo | name | swift-syntax-rs | unified/swift-syntax-rs/Cargo.toml |
119
+ | cargo | description | Rust wrapper around the swift-syntax package for parsing Swift source | unified/swift-syntax-rs/Cargo.toml |
120
+ | cargo | version | 0.1.0 | unified/swift-syntax-rs/Cargo.toml |
121
+ | cargo | edition | 2024 | unified/swift-syntax-rs/Cargo.toml |
122
+ | cargo | links | SwiftSyntaxFFI | unified/swift-syntax-rs/Cargo.toml |
123
+ | cargo | name | swift_syntax_rs | unified/swift-syntax-rs/Cargo.toml |
124
+ | cargo | path | src/lib.rs | unified/swift-syntax-rs/Cargo.toml |
125
+ | cargo | name | swift-syntax-parse | unified/swift-syntax-rs/Cargo.toml |
126
+ | cargo | path | src/main.rs | unified/swift-syntax-rs/Cargo.toml |
127
+ | cargo | name | codeql-extractor-unified-unsupported-os | unified/extractor-unsupported-os/Cargo.toml |
128
+ | cargo | description | Fallback executable for unsupported CodeQL Unified extractor platforms | unified/extractor-unsupported-os/Cargo.toml |
129
+ | cargo | version | 0.1.0 | unified/extractor-unsupported-os/Cargo.toml |
130
+ | cargo | edition | 2024 | unified/extractor-unsupported-os/Cargo.toml |
131
+ | cargo | name | codeql-extractor-unified | unified/extractor/Cargo.toml |
132
+ | ... | (485 more) | | |
133
+
134
+ Pinned lockfile: `anticloud/requirements.lock` (hash-pinned, PEP 508). SBOM: `sbom.cdx.json` (CycloneDX 1.5, pinned to the upstream SHA).
135
+
136
+ ---
137
+
138
+ ## Configuration
139
+
140
+ No configuration section was found in the upstream readme. Configuration-relevant files detected in this project directory:
141
+
142
+ - `Cargo.toml`
143
+ - `config`
144
+
145
+ Overlay configuration (Anticloud):
146
+
147
+ - `anticloud/` - improvement overlay; environment-driven, no cloud dependency
148
+ - `LEDGERS/` - aioss tamper-evident chain files (per-project, verified with `aioss verify --live`)
149
+ - `ISOLATED_LAB_RESULTS/` - reproducibility record (environment, reproduction steps, result register, evidence)
150
+ - `OFFICIAL_BENCHMARKS/` - 26 framework assessments for this project
151
+
152
+ ---
153
+
154
+ ## Contributing
155
+
156
+ *Excerpt from upstream `CONTRIBUTING.md`:*
157
+
158
+ # Contributing to CodeQL
159
+
160
+ We welcome contributions to our CodeQL libraries and queries. Got an idea for a new check, or how to improve an existing query? Then please go ahead and open a pull request! Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-project-license) to the public under the [project's open source license](LICENSE).
161
+
162
+ There is lots of useful documentation to help you write queries, ranging from information about query file structure to tutorials for specific target languages. For more information on the documentation available, see [CodeQL queries](https://codeql.github.com/docs/writing-codeql-queries/codeql-queries) on [codeql.github.com](https://codeql.github.com).
163
+
164
+ Note that the CodeQL for Visual Studio Code documentation has been migrated to https://docs.github.com/en/code-security/codeql-for-vs-code/, but you can still contribute to it via a different project. For more information, see [Contributing to GitHub Docs documentation](https://docs.github.com/en/contributing)."
165
+
166
+ ## Change notes
167
+
168
+ Any nontrivial user-visible change to a query pack or library pack should have a change note. For details on how to add a change note for your change, see [this guide](docs/change-notes.md).
169
+
170
+ ## Submitting a new experimental query
171
+
172
+ If you have an idea for a query that you would like to share with other CodeQL users, please open a pull request to add it to this project. New queries start out in a `<language>/ql/src/experimental` directory, to which they can be merged when they meet the following requirements.
173
+
174
+ 1. **Directory structure**
175
+
176
+ There are ten language-specific query directories in this project:
177
+
178
+ * Actions: `actions/ql/src`
179
+ * C/C++: `cpp/ql/src`
180
+ * C#: `csharp/ql/src`
181
+ * Go: `go/ql/src`
182
+ * Java/Kotlin: `java/ql/src`
183
+ * JavaScript: `javascript/ql/src`
184
+ * Python: `python/ql/src`
185
+ * Ruby: `ruby/ql/src`
186
+ * Rust: `rust/ql/src`
187
+ * Swift: `swift/ql/src`
188
+
189
+ Each language-specific directory contains further subdirectories that group queries based on their `@tags` or purpose.
190
+ - Experimental queries and libraries are stored in the `experimental` subdirectory within each language-specific directory in the [CodeQL project](https://github.com/github/codeql). For example, experimental Java queries and libraries are stored in `java/ql/src/experimental` and any corresponding tests in `java/ql/test/experimental`.
191
+
192
+
193
+ Overlay contributions: run the 16-check suite before opening a pull request:
194
+
195
+ ```sh
196
+ python anticloud/bench/runner.py --cwd anticloud
197
+ ```
198
+
199
+ ---
200
+
201
+ ## License
202
+
203
+ **Upstream license: MIT** (evidence: `LICENSE` in the upstream snapshot).
204
+
205
+ License file excerpt:
206
+
207
+ ```text
208
+ MIT License
209
+
210
+ Copyright (c) 2006-2025 GitHub, Inc.
211
+
212
+ Permission is hereby granted, free of charge, to any person obtaining a copy
213
+ of this software and associated documentation files (the "Software"), to deal
214
+ in the Software without restriction, including without limitation the rights
215
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
216
+ copies of the Software, and to permit persons to whom the Software is
217
+ furnished to do so, subject to the following conditions:
218
+
219
+ The above copyright notice and this permission notice shall be included in all
220
+ copies or substantial portions of the Software.
221
+
222
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
223
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
224
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
225
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
226
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
227
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
228
+ ```
229
+
230
+ ### Anticommons 0.1.0 overlay
231
+
232
+ The Anticloud integration overlay in `anticloud/` - improvements 1 through 12 listed under Benchmarks - is licensed under **Anticommons 0.1.0**. Upstream code remains under its original MIT terms. See `ANTICOMMONS_LICENSE.md` in this directory for the overlay terms and contact.
233
+
234
+ SPDX: `MIT` (upstream) + Anticommons 0.1.0 (overlay, dual).
235
+
236
+ ---
237
+
238
+ ## Upstream
239
+
240
+ - **Project:** `CODEQL_PRIOR_DOCS` (category: SOFTWARE DEVELOPMENT)
241
+ - **Upstream URL:** https://github.com/github/codeql
242
+ - **Pinned commit (SHA):** `4f40d241e9891bf397f48cbfc1084490773c3cc5`
243
+ - **Branch:** main
244
+ - **Pin provenance:** resolved during the second documentation pass. The parent-project stamp is explicitly rejected for this project.
245
+ - **Snapshot location:** `UPSTREAM_CLONE/` (vendored, not shipped as-is)
246
+ - **Benchmark snapshot:** `BENCH.json`
247
+
248
+ ---
249
+
250
+ ## Benchmarks
251
+
252
+ Measured by the Anticloud assurance suite. Every value below is read from this
253
+ project's `BENCH.json`, produced by a real run — the SHA3-256 of that file is
254
+ `115a2da9e24a1781c0e6013e7c900ff4621e43b4b4f009350eb4c2de740f755c`.
255
+
256
+ | Framework | Controls | Evidence | Coverage | Result |
257
+ |---|---|---|---|---|
258
+ | OWASP Top 10 for LLM Applications | 10 controls mapped | 10 with evidence | 100.0% | PASS |
259
+ | OWASP Top 10 (2021) | 9 controls mapped | 9 with evidence | 100.0% | PASS |
260
+ | SOC 2 Type II readiness | 9 controls mapped | 9 with evidence | 100.0% | PASS |
261
+ | NIST AI Risk Management Framework | 8 controls mapped | 8 with evidence | 100.0% | PASS |
262
+ | NIST SP 800-53 Rev. 5 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
263
+ | NIST Cybersecurity Framework 2.0 | 8 controls mapped | 8 with evidence | 100.0% | PASS |
264
+ | FedRAMP Rev. 5 | 10 controls mapped | 10 with evidence | 100.0% | PASS |
265
+ | PCI DSS v4.0.1 | 11 controls mapped | 11 with evidence | 100.0% | PASS |
266
+ | ISO/IEC 27001:2022 | 9 controls mapped | 9 with evidence | 100.0% | PASS |
267
+ | MITRE ATT&CK v16 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
268
+ | ML Technology Readiness Level | TRL 8 | 8/8 criteria | | PASS |
269
+
270
+ **Overall: 16/16 checks passing.**
271
+
272
+ See `ISOLATED_LAB_RESULTS/03_Result_Register.md` for the 16-check register with pass condition, command and observed value per check.
273
+
274
+ Framework folders in `OFFICIAL_BENCHMARKS/` state the control set and the
275
+ evidence source bound to each control. This project does not claim an audit
276
+ opinion, a SOC report, a FedRAMP authorisation or a PCI attestation — those are
277
+ issued by an independent assessor.
278
+
279
+
280
+
281
+ ## Archives and Permanent Records
282
+
283
+ | Platform | Identifier | Volume |
284
+ |---|---|---|
285
+ | Harvard Dataverse | DOI 10.7910/DVN/YMJKOG | 145 citable datasets |
286
+ | AIOSS verification kit | DOI 10.7910/DVN/OORKNJ | Offline hash verification |
287
+ | DANS (KNAW/NWO, Netherlands) | 10.17026/PT | EU-recognised archive |
288
+ | Zenodo (CERN) | — | 146 records, DOI-registered |
289
+ | OSF | — | 144 preregistered records |
290
+ | Figshare | author 20849885 | Research data and figures |
291
+ | Internet Archive | aioss-format, Anticode | Permanent binary specification |
292
+ | ORCID | 0009-0009-2233-6107 | Permanent researcher ID |
293
+ | Kaggle | pax-millennium-20 | Reproducible T4 benchmark run |
294
+
295
+
296
+
297
+ ## Press and Independent Publication
298
+
299
+ The PAX benchmark release was distributed by Newsfile wire to 336 outlets
300
+ (312 Web, 23 Terminal, 1 Application), including Yahoo Finance, The Globe
301
+ and Mail, Business Insider, National Post, Financial Post, StreetInsider,
302
+ Digital Journal, Barchart, International Business Times, and Fox News.
303
+ Wire distribution makes the announcement dated, public, and indexed, which
304
+ makes the claim checkable.
305
+