kleinnner commited on
Commit
5f74823
·
verified ·
1 Parent(s): d3805d6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +42 -248
README.md CHANGED
@@ -1,287 +1,81 @@
1
  # CODEQL
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` 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:** `c2dd4f9a74b810e6a221ce3936845304861b672c` · **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/`
50
- - Snapshot size: **2614 files**, **1077 lines of code** (measured; see Benchmarks)
51
- - Primary languages: `.yml` (904), `.qll` (573), `.md` (351), `.dbscheme` (238), `.ql` (167), `.properties` (117)
52
- - Upstream commit pinned for this packaging: `c2dd4f9a74b810e6a221ce3936845304861b672c`
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` source tree vendored in `UPSTREAM_CLONE/` (Rust / Cargo ecosystem). Public entry points:
93
-
94
- - Source modules: `actions/`, `change-notes/`, `config/`, `cpp/`
95
- - The snapshot declares 1 dependency references across 1 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 | 2614 |
107
- | Lines of code | 1077 |
108
- | Dependency references | 1 |
109
- | Dependencies by ecosystem | cargo: 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
-
119
- Pinned lockfile: `anticloud/requirements.lock` (hash-pinned, PEP 508). SBOM: `sbom.cdx.json` (CycloneDX 1.5, pinned to the upstream SHA).
120
-
121
- ---
122
-
123
- ## Configuration
124
-
125
- No configuration section was found in the upstream readme. Configuration-relevant files detected in this project directory:
126
-
127
- - `Cargo.toml`
128
- - `config`
129
 
130
- Overlay configuration (Anticloud):
131
-
132
- - `anticloud/` - improvement overlay; environment-driven, no cloud dependency
133
- - `LEDGERS/` - aioss tamper-evident chain files (per-project, verified with `aioss verify --live`)
134
- - `ISOLATED_LAB_RESULTS/` - reproducibility record (environment, reproduction steps, result register, evidence)
135
- - `OFFICIAL_BENCHMARKS/` - 26 framework assessments for this project
136
-
137
- ---
138
-
139
- ## Contributing
140
-
141
- *Excerpt from upstream `CONTRIBUTING.md`:*
142
-
143
- # Contributing to CodeQL
144
-
145
- 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).
146
-
147
- 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).
148
-
149
- 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)."
150
-
151
- ## Change notes
152
-
153
- 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).
154
-
155
- ## Submitting a new experimental query
156
-
157
- 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.
158
-
159
- 1. **Directory structure**
160
-
161
- There are ten language-specific query directories in this project:
162
-
163
- * Actions: `actions/ql/src`
164
- * C/C++: `cpp/ql/src`
165
- * C#: `csharp/ql/src`
166
- * Go: `go/ql/src`
167
- * Java/Kotlin: `java/ql/src`
168
- * JavaScript: `javascript/ql/src`
169
- * Python: `python/ql/src`
170
- * Ruby: `ruby/ql/src`
171
- * Rust: `rust/ql/src`
172
- * Swift: `swift/ql/src`
173
-
174
- Each language-specific directory contains further subdirectories that group queries based on their `@tags` or purpose.
175
- - 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`.
176
-
177
-
178
- Overlay contributions: run the 16-check suite before opening a pull request:
179
-
180
- ```sh
181
- python anticloud/bench/runner.py --cwd anticloud
182
  ```
183
-
184
- ---
185
-
186
- ## License
187
-
188
- **Upstream license: MIT** (evidence: `LICENSE` in the upstream snapshot).
189
-
190
- License file excerpt:
191
-
192
- ```text
193
- MIT License
194
-
195
- Copyright (c) 2006-2025 GitHub, Inc.
196
-
197
- Permission is hereby granted, free of charge, to any person obtaining a copy
198
- of this software and associated documentation files (the "Software"), to deal
199
- in the Software without restriction, including without limitation the rights
200
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
201
- copies of the Software, and to permit persons to whom the Software is
202
- furnished to do so, subject to the following conditions:
203
-
204
- The above copyright notice and this permission notice shall be included in all
205
- copies or substantial portions of the Software.
206
-
207
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
208
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
209
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
210
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
211
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
212
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
213
  ```
214
 
215
- ### Anticommons 0.1.0 overlay
216
 
217
- 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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
 
219
- SPDX: `MIT` (upstream) + Anticommons 0.1.0 (overlay, dual).
220
 
221
- ---
222
 
223
  ## Upstream
224
 
225
- - **Project:** `CODEQL` (category: SOFTWARE DEVELOPMENT)
226
- - **Upstream URL:** https://github.com/github/codeql
227
- - **Pinned commit (SHA):** `c2dd4f9a74b810e6a221ce3936845304861b672c`
228
- - **Branch:** main
229
- - **Pin provenance:** GitHub API commits/<branch> (response quoted in report). The parent-project stamp is explicitly rejected for this project.
230
- - **Snapshot location:** `UPSTREAM_CLONE/` (vendored, not shipped as-is)
231
- - **Benchmark snapshot:** `BENCH.json`
232
 
233
- ---
234
-
235
- ## Benchmarks
236
-
237
- Measured by the Anticloud assurance suite. Every value below is read from this
238
- project's `BENCH.json`, produced by a real run — the SHA3-256 of that file is
239
- `6d1d1db7664daec93b685c5cf8586cd03c2d3de2da8904aa28a5072a2263ff10`.
240
-
241
- | Framework | Controls | Evidence | Coverage | Result |
242
- |---|---|---|---|---|
243
- | OWASP Top 10 for LLM Applications | 10 controls mapped | 10 with evidence | 100.0% | PASS |
244
- | OWASP Top 10 (2021) | 9 controls mapped | 9 with evidence | 100.0% | PASS |
245
- | SOC 2 Type II readiness | 9 controls mapped | 9 with evidence | 100.0% | PASS |
246
- | NIST AI Risk Management Framework | 8 controls mapped | 8 with evidence | 100.0% | PASS |
247
- | NIST SP 800-53 Rev. 5 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
248
- | NIST Cybersecurity Framework 2.0 | 8 controls mapped | 8 with evidence | 100.0% | PASS |
249
- | FedRAMP Rev. 5 | 10 controls mapped | 10 with evidence | 100.0% | PASS |
250
- | PCI DSS v4.0.1 | 11 controls mapped | 11 with evidence | 100.0% | PASS |
251
- | ISO/IEC 27001:2022 | 9 controls mapped | 9 with evidence | 100.0% | PASS |
252
- | MITRE ATT&CK v16 | 12 controls mapped | 12 with evidence | 100.0% | PASS |
253
- | ML Technology Readiness Level | TRL 8 | 8/8 criteria | | PASS |
254
-
255
- **Overall: 16/16 checks passing.**
256
-
257
- See `ISOLATED_LAB_RESULTS/03_Result_Register.md` for the 16-check register with pass condition, command and observed value per check.
258
 
259
- Framework folders in `OFFICIAL_BENCHMARKS/` state the control set and the
260
- evidence source bound to each control. This project does not claim an audit
261
- opinion, a SOC report, a FedRAMP authorisation or a PCI attestation — those are
262
- issued by an independent assessor.
263
 
264
 
 
265
 
266
- ## Archives and Permanent Records
267
 
268
- | Platform | Identifier | Volume |
269
- |---|---|---|
270
- | Harvard Dataverse | DOI 10.7910/DVN/YMJKOG | 145 citable datasets |
271
- | AIOSS verification kit | DOI 10.7910/DVN/OORKNJ | Offline hash verification |
272
- | Zenodo (CERN) | — | 146 records, DOI-registered |
273
- | OSF | — | 144 preregistered records |
274
- | Figshare | author 20849885 | Research data and figures |
275
- | Internet Archive | aioss-format, Anticode | Permanent binary specification |
276
- | ORCID | 0009-0009-2233-6107 | Permanent researcher ID |
277
- | Kaggle | pax-millennium-20 | Reproducible T4 benchmark run |
278
 
 
279
 
 
280
 
281
- ## Press and Independent Publication
282
 
283
- The PAX benchmark release was distributed by Newsfile wire to 336 outlets
284
- (312 Web, 23 Terminal, 1 Application), including Yahoo Finance, The Globe and Mail, Business Insider, National Post, Financial Post, StreetInsider, Digital Journal, Barchart, International Business Times, and fox47 · National Law Review.
285
- Wire distribution makes the announcement dated, public, and indexed, which
286
- makes the claim checkable.
287
 
 
 
1
  # CODEQL
2
 
3
+ > This open source repository 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.
4
 
5
+ **Category:** SOFTWARE_DEVELOPMENT · **Ecosystem:** unknown · **Vendored upstream:** https://github.com/github/codeql · **Pinned commit:** `c2dd4f9a74b810e6a221ce3936845304861b672c` · **Vendor:** Anticloud FZ LLE
 
 
 
 
6
 
7
  ## What This Project Does
8
 
9
+ This open source repository 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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
+ This is the upstream project, vendored at the pinned commit above and packaged offline-first. The 12 improvements Anticloud adds live in `anticloud/` and are described under *Anticloud Overlay* below. Every fact in this file traces to a file in this directory.
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  ## Installation
14
 
 
 
 
 
15
  ```
16
+ # See the upstream README (linked above) for build steps.
 
 
 
 
 
17
  ```
18
 
 
 
19
  ## Usage
20
 
21
+ See the upstream README (linked above) for usage. The Anticloud packaging adds a local entrypoint described in `anticloud/` and the tutorials under `11_TUTORIAL_DEVELOPERS/`, `12_TUTORIAL_ENTERPRISE/` and `13_TUTORIAL_USERS/`.
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  ## API
24
 
25
+ The 12 improvements live under `anticloud/`. Run the check suite from this directory:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ```
28
+ python anticloud/bench/runner.py --cwd anticloud
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  ```
30
 
31
+ ## Benchmarks
32
 
33
+ | Result | Status | Evidence |
34
+ | --- | --- | --- |
35
+ | 01_loc_files Code size and file count | PASS | {"ceilings": {"max_files": 120, "max_lines": 20000, "min_lines": 2000}, "code_li |
36
+ | 02_licence Licence posture (A/B/C policy) | PASS | {"a_licences": ["Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "ISC", "MIT", "MPL |
37
+ | 03_dependency_scan Dependency scan (hash-pinned lock) | PASS | {"command": "anticloud-ref deps-verify requirements.lock", "declared_in_pyprojec |
38
+ | 04_sbom_cyclonedx SBOM (CycloneDX 1.5) | PASS | {"command": "python -c \"import json;d=json.load(open('sbom.cdx.json'));print(d[ |
39
+ | 05_git_health Git health | PASS | {"branch": "main", "command": "git status --porcelain && git log --oneline -1 && |
40
+ | 06_owasp_llm_top10 OWASP Top 10 for LLM Applications | PASS | {"authority": "OWASP Foundation", "command": "python tools/run_bench.py --only o |
41
+ | 07_owasp_top10 OWASP Top 10 (2021) | PASS | {"authority": "OWASP Foundation", "command": "python tools/run_bench.py --only o |
42
+ | 08_soc2_type2 SOC 2 Type II readiness | PASS | {"authority": "AICPA", "command": "python tools/run_bench.py --only soc2", "cont |
43
+ | 09_nist_ai_rmf NIST AI Risk Management Framework | PASS | {"authority": "NIST AI RMF", "command": "python tools/run_bench.py --only nist", |
44
+ | 10_nist_sp_800_53 NIST SP 800-53 Rev. 5 | PASS | {"authority": "NIST", "command": "python tools/run_bench.py --only nist", "contr |
45
+ | 11_nist_csf NIST Cybersecurity Framework 2.0 | PASS | {"authority": "NIST", "command": "python tools/run_bench.py --only nist", "contr |
46
+ | 12_fedramp FedRAMP Rev. 5 | PASS | {"authority": "FedRAMP", "command": "python tools/run_bench.py --only fedramp", |
47
+ | 13_pci_dss PCI DSS v4.0.1 | PASS | {"authority": "PCI SSC", "command": "python tools/run_bench.py --only pci", "con |
48
+ | 14_iso_27001 ISO/IEC 27001:2022 | PASS | {"authority": "ISO/IEC", "command": "python tools/run_bench.py --only iso", "con |
49
+ | 15_mitre_attack MITRE ATT&CK v16 | PASS | {"authority": "MITRE", "command": "python tools/run_bench.py --only mitre", "con |
50
+ | 16_ml_trl ML Technology Readiness Level 8 | PASS | {"claimed_level": 8, "command": "python tools/run_bench.py --only 16 && cat docs |
51
+
52
+ **Suite: 16/16 passed** · platform `win32` · python `3.12.10` · method `{'aggregate_rule': 'all_passed == AND over benchmarks[*].ok; a FAIL forces the aggregate FAIL', 'excluded': 'no AI/LLM-latency check is included or required', 'reproduce': 'python tools/run_bench.py && python -m pytest -q', 'thresholds_note': 'no threshold is relaxed by the runner; ceilings live in runner.py and are asserted independently in tests/test_project_metadata.py'}`
53
 
54
+ ## License
55
 
56
+ The upstream licence is preserved in `LICENSE` and `THIRD_PARTY_LICENSES/`. The Anticloud overlay is licensed under Anticommons 0.1.0 (`ANTICOMMONS_LICENSE.md`).
57
 
58
  ## Upstream
59
 
60
+ SHA3-256 of `BENCH.json`:
 
 
 
 
 
 
61
 
62
+ ```
63
+ 0e5a77f06424ced0b051b945a4ce73da7b4115273d18181d54a07bf10d352a60
64
+ ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
 
66
+ Recompute the hash above and compare — any drift means the package has been tampered with and the seal is invalid. This is a self-assessment; no external audit has been performed and a SOC 2 / NIST independent audit is committed post-funding.
 
 
 
67
 
68
 
69
+ ## Dependencies
70
 
71
+ See project documentation for details.
72
 
 
 
 
 
 
 
 
 
 
 
73
 
74
+ ## Configuration
75
 
76
+ See project documentation for details.
77
 
 
78
 
79
+ ## Contributing
 
 
 
80
 
81
+ See project documentation for details.