Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ScanEval

ScanEval evaluates structured security-scanner results against a versioned plan and supplied review decisions. Import the Python package and call scaneval.evaluate(plan, result, decisions) to produce an evaluation report offline. The same distribution includes a CLI, versioned data contracts, replay, local reports, and optional tracing through scaneval.observer.

Alpha version: 2.0.0a2. No benchmark results or scanner comparisons are published. The selected corpus contains 50 CVEs, but fixed controls remain unvalidated and scanner miss rates remain unmeasured. Live scanner integrations need separate installations and configuration. The default SV-Agent harness pin cannot yet produce a completed source-scan score. See the current capabilities and limits.

Install and evaluate

Requires Python 3.11 or newer. Source materialization also requires Git. From a virtual environment on macOS or Linux:

python -m pip install "scaneval==2.0.0a2"
scaneval demo demo-run

The demo writes a complete set of saved records to demo-run: an evaluation plan, a normalized scan result, and review decisions. They are fabricated evaluator fixtures; no scanner or model is called. Evaluate them:

import json
from pathlib import Path
import scaneval

bundle = Path("demo-run")
plan = json.loads((bundle / "evaluator" / "plan.json").read_text(encoding="utf-8"))
result = json.loads((bundle / "result.json").read_text(encoding="utf-8"))
decisions = json.loads((bundle / "evaluator" / "decisions.json").read_text(encoding="utf-8"))

report = scaneval.evaluate(plan, result, decisions)
print(json.dumps(report, indent=2))

The report matches the demo's own demo-run/evaluation.json. Load your own saved plan, result, and decisions the same way.

Scoring requires structured saved records and supplied finding-review decisions bound to those records. The plan assigns targets and controls; the decisions say which findings establish their alleged issues. Unreviewed findings remain unresolved. The evaluation API validates these inputs and computes scores; producing scanner findings and adjudicating natural-language allegations are separate steps.

Replay the demo

scaneval replay demo-run --output demo-replay.json

Replay recomputes the saved bundle offline. Open demo-run/report.html locally. Output paths must be new. Run scaneval --help for commands; the execution guide explains scanner configuration, review, and saved evidence.

Instrument a Python harness

The public Python SDK is available from scaneval.observer. Emit events at the model, tool, context, and finding boundaries your harness exposes:

from scaneval.observer import Observer

events = []
observer = Observer(
    mode="metadata",
    sink=events.append,
    run_id="example-run",
    producer_id="my-harness",
)
observer.emit(
    type="model.request",
    capture_status="complete",
    call_id="call-1",
    metadata={"model": "example-model"},
)
observer.flush()
observer.close()

This example records one event in memory; it calls no model. Recording defaults to off unless the caller chooses a mode. Capture gaps remain explicit, and traces cannot prove hidden reasoning. The Observer SDK guide describes sinks, recording modes, and capture states. This Observer is part of scaneval; no separate Python Observer distribution is needed. A TypeScript SDK shares the trace contract and remains available as source. This release publishes only the Python scaneval distribution.

Cases, datasets, and execution limits

Start with the selected CVE corpus, bring your own corpus, or dataset adapters. Scoring uses supplied review decisions; unreviewed findings remain unresolved.

The local execution backend runs scanners as the operator and enforces no isolation. The OCI backend supports specific adapters and configurations; read the threat model before live runs. Keep scanner outputs, private findings, credentials, and content traces local.

Source and issues are on GitHub. ScanEval is MIT licensed; external scanners and source snapshots retain their own licenses.

Metadata

Release files for scaneval 2.0.0a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scaneval 2.0.0a2
File Size Uploaded Provenance Actions
scaneval-2.0.0a2.tar.gz 2.6 MB With provenance Details for scaneval-2.0.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scaneval 2.0.0a2
File Interpreter ABI Platform Actions
scaneval-2.0.0a2-py3-none-any.whl Python 3 none any Details for scaneval-2.0.0a2-py3-none-any.whl

Total release size: 3.6 MB

Release files / scaneval-2.0.0a2.tar.gz

Download URL scaneval-2.0.0a2.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
e24fc66b7f199c85bd34172e4ce2fd36aa78fa0b85407688bf1ff81c7b68ab05
BLAKE2b-256 checksum
How to use checksums
e7fa5c8592ba34e17ba2083d7e53d867c4df30f6ef701dce335e7e0f79d3cb8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / scaneval-2.0.0a2-py3-none-any.whl

Download URL scaneval-2.0.0a2-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f4c785b32bb8509335eff2fe89a5ed0168be8fcf72f337fbfb115bc67b0ece5e
BLAKE2b-256 checksum
How to use checksums
6a665a5f918e1e160ccc24e17ff9d43941a9ee8b799d4e00869ef89da36e2d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for scaneval 2.0.0a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scaneval-2.0.0a2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page