This directory records reproducible, untouched validation runs produced with DepRisk (see docs/real-world-validation.md for the full protocol and honesty rules).
Honesty rule: No accuracy, precision/recall, or benchmark figure is ever hand-written here. Statistical benchmark results belong under
benchmarks/results/once a real labeled dataset is run withdeprisk bench.
Recorded using DepRisk 1.5.0 with zero network calls during analysis (verified in CI inside a kernel-isolated Linux unshare -n network namespace across 34 commands including deprisk mcp, deprisk license, and offline HTML/Markdown reports).
A. Self-scan & hypergraph checks (7 ecosystems: NuGet, npm/pnpm/Yarn, PyPI, Cargo, Go, Maven/Gradle, Composer)
| Target | Ecosystem | Projects / Targets | Resolved Packages | Hyperedges | Violated Constraints |
|---|---|---|---|---|---|
DepRisk product assemblies (src/) |
NuGet | 5 targets | 3 internal refs (0 external NuGet packages) | 1 | 0 |
DepRisk Rust reachability analyzer (analyzers/reach/Cargo.lock) |
Cargo | 1 target | 38 crates (7 direct) | 23 (60 requirements) | 0 |
tests/fixtures/npm/simple.package-lock.json |
npm | 1 target | 26 | 7 | 0 |
tests/fixtures/npm/workspaces.package-lock.json |
npm | 1 target | 5 | 3 | 0 |
tests/fixtures/npm/pnpm-lock.fixture.yaml |
npm (pnpm v9) | 1 target | 3 (2 direct) | 2 | 0 |
tests/fixtures/npm/yarn-berry.lock.fixture |
npm (Yarn Berry) | 1 target | 2 | 1 | 0 |
tests/fixtures/pypi/poetry.lock.fixture |
PyPI | 1 target | 3 (1 direct) | 2 | 0 |
tests/fixtures/go/go.mod.fixture |
Go | 1 target | 4 (2 direct, 2 indirect) | 1 | 0 |
tests/fixtures/maven/pom.xml.fixture |
Maven | 1 target | 3 (property-resolved, XXE-hardened) | 1 | 0 |
tests/fixtures/composer/composer.lock.fixture |
Composer | 1 target | 3 (2 direct) | 2 | 0 |
Reproduce locally:
dotnet restore
deprisk scan . --format json
deprisk graph . --format json
deprisk scan tests/fixtures/npm/simple.package-lock.json --ecosystem npm --format json
deprisk graph tests/fixtures/npm/simple.package-lock.json --ecosystem npm --format jsonEvery release artifact is smoke-tested in CI prior to publication:
| Channel | Target Platforms | Verified Offline Behavior | Integrity / Proof Gate |
|---|---|---|---|
Option A: NuGet Global Tool (DepRisk.Cli) |
7 platforms (linux-x64, linux-musl-x64, linux-arm64, osx-x64, osx-arm64, win-x64, win-arm64) |
deprisk doctor, C# & npm reach with bundled deprisk-reach |
Run-time SHA-256 tamper test exits 3 (ADR 0034); OIDC Trusted Publishing + build provenance |
Option B: Standalone Archives (GitHub Releases) |
linux-x64, osx-arm64, win-x64 |
DOTNET_ROOT="" ./deprisk --version, doctor, C# reach (+ deprisk-kernel ACCEPT on Linux) |
Embedded SHA-256 (ADR 0034), SHA256SUMS, build provenance (ADR 0051) |
Option C: Official Docker Image (ghcr.io/codeoops-dev/deprisk) |
linux/amd64 |
Non-root UID 10001, --network none, doctor, C# reach, statically-linked deprisk-kernel (ACCEPT) |
Embedded SHA-256 (ADR 0034), OCI build provenance (ADR 0052) |
Formal Verification Kernel (kernel/spark/) |
Ada/SPARK (GNATprove) |
E2E C# CLI plan → verify --kernel (ACCEPT on valid plan, exit 2 on tampered cost) → apply --write |
gnatprove --mode=prove --level=2 --warnings=error (0 unproven VCs, P1–P6, ADR 0045) |
- Curated Symbol Pack (
data/symbols/curated/): 32 real high-impact advisories across 4 reachability-enabled languages (12NuGet/C#,12npm/JS/TS,4PyPI/Python,4Maven/Java), validated in CI byCuratedSymbolPackTestswhile keeping starter maps indata/symbols/*-starter.jsonatcomplete: false. - Reproducible Benchmark Artifacts (
benchmarks/results/): Generated directly bydeprisk benchanddeprisk bench calibrateonbenchmarks/datasets/v1.5-curated/manifest.jsonwith"synthetic": trueclearly stamped in all JSON outputs (bench-v1.5.0-dev.json,risk-params.calibrated.json,bench-v1.5.0-test.json).
Executed end-to-end using the published NuGet global tool (dotnet tool install -g DepRisk.Cli, v1.5.0, Windows x64, .NET 10.0.15, bundled deprisk-reach.exe) against live official feeds downloaded once offline (OSV ecosystem all.zip archives totaling 271,632 advisories + live FIRST EPSS + live CISA KEV):
| Repository / Target | Ecosystem | Live OSV Advisories | Command & Features Exercised | Findings / Output | Wall Time |
|---|---|---|---|---|---|
expressjs/express (HEAD) |
npm | 232,876 | deprisk rank --source ... --symbols npm-curated.json --format html |
9 real findings (e.g., GHSA-5c6j-r48x-rmvq HIGH 8.1 on serialize-javascript 6.0.2, GHSA-w5hq-g745-h8pq HIGH 7.5 on uuid 8.3.2, plus hbs, diff, glob, minimatch with live EPSS & Fixed In) |
5s |
expressjs/express (HEAD) |
npm (SPDX) | — | deprisk license --deny GPL-3.0-only,AGPL-3.0-only --format html |
368/368 packages resolved offline (368 allowed, 0 denied, 0 unknown) | <1s |
fastapi/fastapi (HEAD, 3,291 files) |
PyPI | 26,498 | deprisk rank --source ... --symbols pypi-curated.json --format html |
0 findings (Python reachability analyzer + live PyPI OSV + EPSS + KEV) | 2s |
spring-projects/spring-petclinic (HEAD) |
Maven | 7,155 | deprisk rank --source ... --symbols java-curated.json --format html |
0 findings (Java reachability analyzer + live Maven OSV + EPSS + KEV) | 3s |
DepRisk (analyzers/reach/Cargo.lock) |
Cargo | 3,136 | deprisk rank --ecosystem cargo --format html |
0 findings (Rust analyzer dependency lockfile vs live crates.io OSV) | <1s |
DepRisk (DepRisk.slnx) |
NuGet | 1,967 | deprisk rank --ecosystem nuget --format html |
1 finding (GHSA-5crp-9r3c-p9vr, Newtonsoft.Json 12.0.1, HIGH 7.5, EPSS 32.9%, fixed in 13.0.1) |
3s |
Real-world observations & fixes from this field test:
- Zero crashes across all 5 live ecosystems and 271,632 live OSV records.
- Live XSS sanitization verified in the wild: Real advisory
GHSA-m5mm-p8h7-m29v(serialize-javascript) contained a literal</scriptsequence in its upstream summary; DepRisk's pure-C# HTML encoder escaped it to</scriptautomatically underContent-Security-Policy: default-src 'none'. - Stale
deprisk doctordiagnostic caught & fixed (S70):deprisk doctorprintedverification kernel (planned, v0.4)whendeprisk-kernelwas absent on Windows; updated inDoctorCommand.cstooptional Ada/SPARK verification kernel (bundled in Linux standalone/Docker builds).
To generate and archive a full validation report (including OSV matching, EPSS/KEV ranking, reachability, MILP+CVaR planning, Ada/SPARK verification, and signed audit log verification) on an external NuGet or npm repository, run:
- Windows:
.\scripts\validate-real-project.ps1 - Linux / macOS:
./scripts/validate-real-project.sh
See docs/real-world-validation.md for feed URLs and exact invocation flags.