Project Nexus · ShadowScan
ShadowScan is an open-source tool that discovers evidence of AI agents and related integrations, then reconciles it against your approved agent registry.
It inspects nine surfaces: code repositories, identity providers, LLM gateway logs, low-code platforms, SaaS apps, cloud accounts, endpoints (developer workstations and host/runtime inventories), network logs, and running processes. It fingerprints frameworks and model providers, scores findings, and reconciles discoveries against your approved agent registry of Agent Cards.
Example output, abridged to the first columns (totals vary as signatures evolve;
--max-rows 5 shows the five highest-risk rows of the bundled offline demo):
$ shadowscan scan -c examples/shadowscan.offline.yaml --max-rows 5
╭──────────────────────────────── ShadowScan ────────────────────────────────╮
│ 133 findings • 129 shadow (inventory: 4 registered agents) │
│ critical 16 high 62 medium 55 • cloud 30 identity 19 endpoint 18 … │
╰────────────────────────────────────────────────────────────────────────────╯
CRITICAL 100 SHADOW code mcp-server MCP configuration: .mcp.json
CRITICAL 100 SHADOW saas bot-app GitHub App installed: claude
CRITICAL 98 SHADOW code agent-config Claude Code configured in repository root
CRITICAL 91 SHADOW endpoint agent-config OpenClaw configured on dev-laptop-07 (~dana)
CRITICAL 90 SHADOW code secret LLM provider credential in services/research-agent/app/config.py
The Why
Agents are no longer only Python scripts.
They are Copilot Studio bots built by HR, n8n flows with an AI Agent node, OAuth grants to meeting note-takers,
Bedrock Agents provisioned by Terraform, MCP servers wired into every
developer's editor, service principals with Mail.ReadWrite acting on behalf of nobody, and JWTs carrying an act claim.
Each surface has its own discovery API and its own vocabulary.
ShadowScan normalizes these observations into one finding model with evidence,
so investigators or auditors can ask: Who owns this AI Agent? What can it do, and is it
registered in the agent registry supplied for this scan?
| Observation | What it establishes | Next check |
|---|---|---|
| Source dependency, import, or configuration | A repository contains a potential integration. | Inspect executable code and deployment; comments, examples, and unused dependencies can mislead. |
| Cloud or SaaS resource | The collector observed a configured resource within its granted scope. | Check resource state and authenticated runtime telemetry before claiming execution. |
| Gateway event | The supplied log contains a request or tool-use signal. | Verify the log's origin, caller binding, and observation window before attributing it to a deployed agent. |
shadow: true |
No single explicit binding in the supplied inventory matched the finding. | Confirm the inventory's scope and freshness; an unmatched finding alone does not prove unauthorized use. |
Surfaces & connectors
ShadowScan ships 38 connectors across the nine surfaces below.
| Surface | Connectors | What is discovered |
|---|---|---|
| Code | code.filesystem, code.github, code.gitlab |
Agent frameworks & LLM SDKs (deps, imports, idioms), MCP client/server configs, coding-agent configs (Claude Code sub-agents, Copilot custom agents, Cursor/Codex/Gemini CLI…), A2A agent cards, M365 declarative agents, CrewAI/LangGraph manifests, exported n8n/Flowise/Langflow/Dify flows, IaC provisioning Bedrock/Vertex/Foundry/OCI agents, container images, CI secret names, hard-coded provider keys (redacted) |
| Identity | identity.okta, identity.entra, identity.google-workspace, identity.auth0, identity.jwt |
OAuth apps & consent grants to AI SaaS, service apps/service principals / managed identities with LLM or data permissions, app registrations that look like agents, JWT classification (human/service/workload / delegated-agent) with privilege and hygiene analysis |
| Gateway | gateway.logs, gateway.otel |
Callers reconstructed from gateway logs or offline OpenTelemetry GenAI spans; span prompt/completion content is not retained |
| Low-code | lowcode.power-platform, lowcode.salesforce, lowcode.servicenow, lowcode.n8n, lowcode.make, lowcode.zapier, lowcode.workato |
Copilot Studio agents & topics, Power Automate/Apps using AI connectors, Agentforce planners/topics/actions, Einstein bots, prompt templates, Now Assist AI agents/tools/triggers, automation workflows with AI or agent steps |
| SaaS | saas.slack, saas.microsoft-teams, saas.github-apps, saas.atlassian, saas.notion, saas.zoom, saas.generic |
Bots and apps with their scopes, pending install requests, Teams apps with bots / Copilot agents, GitHub Apps (AI reviewers, coding agents) and their permissions, Rovo/Marketplace apps, Notion integrations, Zoom approved and account-created Marketplace apps (approval does not prove installation), any CSV/JSON app inventory (CASB exports) |
| Cloud | cloud.aws, cloud.gcp, cloud.azure, cloud.oci, cloud.kubernetes, cloud.openshift |
Managed cloud AI and IAM inventories, plus offline Kubernetes/OpenShift workload exports (images, exposure, GPU, privilege, and egress-policy indicators) |
| Endpoint | endpoint.inventory, endpoint.host, endpoint.mcp, endpoint.ollama, endpoint.models, endpoint.ebpf |
AI clients and coding agents configured in home directories with their MCP servers and posture (Claude Desktop/Code, Cursor, VS Code, Windsurf, Gemini CLI, Codex, Goose, Cline, Roo, OpenClaw…), AI editor and browser extensions, local model stores (Ollama, LM Studio, Hugging Face, GPT4All, Jan), opt-in shell-history tool counts; osquery fleet exports; offline host/runtime, MCP tool-list, local model metadata, and eBPF event exports through the endpoint.* inventories, which do not probe endpoints live |
| Network | network.logs |
AI services contacted per client address from Zeek DNS/TLS/connection logs, Route 53 Resolver query logs, VPC Flow Logs or generic DNS/SNI exports; strict host matching, DNS-attributed flows that refuse shared CDN addresses, agent-service and agent-loop indicators |
| Runtime | runtime.processes |
Coding-agent CLIs, AI desktop apps, MCP servers, local model servers and agent dev servers seen running, from osquery, Defender or CrowdStrike process exports or /proc; command lines are never kept; linked to the endpoint findings for the same tool on the same device (observed-running) |
Connectors support live API collection, offline JSON/CSV/log exports,
or both; see the connector guide for the supported modes and provider scope.
Offline analysis can run in CI, on an analyst's laptop, or against a SIEM export.
The offline inventories (endpoint.host, endpoint.mcp, endpoint.ollama, endpoint.models,
endpoint.ebpf, gateway.otel, cloud.kubernetes, cloud.openshift) analyze exports only; they do
not probe MCP/Ollama endpoints, access a Kubernetes API, or parse model files. When no input is set,
endpoint.inventory reads a fixed list of local user-scope locations (model stores are listed by file
name, never parsed) and runtime.processes reads /proc on Linux.
Frameworks & products recognized
220 signatures / 1018 signals, YAML-defined with explicit opt-in overrides:
- Orchestrators – LangChain, LangGraph, Deep Agents, LlamaIndex, CrewAI, Google ADK, AWS Strands Agents, Microsoft Agent Framework, Semantic Kernel, AutoGen/AG2, Hugging Face smolagents, OpenAI Agents SDK, OpenAI Swarm, Claude Agent SDK, Pydantic AI, Vercel AI SDK, Mastra, Haystack, DSPy, Agno, Letta, MetaGPT, CAMEL, Griptape, Composio, Langroid, AgentScope, Swarms, AutoGPT, BabyAGI, BeeAI, Atomic Agents, Julep, Marvin, Mirascope, Qwen-Agent, NVIDIA NeMo Agent Toolkit, Dapr Agents, PraisonAI, SWE-agent, GPT Engineer, Open Interpreter, Chainlit, Prompt flow, Guardrails AI / NeMo Guardrails / LLM Guard, LangChain4j, Spring AI, Rig, LangChainGo, Genkit, Eino, M365 Agents SDK, Bot Framework, Teams AI, Cloudflare Agents, Inngest AgentKit, VoltAgent, CopilotKit/AG-UI, Rasa, Botpress, Browser Use, Stagehand, OpenHands, Nova Act, Anthropic computer use
- Protocols – MCP (all client config locations, servers, registries, remote MCP hosts), A2A agent cards, ACP, tool/function-calling request shapes, ChatGPT plugin/GPT Action manifests
- Coding agents – Claude Code, GitHub Copilot coding agent, Cursor, Windsurf, Cline, Roo, OpenAI Codex, Gemini CLI/Jules, Amazon Q/Kiro, Goose, Aider, Continue, Cody/Amp, Junie, AGENTS.md, PR review bots (CodeRabbit, Sweep, Ellipsis, Greptile, Qodo…)
- Platforms/gateways – LiteLLM, Portkey, Kong AI Gateway, Helicone, OpenAI AgentKit, Dify, Flowise, Langflow, n8n, Make, Zapier, Workato, Copilot Studio, Power Platform AI connectors, M365 declarative agents, Agentforce, Now Assist, IBM watsonx Orchestrate, Retool, Open WebUI/LibreChat/AnythingLLM, Coze/Relevance/Lindy/Vellum…
- Model providers – OpenAI, Anthropic, Gemini API, Vertex AI, Bedrock, Azure OpenAI, Mistral, Cohere, Groq, Together, Fireworks, OpenRouter, Ollama, vLLM, SGLang, llama.cpp, LM Studio, LocalAI, Llama Stack, Meta Llama API, Hugging Face, xAI, DeepSeek, Alibaba DashScope/Qwen, Moonshot/Kimi, AI21, Perplexity, Replicate, Cerebras, SambaNova, NVIDIA NIM, OCI Generative AI, watsonx, Databricks, Cloudflare Workers AI, Snowflake Cortex (deps, imports, endpoints, env vars, user agents, model IDs, key formats)
- Observability/memory/sandboxes – LangSmith, Langfuse, Phoenix, AgentOps, Traceloop, Weave, Braintrust…, Mem0, Zep, vector stores, E2B, Daytona, web search/scrape tool providers
- AI SaaS as OAuth apps – ChatGPT, Claude, Gemini, Copilot, Perplexity, Mistral Le Chat, DeepSeek, Qwen, Kimi, Grok, Poe, Character.ai, Glean, meeting note-takers (Otter, Fireflies, Read.ai, Fathom, tl;dv, Gong…), writing/coding/automation/research/media products, browser AI extensions
- Permission policies – privileged, data-access and LLM-access scope classes across Graph, Google, Okta, Slack, GitHub, GitLab, Salesforce, Atlassian, Zoom, Notion, HubSpot, AWS IAM, Azure RBAC, GCP IAM, OCI
shadowscan signatures list shows everything; shadowscan signatures test <value>
tells you what a package, host, user agent, model ID, scope, or file path maps to.
Install
Quick install (PyPI)
python -m pip install NexusShadowScan # or: pipx install NexusShadowScan
python -m pip install "NexusShadowScan[cloud]" # adds the AWS, GCP, Azure and OCI SDKs
shadowscan --help
The distribution is NexusShadowScan; the command and Python imports are
shadowscan. The unrelated shadowscan package on PyPI is not this project.
Python 3.11, 3.12 or 3.13 is required. Releases are uploaded only by the
maintainer-approved publish job
through PyPI trusted publishing. The uploaded wheel is the same file that job
attests on GitHub, so you can check a downloaded wheel against this repository:
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
A plain pip install resolves dependencies from the live index. For a
deployment, prefer the hash-locked install.
Deployment install (reviewed revision, hash-locked)
Select the full 40-character commit SHA after reviewing its changes and CI
results. Set SHADOWSCAN_REVISION to that SHA; do not use a moving branch or an
unpublished tag in a deployment job. From a clean checkout and virtual
environment, install the checked-in runtime and build locks, then build and
install the wheel:
SHADOWSCAN_REVISION="REPLACE_WITH_REVIEWED_40_CHARACTER_SHA"
git clone https://github.com/aisecnomad/Project-Nexus.git
cd Project-Nexus
git checkout --detach "$SHADOWSCAN_REVISION"
test "$(git rev-parse HEAD)" = "$SHADOWSCAN_REVISION"
python -m venv .venv
source .venv/bin/activate
python -m pip install --require-hashes --only-binary=:all: -r requirements.lock
python -m pip install --require-hashes --only-binary=:all: -r requirements-build.lock
python -m pip wheel . --no-deps --no-build-isolation --wheel-dir dist
python -m pip install --no-deps dist/nexusshadowscan-0.1.2-*.whl
The checked-in runtime lock includes the core scanner and cloud dependencies. It is validated for Linux x86_64 with Python 3.11 to 3.13. Build and retain the wheel from this reviewed commit; see locked installs and release evidence for validation and artifact-retention requirements.
The source version string 0.1.2 is not, by itself, evidence of a published or
signed artifact; the package index and the release evidence are. Python 3.11,
3.12, or 3.13 is required and covered by CI; 3.14 is excluded until the CI matrix and
hash-locked dependency sets cover it. Core dependencies include click, rich,
PyYAML, requests, urllib3, PyJWT[crypto] and regex. Cloud SDKs are
optional extras; every cloud connector also accepts an offline record dump.
Development install (non-reproducible)
For development only, the VCS install resolves transitive dependencies at install time. It is not hash-locked or reproducible and must not be used for deployment or CI gating.
SHADOWSCAN_REVISION="REPLACE_WITH_REVIEWED_40_CHARACTER_SHA"
python -m pip install "git+https://github.com/aisecnomad/Project-Nexus.git@${SHADOWSCAN_REVISION}"
For cloud development, install the extra from the same reviewed revision:
SHADOWSCAN_REVISION="REPLACE_WITH_REVIEWED_40_CHARACTER_SHA"
python -m pip install "NexusShadowScan[cloud] @ git+https://github.com/aisecnomad/Project-Nexus.git@${SHADOWSCAN_REVISION}"
The consumer GitHub Action example requires
the repository variable SHADOWSCAN_REVISION to hold that reviewed full SHA;
it fails until the variable is set.
Quick start
# 1. Scan a checkout (or your whole ~/src) — no credentials needed
shadowscan code . --inventory agent-card.yaml
# 2. Try every fixture-backed connector offline (demo; 36 of 38 connectors ship fixtures)
shadowscan scan -c examples/shadowscan.offline.yaml --format html -o report.html
# 3. Real estate: one config, live connectors, secrets from the environment
shadowscan scan -c shadowscan.yaml --format sarif -o shadowscan.sarif
# 4. Single connector, ad-hoc
shadowscan run identity.entra --set tenant_id=$AZURE_TENANT_ID
shadowscan run cloud.aws --set regions=us-east-1,eu-west-1 --dump-records ./exports
# Read exports/manifest.json and use the exported filename for this instance:
shadowscan run cloud.aws --input ./exports/0001-cloud_aws.jsonl # reanalyze later, offline
# 5. Logs and tokens
shadowscan gateway litellm-spend.jsonl bedrock-invocations/ egress-proxy.log
shadowscan jwt --file ./token.jwt --jwks-url https://acme.okta.com/oauth2/default/v1/keys
# 6. Register what you found
shadowscan inventory stubs report.json -o inventory/pending/ # capability-card stubs for shadow agents
shadowscan diff last-week.json today.json # what is new / resolved/changed
Steps 1 and 2 need a repository checkout: agent-card.yaml, examples/ and
the sample exports under tests/fixtures/ are not shipped in the wheel. Steps
5 and 6 use your own logs, token, and an earlier JSON report
(--format json -o report.json); sample gateway logs live under
tests/fixtures/gateway/ in a checkout.
Configuration
# shadowscan.yaml
inventory: [./inventory] # Agent Cards, agents.yaml or CSV
signatures: [./custom-signatures] # optional: extra packs; overrides require opt-in
options:
plugins: [] # exact names of reviewed third-party connectors
allow_signature_override: false
allow_private_origin: false # opt in only for trusted private HTTPS APIs
allow_credential_mixing: false # separate repository scans from live tenant access
allow_instance_credentials: false # cloud metadata credentials require explicit opt-in
connector_timeout_seconds: 120 # soft deadline; also enforce a host job timeout
parallel: 4 # worker threads; use 1-2 for CPU-bound offline scans
min_confidence: 0.3
dump_records: ./exports # sanitized records for offline re-runs; excludes JWTs
connectors:
- name: identity.entra
tenant_id: ${AZURE_TENANT_ID}
client_id: ${AZURE_CLIENT_ID}
client_secret: ${AZURE_CLIENT_SECRET}
- name: identity.google-workspace
service_account_file: ./sa.json
admin_email: admin@acme.com
- name: gateway.logs
label: litellm-prod # names this entry in --only, progress and exports
input: ./exports/litellm-spend.jsonl
- name: lowcode.power-platform
tenant_id: ${AZURE_TENANT_ID}
client_id: ${AZURE_CLIENT_ID}
client_secret: ${AZURE_CLIENT_SECRET}
- name: saas.slack
enabled: false # keep the entry, skip it on this run
token: ${SLACK_TOKEN}
- name: cloud.aws
regions: [us-east-1, eu-west-1]
cloudtrail_days: 7
Credential boundaries
shadowscan connectors lists each connector's configuration keys and required
extras; shadowscan connectors --json also lists offline export formats. Entries
accept enabled (default true) and label (a distinct ID when a connector runs
more than once). See connector keys and least-privilege scopes.
Run repository scans separately from live tenant collection. Mixing these
credential boundaries requires the explicit allow_credential_mixing exception;
keep them separate for untrusted repositories. Cloud instance-metadata credentials
require allow_instance_credentials: true; use an explicit audit identity by default.
Coverage and exit codes
Oversize files the scanner would inspect and symbolic links that leave the scan
root make coverage incomplete (exit 3) by default. --strict-coverage
(strict_coverage: true) records them as errors instead of warnings;
oversize_skip_globs remain declared warnings. An in-root link is complete when
its name is never read (for example, a lockfile or image), or when it is a source
file whose target is analyzed in the same project with the same test
classification. Directory links are incomplete because their alias paths are
not scanned. A file analyzed by name but unreadable as text (a NUL byte outside
UTF-8, UTF-16 or UTF-32 with a byte-order mark) is also a gap. Non-empty
bin/, build/, dist/, vendor/ and similar directories skipped by default
are listed in a warning; --no-default-excludes scans them. Evidence found only
in test or fixture code cannot establish an agent unless --include-tests is set.
See scan semantics for the full coverage policy.
| Exit | Meaning |
|---|---|
| 3 | Scan incomplete. shadowscan diff also returns 3 when reports are incomparable. |
| 2 | Scan completed but reached --fail-on. |
| 1 | No scan result: invalid option, value, path or configuration, or setup/output error. |
| 0 | Scan completed and passed. |
Gate CI on any non-zero exit. SARIF marks incomplete scans unsuccessful while
preserving findings from successfully assessed inputs. Enable --fail-on only
after a frozen, independently adjudicated holdout
and read-only tenant canary
establish an acceptable threshold for that environment. A complete static scan
does not prove agent execution or collection of every eligible resource. The CLI
normally exits promptly after a connector deadline even if a blocked worker
cannot be joined; filesystem publication already in progress can delay timeout
handling, so enforce a host job timeout for hard limits. Confidence thresholds
must be finite numbers from 0 to 1; invalid CLI or YAML values stop the scan
before the risk gate runs.
Incremental and runtime correlation
Use --incremental to reuse completed scans of unchanged local checkouts and
static cloud exports. Live APIs and gateway logs are refreshed on each run.
Configure gateway.logs.correlation_bindings to link a code resource to a
specific gateway caller and scope. Matching timestamped framework fingerprints
then appear in metadata.runtime_activity, including the observation window and
any production label claimed in the logs. Treat caller and environment fields
according to export provenance; ShadowScan does not authenticate an imported
log's source. See scan state and runtime correlation for
configuration and limitations.
Git history enrichment is disabled by default. Set connector use_git: true
only for a reviewed local checkout when author/history metadata is needed;
metadata commands cannot fetch missing objects. Every explicit --only selector
must match an enabled connector name or label. Unsupported records and saved API
error responses cannot establish an empty, successful inventory.
Upgrading baselines
After upgrading from reports without the v2 finding-identity schema, regenerate your comparison baseline. Findings retain identity when inferred classification changes; legacy baselines cannot establish resolution under the new schema. See deployment and migration for rollout checks.
What a finding looks like
{
"id": "ss-3f9c1e2a7b4d8c10",
"surface": "cloud", "connector": "cloud.aws", "kind": "agent",
"title": "Bedrock AgentCore runtime: strands_support_agent",
"resource": "arn:aws:bedrock-agentcore:us-east-1:123456789012:runtime/rt1",
"account": "123456789012", "region": "us-east-1", "owner": null,
"frameworks": ["cloud.aws-bedrock-agents"], "model_providers": ["provider.openai"],
"capabilities": ["tool-use"], "tags": ["plaintext-credential", "secret-in-env"],
"confidence": 1.0, "likelihood": "strong",
"shadow": true, "registry_match": null,
"risk": {"score": 90, "level": "critical", "factors": [
{"id": "shadow", "description": "not present in the sanctioned agent inventory", "weight": 25},
{"id": "tag:plaintext-credential", "description": "plaintext credential in environment/configuration", "weight": 25},
{"id": "no-owner", "description": "no identifiable owner", "weight": 10}, "..."]},
"evidence": [
{"signal": "aws:agentcore-runtime", "description": "AgentCore runtime 'strands_support_agent' (READY) role arn:aws:iam::…", "weight": 0.97},
{"signal": "secret: provider.openai", "description": "Plaintext OpenAI API key in environment variable OPENAI_API_KEY: sk-p…KLMN", "weight": 0.6}],
"metadata": {"status": "READY", "protocol": "HTTP", "network": "PUBLIC", "related": ["ss-…"]}
}
- confidence combines evidence weights with noisy-OR after grouping correlated evidence, so each group counts once at its strongest weight. A code project groups its matches by technology; on every other surface, repeated matches of one signal form one group. A single-file code finding (a workflow export, IaC, agent configuration) still counts each distinct matched pattern. It is a heuristic evidence score, not a calibrated probability or proof that an agent executed.
- potential_capabilities in static finding metadata records framework features supported only by availability evidence, such as an import or dependency. These are excluded from capability risk factors until stronger source evidence supports them.
- risk is additive and explainable: kind, capabilities (code-exec, autonomous, SaaS actions…), permission classes, credential exposure, exposure/auditability tags, registration status, ownership — scaled by confidence. The listed factors always add up to
score; confidence scaling and the 0–100 bounds appear as factors. - danger_score is the same model without the governance factors (inventory registration and ownership): what the agent can do, independent of whether anyone approved it. Set
options.risk_basis: dangerto baseleveland--fail-onon it, andoptions.risk_weightsto tune weights (see Risk policy). - shadow is
trueunless exactly one inventory entry matches an explicit resource pattern and its configured scope restrictions; names only suggest entries for review. An approved entry lends its owner to the finding. - related links findings across surfaces (the Terraform that provisions an agent ↔ the agent in the account ↔ the role calling Bedrock ↔ the CloudTrail caller).
Outputs: table (terminal), json, sarif (GitHub code scanning; code
findings carry file: line locations; results are warnings or notes with the
heuristic risk level, never a CVSS security-severity, see
severity), csv, markdown, html (self-contained,
filterable, with evidence drill-down), and cyclonedx (a CycloneDX 1.6 AI bill
of materials, see AI-BOM). Opt-in
LLM triage adds an advisory model verdict to
the highest-risk findings; it is off by default and never changes scores.
CSV inserts a literal ' at the start of
a value, and after each ,, ;, tab, | or line break inside it, when the
following text begins with =, +, - or @ (also after whitespace or
quotes), a tab or a carriage return; values beginning with a line feed are also
marked. Other tabs and line breaks remain unchanged, and spreadsheet cells are
read as text regardless of delimiter. Strip markers for programmatic use or use
json; see output and inventory migration.
markdown output defangs links (hxxps://, www[.]) and writes @ as [@]
in untrusted text, so a report pasted into an issue or pull request creates no
links, @-mentions or e-mail links; code spans keep identifiers verbatim.
Risk policy
options:
risk_basis: danger # combined (default) | danger: level from capabilities, not registration
risk_weights: # integers -100..100; unknown groups, kinds, capabilities, provider ids or governance keys are rejected (tags may be custom)
capabilities: {code-exec: 25}
tags: {meeting-bot: 20}
providers: {provider.deepseek: 20}
kinds: {agent: 20}
governance: {shadow: 15, no-owner: 5, registered: -10}
Sanctioned inventory
Drop your Agent Cards in a directory. The card's metadata.agent_id
identifies the registration; explicit discovery.resources bind it to concrete resources:
metadata:
agent_id: "ops-provisioning-04"
owner_team: "Platform-Engineering"
discovery:
resources:
- "arn:aws:bedrock:*:123456789012:agent/AGENT1"
- "github:acme/infra-agents/*"
names: ["ops provisioning agent"]
Simple agents.yaml lists and CSV work too. shadowscan inventory stubs
turns shadow findings into card skeletons for review. See
docs/inventory.md.
Extending
- Signatures are YAML; add a pack directory with
--signatures/signatures:to add products. Replacing built-in signatures requires explicit opt-in. Schema and authoring guide in docs/signatures.md. - Connectors implement
collect()(live) andanalyze()(records → findings) and register through theshadowscan.connectorsentry-point group. Execution requires an exact-nameoptions.pluginsallowlist entry. See docs/architecture.md.
Development
pip install -e ".[cloud,dev]"
python -m shadowscan.signatures.validate
ruff check shadowscan tests tools
ruff format --check shadowscan tests tools
mypy shadowscan tools
pip-audit --progress-spinner off
pytest -q --cov=shadowscan --cov-fail-under=80
shadowscan scan -c examples/shadowscan.offline.yaml
Install the cloud extra for the same connector coverage as CI. Tests that
require missing optional SDKs can be skipped, so a core-only run does not validate all
connectors. See CONTRIBUTING.md.
Evidence and assurance limits
- Evaluation corpora: These are author-written regression cases, including multi-file cases with documented misses; they do not estimate field precision or recall. Confidence is a heuristic evidence score, not a measured probability, and detection quality depends on repositories, providers, tenant permissions, and log provenance. See evaluation and rollout acceptance before using a risk threshold as a production gate.
- Assurance results: The baseline and later results use a frozen corpus of 42 public files (30 negatives), labeled by two AI reviewers before evaluation. The labelers share model capabilities, so these are not independent human ground truth; the corpus has since informed implementation, and only the baseline is out of sample.
- Canaries: Read-only AWS and Slack canaries validate named tenant controls when approved credentials are supplied; offline replay does not establish live tenant acceptance.
- Acceptance verifier: The offline verifier requires current source and signature identities, declared human-reviewed holdout evidence, and live tenant receipts for supported live deployment scopes. It validates supplied evidence but cannot authenticate reviewer independence or manufacture tenant acceptance.
- Release-evidence workflow: The
workflow builds a candidate wheel and retains
hashes, a runtime dependency SBOM and provenance after the selected commit
passes CI and CodeQL. This does not establish deployment acceptance. It
uploads to PyPI only when the maintainer dispatches it with
publishset and approves the protected environment; it never creates a GitHub release.
Project status
- Release state. Version
0.1.2is prepared for public alpha distribution asNexusShadowScan. Confirm publication and artifact identity on PyPI and the GitHub release. The package classifier isDevelopment Status :: 3 - Alpha. - Single maintainer, AI-assisted development. Apart from Dependabot updates, every commit was written by a single maintainer or generated with an AI coding assistant (Claude, Codex, Grok, GitHub Copilot, Google Antigravity, Perplexity, Meta AI, etc.). The logs under archive/reviews/ are AI-assisted, not third-party reviews.
- Independent review. PR #159
received a non-author approval from
immanueldahunsi-Project-Nexusafter merge. Its reviewed source tree matches the0.1.1candidate. That approval does not cover later changes; each release candidate requires independent review. See the review and merge policy. The intended branch ruleset is versioned in .github/rulesets/require-ci-and-review.json. - Recommendation. Review the revision yourself or have it reviewed, then pin that full commit SHA as shown below. Review state cannot be established from a checkout; verify it with the commands in merge gate and review status.
Community and contributing
Contributions are welcome from developers, security practitioners, technical writers and people testing the scanner against their own authorized data. A small documentation fix or a reproducible false-positive report is useful.
| I want to… | Start here |
|---|---|
| Learn, ask a question or troubleshoot a scan | Support guide |
| Report a bug, request a feature, or request a connector | Issue forms |
| Report a false positive, a missed framework, or a wrong score | Detection quality report |
| Make a first contribution | Contributor guide and the good first issue label |
| Understand decisions, review and release requirements | Governance, Maintainers, Roadmap |
| Report a vulnerability privately | Security policy |
| Understand participation standards or report harmful conduct | Code of conduct |
| See what changed, or cite the project | Release notes, Changelog, CITATION.cff |
Use synthetic, minimal examples in public reports. Scan results can contain credentials, personal data, and sensitive inventory even after redaction.
Safety notes
- Known credential formats, sensitive configuration fields, and credential-bearing URLs are redacted before findings or sanitized record exports are persisted. Redaction cannot identify every arbitrary secret; reports still contain security-sensitive inventory data.
- Secret stores (Secrets Manager, Key Vault, Secret Manager, OCI Vault) are read for names only.
- JWTs are never persisted; findings reference a truncated hash.
- Built-in collectors inspect provider resources using read operations. Scope the audit identity to the documented read permissions and review any enabled third-party plugin separately.
Deployment behavior, migration options, and limits are documented in SECURITY.md and docs/production.md.
License
Metadata
Release files for NexusShadowScan 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nexusshadowscan-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / nexusshadowscan-0.1.2-py3-none-any.whl
| Download URL | nexusshadowscan-0.1.2-py3-none-any.whl |
|---|---|
| Size | 852.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e074a37cc8ca16e9967108e54c0c623bccdc6b82173368b414e8fd2057dabde1
|
|
BLAKE2b-256 checksum How to use checksums |
180bc102e9dc1577c86be10abbd374ed3ba27e91e49e57cbca52904227f88b42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 8, 2026.
Transparency log