# Source audit and evidence This audit records the license evidence for included subsets and the sources held out during this candidate update. A repository's license or a dataset-card badge is not assumed to cover third-party code copied into that repository or dataset. ## OWASP Juice Shop The selected TypeScript and YAML files are first-party code-fix challenge files from [`data/static/codefixes/`](https://github.com/juice-shop/juice-shop/tree/c9f99228d9d56afb5f5ca7925376292f7fa44b13/data/static/codefixes) at pinned commit [`c9f99228d9d56afb5f5ca7925376292f7fa44b13`](https://github.com/juice-shop/juice-shop/tree/c9f99228d9d56afb5f5ca7925376292f7fa44b13). The pinned root [MIT license](https://raw.githubusercontent.com/juice-shop/juice-shop/c9f99228d9d56afb5f5ca7925376292f7fa44b13/LICENSE) is included as [`LICENSES/OWASP-JUICE-SHOP-MIT.txt`](LICENSES/OWASP-JUICE-SHOP-MIT.txt). Selection required challenge metadata, numbered alternatives, and a paired `_correct` file. Files with explicit SPDX/copyright notices in their first 30 lines, and files matching common secret-like patterns, were held back. The release contains 83 records across 33 groups (71 TypeScript and 12 YAML). `_correct` means marked correct by the upstream exercise, not universally secure; other options are not automatically vulnerable. Examples checked include the [SQL-injection metadata](https://raw.githubusercontent.com/juice-shop/juice-shop/c9f99228d9d56afb5f5ca7925376292f7fa44b13/data/static/codefixes/unionSqlInjectionChallenge.info.yml), [candidate](https://raw.githubusercontent.com/juice-shop/juice-shop/c9f99228d9d56afb5f5ca7925376292f7fa44b13/data/static/codefixes/unionSqlInjectionChallenge_1.ts), and [challenge-marked solution](https://raw.githubusercontent.com/juice-shop/juice-shop/c9f99228d9d56afb5f5ca7925376292f7fa44b13/data/static/codefixes/unionSqlInjectionChallenge_2_correct.ts). The per-record provenance includes the exact source URLs and hashes. ## OpenZeppelin Contracts v5.7.0 Five Solidity files were selected from [OpenZeppelin Contracts v5.7.0](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/v5.7.0). Each has an `SPDX-License-Identifier: MIT` header. The upstream [license](https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/v5.7.0/LICENSE) is included as [`OPENZEPPELIN-MIT.txt`](OPENZEPPELIN-MIT.txt); each file's URL and SHA-256 are in its record provenance. These are library references, not safety labels or application audits. ## OWASP WebGoat The new subset is pinned to [WebGoat commit `4e98f1cbbf896fdd06edcc9930515ebe0ade7c69`](https://github.com/WebGoat/WebGoat/tree/4e98f1cbbf896fdd06edcc9930515ebe0ade7c69). The upstream [`LICENSE.txt`](https://raw.githubusercontent.com/WebGoat/WebGoat/4e98f1cbbf896fdd06edcc9930515ebe0ade7c69/LICENSE.txt) identifies `GPL-2.0-or-later`, and every selected Java file has a file-level SPDX notice plus WebGoat authors' copyright text. The exact upstream notice and full GPLv2 text are included in `LICENSES/`. The files, license texts, their revisions, and checksums are described in [`DATA_SOURCES.md`](DATA_SOURCES.md) and per-record provenance. - [`SqlInjectionLesson5a.java`](https://github.com/WebGoat/WebGoat/blob/4e98f1cbbf896fdd06edcc9930515ebe0ade7c69/src/main/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5a.java) concatenates request-supplied account/operator/injection content into SQL executed by a `Statement`. Its [integration test](https://github.com/WebGoat/WebGoat/blob/4e98f1cbbf896fdd06edcc9930515ebe0ade7c69/src/test/java/org/owasp/webgoat/lessons/sqlinjection/introduction/SqlInjectionLesson5aTest.java) includes an OR-based injection that completes the exercise. The pinned revision does not provide a directly paired fixed source file; the record marks its mitigation example as curator-authored. - [`Servers.java`](https://github.com/WebGoat/WebGoat/blob/4e98f1cbbf896fdd06edcc9930515ebe0ade7c69/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/Servers.java) appends a request-supplied `column` value to an `ORDER BY` clause. The [integration test](https://github.com/WebGoat/WebGoat/blob/4e98f1cbbf896fdd06edcc9930515ebe0ade7c69/src/test/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13Test.java) passes SQL expressions through that parameter. The record supplies a curator-authored allowlist example, not an upstream patch. - [`SqlInjectionLesson13.java`](https://github.com/WebGoat/WebGoat/blob/4e98f1cbbf896fdd06edcc9930515ebe0ade7c69/src/main/java/org/owasp/webgoat/lessons/sqlinjection/mitigation/SqlInjectionLesson13.java) uses a fixed query structure and binds both values through `PreparedStatement.setString`; the matching integration test checks expected and unexpected IP inputs. This is a narrow code-pattern reference, not a claim about the full application. No AI/ML-specific grant or restriction was found in the inspected WebGoat license or selected source headers. This is not a separate determination of training rights. The copied code remains subject to the GPL terms, and no single license is applied to the entire dataset. ## OWASP BenchmarkJava v1.2 The subset is pinned to [BenchmarkJava commit `10dfcc54ad02dcfcb358b0ba4a0fef8c919a6d17`](https://github.com/OWASP-Benchmark/BenchmarkJava/tree/10dfcc54ad02dcfcb358b0ba4a0fef8c919a6d17). Unlike a wrapper-only license claim, each selected Java test file carries its own OWASP Benchmark header stating that the program may be redistributed and modified under GNU GPL version 2. For example, the selected [BenchmarkTest02613.java](https://raw.githubusercontent.com/OWASP-Benchmark/BenchmarkJava/10dfcc54ad02dcfcb358b0ba4a0fef8c919a6d17/src/main/java/org/owasp/benchmark/testcode/BenchmarkTest02613.java) contains that notice in its opening comment. The matching upstream [`LICENSE`](https://raw.githubusercontent.com/OWASP-Benchmark/BenchmarkJava/10dfcc54ad02dcfcb358b0ba4a0fef8c919a6d17/LICENSE) is included as [`LICENSES/OWASP-BENCHMARK-GPL-2.0.txt`](LICENSES/OWASP-BENCHMARK-GPL-2.0.txt), SHA-256 `c03cea027b4b40e4402fabd08557736727ec3d5bc54ad64ab6472de432198cad`. The [official BenchmarkJava documentation](https://github.com/OWASP/www-project-benchmark/blob/master/tab_java_test_cases.md) describes test cases and expected results by category. The copied labels are joined by test name to the [pinned `expectedresults-1.2.csv`](https://raw.githubusercontent.com/OWASP-Benchmark/BenchmarkJava/10dfcc54ad02dcfcb358b0ba4a0fef8c919a6d17/expectedresults-1.2.csv), SHA-256 `1809f6a690c6cf7dd6685df6ebe2eef8fe3ca93d19a7ca0ce45987ca4f5d78e1`. The 22-file subset contains one expected-vulnerable and one expected-not-vulnerable case for each of 11 categories. Per-record provenance stores source URL/path, commit, code hash, license hash, expected-results URL/hash, category, expected status, and CWE. A negative result is scoped to that exact benchmark case/category, not a claim that the whole file is safe. No AI/ML-specific grant or restriction was identified in the selected file headers or GPLv2 text. The code is explicitly redistributable under GPLv2 subject to its conditions; this does not decide how those terms apply to every model-training or downstream-distribution scenario. The source files are included verbatim and were not compiled or executed. ## Other candidates held out **Semgrep Rules Registry.** The attachment describes Semgrep's rules as LGPL-2.1. The official [Semgrep licensing documentation](https://docs.semgrep.dev/licensing) and [Rules License](https://semgrep.dev/legal/rules-license/) instead state that Semgrep-maintained rules in `semgrep-rules` are under Semgrep Rules License v1.0, available for internal business use, and may not be distributed. Semgrep's [2024 licensing update](https://semgrep.dev/blog/2024/important-updates-to-semgrep-oss/) describes the change. The inspected terms do not supply a separate AI/ML grant, and distribution is expressly barred, so no Semgrep-maintained rule or snippet was copied. **Sealevel Attacks.** The inspected [repository](https://github.com/coral-xyz/sealevel-attacks) and representative Rust source files did not expose a repository or file-level redistribution license. Useful insecure/secure examples exist, but they remain out until rights are established. Public availability and dependency licenses do not clear the selected code. **SmartBugs Curated.** Its [README](https://raw.githubusercontent.com/smartbugs/smartbugs-curated/master/README.md) says the contracts retain their original licenses and that the repository license applies to the other files. Thus the wrapper's Apache-2.0 license does not clear the Solidity contracts as a group. No contract snippets were copied. **SWC Registry.** The root [license](https://github.com/SmartContractSecurity/SWC-registry/blob/master/LICENSE) is MIT for covered project material, but the opened [SWC-107](https://swcregistry.io/docs/SWC-107/) and [SWC-101](https://swcregistry.io/docs/SWC-101/) pages include code examples with external source/author attributions and no verified per-sample license. A root MIT file is not enough to clear those examples; they were held. **Slither-audited smart contracts.** The [Hugging Face dataset card](https://huggingface.co/datasets/mwritescode/slither-audited-smart-contracts) says the repository license applies except to Solidity source code, which retains its original licenses. The card describes model-training use, but that does not identify redistribution rights for each underlying contract. No contracts were copied. **Big-Vul.** The [repository](https://github.com/rshariffdeen/Big-Vul) and its MIT license describe the collection materials, but the data contains patches/functions collected from upstream projects and does not provide verified per-file license clearance for every code excerpt. No code rows were copied. **DiverseVul.** The official [repository](https://github.com/wagner-group/diversevul) does not provide a dataset-content license in the inspected files. The paper's [CC BY 4.0 notice](https://surrealyz.github.io/files/pubs/raid23-diversevul.pdf) applies to the paper; the opened sources do not establish that every extracted upstream code snippet is licensed the same way. No code rows were copied. **CVEfixes.** The official [Zenodo record](https://zenodo.org/records/13118970) describes the dataset as CC BY 4.0, while the [GitHub MIT license](https://raw.githubusercontent.com/secureIT-project/CVEfixes/main/LICENSE.txt) covers the collection software. Its [data dictionary](https://raw.githubusercontent.com/secureIT-project/CVEfixes/main/Doc/DataDictionary.md) exposes code before/after changes from many upstream repositories but does not document a per-sample upstream license field. The dataset-level and wrapper licenses therefore do not establish redistribution rights for every embedded source sample. No CVEfixes code was copied. **NIST Software Assurance Reference Dataset (SARD).** NIST's [dataset paper](https://pmc.ncbi.nlm.nih.gov/articles/PMC7339570/) says sample licenses vary and that many cases are public domain; it does not grant one license for all contributed code. An inspected [DSpace case](https://samate.nist.gov/SARD/test-cases/501362/versions/1.0.1) directs users to the upstream project's own LICENSE and NOTICE files. Public access and case metadata do not clear a sample for redistribution or AI/ML use. No SARD code was copied. **PrimeVul.** Its [repository license](https://raw.githubusercontent.com/DLVulDet/PrimeVul/main/LICENSE) covers the repository's software, while the [README](https://raw.githubusercontent.com/DLVulDet/PrimeVul/main/README.md) describes vulnerable/benign snippets and copied project files from upstream repositories without a blanket sample-code license or per-sample license field. Provenance links alone do not establish redistribution rights. No PrimeVul code was copied. **VulDeePecker Code Gadget Database.** The root [Apache-2.0 license](https://github.com/cgcl-codes/vuldeepecker/blob/master/LICENSE) does not by itself clear the C/C++ snippets; the [README](https://github.com/cgcl-codes/vuldeepecker) describes data sourced from NVD-associated projects and SARD but provides no common sample-code grant. No CGD code was copied. These exclusions are source-specific curation decisions, not claims that every listed source is unusable. Exact file-level rights and applicable notices would need to be established before any future code selection. No generated rewrite was used as a substitute for checking the license of copied code.