Skip to content

Releases

NexusShadowScan 0.1.4 (Alpha)

Pre-release

Choose a tag to compare

@aisecnomad aisecnomad released this 23 Oct 07:08
94fda06

NexusShadowScan 0.1.4 is an alpha patch release of the five changes merged after 0.1.3: the issue #264 follow-ups (#310) and the corrections that AI-agent reviews of them found (#316), a test-only cleanup fix (#315), and documentation (#292, #317). No connector, signature or mapping is added: it keeps 38 connectors across nine surfaces and 233 signatures / 1,133 signals. Its TestPyPI rehearsal and its PyPI upload were built from the same commit.

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.4"
shadowscan --version

For cloud SDKs, use python -m pip install "NexusShadowScan[cloud]==0.1.4". 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.4 files are this release's rehearsal, built from the same commit: the wheel is byte-identical to PyPI's, and the sdist differs only in build timestamps.

Compatibility notes for anyone upgrading from 0.1.3:

  • Rebaseline diff. A report written by 0.1.3 is not a comparable baseline: the collection-scope fingerprint covers the package version, the scanner and the signature set, so shadowscan diff against it is incomplete and exits 3 (collection or detection scope differs) even when no finding changed. Review the first 0.1.4 report against the old baseline, then adopt it as the new baseline.
  • New detections can fail gates. The Google Vertex AI, Gemini API and Vertex AI Agent Engine signatures gain Private Service Connect (aiplatform-ENDPOINT.p.googleapis.com, optionally led by a location, as in us-central1-aiplatform-restricted.p.googleapis.com) and regional endpoint (aiplatform.REGION.rep.googleapis.com) patterns, matched in network and gateway logs and in code and low-code scans. The host rule that eBPF events and the MCP tool-description check use already matched the global Private Service Connect form in 0.1.3, and now also matches the location-led and regional forms of every Google AI service it knows. A repository or log can gain a finding, an eBPF event an llm-egress finding, and an MCP tool whose description names such a host is tagged tool-poisoning, which adds 15 to its risk. A scan gated with --fail-on can therefore newly exit 2, and once you have rebaselined, diff --fail-on-new reports such endpoints as they appear.
  • Incomplete-reason counts move. The shared offline readers and directory walk, the shared export loader, gateway.logs' own .json exports and the export writer (--dump-records) now name each diagnostic's category instead of leaving it to the text classifier. Many of these diagnostics were other in 0.1.3, but not all: a missing or inaccessible input and a special file met in a directory walk were unresolved-link; a file turned away by the spent max_input_bytes budget and the export writer's replay limits were oversize-file; an export cut while it was read was unscanned-input; and most network.logs diagnostics were upstream-error. Update gates and dashboards that match any of these categories, and rescan before comparing counts. Whether a scan is incomplete, and its exit code, do not change.
  • The first --incremental run after upgrading rescans every root and takes as long as an uncached scan, because every cache entry is keyed on the version, the scanner and the signature set. Plan CI timeouts for it.
  • Redaction now covers scalar subclasses. In 0.1.3 a date, datetime, time, timedelta, Decimal or UUID subclass in finding metadata passed the sanitize pass unchanged and reached the JSON report through its own __str__, unredacted. 0.1.4 stores such a value as its standard type, or as its text after redaction. Only connectors that put such values in metadata, typically plugins, are affected: regenerate retained reports from them and keep treating older copies as confidential.
  • When a connector's deadline expires, the partial report now keeps findings whose metadata holds a scalar subclass (an IntEnum, a numpy float64, a pandas Timestamp or NaT); 0.1.3 omitted them. Completed scans report the same values as in 0.1.3, except where the redaction above applies.
  • Plugin connectors can pass reason= to ConnectorError to name the incomplete-reason category their skip is counted under; without one, the message is classified from its text as before.

These notes supersede the 0.1.4 section of RELEASE_NOTES.md at the tag, which misdescribes some of these changes; the corrected text is to land on main. Read the release notes, the deployment guide and the drift guide.

Review and release record: the release source, 94fda063307c2c0c402a0610f378544b6189f809 (Git tree 79be1584e3d14944dcd60386141d9821eb472b3c), is the squash merge of PR #318, which prepared this release. Its approval on the final head, 70e1217900ec4920abd4ebfd875e9a28380720bb, which has the same tree, and the final-head approvals of every other change since 0.1.3 (#310, #315, #316, #292 and #317) came from immanueldahunsi-Project-Nexus, who authored or co-authored none of them. The maintainer accepts these approvals as the independent human review of the candidate that GOVERNANCE.md requires. The approval records do not describe what was checked, and the AI-agent reviews that found the #316 corrections are advisory only. At the maintainer's direction, Claude Code pushed the v0.1.4 tag and started the PyPI run, steps the publishing runbook reserves for the maintainer; the maintainer approved every deployment.

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.4 commit=94fda063307c2c0c402a0610f378544b6189f809
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. Attestations identify the build, not review or deployment acceptance.

Publication evidence, checked after the upload:

  • Production publication run: publish: pypi on main at 94fda063. The TestPyPI rehearsal run built the same commit.
  • Wheel SHA-256: 32c0a55acba90049eea1ccfa5c4bc495954740ee7e61e7c8b9e9e4cecccac870, identical on TestPyPI and PyPI. Rebuilding the tag with the hash-locked backend reproduces it byte for byte.
  • Sdist SHA-256: 01ad5c9b27201eebc5fe4ff5d9be8cde28872485460adc0b70efe697dd346999. The sdist is not byte-reproducible, because setuptools records build times; its files match the tag and the rehearsal's sdist.
  • PyPI provenance for the wheel and the sdist names aisecnomad/Nexus-ShadowScan, release.yml and the pypi environment, the same publisher as 0.1.3.
  • 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 and --version, signature and mapping validation, and a sample scan. The same test passed against TestPyPI before the tag. Both 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 new endpoint and incomplete-reason cases are synthetic regression tests, 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 re...

Read more

NexusShadowScan 0.1.3 (Alpha)

Pre-release

Choose a tag to compare

@aisecnomad aisecnomad released this 22 Oct 13:40
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...

Read more

NexusShadowScan 0.1.2 (Alpha)

Pre-release

Choose a tag to compare

@aisecnomad aisecnomad released this 08 Oct 16:55
35b7aed

NexusShadowScan 0.1.2 is the initial PyPI alpha, with 38 connectors across nine discovery surfaces and 220 signatures / 1,018 signals. It discovers evidence of AI agents and integrations and reconciles findings against an approved inventory.

Install using Python 3.11–3.13 in a fresh virtual environment:

python -m pip install NexusShadowScan
shadowscan --help

For cloud SDKs, use python -m pip install "NexusShadowScan[cloud]". The command and Python imports remain shadowscan; the unrelated PyPI package named shadowscan is a different project. Avoid combining earlier project-nexus-shadowscan candidates with this distribution in one environment.

Version 0.1.1 reached TestPyPI and the immutable v0.1.1 tag. Its production preflight stopped before any PyPI upload. Version 0.1.2 corrects the GitHub tag lookup to use the fully qualified refs/tags/v<version> reference; scanner behavior is unchanged. The original tag remains on its original commit.

Compatibility notes:

  • Rebuild comparison baselines for v2 finding identities and regenerate inventory stubs or add discovery.discriminators.
  • Handle exit 1 for invalid usage/setup, exit 2 for a completed scan reaching its threshold, and exit 3 for incomplete coverage.
  • SARIF carries heuristic risk_level values; it no longer sets security-severity. Gateway comparisons require a consistent SHADOWSCAN_IDENTITY_KEY.

Read the full release notes and deployment guide.

PR #160 received approval for commit 5bfd0742f8d4e22f56131f8dc0e0c0a05a5205d9. The release source, 35b7aed413d74799f8a878f13764e51c5b8f1c70, has the same Git tree, c10aaccef11e09ba4c54915a7b412154a53846f4.

Verify the downloaded wheel:

python -m pip download --no-deps --dest wheels NexusShadowScan==0.1.2
gh attestation verify wheels/nexusshadowscan-0.1.2-py3-none-any.whl --repo aisecnomad/Project-Nexus

Compare its SHA-256 with the retained candidate's SHA256SUMS. PyPI provenance should identify this repository, release.yml and the pypi environment.

Verified publication evidence:

This remains Alpha software. Confidence is heuristic, and bundled regression results do not establish field accuracy. Deployment requires acceptance evidence for the intended tenant and scope. Treat reports as confidential. Linux and macOS are supported; Linux x86_64 is the validated deployment target.

A fresh installation from production PyPI passed dependency checks, CLI help, signature validation and an outside-checkout sample scan. The attached evidence archive includes candidate hashes, SBOM and attestation bundles.