|
Download docs/reports/RELEASE_CANDIDATE_REPORT.md from Helinity/python-security-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 12.7 kB
-
https://huggingface.co/datasets/Helinity/python-security-benchmark/resolve/main/docs/reports/RELEASE_CANDIDATE_REPORT.md
- Command line
-
hf download hf://datasets/Helinity/python-security-benchmark/docs/reports/RELEASE_CANDIDATE_REPORT.md
-
curl -L -o RELEASE_CANDIDATE_REPORT.md https://huggingface.co/datasets/Helinity/python-security-benchmark/resolve/main/docs/reports/RELEASE_CANDIDATE_REPORT.md
12.7 kB
| # CodeDNA research release candidate — v0.1.0 | |
| Recommendation: **READY FOR PRIVATE STAGING**, subject to the remote identity, | |
| private-visibility and file-integrity checks in the future publication procedure. | |
| This recommendation concerns the local audited candidate. No authenticated Hub | |
| access, upload, account change, model training or dataset expansion was performed. | |
| The remote repository's current visibility and hosted viewer are not certified. | |
| ## 1. Dataset statistics and evidence counts | |
| There are **154 distinct research records**, with **66 insecure** and **88 secure** | |
| labels scoped to their mechanisms. The original 64 records and stable IDs remain | |
| preserved inside the historical 84-record corpus; Phase 3C.1 contributes 70. | |
| There are **115 eligible records** across separate official versions: the previous | |
| 49 and the preserved new 66. The other **39** remain research-only (35 legacy, | |
| four new). Configuration row counts overlap and must not be summed. | |
| | Configuration | Train | Validation | Test/examples | Total | | |
| |---|---:|---:|---:|---:| | |
| | default | — | — | 64 | 64 | | |
| | corpus | 53 | 16 | 15 | 84 | | |
| | benchmark (historical, not official) | 37 | 12 | 11 | 60 | | |
| | official (Phase 3B) | 23 | 16 | 10 | 49 | | |
| | corpus_3c1 | 31 | 16 | 23 | 70 | | |
| | official_3c1 | 27 | 16 | 23 | 66 | | |
| **82 eligible records have Docker runtime evidence** (16 legacy critical-CWE | |
| records plus 66 newer records); **33 have controlled local-process property | |
| evidence**. Historical `isolated_runtime_behavior_verified` wording for those | |
| 33 does not mean an OS sandbox. This distinction is explicit in the RC eligibility | |
| manifest and Dataset Card without modifying old annotations. New runtime contracts | |
| also pass for the four excluded records, but only demonstrate serialization; | |
| successful execution alone does not establish the missing security sink. | |
| The corpus has 34 primary CWE categories and 56 stored family identifiers. Legacy | |
| families are broader than the 40 new authored scenario IDs, so 56 is not a count | |
| of statistically independent scenarios. New scenarios form 27 conservative groups. | |
| | CWE | All records | Eligible | Insecure | Secure | | |
| |---|---:|---:|---:|---:| | |
| | CWE-20 | 2 | 2 | 1 | 1 | | |
| | CWE-22 | 10 | 10 | 4 | 6 | | |
| | CWE-59 | 2 | 2 | 1 | 1 | | |
| | CWE-78 | 9 | 7 | 3 | 6 | | |
| | CWE-79 | 9 | 0 | 4 | 5 | | |
| | CWE-89 | 12 | 12 | 5 | 7 | | |
| | CWE-95 | 3 | 3 | 1 | 2 | | |
| | CWE-113 | 2 | 2 | 1 | 1 | | |
| | CWE-117 | 7 | 7 | 3 | 4 | | |
| | CWE-187 | 2 | 2 | 1 | 1 | | |
| | CWE-209 | 9 | 9 | 4 | 5 | | |
| | CWE-294 | 2 | 2 | 1 | 1 | | |
| | CWE-295 | 5 | 0 | 2 | 3 | | |
| | CWE-338 | 5 | 1 | 2 | 3 | | |
| | CWE-347 | 3 | 3 | 1 | 2 | | |
| | CWE-377 | 2 | 2 | 1 | 1 | | |
| | CWE-378 | 4 | 0 | 2 | 2 | | |
| | CWE-436 | 2 | 2 | 1 | 1 | | |
| | CWE-489 | 2 | 2 | 1 | 1 | | |
| | CWE-502 | 8 | 7 | 3 | 5 | | |
| | CWE-524 | 2 | 2 | 1 | 1 | | |
| | CWE-532 | 7 | 7 | 3 | 4 | | |
| | CWE-598 | 4 | 4 | 2 | 2 | | |
| | CWE-601 | 2 | 0 | 1 | 1 | | |
| | CWE-614 | 5 | 2 | 2 | 3 | | |
| | CWE-639 | 3 | 3 | 1 | 2 | | |
| | CWE-672 | 2 | 2 | 1 | 1 | | |
| | CWE-732 | 2 | 2 | 1 | 1 | | |
| | CWE-770 | 2 | 2 | 1 | 1 | | |
| | CWE-798 | 7 | 7 | 3 | 4 | | |
| | CWE-807 | 2 | 2 | 1 | 1 | | |
| | CWE-862 | 9 | 4 | 4 | 5 | | |
| | CWE-915 | 3 | 3 | 1 | 2 | | |
| | CWE-916 | 4 | 0 | 2 | 2 | | |
| | Framework metadata | Records | Eligible | | |
| |---|---:|---:| | |
| | FastAPI | 22 | 22 | | |
| | Flask | 22 | 18 | | |
| | SQLAlchemy | 3 | 3 | | |
| | django | 2 | 0 | | |
| | django-compatible | 1 | 0 | | |
| | stdlib | 23 | 23 | | |
| | unspecified | 81 | 49 | | |
| `unspecified` is legacy null metadata, not proof of a framework-free implementation. | |
| Legacy Django metadata does not imply installed/deployed Django verification. | |
| Machine-readable final counts are in `releases/v0.1.0/statistics.json`. | |
| ## 2. Quality, integrity and reproducibility | |
| All original fields/IDs, both corpus populations, labels, pair completeness, | |
| source/sink line bounds, Python syntax, evidence-reference targets and source | |
| hashes were checked. All six configurations retain their original paths and | |
| schemas. Official membership matches versioned eligibility exactly; mock-only, | |
| ambiguous and insufficiently verified records cannot silently enter it. | |
| The existing evaluator regenerates evidence and rejects stale manifests. | |
| The RC manifest is a reconciliation ledger, not permission to bypass those gates. | |
| Combined similarity checks cover 11,781 comparisons: zero exact text/AST | |
| duplicates, 22 near matches and zero cross-split near matches. All seven historical | |
| near-duplicate dispositions remain unchanged. Split boundaries for scenario, | |
| pair and leakage groups are enforced. Whole-application normalized AST/token | |
| analysis does not prove semantic independence or detect every conceptual overlap. | |
| The original generator, Phase 3A generator, completed Phase 3B generator and Phase | |
| 3C.1 generator reproduce their recorded bytes. The early Phase 3B 33-record | |
| eligibility annotations, summary and splits are separately reconstructed, and all | |
| four saved test baselines recompute unchanged. The historical Docker-unavailable | |
| message is preserved as historical metadata, not reported as today's environment. | |
| The historical checksum lock preserves 207 files, including Phase 3C.1 data, tooling, report and archived pre-RC documentation. | |
| Complete regression suite: **65 passed in 23.09s**. | |
| - PASS: `python -m pytest -q` | |
| - PASS: `python -m scripts.generate_dataset --check` | |
| - PASS: `python -m scripts.validate_dataset` | |
| - PASS: `python -m research.build --check` | |
| - PASS: `python -m research.harden --check` | |
| - PASS: `python -m research.expansion.release --check` | |
| - PASS: `python -m research.release_candidate.historical` | |
| - PASS: `python -m research.release_candidate.exclusions` | |
| - PASS: `python -m research.release_candidate.check_loading --write` | |
| The container replay includes all 140 Phase 3C.1 benign/adversarial checks and | |
| all eight legacy critical-CWE pair cases. The four additional context probes | |
| execute under the same hardened image without networking or host mounts. | |
| Actual outputs, restrictions and image/source hashes are retained. The current | |
| Docker Linux engine is 29.9.3 on linux/amd64. No weaker execution fallback was used. | |
| ## 3. Independent-review status | |
| **Zero independent human reviews are complete.** The existing 64-record stratified | |
| Phase 3C.1 packet now has individual Markdown pages, a linked index, pending JSONL | |
| forms and a JSON schema under `releases/v0.1.0/review`. No new sample selection | |
| was substituted. The packet does not cover every legacy record. | |
| Each page includes code, assumptions, primary-CWE rationale, expected findings, | |
| contracts and observed behavior. Identity, date, independence declaration and | |
| decision remain null. Checklist and disagreement procedures require immutable | |
| reviews, explicit adjudication and source-hash binding. Disputed records and their | |
| pairs must be excluded in a new versioned scoring release until resolved; submitted | |
| forms do not modify historical eligibility automatically. Structural validation | |
| cannot prove that a human actually conducted an independent review. | |
| ## 4. Outstanding exclusions and false-positive risks | |
| The four new exclusions are the two `comment-html-rendering` and two | |
| `post-login-return-path` variants. Their unchanged Flask `/run` routes return | |
| `application/json`, HTTP 200, and no `Location` header. An offline parser sees | |
| the authored markup/external URL in the result, but neither an HTML rendering sink | |
| nor an actual redirect is reached. Treat their insecure labels as conditional | |
| downstream research hypotheses, not verified application vulnerabilities. | |
| The dedicated context probe records those actual responses. No browser is | |
| installed in the audited image, and changing the fixtures into HTML/redirect | |
| applications would change the historical test subject. No extra dependencies | |
| were installed and no external destinations contacted. **All four exclusions | |
| remain in place; zero samples were promoted in Phase 3C.2.** Older 35 exclusions | |
| also remain unchanged. | |
| Potential false positives include fixed trusted pickle data, SQL-looking bound | |
| values, catalog strings resembling paths, public IDs, literal subprocess args and | |
| nonsecret credential-shaped text. Secure labels are conditional on trusted context, | |
| key/config provenance, stable filesystem trees and the explicit mechanism; they | |
| do not certify an entire application. Authentication setup is often supplied by | |
| the fixture rather than implemented by production middleware. | |
| ## 5. Benchmark limitations and baseline | |
| The unchanged code-only lexical baseline has F1=0.571429 / balanced accuracy=0.7 | |
| on the historical official test (10 records) and F1=0.181818 / balanced accuracy=0.55 | |
| on `official_3c1` test (23 records, 13 authored scenario IDs, 10 leakage groups). | |
| The new confusion counts remain TP=1, TN=13, FP=0, FN=9. These populations differ; | |
| the numbers do not show model improvement/regression on a fixed test set. The | |
| baseline is not trained or competitive and was not tuned against the tests. | |
| This is a small synthetic regression/research resource with limited input-space, | |
| concurrency and deployment coverage. Names and shared adapters can create shortcut | |
| cues. Code-only evaluation must exclude label-bearing fixes, contracts and metadata. | |
| No production representativeness, unrestricted training suitability, independent | |
| validation, exhaustive security guarantee or broad ML generalization is claimed. | |
| ## 6. Version, manifest and repository layout | |
| Candidate version: **v0.1.0**, status `research_release_candidate`. | |
| The prepared tree is `.release-staging/v0.1.0/`. Its `RELEASE_MANIFEST.json` | |
| contains exact file paths, byte counts and SHA-256 checksums. It excludes itself | |
| to avoid a circular checksum; record its digest externally before uploading. | |
| The staging directory is generated from an explicit allowlist, excluding local | |
| environments, caches, credentials, coverage output and Git metadata. Source code, | |
| curation, tests, six datasets/configurations, historical artifacts, runtime evidence, | |
| review materials and instructions are included. Exact size and file count are in | |
| the staging manifest; no container image or large dependency binary is packaged. | |
| Original authored examples/annotations retain Apache-2.0. Dependency licenses | |
| remain separate. No third-party dataset or proprietary code was imported; no real | |
| credentials or private records were introduced. This is an authorship/provenance | |
| statement, not an independent legal certification. | |
| ## 7. Hugging Face compatibility and private staging readiness | |
| Local configuration discovery, all **six configurations / 16 splits**, exact record | |
| equality, consistent feature schemas and conversion to preview tables passed with | |
| Datasets 5.2.0. The Dataset Card has valid local YAML/configuration and license | |
| metadata. Schemas and local loading results are versioned. Standard JSONL with | |
| explicit feature declarations is used; no Hub custom-code execution is required. | |
| `PUBLISHING.md` provides exact Windows PowerShell preparation, interactive login, | |
| future private upload and update commands. The helper defaults to local-only | |
| verification. The explicit upload path checks Helinity identity/private visibility, | |
| rejects historical-file conflicts and existing candidate refs, uploads to a new | |
| branch, verifies downloaded checksums/loading, then tags the verified commit. | |
| It does not delete files, change main, change visibility or overwrite prior refs. | |
| Future versions use new directories/refs on the same dataset repository. | |
| The user-confirmed target is `https://huggingface.co/datasets/Helinity/python-security-benchmark`. | |
| A public web fetch could not retrieve it; that does not establish whether it is | |
| private or absent. No authenticated account check was performed. Hosted Dataset | |
| Card rendering, service-side data preview and remote byte equality must be checked | |
| after the separately authorized upload. The helper's network workflow has unit | |
| guards and inspected SDK signatures, but has not been exercised against the Hub. | |
| ## 8. Remaining blockers and recommendation | |
| No local integrity, runtime, regeneration or loading blocker remains. Independent | |
| review is pending and the four new sink-context gaps remain unresolved; both are | |
| explicitly represented and do not prevent private staging of this scoped candidate. | |
| Exact replay of the recorded local image requires the same image or an exported | |
| copy. Rebuilding from pinned versions may change image identity and requires a | |
| new audit rather than overwriting frozen evidence. Remote identity, private | |
| visibility and hosted viewer behavior remain unverified until authorized staging. | |
| **READY FOR PRIVATE STAGING.** No publication was performed. Stop at Phase 3C.2. | |