Datasets:
Download SOURCE_AUDIT.md from Zreby/security-code-curated-v1: direct link, hf CLI and curl.
- Browser
- Download file 12.6 kB
-
https://huggingface.co/datasets/Zreby/security-code-curated-v1/resolve/main/SOURCE_AUDIT.md
- Command line
-
hf download hf://datasets/Zreby/security-code-curated-v1/SOURCE_AUDIT.md
-
curl -L -o SOURCE_AUDIT.md https://huggingface.co/datasets/Zreby/security-code-curated-v1/resolve/main/SOURCE_AUDIT.md
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/ at pinned commit c9f99228d9d56afb5f5ca7925376292f7fa44b13. The pinned root MIT license is included as 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, candidate, and challenge-marked solution. 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. Each has an SPDX-License-Identifier: MIT header. The upstream license is included as 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. The upstream 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 and per-record provenance.
SqlInjectionLesson5a.javaconcatenates request-supplied account/operator/injection content into SQL executed by aStatement. Its integration test 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.javaappends a request-suppliedcolumnvalue to anORDER BYclause. The integration test passes SQL expressions through that parameter. The record supplies a curator-authored allowlist example, not an upstream patch.SqlInjectionLesson13.javauses a fixed query structure and binds both values throughPreparedStatement.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. 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 contains that notice in its opening comment. The matching upstream LICENSE is included as LICENSES/OWASP-BENCHMARK-GPL-2.0.txt, SHA-256 c03cea027b4b40e4402fabd08557736727ec3d5bc54ad64ab6472de432198cad.
The official BenchmarkJava documentation describes test cases and expected results by category. The copied labels are joined by test name to the pinned 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 and 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 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 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 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 is MIT for covered project material, but the opened SWC-107 and 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 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 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 does not provide a dataset-content license in the inspected files. The paper's CC BY 4.0 notice 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 describes the dataset as CC BY 4.0, while the GitHub MIT license covers the collection software. Its data dictionary 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 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 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 covers the repository's software, while the README 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 does not by itself clear the C/C++ snippets; the README 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.