Skip to main content

HiddenShadow

License + SBOM + CVE + dependency analyzer for OSS source trees.

A standalone tool that scans any directory tree of cloned source repositories and produces:

  • License detection — finds LICENSE/COPYING/NOTICE files; identifies SPDX licenses; classifies them per a configurable policy (permissive / weak-copyleft / strong-copyleft / network-copyleft / source-available / public-domain).
  • SBOM — emits CycloneDX 1.5 JSON per repo from package-manager manifests (npm, PyPI, Cargo, Go, Maven, Gradle, Composer).
  • Library rollup — aggregates every direct dependency across all repos; flags top recurring deps for license review.
  • Network license lookup — resolves declared licenses for thousands of deps via the deps.dev v3 API (with persistent cache).
  • CVE scan — queries OSV.dev for vulnerabilities against every (package, version) pair in the rollup.
  • Dual-license detection — recognizes sibling LICENSE+COPYING pairs with different SPDXs and SPDX-License-Identifier expressions inside COPYING.md narratives, demoting findings appropriately.
  • METADATA-aware suppression — when a fork has a METADATA.yaml that documents the disposition of a non-permissive file, scan findings are demoted to a "Documented in METADATA" info entry. Enables CI to surface only NEW findings since fork import.
  • Cleartext-secret detection — flags hardcoded credentials in source/config files: private-key blocks, AWS / GitHub / Google / Stripe / Slack / Twilio / SendGrid / npm / PyPI tokens, connection strings with embedded passwords, JWTs, and generic password = "..." / api_key: '...' style assignments. Matches are redacted in the findings file (only first/last 3 chars kept) so the artifact itself is safe to share. Disable with --no-secrets.
  • Findings + recommendations — every observed issue is recorded with severity (critical/high/medium/low/info), location, detail, and a concrete recommended fix.

Owned and maintained by DarkShadowSec LLC. Renamed in v0.4 and split into a standalone tool.

Install

cd "E:\New Apps\HiddenShadow"
pip install -e .

Or run directly without install:

python -m hiddenshadow --help

Commands

hiddenshadow scan <path>          # license + SBOM + finding pipeline
hiddenshadow lookup-licenses ...  # resolve unknown licenses via deps.dev
hiddenshadow scan-cves ...        # OSV vulnerability scan
hiddenshadow classify <SPDX>      # show policy decision for one SPDX id
hiddenshadow licenses             # full policy table
hiddenshadow findings ...         # print last-scan findings

Common runs

# Scan the DarkShadowSec source mirror
hiddenshadow scan "E:\New Apps\DarkShadowSec Source Apps"

# Scan with strict CI-mode — exit non-zero on any new high/critical
hiddenshadow scan "E:\path\to\third_party" --fail-on high

# Force the raw view (don't suppress METADATA-documented findings)
hiddenshadow scan "E:\path\to\third_party" --ignore-metadata

# Resolve licenses for the rollup (network — uses deps.dev)
hiddenshadow lookup-licenses --rollup .\library-rollup.csv

# CVE scan via OSV.dev (network)
hiddenshadow scan-cves --rollup .\library-rollup.csv

Layout the scanner expects

<source_root>/
├── <category>/
│   ├── <repo-1>/         (with LICENSE / METADATA.yaml / .git etc.)
│   └── <repo-2>/
├── <repo-3>/             (or a repo can sit directly under source_root)
└── ...

A repo is detected by the presence of any of: .git, METADATA.yaml, LICENSE, LICENSE.txt, LICENSE.md, COPYING, BUILD.darkshadow.

Output

After a scan, <output_root> (defaults to <source_root>) contains:

<output_root>/
├── _logs/
│   ├── scan-findings.json     # full findings + summaries
│   ├── scan-summary.csv       # per-repo row
│   ├── library-rollup.csv     # every direct dep across all repos
│   └── cve-findings.json      # if scan-cves was run
├── sboms/
│   ├── <repo>.cdx.json
│   └── ...
└── _cache/                    # network-fetch caches; safe to delete
    ├── depsdev/
    └── osv-dev/

Severity guide

Severity When
critical network-copyleft (AGPL) or source-available (BUSL/SSPL) license inside an authoritative location of a permissive-licensed repo
high strong-copyleft (GPL) license in an authoritative location; source files claim non-permissive license; LICENSE missing entirely
medium weak-copyleft (MPL/LGPL) license inside an authoritative path; root LICENSE present but unrecognized
low reserved
info non-permissive license in a docs/test path (likely fixture/data); deps needing license lookup; mixed-but-compatible SPDX headers; METADATA-documented dispositions

Configuration

The license policy table lives at hiddenshadow/licenses.py. To support a new license, add a regex pattern to LICENSE_PATTERNS and a classification entry to LICENSE_CLASS. Restart any installed process after editing.

Extending

Module Responsibility
hiddenshadow.licenses SPDX patterns + classification policy
hiddenshadow.manifests package-manager manifest parsers
hiddenshadow.dual_license dual-license pattern recognition
hiddenshadow.metadata_aware METADATA.yaml-driven finding suppression
hiddenshadow.findings analysis rules — license, SBOM, dep
hiddenshadow.secrets cleartext-credential / API-key detection
hiddenshadow.sbom CycloneDX 1.5 emission
hiddenshadow.network shared HTTP+cache for network calls
hiddenshadow.registry deps.dev lookup
hiddenshadow.osv OSV.dev vulnerability scan
hiddenshadow.scan orchestration
hiddenshadow.cli click-based CLI

Tests

cd "E:\New Apps\HiddenShadow"
pip install -e ".[test]"
pytest tests/

Known limitations

  • No registry-resolution for transitives. We only parse direct deps declared in package-manager manifests. For full transitive coverage, run a real SBOM tool (Syft) against compiled artifacts and feed hiddenshadow scan-cves with the resulting SBOM.
  • Maven dep resolution is shallow. Real Maven resolves <dependencyManagement> and properties; we just enumerate explicit <dependency> blocks.
  • SPDX header sampling capped at 200 files per repo for performance.
  • Heuristic license detection — custom licenses (MITRE, DRL) are recognized but unusual ones may not be — they show as "Root LICENSE present but unrecognized" findings, prompting manual review.

License

HiddenShadow itself is proprietary to DarkShadowSec LLC — see the LICENSE file at the repo root. The OSS projects it scans retain their own licenses; HiddenShadow does not change them.

Metadata

Release files for hiddenshadow 0.11.1

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

Source distribution (sdist)

Source distribution for hiddenshadow 0.11.1
File Size Uploaded Provenance Actions
hiddenshadow-0.11.1.tar.gz 219.4 kB Without provenance Details for hiddenshadow-0.11.1.tar.gz

Built distribution (wheel)

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

Total release size: 436.6 kB

Release files / hiddenshadow-0.11.1.tar.gz

Download URL hiddenshadow-0.11.1.tar.gz
Size 219.4 kB
Tags Source
SHA-256 checksum
How to use checksums
940654ea516f4ab6051911062f70ebd1e1c0a5e2567c7fe70489995ee5cfaf04
BLAKE2b-256 checksum
How to use checksums
a3cd36052e6e7160fffc9042d62a86807b1a9916e1274d7275f653f07bbccb1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / hiddenshadow-0.11.1-py3-none-any.whl

Download URL hiddenshadow-0.11.1-py3-none-any.whl
Size 217.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d759578877a9e290597908059d3b6dfd5dd069aafbfaa382eb30df2a498df831
BLAKE2b-256 checksum
How to use checksums
3202dc201180a0ff5e9df767f68b49d49ace6f8643dc002ae587cb7ce3d56d89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for hiddenshadow 0.11.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.11.1 This release

2 release files No provenance

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