Skip to main content

cyber-agent-kit (cyb)

Read-only local CLI and dashboard over cyber-flow pipeline runs. It turns the per-stage reports produced by cyber-pipeline-lab (or any run that follows the same layout) into a single agent-friendly verdict.

  • Local files only: no network, no tokens
  • Zero runtime dependencies (Python standard library)
  • cyb serve binds 127.0.0.1 only and serves no JavaScript

Install

From the release wheel (offline-friendly):

pip install cyber_agent_kit-0.0.1-py3-none-any.whl
cyb doctor

From the source tree:

pip install .

Python 3.9+; no runtime dependencies.

Commands

cyb runs [--project P] [--json]    # list runs (project, stages, critical/high)
cyb projects [--json]              # per-project rollup
cyb findings [--run ID] [--source S] [--severity SEV] [--q TEXT] [--dedupe] [--limit N] [--json]
cyb compare A B [--json]           # metric deltas between two runs
cyb verify [--run ID] [--json]     # aggregate scans + tests into a verdict
cyb explain FINDING_ID [--run ID]  # one finding with local code context
cyb serve [--port 8766]            # read-only dashboard
cyb doctor                         # check lab roots and config
cyb audit                          # data-access inventory

Exit codes for verify: 0 pass · 1 gate failure · 2 missing run/report.

Output contract (cyb.verify/1)

{
  "schema": "cyb.verify/1",
  "run_id": "e2e01",
  "verdict": "fail",
  "stages": [{"name": "dast", "kind": "scanner", "status": "pass", "detail": "zap.json"}],
  "findings": {"foss": {"total": 29, "CRITICAL": 0, "HIGH": 11, "MEDIUM": 16, "LOW": 2}},
  "sonar_gate": "OK",
  "gate_failures": ["trivy_fs HIGH=11 > 5"],
  "next_actions": [{"id": "f-...", "source": "foss", "severity": "HIGH", "action": "upgrade requests to >= 2.31.0"}],
  "policy": {"level": "L0", "blocked": []},
  "budget": {"iterations_used": 0, "max_iterations": 5}
}

Configuration

Lab roots are discovered from CYB_LAB_ROOT, the current directory, a sibling cyber-pipeline-lab, or D:/GitHub/cyber-pipeline-lab. Override explicitly in %APPDATA%\cyber-agent-kit\config.json:

{"lab_roots": ["D:/GitHub/cyber-pipeline-lab"]}

A run directory must contain reports/summary.json (and optionally reports/{trivy-fs,trivy-image,bandit,zap,sonar-issues}.json).

Layout

src/cyb/
├─ cli.py        # argparse entry point
├─ config.py     # lab roots discovery
├─ runs.py       # run discovery + summary/state loading
├─ findings.py   # Trivy/Bandit/ZAP/Sonar → unified findings
├─ verify.py     # cyb.verify/1 payload + exit codes
└─ server.py     # 127.0.0.1 dashboard (no JS)

Metadata

Release files for cyber-agent-kit 0.0.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 cyber-agent-kit 0.0.1
File Size Uploaded Provenance Actions
cyber_agent_kit-0.0.1.tar.gz 39.5 kB Without provenance Details for cyber_agent_kit-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cyber-agent-kit 0.0.1
File Interpreter ABI Platform Actions
cyber_agent_kit-0.0.1-py3-none-any.whl Python 3 none any Details for cyber_agent_kit-0.0.1-py3-none-any.whl

Total release size: 74.5 kB

Release files / cyber_agent_kit-0.0.1.tar.gz

Download URL cyber_agent_kit-0.0.1.tar.gz
Size 39.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7591d02bef69253ba055972efd8ff3e3f20a9cdd2ea67b524a054724af4ce47b
BLAKE2b-256 checksum
How to use checksums
a98c7a201f0e426f6c8eccb159199186f0177981e8b963beff9c1338321b2406
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release files / cyber_agent_kit-0.0.1-py3-none-any.whl

Download URL cyber_agent_kit-0.0.1-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
053f99f4693dd75be5f4e5c85ae0216828c467043cb9b27d95675b854fb3eb1e
BLAKE2b-256 checksum
How to use checksums
917ab9c977723c500f99827d34bc19f25101ba4fa0167a4e9a2e4019222243e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Security for cyber-agent-kit 0.0.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.0.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