Download docs/reports/EVIDENCE_REPORT.md from Helinity/python-security-benchmark: direct link, hf CLI and curl.
- Browser
- Download file 8.71 kB
-
https://huggingface.co/datasets/Helinity/python-security-benchmark/resolve/main/docs/reports/EVIDENCE_REPORT.md
- Command line
-
hf download hf://datasets/Helinity/python-security-benchmark/docs/reports/EVIDENCE_REPORT.md
-
curl -L -o EVIDENCE_REPORT.md https://huggingface.co/datasets/Helinity/python-security-benchmark/resolve/main/docs/reports/EVIDENCE_REPORT.md
Phase 3B evidence report
Phase 3B completion result
Phase 3B is PASS for the specified fixture verification and evidence integration scope. Docker Desktop 4.99.0 and Engine 29.9.3 on Linux/amd64 passed version, info and a non-root network-disabled smoke test. The engine blocker is resolved.
All eight existing critical pairs passed actual Linux runtime checks. CWE-89 checks demonstrated altered SQLite selection and unauthorized sort expression acceptance; parameter binding or the identifier map prevented those outcomes. CWE-78 checks created only a temporary fixture marker through shell interpretation; the secure argument vector or native metadata API prevented marker creation. CWE-22 checks demonstrated access to a sibling fixture and rejection by containment or catalog selection; the containment correction also rejected absolute and symlink escapes. CWE-502 checks reconstructed a harmless marker-writing fixture object through pickle or shelf lookup; JSON parsing rejected those bytes without creating the marker. Every pair also passed its ordinary-use result.
Sixteen samples gained runtime verification. Official eligibility is now 49 records in train/validation/test sizes 23/16/10. All 84 original research samples remain accounted for. Current annotations retain 11 static-only and four unverified records, with zero ambiguous records after verifying the path correction under a trusted, stable directory-tree assumption. Concurrent tree mutation remains outside that claim. Nineteen mock-boundary and eight parser-output records remain excluded from official scoring. No independent human verification is claimed.
Execution used a digest-pinned Python image, user 65534, no external networking, all capabilities dropped, no-new-privileges, a read-only root filesystem, a 16 MiB noexec/nosuid temporary filesystem, 128 MiB memory with equal swap limit, one CPU, 32-process limit and a 45-second parent timeout. The runner passes reviewed worker source and baseline snippets through command arguments and stdin, with no host filesystem mounts, host credentials or Docker socket available inside the container. Timed-out or failed containers are removed in a finally block.
Versioned artifacts are in data/research/v3b2. The prior v3b eligibility manifests, historical baseline reports and original 64-row JSONL remain preserved. Current annotations bind evidence to record hashes; critical-runtime.json records the worker hash, input hash, image digest, restrictions and per-pair assertion outcomes. Official loading reruns the checks and rejects stale artifacts.
The lexical baseline on the new 10-row official test set produced TP=2, TN=5, FP=0, FN=3, precision=1.0, recall=0.4, F1=0.571429, balanced accuracy=0.7, FPR=0 and FNR=0.6. The prior six-row official score had TP=0, TN=3, FP=0, FN=3. The lexical rules are unchanged; differing populations prevent treating this score change as model improvement.
All 47 tests passed. Legacy regeneration, research regeneration, official manifest regeneration, pair integrity, seven near-duplicate dispositions and split boundaries passed. Hugging Face Datasets loaded all four configurations and ten splits offline and matched every record. Remaining limitations concern the documented evidence scope, small synthetic sample, unsupported deployment guarantees and independent review. There are no remaining execution blockers for this phase.
Reproduce with python -m research.harden --check, python -m research.evaluate --baseline --output data/research/v3b2/baseline-test.json, python -m pytest -q, and python -m research.check_hf. Docker with the pinned image is now required for official eligibility verification.
Historical record
Phase 3B.1 current result
Phase 3B remains PARTIAL. The evaluator now defaults to official scoring and validates fresh fixture evidence, canonical research regeneration, eligibility hashes and generated shards before evaluating. Explicit benchmark and corpus scopes retain historical and exploratory evaluation. The original baseline and historical baseline-test.json are preserved.
The official population is 33 records, split 15 train, 12 validation and 6 test. All 84 records remain in the corpus. Exclusions total 51, comprising 19 mock-boundary records, eight parser-output records, 11 static-only records, 12 unverified records and one ambiguous record. Per-record decisions are in data/research/v3b/annotations.json. All seven documented near matches remain within their splits.
The official test baseline yields TP=0, TN=3, FP=0, FN=3, undefined precision (null), recall=0, F1=0, balanced accuracy=0.5, FPR=0 and FNR=1. The historical 11-row result was TP=0, TN=6, FP=1, FN=4 and balanced accuracy=0.429. This difference follows the population change with unchanged lexical rules; it establishes no model improvement.
Docker diagnostics found client 29.7.2 with desktop-linux selected, but no Docker Desktop process and no dockerDesktopLinuxEngine named pipe. WSLService is running, WSL defaults to version 2, no distributions are registered, vmcompute is stopped with manual startup, and HypervisorPresent is true. The observed cause is an unstarted or uninitialized Desktop backend. No kernel or virtualization-feature failure was established.
Required user action is to open Docker Desktop, complete its first-run initialization if prompted, select its Linux/WSL2 backend, and wait for the engine to report running. Confirm that docker version prints a Server section. A separate Ubuntu installation is not required merely to initialize Docker Desktop. If startup fails, provide the Desktop diagnostic error before changing system components or security settings.
Zero critical-CWE pairs were newly verified. The existing two pairs each for CWE-89, CWE-78, CWE-22 and CWE-502 retain their evidence limitations. No potentially unsafe payloads were executed on Windows. Suitable container execution with non-root identity, disabled networking, read-only source mounts, temporary storage, resource limits and timeouts remains required before attempting these checks.
Reproduce with python -m research.harden --check and python -m research.evaluate --baseline --output data/research/v3b/baseline-test.json. The official Hugging Face configuration uses the same three shards. Existing legacy, corpus and benchmark configurations remain available. This phase stops at the documented environment blocker.
Previous phase record
The supplemental artifacts contain 84 syntax-verified records. Existing observations comprise 33 local-runtime records, 19 mock-boundary records and eight HTML-parser-output records. No new records were behavior verified. Independent human review and static-scanner support counts are zero. Twenty-four records have no accepted executable evidence.
The 33 local-runtime records are candidates for a narrower scored subset. At the end of Phase 3B the eligibility policy was not yet integrated. Phase 3B.1 resolves that evaluator gap as documented above.
The Python worker contains reviewed fixture execution but is not an OS sandbox. Mocked process, decoder, TLS and randomness checks establish only the observed call boundary. Parser output does not establish browser execution. Container-backed critical vulnerability checks remain pending because Docker's engine was unavailable.
Run python -m research.harden --check to rerun existing observations, validate record hashes and compare the supplemental artifacts. Historical baseline outputs remain reproducible. Added metric regressions cover no positive predictions, absent classes and undefined precision.
Phase 3C.1 separate evidence set
data/research/v3c1/runtime.json records 140 successful contract observations
across 70 new records in a hardened Linux container. Official eligibility covers
28 pairs and 10 hard negatives; four HTML/redirect serialization records remain
research-only. Historical evidence and eligibility above are unchanged. See
PHASE_3C1_REPORT.md for scope and limitations.
Phase 3C.2 release candidate
The separate v0.1.0 acceptance report reconciles
154 unique records and the unchanged 49 + 66 official memberships. All four new
serialization/sink-context exclusions remain. The release distinguishes the 33
controlled local-process eligible records from 82 Docker-runtime eligible records;
no independent human reviews are complete. Versioned statistics, evidence,
review forms and schemas are under releases/v0.1.0/. Historical source artifacts
and the pre-candidate documentation snapshots remain checksum-preserved.