Skip to content

Repository files navigation

DreamNet Cerberus

Cerberus Supply Chain Guard License

Cerberus is a static, offline airlock for untrusted repositories, packages, agent bundles, editor workspaces, and CI definitions. It inspects the artifact before dependency installation or execution, scores the risk, and emits a digest-bound security receipt.

It does not run the repository it is judging.

What It Catches

  • npm lifecycle scripts and Git hooks
  • remote content piped into shells
  • dynamic execution and child processes
  • credential, wallet, browser-profile, and SSH-key harvesting
  • suspicious network destinations
  • prompt injection embedded in repository instructions
  • Unicode direction and zero-width controls
  • privileged or mutable GitHub Actions
  • unpinned, lookalike, remote-source, and internal-scope dependencies
  • automatic editor and devcontainer commands
  • mutable Docker base images
  • symlinks escaping the artifact root

Quick Start

No dependency install is required:

git clone https://github.com/BrandonDucar/dreamnet-cerberus.git
cd dreamnet-cerberus
node scripts/cerberus.mjs gate /path/to/untrusted-repository \
  --source=https://github.com/example/candidate \
  --source-identity=example \
  --commit=0123456789abcdef0123456789abcdef01234567

Green is the only default installation verdict. Yellow requires review. Orange and Red cannot be enabled through a command-line allow override.

Inspect without enforcing:

node scripts/cerberus.mjs inspect /path/to/candidate

Verify a saved receipt's internal digest:

node scripts/cerberus.mjs explain artifacts/ops/cerberus/<receipt>.json

Run the adversarial fixtures:

npm test

Receipt

Every dreamnet.security-receipt.v1 records:

  • declared source, publisher, revision, purpose, and requester
  • a digest-only file manifest
  • structured findings without copied payload text
  • declared direct-dependency SBOM
  • network destinations and requested capabilities
  • category risk scores and the gate decision
  • scanner limitations and receipt integrity digest

Phase 1 receipts are unsigned. They are useful for reproducibility and change detection, but are not a publisher identity signature.

Boundaries

Repository text is evidence, never authority. It cannot grant itself access to local credentials, shells, wallets, networks, deployments, or publishing.

Cerberus is not a proof that software is harmless. It does not detonate code, resolve every transitive package, query threat-intelligence services, or replace human review for high-impact software.

Read the complete architecture and threat model.

DreamNet

Cerberus is the supply-chain defense layer for DreamNet: bounded agent infrastructure built around receipts, verification, and explicit authority.

About

Static, offline supply-chain airlock for repositories, packages, agent bundles, and CI workflows.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages