Skip to content

NexusShadowScan 0.1.3 (Alpha)

Pre-release
Pre-release

Choose a tag to compare

@aisecnomad aisecnomad released this 22 Oct 13:40
· 35 commits to main since this release
aee3c98

NexusShadowScan 0.1.3 is an alpha release, the first from the renamed aisecnomad/Nexus-ShadowScan repository (formerly aisecnomad/Project-Nexus) and the first with a source distribution beside the universal wheel. Over 0.1.2 it adds budgeted coverage gaps, capability interactions in risk scores, autonomy levels, agent registry and A2A Agent Card sources, drift classes, fleet reporting, threat and control references, and redaction and hardening work. It keeps 38 connectors across nine surfaces and has 233 signatures / 1,133 signals (220 / 1,018 in 0.1.2).

Install using CPython 3.11–3.14 in a fresh virtual environment; on 3.12, use 3.12.4 or later (Ubuntu 24.04 ships 3.12.3):

python -m venv .venv && . .venv/bin/activate
python -m pip install "NexusShadowScan==0.1.3"
shadowscan --version

For cloud SDKs, use python -m pip install "NexusShadowScan[cloud]==0.1.3". The command and Python imports remain shadowscan; the unrelated PyPI package named shadowscan is a different project. For deployments, install a reviewed commit from the hash locks (deployment guide).

TestPyPI's 0.1.3 files were built from an earlier candidate, 52e8f31f, before PR #314 changed the README. They are not this release's files, and the verification below rejects them.

New commands and options: endpoint, merge, dashboard, controls, triage and mcp-registry snapshot; shadowscan code --preflight, --quick (with the shadowscan-staged pre-commit hook) and --diff-base; --fail-on-drift for shadowscan diff; --format ocsf; and a candidate Python API, shadowscan.api.scan(config). The runtime lock pins aiohttp 3.14.5 and certifi 2026.10.19.

Compatibility notes for anyone upgrading from 0.1.2:

  • Rebaseline: path context, corroboration and new signatures change confidence, risk, kind and the set of findings, and capability combinations raise some scores. Ids change, among others, for live cloud.aws AgentCore gateways, Atlassian findings, Kubernetes or OpenShift names over 160 characters, and gateway.otel callers in nested OTLP exports, which 0.1.2 merged under service:unknown-service and which are now one finding per service.name. Carry triage decisions and suppressions over to the new ids.
  • Re-review inventory cards. An exact binding to a gateway caller whose identity is operator-asserted or unverified is now a review candidate, not an approval: the finding stays shadow and does not inherit the card's owner. Editing the card does not change this; authenticate the caller binding at the log producer. Atlassian cards need discovery.accounts: ["https://<site>"]. Regenerate and review cards for the findings whose ids changed.
  • Bounded coverage gaps no longer fail a scan on their own: they count against the --max-coverage-gap budget, by default 2% of each scan root's examined entries and at most 100 weighted entries per root, and are reported under stats.coverage. Unbounded gaps still exit 3, as more defective inputs now do; strict_coverage or --max-coverage-gap 0 restores strict accounting.
  • Python that the scanner's own interpreter cannot parse, including syntax newer than that interpreter, is a gap in semantic analysis and can leave a scan incomplete (exit 3). Run ShadowScan on an interpreter that understands the code you scan.
  • Exit codes keep their meanings. diff --fail-on-drift CLASSES exits 2 on adverse drift in those classes, a --baseline-sha256 mismatch 1 and an expired --max-baseline-age-days baseline 3. merge refuses (exit 1) reports from 0.1.2 or earlier that record registration: rescan those hosts.
  • An unset connector_timeout_seconds now grows for a large code.filesystem tree, up to 30 minutes; other connectors keep 120 seconds, and an explicit value, 120 included, stays fixed. Remove a connector_timeout_seconds: 120 copied from earlier samples to get the scaling, and set --connector-timeout-seconds or --job-deadline-seconds when you scan untrusted repositories. max_ast_nodes now defaults to 200,000 (was 50,000); set max_ast_nodes: 50000 where worker memory depended on the lower bound.
  • Third-party plugins now run in spawned worker processes by default (plugin_execution: process, previously thread). The worker discards a plugin's output and logging, and some plugins that completed before now leave the scan incomplete; the migration notes list the cases. options.plugin_execution: thread restores in-process execution.
  • The first --incremental run after upgrading rescans every root and takes as long as an uncached scan, because every 0.1.2 cache entry misses once. Plan CI timeouts for it.
  • Redaction withholds more credential forms. Upgrading does not change reports or exports already written by 0.1.2: regenerate retained reports with 0.1.3, and keep treating older copies as confidential.
  • List reverse-proxied model servers in gateway.logs internal_model_hosts, and set an Atlassian site as https://<host>.
  • metadata.compliance is replaced by metadata.threats and metadata.controls.
  • Rebuild images from the hash locks (dependency floors rise; oci 2.188.0 adds the native python-pkcs11). Git clones now ignore proxy variables, as the HTTP client does: allow direct HTTPS egress to clone hosts.

Read the release notes, the deployment guide and the migration notes. The migration notes also cover the plugin, gateway.otel, Python-parsing and gateway-caller changes above, which the release notes do not list.

No independent human review of this release is recorded. The release source, aee3c9842aa2c45fe851d206485a82616d9909ce (Git tree 7df245b5d871edc1f89c1d8c4a172bb993694065), is the squash merge of PR #314. Its approval on the final head, bda7f464f8563cc1074871832f6c37927ee714f3, which has the same tree, came from a co-author of that change, so under GOVERNANCE.md it is not an independent approval.

Verify both downloaded files against the release commit. These commands use the tag's hash-locked build backend, so preparing the sdist's metadata does not resolve a backend from the index:

v=0.1.3 commit=aee3c9842aa2c45fe851d206485a82616d9909ce
git clone --branch "v$v" https://github.com/aisecnomad/Nexus-ShadowScan.git src
test "$(git -C src rev-parse HEAD)" = "$commit"
python -m venv rebuild && rebuild/bin/python -m pip install --require-hashes --only-binary=:all: -r src/requirements-build.lock
rebuild/bin/python -m pip download --no-deps --only-binary=:all: --dest dists "NexusShadowScan==$v"
rebuild/bin/python -m pip download --no-deps --no-binary=:all: --no-build-isolation --dest dists "NexusShadowScan==$v"
for f in "dists/nexusshadowscan-$v-py3-none-any.whl" "dists/nexusshadowscan-$v.tar.gz"; do
  gh attestation verify "$f" --repo aisecnomad/Nexus-ShadowScan \
    --signer-workflow aisecnomad/Nexus-ShadowScan/.github/workflows/release.yml \
    --source-ref refs/heads/main --source-digest "$commit" --signer-digest "$commit" \
    --deny-self-hosted-runners
done

Compare both digests with SHA256SUMS attached to this release. To verify without the attestation API, add --bundle provenance.sigstore.json; for the SBOM, use --bundle sbom.sigstore.json --predicate-type https://cyclonedx.org/bom. The attestation bundles are now provenance.sigstore.json and sbom.sigstore.json (formerly provenance.json and sbom.json). Attestations identify the build, not review or deployment acceptance.

Publication evidence, checked after the upload:

  • Production publication run: publish: pypi on main at aee3c984.
  • Wheel SHA-256: 163a6a6d801801e47c116366a480d94129f8974ddb6108494d5185371cdc065a. Rebuilding the tag with the hash-locked backend reproduces it byte for byte.
  • Sdist SHA-256: a1b767623c5e259084ba22beaf8a7a93ec537a23ebc91f2e771261d4cb6299f6. The sdist is not byte-reproducible, because setuptools records build times; its files match the tag.
  • PyPI provenance for the wheel and the sdist names aisecnomad/Nexus-ShadowScan, release.yml and the pypi environment.
  • Both files downloaded from PyPI match this release's SHA256SUMS and pass the verification above, for provenance and the SBOM.
  • A fresh install of the hash-pinned wheel from PyPI, outside a checkout, passed pip check, shadowscan --help, signature and mapping validation, and a sample scan. It ran on macOS with CPython 3.12, not on the Linux x86_64 deployment target.
  • The release-assets job attached the candidate files, SHA256SUMS and both bundles to this release; each attached file matches the run's attested publication input.

This remains Alpha software. Confidence is heuristic, and bundled regression results do not establish field accuracy: the registry, A2A, autonomy and drift fixtures are synthetic, and detection was tuned on the 2026-10-11 ShadowBench estate errors, so later runs on that estate are in-sample. Deployment requires acceptance evidence for the intended tenant and scope. Treat reports as confidential. CI validates the hash-locked install on Linux x86_64 only and tests macOS for development use; Windows is not supported.