cynative/cynative
소개
Open-source AI agent framework for security engineering across AWS, GCP, Azure, Kubernetes, GitHub & GitLab: AI-powered security review, findings triage, detection and response.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +3
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
Build your own security agents
Open-source framework for security agents with live, read-only access to your infrastructure.
Quickstart · Built-in agents · Your first agent · Docs
Ask your infrastructure anything. Cynative runs frontier models across your code, cloud and runtime - reasoning through GitHub, GitLab, AWS, GCP, Azure and Kubernetes as one system - and comes back with verified answers.
cynative "what in my cloud is publicly exposed that shouldn't be?"
45 built-in agents for AWS, GCP, Azure, GitHub and Kubernetes - privilege escalation, public exposure, supply chain, detection coverage and more - or you write your own in one markdown file.
One question fans out across your whole stack: Cynative writes and runs code in an ephemeral sandbox, querying your APIs in parallel. Every finding is cross-checked and traced back to its origin.
Cynative is read-only under default connector policy. The connector gate authorizes each guarded request before attaching credentials.
What your agents get
- Code-to-runtime: Reasons through AWS, GCP, Azure, any K8s, GitHub and GitLab
- Sandbox: Generates and runs code to research at scale, with no network or host access of its own
- Action-gate: Resolves every call to its required IAM actions and applies a read-only policy before a credential is attached
- Evidence-backed: Cross-checks to verify every finding
- Sovereign: One binary, your model, your data stays yours
Quickstart
Install and set an LLM:
brew install cynative/tap/cynative
export CYNATIVE_LLM_PROVIDER=anthropic
export CYNATIVE_LLM_MODEL=claude-opus-5
export ANTHROPIC_API_KEY=...
It picks up the credentials already in your shell. Run a built-in agent:
cynative -p --agent aws-network-exposure
Or ask it anything:
cynative -p "which IAM roles can escalate to admin?"
cynative -p "high-risk cloud permissions, trace each to the PR where it was granted"
cynative -p "cloud credentials leaked in source code and their current blast radius"
cynative "live cloud resources absent from IaC - drift" # starts an interactive session
cat findings.json | cynative -p "triage these findings by exploitability"
Built-in agents
45 agents are embedded in the binary. Each one is a reviewed prompt for a specific question.
| Agents | For example | |
|---|---|---|
| AWS | 20 | aws-privilege-escalation, aws-public-storage, aws-unpatched-workloads, aws-supply-chain |
| Azure | 11 | azure-keyvault-exposure, azure-storage-exposure, azure-privilege-escalation |
| GCP | 5 | gcp-public-bindings, gcp-static-credentials, gcp-inference-exposure |
| GitHub | 4 | github-workflow-trust, github-unpatched-dependencies, github-branch-protection |
| Kubernetes | 5 | k8s-pod-privilege, k8s-self-managed-apiserver-access |
cynative agents list # every agent, with its description
cynative agents show <name> # the exact prompt that would run
The full catalog with a one-line description of each agent is in docs/agents-catalog.md.
Your first agent
cynative agents show <name> prints the exact file an agent would run. To make your own version, copy it to your agents directory under a new name and edit it:
mkdir -p ~/.cynative/agents
cynative agents show aws-public-datastores > ~/.cynative/agents/my-aws-public-datastores.md
# edit ~/.cynative/agents/my-aws-public-datastores.md, then:
cynative -p --agent my-aws-public-datastores
An agent is a markdown file: strict YAML frontmatter whose only key is
description, then the prompt body. The filename is the name. A file in
~/.cynative/agents/ wins over a built-in of the same name, so give your copy a
distinct name to keep both. See docs/agents.md for the format.
Running agents
cynative -p --agent aws-public-datastores "AWS account 128149835728 only" # with a task
cynative -p --agent aws-public-datastores # without
cynative --agent aws-public-datastores # seeds an interactive session
--agent composes with -p, --auto-approve, --config and piped stdin, so the same file runs interactively while you develop it and non-interactively once it settles.
Agents are read from ~/.cynative/agents/ and from the set built into the binary; a user file wins over a built-in of the same name. cynative agents list shows every agent with its source and marks the shadowed copies, and cynative agents show <name> prints the exact file that would run.
Research CLI comparison
| Coding agent + MCPs | Cynative research CLI | |
|---|---|---|
| Throughput | One action per call | Writes sandboxed code that fans out calls concurrently - fewer tokens, faster answers |
| Findings | Unverified output | Verifier cross-checks every finding against live evidence |
| Read-only | Opt-in read filter | Read-only under default connector policy. IAM classifies secretsmanager:GetSecretValue as a read, and the default AWS SecurityAudit policy denies it |
| Credentials | Ambient, unchanged | Eligible AWS identities use an STS session scoped to the configured policy |
| Blast radius | Your shell, any network | Research code runs in a sandbox with no host access, network pinned to your mapped services |
| Secrets | Sent to the model as-is | Redacted from tool output before it's sent to the model |
| Supply chain | Third-party MCPs and skills running with your creds | One open-source binary, connectors built in |
| Audit trail | Scattered session logs, best effort | Fail-closed JSONL records for admitted calls when audit is enabled and each writer has its own file |
One binary, your model endpoint, your account. Run it on an instance in the cloud it audits, through that cloud's managed inference, and nothing leaves your environment: security on your infrastructure, from within your infrastructure.
Installation
Homebrew (macOS / Linux - recommended):
brew install cynative/tap/cynative
Install script (macOS / Linux - verifies the download's SHA-256 against the release checksums.txt, failing closed):
curl -fsSL https://raw.githubusercontent.com/cynative/cynative/main/install.sh | sh
Windows (Scoop):
scoop bucket add cynative https://github.com/cynative/scoop-bucket
scoop install cynative
Updating, uninstalling, Windows details, version pinning & manual download
Update / uninstall
| Method | Update | Uninstall |
|---|---|---|
| Homebrew | brew upgrade cynative |
brew uninstall cynative |
| Install script | re-run the one-liner | curl -fsSL https://raw.githubusercontent.com/cynative/cynative/main/install.sh | sh -s -- --uninstall |
| Scoop | scoop update cynative |
scoop uninstall cynative |
Windows (PowerShell script): irm https://raw.githubusercontent.com/cynative/cynative/main/install.ps1 | iex; uninstall with & ([scriptblock]::Create((irm https://raw.githubusercontent.com/cynative/cynative/main/install.ps1))) -Uninstall.
Install-script options: pin a version with CYNATIVE_VERSION=v1.0.0; change the target directory with CYNATIVE_INSTALL_DIR (default ~/.local/bin, no sudo). The script checks the GitHub release attestation when gh is installed (advisory by default); set CYNATIVE_REQUIRE_ATTESTATION=1 to make a failed check fatal. For a high-integrity install, fetch the script from an immutable tag instead of main.
macOS (manual): download cynative_Darwin_arm64.pkg (Apple Silicon) or cynative_Darwin_x86_64.pkg (Intel) from the releases page and install with sudo installer -pkg <file> -target / (or double-click). These are signed, notarized and stapled - no first-run Gatekeeper prompt. The raw cynative_Darwin_*.tar.gz archives remain for scripting/CI; a quarantined tarball binary's first GUI launch needs internet for the online notarization check (terminal/install.sh/Homebrew use is unaffected).
Linux / Windows (manual): download a prebuilt binary and checksums.txt from the releases page, verify the SHA-256, and put the binary on your PATH. Single static binary, no dependencies.
Verify a release signature (optional). New releases ship checksums.txt.sigstore.json, a Sigstore bundle signing checksums.txt with a keyless certificate bound to this repo's release workflow. Authenticate the manifest, then check your archive against it:
cosign verify-blob checksums.txt \
--bundle checksums.txt.sigstore.json \
--certificate-identity "https://github.com/cynative/cynative/.github/workflows/release.yaml@refs/heads/main" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com"
grep cynative_Linux_x86_64.tar.gz checksums.txt | sha256sum -c - # Linux
grep cynative_Darwin_arm64.tar.gz checksums.txt | shasum -a 256 -c - # macOS
(Get-FileHash .\cynative_Windows_x86_64.zip -Algorithm SHA256).Hash.ToLower()
Select-String -Path checksums.txt -Pattern cynative_Windows_x86_64.zip
This covers the archives named in checksums.txt. The .pkg installers are Developer ID signed, notarized and stapled instead, and every asset is additionally covered by the GitHub release attestation (gh release verify <tag>). Two limits worth knowing: cosign fetches Sigstore's trust root over the network unless you pass --trusted-root, and because the file names carry no version, the signature proves origin and integrity but not which release a loose set of files came from - the release URL or gh release verify is what binds a version.
LLM providers
Cynative talks to LLMs through the embedded Bifrost SDK and supports almost any AI provider out of the box (OpenAI, Anthropic, Azure OpenAI, Amazon Bedrock, Google Vertex/Gemini, Cohere, Mistral, Groq, Ollama, vLLM and more). Pick one from docs/providers/README.md and follow that provider's guide.
Quick examples
# Google Vertex
export CYNATIVE_LLM_PROVIDER=vertex
export CYNATIVE_LLM_MODEL=gemini-3.1-pro-preview
export CYNATIVE_LLM_VERTEX_PROJECT_ID=my-gcp-project
export CYNATIVE_LLM_VERTEX_REGION=global
# CI / no gcloud: export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa.json
# OpenAI
export CYNATIVE_LLM_PROVIDER=openai
export CYNATIVE_LLM_MODEL=gpt-5.6-sol
export OPENAI_API_KEY=sk-...
# Amazon Bedrock - AWS credential chain
export CYNATIVE_LLM_PROVIDER=bedrock
export CYNATIVE_LLM_MODEL=anthropic.claude-opus-5
export CYNATIVE_LLM_BEDROCK_REGION=us-east-1
# Azure OpenAI - endpoint via env, no YAML needed
export CYNATIVE_LLM_PROVIDER=azure
export CYNATIVE_LLM_MODEL=my-gpt-5.6-sol
export AZURE_OPENAI_API_KEY=...
export CYNATIVE_LLM_AZURE_ENDPOINT=https://my-resource.openai.azure.com
# Local Ollama
export CYNATIVE_LLM_PROVIDER=ollama
export CYNATIVE_LLM_MODEL=nemotron-cascade-2
export CYNATIVE_LLM_OLLAMA_URL=http://localhost:11434
Advanced YAML
For multi-key load balancing, custom retry behavior, proxy configuration, or any other Bifrost feature, write a YAML file:
llm:
provider: openai
model: gpt-5.5
api_key: env.OPENAI_API_KEY
network_config: # common fields shown; see schemas.NetworkConfig for the full set
base_url: https://my-proxy.example.com # no /v1: the provider appends /v1/chat/completions
default_request_timeout_in_seconds: 60
max_retries: 3
extra_headers:
x-tenant: prod
See docs/providers/ for every supported provider's configuration reference.
MCP server
Run cynative mcp to connect a local MCP client to the guarded connector tools. The client controls approvals and Cynative uses its own connector configuration and credentials. See the MCP setup guide.
Sessions and approvals
cynative opens an interactive session (full line editing and history with arrow keys); cynative "task" runs the task then stays interactive; -p / --print runs a single task non-interactively and exits - for scripts and pipes (e.g. cat main.tf | cynative -p "review this Terraform for misconfigurations"). The exit code carries the verdict for scripts: 0 when a report was produced, 2 when the run completed without an answer (the notice names the reason - iteration or token budget, an empty or filtered model response), 130 on interrupt, 143 on SIGTERM, and 1 for any other failure.
Cynative calls your stack using the credentials already in your shell - it keeps no separate credential store. Always provide the least-privileged credentials needed; the action gate is not a substitute for them.
Research CLI approvals use a single keystroke for each guarded call. y runs it once, a clears every later call to that tool for the session (scripts still print before running), any other key denies. With no controlling terminal, use --auto-approve.
Stopping mid-task: while a task is running, press Esc or Ctrl-C once to gracefully stop it (the agent finishes any already-running call, then stops and prints ⏸ Stopped). When the agent hits repeated tool errors or rejections it stops automatically, summarizes what it is blocked on, and asks for the missing information.
Bash Completion: See cynative completion <shell> --help for the full install notes for each shell.
Cynative prints a short operational footer (timing, token usage) to stderr - redirecting stdout (cynative -p "..." > out.txt) keeps the captured answer clean. --version prints version, commit, build date, Go version, and platform.
cynative doctor validates configuration and connector readiness without starting a research session. Pass --live-llm to also probe the configured model with a tool-less round-trip.
Resource & cost controls for unattended runs
Resource & cost controls: for unattended, scheduled or long-horizon runs - wired into cron, CI or any trigger - bound the work explicitly. The key knobs (config keys / env vars):
| Config key / env var | Default | Effect |
|---|---|---|
max_total_tokensCYNATIVE_MAX_TOTAL_TOKENS |
0 (unbounded) | Per-session token ceiling, shared across the main loop, task sub-agents, the always-on verifier and interactive follow-ups. |
max_iterationsCYNATIVE_MAX_ITERATIONS |
32 | Max main-loop tool-calling iterations per turn. |
max_subagent_iterationsCYNATIVE_MAX_SUBAGENT_ITERATIONS |
10 | Max iterations inside a task sub-agent. |
max_consecutive_failuresCYNATIVE_MAX_CONSECUTIVE_FAILURES |
5 | Consecutive no-progress tool calls before a halt-and-summarize (0 disables). |
sandbox_max_concurrencyCYNATIVE_SANDBOX_MAX_CONCURRENCY |
16 | Max concurrent in-sandbox tool calls. |
Finding verification (verify_findings tool) makes extra model calls - budget for them on any run that produces findings.
Connectors
On top of the credentials in your shell, Cynative enforces read-only at three layers:
- Network - every request host is pinned to its mapped service and region and, on a direct route, the resolved IP is verified before connecting (through an operator-configured proxy the connection goes only to that proxy) - your agent can reach your infrastructure and nothing else.
- Action gate - every operation is resolved to its required IAM actions,
derived from the providers' own API definitions, then authorized by a
read-only policy before any credential is attached:
SecurityAudit(AWS),roles/viewer(GCP),Reader(Azure). Coverage tracks the cloud APIs as they grow, and the gate fails closed on anything it classifies as a write. For Kubernetes the policy is the cluster's own liveviewRBAC role, fetched at runtime and enforced per request. GitHub and GitLab are read-only by default; aconnectors.{github,gitlab}.permissionssetting can allow write on specific categories where a workflow needs it, enforced per request before the token is attached. Even in read-only mode, GitHub's secret-scanning endpoints stay blocked and GitLab's GraphQL API is denied. - Credential (AWS) - for assumed-role identities, credentials are re-vended
via STS
AssumeRole, scoped to a managed policy (SecurityAuditby default), so AWS IAM enforces the boundary too. IAM-user and root identities run with their base credentials, gated by the action gate above.
Cynative connects AWS, GCP, Azure, EKS/GKE/AKS, self-managed Kubernetes, GitHub and GitLab. See docs/connectors/README.md for credential
discovery, hardening, limitations and connector-specific examples. Corporate proxies are honored through the standard HTTPS_PROXY/HTTP_PROXY/NO_PROXY variables; see docs/proxy.md for what crosses the proxy and what an intercepting proxy can see.
Code execution & tool orchestration
For bulk work - "check every public S3 bucket", "list EKS clusters in every
region" - Cynative can write and run JavaScript in a sandbox instead of issuing
one tool call at a time. The agent's tools (e.g. http_request) are exposed as
async JavaScript functions, so it loops, filters and chains calls in
code - and runs independent calls concurrently with the built-in
mapConcurrent(items, fn, limit) helper (or await Promise.all([...]) for
small fixed sets).
Only what the script console.logs returns to the model, keeping research
fast and token-efficient.
// Discover regions, then list EKS clusters in every region concurrently,
// following pagination - only the summary returns to the model.
const r = await http_request({
method: "GET",
url: "https://ec2.us-east-1.amazonaws.com/?Action=DescribeRegions&Version=2016-11-15",
auth_provider: "aws", aws_auth: { service: "ec2", region: "us-east-1" },
});
const regions = [...r.body.matchAll(/<regionName>([^<]+)<\/regionName>/g)].map((m) => m[1]);
const all = await mapConcurrent(regions, async (region) => {
const clusters = [];
let token = null;
do {
const url = `https://eks.${region}.amazonaws.com/clusters` +
(token ? `?nextToken=${encodeURIComponent(token)}` : "");
const resp = await http_request({
method: "GET", url,
auth_provider: "aws", aws_auth: { service: "eks", region },
});
const body = JSON.parse(resp.body);
clusters.push(...body.clusters);
token = body.nextToken;
} while (token);
return { region, clusters };
});
console.log(JSON.stringify(all.filter((x) => x.clusters.length > 0), null, 2));
- Async & concurrent: tool functions return Promises -
awaitthem, fan out over many resources withmapConcurrent(items, fn, limit)(bounded, order-preserving), or useawait Promise.all([...])for small fixed sets. - Structured responses:
http_requestresolves to{ status, statusText, headers, body };bodyis the raw string -JSON.parse(resp.body)for JSON APIs or read it directly for XML. - Sandboxed: a script can only call the tools Cynative exposes - it has no network or host access of its own.
- Script approval. Each
code_executioncall is shown in full for approval in the research CLI. Use--auto-approveto skip the prompt or-vto stream inner calls. - Research CLI session state. Values saved on
globalThispersist across calls during an interactive research session, as long as the call runs to completion (one that times out or is left suspended resets them); top-levellet/const/var/functionare scoped to a single call. - Bounded: scripts run under a timeout (default 120s) and a capped output size.
Audit Log
Admitted tool calls are recorded in a persistent JSONL audit log (~/.cynative/audit.log, on by default). An audit write failure aborts the run. Give each concurrent writer its own CYNATIVE_AUDIT_PATH. Entries from a named agent run also record the agent's name, source and file digest.
Tool results are redacted before writing. The research CLI stores approval-prompt arguments verbatim, so the log can hold sensitive values. MCP records have redacted arguments and identify the server process. The file is readable only by the user who ran Cynative. Rotation and retention are configurable. See MCP audit records.
Configure under audit: in ~/.cynative/config.yaml, or via env:
| Key | Env | Default |
|---|---|---|
audit.enabled |
CYNATIVE_AUDIT_ENABLED |
true |
audit.path |
CYNATIVE_AUDIT_PATH |
~/.cynative/audit.log |
audit.max_size_mb |
CYNATIVE_AUDIT_MAX_SIZE_MB |
100 |
audit.retention_days |
CYNATIVE_AUDIT_RETENTION_DAYS |
30 |
audit.compress |
CYNATIVE_AUDIT_COMPRESS |
false |
Questions and feedback
Discussions is the best place to share your feedback - what you pointed it at, what came back, and what's missing. Stars help people find the project.
Contributing
Contributions welcome - new agents, connectors, evaluation datasets, and
improvements across the board. See CONTRIBUTING.md for dev
setup, the make check gate, and PR conventions, and SECURITY.md
for reporting vulnerabilities.
License
Apache-2.0 License. See LICENSE for the full text.
관련 프로젝트 살펴보기
불러오는 중…