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

pip install cyber-agent-kit
cyb doctor

Offline / air-gapped installs: download cyber_agent_kit-0.0.1-py3-none-any.whl from PyPI or the release page and run pip install ./cyber_agent_kit-0.0.1-py3-none-any.whl.

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.2

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.2
File Size Uploaded Provenance Actions
cyber_agent_kit-0.0.2.tar.gz 39.9 kB Without provenance Details for cyber_agent_kit-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 75.1 kB

Release files / cyber_agent_kit-0.0.2.tar.gz

Download URL cyber_agent_kit-0.0.2.tar.gz
Size 39.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8e13f3fd1fd634e09f89c63ad5c50c9ff75686d75c2ffde680b6a63deca996db
BLAKE2b-256 checksum
How to use checksums
f11f9f27558871d2afeaf15e64626555ee61156bcee8c9cb9ca91bd06e94b91d
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.2-py3-none-any.whl

Download URL cyber_agent_kit-0.0.2-py3-none-any.whl
Size 35.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8af915c0692e8790ca54f0f1c6e2935e3d651a3729aac5192ac46bb32c3efa1
BLAKE2b-256 checksum
How to use checksums
23bc11f0834da93854918ca56520ae8fcc5d5aad294068e0245813e7001325d9
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.2

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.2 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