Developer & AppSec Documentation

Developer Reference Guide: Running & Managing Audits

Explore four ways to run autonomous vulnerability audits with Cyfendo: direct Web Folder Uploads, continuous Git Repositories, lightweight Cloud-Synchronized CLI, and the Cyfendo Private Scan (No Source Code Sent to Cyfendo).

Four Ways to Run Vulnerability Audits

Choose the workflow that best fits your security posture, data custody requirements, and development lifecycle.

Web UI Folder Drag & Drop

Fastest for ad-hoc audits. Drag any local project folder directly into your browser. In-browser AST filtering computes Protected LOC in milliseconds without sending binaries or dependencies.

Git Repository Integration

Ideal for automated branch tracking. Link your GitHub, GitLab, or Bitbucket repository URL. Cyfendo automatically identifies branch and commit SHAs to deliver incremental diff audits.

Lightweight Cloud CLI (cyfendo scan .)

Standard cloud-synchronized scanning for terminal users and CI/CD pipelines. Packages code locally, uploads to ephemeral cloud sandboxes, streams live telemetry, and exports unified .patch diffs.

Cyfendo Private Scan (cyfendo scan --private .)

No Code Sent to Cyfendo

Local Pipeline • No Source Code Sent to Cyfendo. Executes entire multi-agent security pipeline on your local hardware using your own LLM API keys (OpenAI, Anthropic, Gemini, Vertex, Azure) or local models (Ollama/vLLM). Your code, ASTs, finding proofs, and patches are not sent to Cyfendo. With an external AI provider, parts of your code go to that provider. With local models, no code leaves your machine.

Method 1: Web UI Folder Upload

Run ad-hoc security reviews directly from your browser with zero local software requirements.

Open Dashboard & Click "Start New Scan"

Navigate to /dashboard and click the Start New Scan button. Ensure the Upload Folder tab is selected.

Select or Drag Your Local Project Folder

Select your local project root. Cyfendo’s in-browser scanner automatically applies exclusion rules:

  • Respects custom .gitignore and .cyfendoignore files.
  • Automatically ignores node_modules/, vendor/, .git/, dist/, build/, virtual environments (venv/), and binary assets.
  • Computes precise Protected LOC and displays an instant quota check before uploading.

Watch Live Multi-Agent Telemetry

Once submitted, live Server-Sent Events (SSE) stream the real-time execution across distributed analysis stages: AST Parsing → Taint Propagation → Ephemeral Sandbox PoC Verification → AI Remediation Patch Synthesis.

Review in the Interactive Vulnerability IDE

Inspect findings categorized by CWE and CVSS scores. View line-level taint vectors and the sandbox test attacks (proofs of concept) run for Critical and High findings, generate a patch for any finding on demand, and download unified .patch diffs or SARIF reports.

Method 2: Git Repository Integration & Automated Scheduling

Connect remote Git repositories for continuous branch monitoring, monorepo subdirectory scoping, and automated periodic security audits.

Select "Git Repository" in Scan Modal

In the Start New Scan modal on your Dashboard, switch to the Git Repository tab. Provide your repository URL (e.g. https://github.com/org/repo.git) and specify the branch to inspect (e.g. main, develop, or release/v2).

Monorepo Subdirectory Scoping (Optional)

If your repository contains multiple microservices or packages, specify a relative path in Subdirectory (Optional) (e.g., apps/api or packages/backend). Cyfendo packages and audits only source files inside that subpath, preventing unnecessary LOC consumption from unrelated projects.

Private Repository Authentication

For private repositories, provide a Personal Access Token (PAT) with read-only repository permissions (e.g. GitHub fine-grained PAT with Contents: Read-only, GitLab Project Access Token, or Bitbucket App Password). Tokens are encrypted at rest with AES-256 (Fernet), decrypted in-memory only during ephemeral sandbox fetches, and never stored in plaintext.

Incremental Continuity & Churn Tracking

Cyfendo links each repository to an active Protected Project. When rescanning code, Cyfendo evaluates semantic AST continuity against previous snapshots—charging your quota only for newly added or modified lines of code.

Automated Periodic Scanning & Smart Change Detection

Keep your production code continuously protected without manual intervention. Cyfendo allows you to attach an automated periodic scanning schedule to any connected Git project directly from your dashboard.

Git automated periodic scanning configuration parameters and scheduling behaviors
Schedule Parameter Options / Behavior Description
Scan Frequency daily, weekly, monthly Runs every 24 hours, every 7 days, or every 30 days automatically.
Branch / Ref String (e.g. main, staging) The remote Git branch continuously monitored for upstream commits.
Subdirectory Optional relative path (e.g. apps/api) Restricts periodic audits strictly to a designated microservice or monorepo package.
Smart Change Detection 0-Credit Skip Enabled Checks the remote commit SHA via git ls-remote before scanning. If code is unchanged, the run completes in milliseconds with 0 scan credits used.
Remediation Patches Toggle (Enabled by default) Automatically synthesizes surgical, sandbox-verified unified diff patches for Critical and High findings. Any other finding can get one on demand.

Automated Notifications & Alerts

When a scheduled scan finishes, Cyfendo dispatches instant alerts across multiple channels:

  • In-App Notification Center: Real-time unread badge and dropdown with direct links to view finding triage and patches.
  • Email Notification Delivery: Branded security report sent from noreply@cyfendo.com detailing total findings, severity breakdown (Critical, High, Medium, Low), risk score, and patch synthesis status.
  • Automatic Safety States: If monthly scan quota is reached, the schedule automatically pauses (paused_quota) without dropping your project configuration. If Git credentials expire, an alert prompts you to update your access token (paused_auth_error).

Git Credential Management & Per-Project Isolation

To follow the principle of least privilege, Personal Access Tokens (PATs) can be strictly scoped to a specific project (project_id). This guarantees that repository-level fine-grained tokens (e.g., GitHub Fine-Grained PATs) will never bleed into or trigger scans on other repositories in your workspace.

$ curl -X POST https://cyfendo.com/api/v1/integrations/git/credentials \
    -H "Authorization: Bearer cy_live_..." \
    -H "Content-Type: application/json" \
    -d '{"project_id": "<PROJECT_ID>", "name": "Repo Scoped Token", "token": "github_pat_...", "provider": "github"}'

REST API Scheduling Automation

You can configure or trigger schedules programmatically using Cyfendo's authenticated REST API:

$ curl -X POST https://cyfendo.com/api/v1/projects/<PROJECT_ID>/schedule \
    -H "Authorization: Bearer cy_live_..." \
    -H "Content-Type: application/json" \
    -d '{"frequency": "daily", "git_branch": "main", "git_subdir": "apps/api", "only_scan_on_changes": true, "generate_patches": true}'

Method 3: Cyfendo Local CLI Scanner

Zero-dependency, high-speed CLI scanner designed for developer terminals, headless SSH servers, and CI/CD pipelines.

1. Installation

Choose your preferred installation method below:

Option A: Python Package Manager (pip / pipx)
$ pip install --upgrade cyfendo
Option B: One-line installer (macOS & Linux)

Installs the same PyPI package for you (pipx if available, otherwise pip --user; Python 3.9+). The standalone binary is no longer distributed; the installer removes one left by an earlier install.

$ curl -sSL https://cyfendo.com/install.sh | bash

2. Authentication

Generate an API Key from Top-Right User Menu → Developer & CLI Access and authenticate your CLI:

# Option A: Interactive login command
$ cyfendo login --key cy_live_xxxxxxxxxxxxxxxxxxxxxxxx

# Option B: Set as environment variable
$ export CYFENDO_API_KEY=cy_live_xxxxxxxxxxxxxxxxxxxxxxxx

3. Running Scans on Cyfendo Server

When running standard scans without the --private flag, your codebase is uploaded and analyzed on the Cyfendo Server (Cloud or on-premises). Analysis, sandbox verification, and patch synthesis execute remotely on the server fleet—no local commercial model keys or GPU dependencies required.

With a terminal, cyfendo scan asks before it uploads. With no terminal (CI, a git hook, --no-interactive) there is nobody to ask, so it uploads only with --yes; without it, nothing is uploaded and it exits 2.

The upload follows .gitignore and .cyfendoignore files at every folder level and always leaves out .env files (templates such as .env.example are kept), SSH and TLS private keys, keystores, and config files that contain a private key. Symlinks that point outside the project are skipped, and so are .sarif files and any report the CLI wrote into the project on an earlier run (--sarif, -o, --patch-bundle), so they are never uploaded or counted as Protected LOC. The CLI lists the credential files it excluded, and stops with an error if the archive would exceed 250 MB. Lockfiles (yarn.lock, poetry.lock, Cargo.lock, ...) and the dependency manifests of workspaces under packages/ are uploaded for the dependency audit; they never count as Protected LOC.

# 1. Standard fast PoC scan on Cyfendo server:
$ cyfendo scan .

# 2. Server-side scan with automated AI remediation patch generation (no --private flag needed):
$ cyfendo scan . --generate-patch

# 3. Server scan with patch generation, custom bundle export, and SARIF report:
$ cyfendo scan . \
    --generate-patch \
    --patch-bundle fixes.patch \
    --sarif cyfendo-results.sarif

# 4. Target a specific existing project in your workspace:
$ cyfendo scan /path/to/source --project "payment-gateway" --generate-patch

# 5. Connect to a custom or self-hosted Cyfendo server endpoint:
$ cyfendo scan --server https://cyfendo.internal:5001 . --generate-patch

# 6. CI/CD or headless execution with auto-confirm:
$ cyfendo scan . --generate-patch --yes --no-interactive

4. Multi-Account & Organization Workspaces

If your account is linked to an organization or multiple business accounts, your single API key grants access to all of them. You can switch active workspace contexts locally or specify target workspaces on the fly:

# 1. List all accessible personal and business workspaces:
$ cyfendo workspaces

# 2. Switch default active workspace (persisted to ~/.cyfendo/config.json):
$ cyfendo workspace switch ws_acme_corp_8f3a

# 3. Execute a scan under a specific organization without switching default:
$ cyfendo scan . --workspace ws_acme_corp_8f3a --generate-patch

# 4. In CI/CD runners, set CYFENDO_WORKSPACE_ID to attribute scans to your organization:
$ export CYFENDO_WORKSPACE_ID=ws_acme_corp_8f3a
$ cyfendo scan . --generate-patch

Method 4: Cyfendo Private Scan

Local Machine • No Source Code Sent to Cyfendo

Execute autonomous multi-agent security audits directly on your local workstation or private runner using your own LLM provider keys or self-hosted models, with complete data sovereignty.

Private Data Custody: No Source Code Sent to Cyfendo

Cyfendo Private Scan is engineered for defense, healthcare, fintech, and enterprise teams with stringent zero-trust data custody requirements:

100% Local Pipeline Execution
AST parsing, cross-file taint analysis, call graphs, exploit verification, and patch synthesis execute directly in your local environment.
Direct LLM Connection
Your machine communicates directly with OpenAI, Anthropic, Gemini, Vertex, Azure, or local Ollama. Cyfendo servers never proxy your code or model prompts. Whole source files reach the model, including files nothing imports; .env files, private keys, ignored files and links outside the project do not.
Local Storage in .cyfendo/
All findings, exploit traces, Markdown reports, SARIF files, and individual .patch diffs are stored exclusively in your local workspace.
Minimal Entitlement Sync
No source code, file contents, or findings are sent. To meter quota, the CLI sends scan metadata (project name, file and LOC counts, provider and model, git branch, commit SHA, and remote URL), stage progress updates, and, on completion, severity counts, risk score, and patch count (or the error message if the scan fails). Private Scan needs network access to a Cyfendo server (cyfendo.com, or your on-premises server via --server) to verify entitlements.
Dependency Lookup
To check third-party packages for published vulnerabilities, the CLI sends their names and versions (no source code, file paths or project names) directly to OSV.dev and the CVE IDs it finds to FIRST EPSS, and downloads the CISA KEV catalog. Where no lockfile covers a package, its public name and version also go to deps.dev, and a declared version range is looked up on the npm registry or PyPI. Workspace, path and git packages, and packages a lockfile or registry config ties to a private registry, are never sent, and nothing about your dependencies goes to Cyfendo. --no-deps skips it. See Third-Party Dependency Audit.
Files and Proofs of Concept
A Private Scan works on a private copy built by the same rules as a cloud upload: no .env files, private keys or ignored files reach the model or the scripts. Scripts run in an OS sandbox where one is available: the home folder is hidden and writes stay in the scan's folders and /tmp, on macOS with loopback-only network (dependency installs and apps started through Maven or Gradle use the network), on Linux with bubblewrap installed, without the network limit. Dependency installs run with or without --no-deps and do not use your own .npmrc, pip.conf or .gitconfig, so a private registry is out of reach. The CLI prints what each run got.

Step-by-Step Customer Instructions

Install or Update the Cyfendo CLI

Install the official Cyfendo Python package (requires Python 3.9+) or use the standalone curl script:

$ pip install --upgrade cyfendo

Authenticate Your Cyfendo Workspace

Generate a Cyfendo API key from User Menu → Developer & CLI Access and authenticate your local machine. This verifies your plan entitlements and Protected LOC balance:

$ cyfendo login --key cy_live_xxxxxxxxxxxxxxxxxxxxxxxx

# Verify workspace balance & active plan:
$ cyfendo status

Select Your Model Provider & Set Credentials

Export your AI provider API key as an environment variable, or supply it directly via the --llm-key flag at runtime:

# For OpenAI:
$ export OPENAI_API_KEY="sk-proj-xxxxxxxxxxxxxxxxxxxxxxxx"

# For Anthropic Claude:
$ export ANTHROPIC_API_KEY="sk-ant-xxxxxxxxxxxxxxxxxxxxxxxx"

# For Google Gemini / Vertex AI:
$ export GEMINI_API_KEY="AIzaSyxxxxxxxxxxxxxxxxxxxx"
# Or for GCP Vertex: export GCP_PROJECT="my-enterprise-project"

# For Azure OpenAI:
$ export AZURE_OPENAI_ENDPOINT="https://my-resource.openai.azure.com/"
$ export AZURE_OPENAI_KEY="xxxxxxxxxxxxxxxxxxxxxxxx"
$ export AZURE_OPENAI_DEPLOYMENT="gpt-4o"

Configure Persistent Defaults (Optional)

Save your preferred provider and model defaults in ~/.cyfendo/config.json so you never have to pass flags on subsequent scans:

$ cyfendo config --set-provider openai
$ cyfendo config --set-model gpt-4o
$ cyfendo config --set-llm-key sk-proj-xxxxxxxxxxxxxxxxxxxxxxxx

Execute the Cyfendo Private Scan

Run cyfendo scan --private . on your target directory. Add --generate-patch to synthesize unified remediation diffs for Critical and High findings:

# 1. Run local scan with OpenAI GPT-4o and patch generation:
$ cyfendo scan --private \
    --provider openai \
    --model gpt-4o \
    --generate-patch \
    .

# 2. Run with Anthropic Claude Sonnet 5.5 and extended reasoning:
$ cyfendo scan --private \
    --provider anthropic \
    --model claude-sonnet-5-5 \
    --thinking high \
    --generate-patch \
    .

# 3. Steer how patches are written (a directive needs --generate-patch):
$ cyfendo scan --private \
    --provider openai \
    --model gpt-4o \
    --generate-patch \
    --directive "Use the shared db.query() helper for every SQL fix" \
    .

Review Findings & Apply Patches Locally

All artifacts are saved to .cyfendo/ in your project root. Inspect reports in your terminal and apply patches with a single command:

# List all generated patches:
$ cyfendo patches

# View colorized diff for a specific finding:
$ cyfendo patch fnd_388b --show

# Apply patch directly to source code via git apply:
$ cyfendo patch fnd_388b --apply

# Read full Markdown audit report:
$ cat .cyfendo/report.md

Private Scan Provider Setup & Credentials Guide

Comprehensive setup guide for enterprise AI providers, cloud platforms, and self-hosted local models.

OpenAI (GPT-5.6, GPT-4o, O3-Mini, O1)

--provider openai

Supports all official OpenAI chat and reasoning models. Also supports custom OpenAI-compatible proxy gateways via --endpoint or OPENAI_BASE_URL.

export OPENAI_API_KEY="sk-proj-..."
$ cyfendo scan --private --provider openai --model gpt-4o --generate-patch .

# With custom OpenAI-compatible endpoint (e.g. corporate proxy / LiteLLM):
$ cyfendo scan --private --provider openai --endpoint "https://ai-proxy.corp.internal/v1" --model gpt-4o .

Anthropic Claude (Claude Sonnet 5.5, Claude Opus 5.5)

--provider anthropic

Leverages Claude's superior code comprehension and adaptive thinking capabilities. Use --thinking high for maximum depth during deep taint propagation and patch repair.

export ANTHROPIC_API_KEY="sk-ant-..."
$ cyfendo scan --private \
    --provider anthropic \
    --model claude-sonnet-5-5 \
    --thinking high \
    --generate-patch \
    .

Google Gemini & GCP Vertex AI

--provider gemini / vertex

Use the standard Gemini Developer API with an API key, or leverage GCP Vertex AI using enterprise Application Default Credentials (ADC) within your Google Cloud project boundary.

# Option A: Gemini Developer API Key
export GEMINI_API_KEY="AIzaSy..."
$ cyfendo scan --private --provider gemini --model gemini-3.6-flash --generate-patch .

# Option B: GCP Vertex AI with Enterprise ADC
$ gcloud auth application-default login
export GCP_PROJECT="my-enterprise-gcp-project"
export VERTEX_AI_LOCATION="us-central1"
$ cyfendo scan --private --provider vertex --model gemini-3.6-flash .

Microsoft Azure OpenAI Service

--provider azure

Connect to your private Microsoft Azure OpenAI resource with dedicated network security, HIPAA/SOC-2 compliance, and enterprise data boundaries.

export AZURE_OPENAI_ENDPOINT="https://my-resource.openai.azure.com/"
export AZURE_OPENAI_KEY="xxxxxxxxxxxxxxxxxxxxxxxx"
export AZURE_OPENAI_DEPLOYMENT="my-gpt4o-deployment"

$ cyfendo scan --private --provider azure --generate-patch .

Local & On-Premise Models (Ollama, vLLM)

--provider ollama

Keep model inference inside your network. With a local inference engine (such as Ollama or vLLM), no model traffic leaves your machine or private LAN. Other traffic still does: the CLI sends scan metadata and finding counts to a Cyfendo server, which must be reachable (for networks with no internet access, point it at an on-premises Cyfendo server with --server); dependency installs for proofs of concept reach package registries; and the dependency lookup sends public package names and versions to public services unless you add --no-deps. Local models can be slow on a workstation: each request may take up to CYFENDO_LLM_TIMEOUT seconds (default 900 for ollama).

# 1. Pull open-weights reasoning model in Ollama:
$ ollama pull deepseek-r1:32b
# (or: ollama pull qwen2.5-coder:32b / llama3.3:70b)

# 2. Run the scan on the local model (default endpoint http://localhost:11434/v1):
$ cyfendo scan --private \
    --provider ollama \
    --model deepseek-r1:32b \
    --generate-patch \
    .

# 3. For custom internal vLLM cluster:
$ cyfendo scan --private \
    --provider ollama \
    --endpoint "http://vllm-cluster.internal:8000/v1" \
    --model deepseek-ai/DeepSeek-R1 \
    .

Scan Settings & Advanced Options

Customize finding deduplication scopes, AI remediation synthesis, and benchmark evaluation modes across Web UI and CLI.

Deduplication Scopes (--dedup-scope)

Controls how raw taint traces and candidate findings across call graphs, AST scopes, and source files are clustered into consolidated security alerts:

  • root_cause (Default): Universal multi-factor AST clustering across functions and routes. Consolidates redundant alerts into single root-cause findings for developer triage.
  • file (Per-File Isolation): Prevents findings in separate files from merging. Crucial for synthetic test suites and granular file-by-file audits.
  • none (Raw Traces): Disables deduplication clustering entirely. Outputs every verified candidate finding trace directly without merging.

Fast PoC Mode vs. AI Remediation Patches (--generate-patch)

By default, Cyfendo runs in Fast PoC Mode: it traces untrusted input through the code and proves Critical and High findings with sandbox test attacks (proofs of concept), without spending time on AI patches.

To also generate fixes during the scan, enable the patch toggle in the Web UI or pass --generate-patch in the CLI. Patches are built for Critical and High findings only.

Severity Test attack (PoC) Patch
Critical and High Always, during the scan. During the scan, when patch generation is on.
Medium and Low No. The finding is listed as Not Tested Yet. No.

You can request a test attack and a patch for any finding, including Medium and Low ones, at any time: see On-Demand PoC & Patch Generation.

Benchmark Evaluation Mode (--benchmark-mode)

Designed for automated evaluation benchmarks (such as OWASP Benchmark, Juliet, and custom synthetic suites). When enabled, Cyfendo automatically enforces Per-File Isolation (--dedup-scope=file) to avoid cross-file merging and disables initial patch generation for maximum evaluation throughput and exact groundtruth comparison.

# 1. Run in Benchmark Mode (per-file isolation, fast PoC)
$ cyfendo scan . --benchmark-mode

# 2. Run with per-file deduplication and full AI patch generation
$ cyfendo scan . --dedup-scope=file --generate-patch

# 3. Run raw audit without any deduplication
$ cyfendo scan . --dedup-scope=none

Inspecting & Applying Remediation Patches

Cyfendo generates review-ready unified diffs for verified vulnerabilities. Inspect and apply them manually or via CLI.

# 1. List and export individual .patch files into .cyfendo/patches/
$ cyfendo patches

# 2. Inspect colorized diff for a specific finding in the terminal
$ cyfendo patch fnd_91a4 --show

# 3. Apply patch directly to local source code using git apply
$ cyfendo patch fnd_91a4 --apply

# 4. Or apply manually with standard git tooling
$ git apply .cyfendo/patches/01_sql_injection.patch

# 5. Regenerate a finding's patch (it is tested first if the scan did not test it), optionally with a directive:
$ cyfendo patch fnd_91a4 --regenerate --directive "Use the shared db.query() helper"

# 6. Generate patches via Cyfendo server during scan & export unified bundle (no --private flag):
$ cyfendo scan . --generate-patch --patch-bundle fixes.patch
$ git apply fixes.patch

On-Demand PoC & Patch Generation

Request a test attack and a patch for any finding, including the Medium and Low findings that scans do not test.

What Happens When You Request a Patch

Cyfendo tests the finding, if it needs to

A finding whose test attack already succeeded keeps it. A finding that was never tested, such as a Medium or Low one, first gets a test attack (proof of concept) in the sandbox, with the same retries as a scan.

Cyfendo builds the patch and checks it

The test attack runs again against the patched code, and must now fail while normal use keeps working. When the test attack did not reproduce the issue, the patch is checked against the code only.

The result stays with the finding

The finding's proof status updates, for example to Verified in Sandbox, and the patch appears in its Remediation Patch tab. A later request reuses this test attack. A finding whose test attack ran and proved nothing is not tested again: its patch is checked against the code only.

Where to Request It

Where How Runs on
Web UI Open the finding on the scan page, choose the Remediation Patch tab, and click Synthesize & Verify AI Patch. The page updates when the job finishes. Cyfendo's sandbox
CLI, cloud scan cyfendo patch <finding_id> --regenerate. The CLI waits for the result and saves .cyfendo/patches/regen_*.patch. Add --scan <SCAN_ID> when the scan is not in .cyfendo/scan-results.json. Cyfendo's sandbox
CLI, Private Scan The same command. It runs with your own AI model, and nothing is sent to Cyfendo. Your machine
AI coding tools Your agent calls cyfendo_generate_fix for an issue Cyfendo reported. Checks of a task's changes report Critical and High issues only. Cyfendo's sandbox
# 1. Test a finding if it needs it, then build and check its patch
$ cyfendo patch fnd_91a4 --regenerate

# 2. Steer the fix with a directive (implies --regenerate)
$ cyfendo patch fnd_91a4 --directive "Use the shared db.query() helper"

# 3. Build the patch and apply it to your files right away
$ cyfendo patch fnd_91a4 --regenerate --apply

# 4. Private Scan: replay the test attack against your fixed code
$ cyfendo verify fnd_91a4

# 5. Private Scan: also test Medium findings during the scan
$ CYFENDO_POC_SEVERITIES=MEDIUM cyfendo scan --private .

A request that tests the finding first takes longer, because the test attack runs before the patch is built. In a Private Scan, CYFENDO_POC_SEVERITIES=MEDIUM also tests Medium findings during the scan, and CYFENDO_POC_SEVERITIES=all tests every finding.

Third-Party Dependency Audit

Every full scan also lists the packages your project depends on and the published vulnerabilities that affect them.

Cyfendo reads your lockfiles and manifests, then looks up each package version in public advisory sources: OSV.dev (GitHub Advisory Database, PyPA, Go, RustSec and OpenSSF malicious packages), the CISA Known Exploited Vulnerabilities catalog, and FIRST EPSS exploit scores.

These are published advisories, not Cyfendo findings. Cyfendo does not test them against your app, so they have their own page and report: they never change your finding counts, risk score, --fail-on gate or findings SARIF. The audit uses no extra scan credits, and lockfiles never count as Protected LOC.

Where It Runs

Where When it runs Where the results are
Web UI, Git repository, Cloud CLI Every scan, on Cyfendo's workers. The Dependencies button on the scan page, and Export Report → SBOM (CycloneDX 1.6). A CLI scan also saves .cyfendo/dependencies.json.
Private Scan Every full scan, on your machine. --no-deps skips it. A quick check (--changed, --paths) runs it only when --deps-fail-on, --sbom or --sarif-include-deps needs the result. .cyfendo/dependencies.json and .cyfendo/sbom.cdx.json, on your machine only.
cyfendo deps When you run it. No AI model and no upload. It needs a login, is free on every plan, and uses no scan credits. The terminal, .cyfendo/dependencies.json, and the --sbom, --sarif and -o files.
AI coding tools Full scans. Checks of the files a task changed skip it. A dependencies section in your agent's results (see below), and the scan's Dependencies page.

What It Reads

Cyfendo reads lockfiles first, and manifests where no lockfile covers a package.

Ecosystem Lockfiles (read first) Manifests (where no lockfile covers them)
npm package-lock.json, npm-shrinkwrap.json, yarn.lock, pnpm-lock.yaml, bun.lock package.json
PyPI uv.lock, poetry.lock, pdm.lock, pylock.toml, Pipfile.lock, pip-compile output requirements*.txt, pyproject.toml, Pipfile, setup.cfg, setup.py
Go go.mod None needed
Maven / Gradle gradle.lockfile pom.xml, build.gradle, build.gradle.kts, libs.versions.toml
NuGet packages.lock.json *.csproj, *.fsproj, *.vbproj, packages.config
Cargo, Composer Cargo.lock, composer.lock Cargo.toml, composer.json
RubyGems, Hex, Pub, Swift Gemfile.lock, mix.lock, pubspec.lock, Package.resolved None: without the lockfile, versions are unknown

Where no lockfile covers a package, Cyfendo works out what a fresh install gets today: npm and PyPI version ranges are resolved on the public registry, and the transitive packages of direct npm, PyPI, Maven/Gradle and Cargo packages come from deps.dev. The report labels these versions, because they may differ from what you ship.

Git repository scans and CLI uploads include your lockfiles. A Web UI folder upload leaves out files ending in .lock (such as yarn.lock and poetry.lock) and the packages/ folder, and an AI coding tool that uploads files usually leaves lockfiles out too, so those audits rely more on your manifests. For the most complete list, scan through Git or the CLI.

Priority

Priority What it means
P1 A known malicious package, or an advisory on the CISA list of vulnerabilities exploited in the wild. Fix these first.
P2 High or critical severity in a package your app ships, or an EPSS score of 10% or more.
P3 Lower or unrated severity, or a high or critical advisory on a direct package your code does not appear to import.
P4 Development or test packages only (a known malicious package stays P1).

Severity is the advisory's published rating; priority is Cyfendo's order of what to fix first. Cyfendo checks whether your code imports each package only to rank advisories. It never hides one, because a package that isn't imported can still be loaded by a plugin, a tool or configuration.

Each advisory lists the first fixed version. Cyfendo does not build patches for dependencies: upgrade to that version, or remove a malicious package and rotate any secrets the build or app could reach.

CLI Commands & CI Gates

# Packages and advisories only
$ cyfendo deps .

# Fail CI on high or critical
$ cyfendo deps . --fail-on high \
    --sbom sbom.cdx.json \
    --sarif deps.sarif

# List packages, send nothing
$ cyfendo deps . --offline

# As part of a scan
$ cyfendo scan . \
    --deps-fail-on high \
    --sbom sbom.cdx.json \
    --sarif results.sarif \
    --sarif-include-deps

# Private Scan without the lookup
$ cyfendo scan --private . --no-deps

--deps-fail-on on a scan, and --fail-on on cyfendo deps, exit with code 1 if an advisory at or above that severity affects a package that is not development-only. A known malicious package always fails the gate. They also exit 1 when the advisory lookup did not finish (OSV.dev unreachable, or the time limit), because a list that was not fully checked proves nothing. With the lookup switched off (--offline, CYFENDO_SCA, --no-deps) the gate is not applied, and the CLI says so. --fail-on on cyfendo scan stays about code findings only.

Daily Monitoring

Cyfendo checks the packages of each project's latest cloud scan against OSV.dev again every day. Advisories published since that scan appear under Published since this scan on its Dependencies page and in your notifications, and the workspace owner gets an email (advisories that affect only development packages get the notification, not the email). An alert closes by itself when the advisory no longer affects that version, and a new scan replaces the monitored package list.

To stop it for a project, click Turn off monitoring on the Dependencies page (your role needs permission to manage projects). Private Scans are not monitored: their package list never reaches Cyfendo.

In AI Coding Tools

Finished full-scan results and cyfendo_status carry a dependencies section: counts by priority, up to 10 P1 and P2 advisories (package, version, advisory ID, CVEs, severity, fixed version) and up to 10 open monitoring alerts. Your agent reports them as dependency advisories, apart from confirmed issues. They have no finding ID, so cyfendo_generate_fix does not apply: the fix is the upgrade.

Only these identifiers and numbers reach the agent. Advisory text comes from third parties and is never passed on, and a package name that could read as an instruction to the agent is counted but not listed. The scan's Dependencies page lists everything.

REST API

Endpoint What it does
GET /api/v1/scans/<scan_id>/dependencies The scan's report and, for the project's monitored scan, its open alerts. Add ?components=1 for the full package list.
GET /api/v1/scans/<scan_id>/export/sbom The CycloneDX 1.6 SBOM of the scan's packages and their advisories.
GET /api/v1/projects/<project_id>/dependency-alerts Monitoring alerts: ?status=open (default), resolved or all.
POST /api/v1/projects/<project_id>/dependency-monitoring Turns monitoring on or off with {"enabled": true} or {"enabled": false}.

What Is Sent

Package names and versions, never source code, file paths or project names:

  • OSV.dev receives package names and versions, and FIRST EPSS the CVE IDs found. The CISA catalog is downloaded, so CISA receives nothing about your project.
  • Where no lockfile covers a package, deps.dev receives its name and version, and the npm registry or PyPI receives the names of packages declared with a version range.
  • Workspace, path and git packages, and packages a lockfile, an .npmrc/.yarnrc.yml scope or a package-index setting ties to a private registry, are never sent (an unscoped package fetched through a registry proxy is treated as public).
  • In a Private Scan and cyfendo deps, these requests go directly from your machine, and nothing about your dependencies reaches Cyfendo. --no-deps and cyfendo deps --offline skip them. A Private Scan still installs the project's dependencies so proofs of concept can run, with or without --no-deps, and those installs reach package registries.
  • In a cloud scan, the requests come from Cyfendo's workers, and the package list of the latest scan is kept for monitoring.

Limits

  • A version range is resolved for npm and PyPI only; in other ecosystems a range without a lockfile is listed as not checked. At most 150 ranges and the dependency graphs of 60 direct packages are looked up per scan.
  • The lookup stops after 240 seconds by default (CYFENDO_SCA_BUDGET_SECONDS, or --timeout on cyfendo deps). If a source is slow or unreachable, the report says the list may be incomplete and the scan carries on, but a dependency gate exits 1.
  • The audit does not read operating system packages, container images or vendored code.

CI/CD Quality Gates & GitHub Pull Request Protection

Enforce autonomous shift-left security directly on GitHub pull requests. Automatically scan code diffs, publish inline SARIF annotations on the PR Files changed tab, block merging on high/critical vulnerabilities via GitHub Branch Protection, and generate 1-click patch artifacts for instant developer remediation.

1. PR Trigger
PR Event & Concurrency

Triggers on pull request opened, synchronize (new commits), and reopened. Smart concurrency cancellation aborts superseded runs to save runner minutes and AI tokens.

2. Runner-Local Audit
Autonomous Audit

Runs on your CI runner VM with Cyfendo Private Scan (or on managed Cloud Workers). In a Private Scan no source code goes to Cyfendo: parts of your code, including whole source files, go directly to your configured AI provider (or stay on your network with local models), and scan metadata and finding counts go to Cyfendo for quota metering.

3. SARIF 2.1.0
Inline PR Annotations

Exports standard SARIF 2.1.0 findings and uploads via upload-sarif@v4. Security alerts, CWE links, and taint traces display directly on the PR's Files changed tab.

4. Merge Gate
Branch Protection Gate

The --fail-on=high policy exits with code 1 if vulnerabilities exceed your severity threshold, causing GitHub Branch Protection to disable the Merge pull request button.

1 Configure Repository Secrets on GitHub.com

In your GitHub repository, navigate to Settings → Secrets and variables → Actions → New repository secret. (For organization-wide or monorepo setups, configure under Organization Settings → Secrets and variables → Actions).

CYFENDO_API_KEY

Your workspace token from the Cyfendo Dashboard. Validates Protected LOC quota & entitlement limits without transmitting code.

GEMINI_API_KEY / OPENAI_API_KEY

Your commercial AI model key (Gemini, OpenAI, Anthropic, or Azure). Passed directly to the CLI on the runner with zero intermediate proxies.

GITHUB_TOKEN (Automatic)

Built-in GitHub Actions token. Automatically provided by GitHub runner; used by upload-sarif@v4 to publish inline PR annotations.

CYFENDO_WORKSPACE_ID (Optional)

Target Business workspace ID (e.g. ws_acme_corp_8f3a). Scopes CI/CD repository scans to your company's pooled organization quota.

2 Add the Pull Request Workflow File (.github/workflows/cyfendo-pr.yml)

Executes the autonomous vulnerability audit locally on your GitHub Actions runner VM using Cyfendo Private Scan. No source code goes to Cyfendo servers. Parts of your code, including whole source files, go directly to your approved AI provider, and scan metadata and finding counts go to Cyfendo for quota metering. (To keep code and prompts on your own network, use Mode 3 with local models.)

name: Cyfendo PR Security Gate

on:
  pull_request:
    branches: [main, master]
    types: [opened, synchronize, reopened]

# Cancel in-progress runs when new commits are pushed to the same pull request
concurrency:
  group: cyfendo-${{ github.workflow }}-${{ github.head_ref || github.ref }}
  cancel-in-progress: true

jobs:
  security-gate:
    name: Cyfendo Private Security Gate
    runs-on: ubuntu-latest
    permissions:
      contents: read
      security-events: write  # Required to publish SARIF alerts to GitHub PR Files Changed tab
      actions: read  # Required for upload-sarif to query workflow run metadata

    steps:
      - name: Checkout Pull Request Code
        uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install Cyfendo CLI & Model Provider SDK
        run: |
          pip install --upgrade cyfendo google-genai
          # For OpenAI:    pip install --upgrade cyfendo openai
          # For Anthropic: pip install --upgrade cyfendo anthropic

      - name: Run Cyfendo Private Scan
        env:
          CYFENDO_API_KEY: ${{ secrets.CYFENDO_API_KEY }}
          GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
          # OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
          # ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
        run: >
          cyfendo scan .
          --private
          --provider gemini
          --fail-on high
          --generate-patch
          --sarif cyfendo-results.sarif
          --no-interactive

      # Publish standard SARIF 2.1.0 findings to PR "Files changed" annotations
      - name: Upload SARIF to GitHub PR & Security Tab
        uses: github/codeql-action/upload-sarif@v4
        if: always() && hashFiles('cyfendo-results.sarif') != ''  # Upload whenever SARIF exists (even if quality gate fails)
        continue-on-error: true  # Resilient if GitHub Advanced Security is disabled on private repos
        with:
          sarif_file: cyfendo-results.sarif

      # Archive generated remediation patches so developers can download & apply them
      - name: Archive Remediation Patches & SARIF
        uses: actions/upload-artifact@v4
        if: always()
        continue-on-error: true
        with:
          name: cyfendo-remediation-patches
          include-hidden-files: true  # .cyfendo/ is a hidden folder, which upload-artifact skips by default
          path: |
            cyfendo-results.sarif
            .cyfendo/patches/
            .cyfendo/report.md

      # Publish quick audit summary directly into the GitHub Actions run summary
      - name: Publish PR Step Summary
        if: always()
        run: |
          if [ -f .cyfendo/report.md ]; then
            echo "## Cyfendo Security Gate Summary" >> $GITHUB_STEP_SUMMARY
            cat .cyfendo/report.md >> $GITHUB_STEP_SUMMARY
          fi

3 Enforce Status Checks with GitHub Branch Protection Rules

To prevent pull requests with unpatched critical or high vulnerabilities from being merged into production, enforce Cyfendo as a required status check on your protected branches:

Step-by-Step GitHub Branch Protection Setup

  1. Open your repository on github.com and click the Settings tab.
  2. In the left sidebar under Code and automation, click Branches (or Rules → Rulesets).
  3. Click Add branch protection rule (or edit your existing rule for main).
  4. Under Branch name pattern, enter main (or your production branch name).
  5. Check "Require a pull request before merging".
  6. Check "Require status checks to pass before merging".
  7. In the status checks search box, search for and select Cyfendo Private Security Gate (or the job name specified in your YAML).
  8. Check "Require branches to be up to date before merging" to guarantee tests run against the latest target commit.
  9. Click Save changes / Create.

What Developers See on GitHub.com:

Pull Request #42: Refactor user authentication routes
feature/auth-routes → main
Cyfendo Private Security Gate — Failed Completed in 48s • Details

Found 1 High Severity Flaw (CWE-89 SQL Injection in services/auth.py:48). Gate threshold is --fail-on=high.

Unit Tests & Linting Passed in 1m 12s • Details

All 42 test suites passed successfully.

4 Developer Review & 1-Click Patch Remediation

Cyfendo turns security reviews into standard code review workflows. Developers can inspect findings directly in the pull request diff and apply generated patches in seconds:

Inline PR Code Annotations

Because findings are uploaded in standard SARIF 2.1.0 format, GitHub automatically renders alerts directly on the PR’s Files changed view. Each annotation displays the exact vulnerable code line, taint path from untrusted input to sink, CWE definition, and remediation advice.

Applying Downloaded Patches

A PR scan run with --generate-patch, as in both full GitHub Actions workflows above, archives unified diff patches for its Critical and High findings under the GitHub Actions Artifacts panel. Developers can download cyfendo-remediation-patches.zip and apply fixes locally with one command:

# Apply autonomous patch locally
$ git apply .cyfendo/patches/01_sql_injection.patch

# Commit and push back to the pull request
$ git commit -am "fix(security): apply Cyfendo remediation patch"
$ git push origin feature/auth-routes
Automatic Merge Unblocking

Pushing the remediation commit immediately triggers a new Cyfendo PR scan. When no vulnerabilities remain above your policy threshold, the status check turns green (Cyfendo Private Security Gate — Passed), and GitHub Branch Protection automatically enables the Merge pull request button.

Teams & Business Workspaces

Multi-seat organization workspaces, granular 3-tier Role-Based Access Control (RBAC), multi-account linking, pooled team quota, and automated member onboarding.

1. Account Types & Architecture

Cyfendo separates personal development from organizational team collaboration:

Developer Account (Personal Workspace)

Tailored for solo developers, founders, and security consultants. Bound to an individual identity with personal billing plans (Free up to 10K LOC, Starter, Growth, or Scale) and private repositories.

Business Account (Organization Workspace)

Designed for engineering teams and enterprises. Features an organization-named workspace (e.g. Acme Cybersecurity Inc.), pooled Protected LOC capacity and monthly scan quotas shared across all team members, centralized invoicing, and multi-seat management.

One Identity → Multiple Workspaces

A single login (email/password or Google Workspace SSO) can link to a personal developer workspace and multiple business organizations simultaneously. Switch between workspaces on the fly via the top navigation dropdown in the Web UI or via cyfendo workspace switch in the CLI.

2. Role-Based Access Control (RBAC) Matrix

Each member of a Business workspace is assigned one of three canonical roles to enforce least-privilege security:

Cyfendo Business Workspace Role-Based Access Control (RBAC) Permissions Matrix
Capability / Action Workspace Owner Run & View (Engineer) View-Only (Auditor)
Run Security Scans (Web UI & CLI) ✔ Allowed ✔ Allowed ✖ Blocked (403)
Create / Bind Protected Projects ✔ Allowed ✔ Allowed ✖ Blocked
View Vulnerabilities & AI Patches ✔ Full ✔ Full ✔ Read-Only
Export SARIF, PDF & Compliance Reports ✔ Allowed ✔ Allowed ✔ Allowed
Invite & Manage Team Members ✔ Exclusive ✖ No Access ✖ No Access
Manage Billing, Invoices & Plan Upgrades ✔ Exclusive ✖ No Access ✖ No Access
Delete Projects / Workspace ✔ Exclusive ✖ No Access ✖ No Access

3. Team Management & Secure Invitations

Workspace Owners manage collaborators through the dedicated Team Dashboard (/team):

Tokenized Email Invitations

Owners invite teammates by specifying their email address and assigned role (Run & View or View-Only). Cyfendo issues a cryptographically secure tokenized link valid for 7 days.

Frictionless Onboarding

If the invitee already has a Cyfendo account, opening the link immediately attaches the organization to their identity. If they are new to Cyfendo, they complete a streamlined one-step activation (/auth/activate/<token>) without entering credit card details.

Strict Data Isolation & Instant Offboarding

Company repositories, source snapshots, scan telemetry, and remediation patches belong strictly to the Organization Workspace. When an employee is removed, their access to all corporate assets is revoked instantaneously, while their personal developer workspace remains completely intact.

4. Multi-Workspace CLI & CI/CD Context

Developers authenticate once with their personal API key and can direct scans into any accessible workspace:

# View all accessible personal & business workspaces:
$ cyfendo workspaces

# Switch local CLI default workspace context:
$ cyfendo workspace switch ws_acme_corp_8f3a

# Scan directly within an organization context without changing default:
$ cyfendo scan . --workspace ws_acme_corp_8f3a --generate-patch

# Configure CI/CD runners (GitHub Actions / GitLab CI) to use organization quota:
$ export CYFENDO_WORKSPACE_ID=ws_acme_corp_8f3a
$ cyfendo scan . --generate-patch

Protected LOC & Quota Accounting

Understand how Lines of Code are counted, cached, and billed under the Cyfendo Protected LOC model.

Source Code Lines Only

Cyfendo only meters executable source code lines. Blank lines, comment blocks, third-party vendor directories (e.g. node_modules/, vendor/, venv/), minified bundles, and compiled binaries are automatically filtered and never charged. A Private Scan counts the same way as a cloud scan.

Zero Double-Billing for Rescans

Within a billing cycle, rescanning an existing Protected Project reuses your registered LOC capacity. If you rescan the same 10,000 LOC codebase 50 times in CI/CD, you consume exactly 10,000 Protected LOC, not 500,000.

Incremental AST Cache

When you push commits or scan feature branches, Cyfendo’s distributed cache instantly identifies unchanged files via cryptographic AST hashes, ensuring sub-second response times and immediate exploit validation.

Complete CLI Command Reference

Quick cheat sheet of all available commands and flags.

Comprehensive list of Cyfendo CLI commands, flags, descriptions, and examples
Command / Flag Description Example
cyfendo login Authenticates CLI and stores credentials in ~/.cyfendo/config.json. cyfendo login --key cy_live_...
cyfendo whoami Displays active user account, role, organization, and quota usage. cyfendo whoami
cyfendo status Alias of whoami: shows Protected LOC balance, plan limit, and grace period status. cyfendo status
cyfendo projects Lists active protected projects in your workspace with LOC counts. cyfendo projects
cyfendo scan <path> Packages the directory (honoring .gitignore / .cyfendoignore at every level and never including .env files or private keys), uploads it to the Cyfendo cloud sandbox, and streams live audit telemetry. cyfendo scan .
cyfendo scan --private <path> Cyfendo Private Scan: analysis, verification, and patching run on this machine with no source code sent to Cyfendo, using your own LLM keys or local models. Only scan metadata and finding counts sync to Cyfendo, which must be reachable to verify entitlements. cyfendo scan --private .
--provider <name> Specifies AI provider for Cyfendo Private Scan: openai, anthropic, gemini, vertex, azure, or ollama. --provider openai
--model <name> Specifies target LLM model (e.g. gpt-4o, gpt-4o-mini, claude-sonnet-5-5, gemini-3.6-flash, deepseek-r1:32b). A named model is binding, also with cyfendo config --set-model or CYFENDO_BYOM_MODEL: only that model runs, and a call it refuses or fails is lost, which the summary reports. With no model named, the provider's default model and its fallbacks run. Leave the model out where a refused call must not stop --fail-on passing. --model gpt-4o
--llm-key <key> Direct API key for chosen LLM provider (or export via OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.). --llm-key sk-proj-...
--endpoint <url> Custom OpenAI-compatible base URL for corporate proxies, vLLM, or self-hosted Ollama. --endpoint http://localhost:11434/v1
CYFENDO_LLM_TIMEOUT Per-request model timeout in seconds, for every provider (default 900 for ollama, 180 for hosted providers). Raise it for large local models. CYFENDO_LLM_TIMEOUT=1800
--thinking <level> Sets reasoning effort level for thinking-capable models (off / none, low, medium, high). --thinking high
--directive <text> Steers how patches are written (needs --generate-patch; not sent with a cloud scan). --directive "Use the db.query() helper"
cyfendo config Inspects or configures persistent CLI defaults (--set-provider, --set-model, --set-thinking, --set-llm-key, --set-endpoint, --show). cyfendo config --set-provider openai
cyfendo workspaces Lists all accessible personal and business workspaces with account types, roles, and status. cyfendo workspaces
cyfendo workspace switch <id> Switches the local default active workspace context in ~/.cyfendo/config.json. cyfendo workspace switch ws_acme_corp
--workspace, -w <id> Global flag to run any command in a specific organization workspace. Works before or after the subcommand. cyfendo -w ws_acme_corp scan .
--key <key> Global flag: Cyfendo API key for this command (overrides CYFENDO_API_KEY and the saved key). cyfendo --key cy_live_... whoami
--server <url> Global flag: Cyfendo server URL for a self-hosted or local server (overrides CYFENDO_SERVER_URL and the saved server). --server http://127.0.0.1:8080
CYFENDO_WORKSPACE_ID Environment variable specifying target workspace context (recommended for CI/CD runners). CYFENDO_WORKSPACE_ID=ws_...
--project, -p Binds scan run to an existing Protected Project name or ID. --project "backend-api"
--dedup-scope <scope> Sets vulnerability deduplication scope: root_cause (default), file (per-file isolation), or none (raw traces). --dedup-scope=file
--benchmark-mode Runs in benchmark evaluation mode (overrides --dedup-scope=file and disables patch generation). --benchmark-mode
--generate-patch Synthesizes and sandbox-verifies AI remediation patches for Critical and High findings during scan. --generate-patch
--no-patch Explicitly skips remediation patch generation (default fast PoC mode). --no-patch
--patch-bundle <path> Exports aggregated unified remediation diff bundle file. --patch-bundle fixes.patch
--fail-on <level> Exits with code 1 if findings at or above threshold exist (critical, high, medium, low), or if a Private Scan's research did not finish. --fail-on=high
cyfendo deps [path] Lists third-party packages and the published advisories that affect them (OSV.dev, CISA KEV, FIRST EPSS), with no LLM and no upload. Takes --fail-on, --sbom, --sarif, -o, --offline, --all. --fail-on also exits with code 1 if the advisory lookup did not finish. cyfendo deps . --fail-on high
--deps-fail-on <level> Exits with code 1 if dependency advisories at or above the threshold affect non-development packages, or if the advisory lookup did not finish. Kept apart from --fail-on, which covers code findings only. --deps-fail-on=critical
--sbom <path> Exports a CycloneDX 1.6 SBOM of the project's third-party packages and their advisories. --sbom sbom.cdx.json
--sarif-include-deps Adds the dependency advisories to the --sarif file as a separate run. --sarif-include-deps
--no-deps Private Scan: skips the dependency audit, so no package names are sent to OSV.dev. --no-deps
--output, -o <path> Writes an extra copy of the scan results JSON to this path (always saved to .cyfendo/scan-results.json). --output results.json
--sarif <path> Exports findings in OASIS SARIF 2.1.0 JSON format for GitHub / IDE integration. --sarif=results.sarif
--clean Clears all cached analysis stage checkpoints and forces a fresh scan from scratch (edited code, changed settings or a CLI upgrade do that by themselves). --clean
--changed [ref] Private Scan: quick check of what changed since a Git revision (default: uncommitted work). Results go to .cyfendo/quick/. Dependencies are audited only when --deps-fail-on, --sbom or --sarif-include-deps needs the result. --changed origin/main
--paths <path...> Private Scan: quick check of these files or folders. --paths src/api
--max-pocs <n> Private Scan: runs at most this many proofs of concept, changed files and most severe first (quick check default: 5). --max-pocs 3
--time-limit <seconds> Private Scan: starts no new model call, proof or patch after this long and finishes with what is done. Such a scan cannot pass --fail-on. --time-limit 1800
--vertex-tier <tier> Private Scan on Vertex AI: standard (default), priority, or flex (half the price, slower). --vertex-tier flex
--no-interactive Disables animated spinners and progress bars for clean CI/CD log output. A cloud scan then needs --yes. --no-interactive
--yes, -y Confirms the cloud upload, so no prompt is shown. A run with no terminal must pass it, or nothing is uploaded and it exits 2. cyfendo scan . --yes
--open Opens the scan in the web dashboard when it finishes. --open
--separate Registers a cloud scan as a new project instead of matching an existing one. --separate
-v, --verbose Enables verbose diagnostic traces and model communication logs. cyfendo scan --private -v .
cyfendo patches [id] Lists local .patch files, or, given a scan ID, downloads and exports that cloud scan's patches (--out-dir sets the folder; default .cyfendo/patches/). Each scan's export replaces the previous scan's numbered patches; regenerated regen_* patches are kept. cyfendo patches scan-2026-xyz
cyfendo patch <target> Inspects (--show) or applies (--apply) a vulnerability patch to local files. Re-applying an applied patch reports it and changes nothing. cyfendo patch 01_sql --show
cyfendo patch <id> --regenerate Builds a new regen_*.patch, and first tests a finding the scan did not test: a Private Scan finding on this machine with your own model, a cloud finding on the server. --directive steers it (and implies --regenerate); --scan sets the scan ID of a cloud finding when it isn't in .cyfendo/scan-results.json. See On-Demand PoC & Patch Generation. cyfendo patch fnd_91a4 --directive "Use db helper"
cyfendo verify <id> [path] Replays a Private Scan finding's proof of concept against the current code, then its tests (no model, no upload). Exit code 0 blocked, 1 still exploitable, 2 not settled. cyfendo verify cwe89-c894a71d
cyfendo logout Clears the stored Cyfendo API key, server, and workspace. Private Scan settings and LLM keys are kept; --all deletes ~/.cyfendo/config.json entirely. cyfendo logout --all
--version, -V Prints the installed CLI version. cyfendo --version

Language & Framework Coverage Matrix

Authoritative breakdown of parsing depth, cross-file taint analysis, framework recognition, sandbox PoC validation, and empirical benchmark coverage.

Language Basic Scanning Cross-File Analysis Sandbox Validation Patch Generation Frameworks & Benchmark Status
Python
.py, .pyw
Supported (AST syntax & taint sink detection) Full cross-file & inter-module call graph Supported (ephemeral sandbox with python3 runtime) Full review-ready patch generation included
Django, Flask, FastAPI, Tornado, Standard Library
Production
Java
.java
Supported (AST syntax & taint sink detection) Class hierarchy & cross-package method invocation analysis Supported (ephemeral sandbox with javac / java toolchains) Full review-ready patch generation included
Spring Boot, Jakarta EE, Servlet API
Production
JavaScript / TypeScript
.js, .jsx, .mjs, .cjs, .ts, .tsx
Supported (AST syntax & taint sink detection) ES module imports, CommonJS require, and route graph tracing Supported (ephemeral sandbox with node & tsx/ts-node) Full review-ready patch generation included
Node.js, Express, Next.js, Fastify, React
Internal synthetic test suites (standardized public suite pending)
Production
Go
.go
Supported (AST syntax & taint sink detection) Package-level call graphs and cross-file method invocations Supported (ephemeral sandbox with go toolchain) Full review-ready patch generation included
Standard Library (net/http), Gin, Echo, Fiber
Internal synthetic test suites (standardized public suite pending)
Production
C / C++
.c, .h, .cpp, .cc, .cxx, .hpp, .hh
Supported (Lexical boundary & buffer sink detection) Header and translation unit reference indexing Supported (ephemeral sandbox with gcc / clang compilers) Full review-ready patch generation included
POSIX standard APIs, socket APIs, memory buffer handling
Internal CWE-focused test suites
Production
Rust
.rs
Supported (AST syntax & unsafe block detection) Crate-level module indexing and unsafe block tracing Supported (ephemeral sandbox with rustc / cargo) Full review-ready patch generation included
Actix-web, Axum, Standard Library
Internal synthetic test suites
Production
PHP
.php, .phtml
Supported (Symbol & sink extraction) File inclusion and global function definition indexing Supported (ephemeral sandbox with php CLI) Full review-ready patch generation included
Vanilla PHP, Laravel, Symfony routes
Internal CWE-focused test suites
Production
Ruby
.rb
Supported (Symbol & method extraction) Module and require statement indexing Supported (ephemeral sandbox with ruby runtime) Full review-ready patch generation included
Ruby on Rails, Sinatra
Internal CWE-focused test suites
Production
Shell / Bash
.sh, .bash, .zsh
Supported (Command & argument parsing) Sourced script analysis Supported (ephemeral sandbox with bash/sh) Full review-ready patch generation included
POSIX Shell, Bash scripting
Internal command injection test cases
Production
Kotlin / Android
.kt, .kts, .dex
Supported (.kt source & unpacked Dalvik .dex files; an .apk is not opened for you) Supported (JVM call graph & decompiled bytecode) Supported via Gradle/JVM execution & Dalvik bytecode decompilation Full review-ready patch generation included (AST-verified)
Android SDK, Ktor, Spring Boot (Kotlin), Gradle KTS
Internal Android CWE test suites (validated in E2E Case 13)
Production
C#, Swift, Scala
.cs, .swift, .scala
Supported (Syntax pattern & sink detection) In active engineering development (roadmap) Limited: C# on modern .NET is in early testing. Swift and Scala do not run in the sandbox. Roadmap / Limited
ASP.NET Core, Swift standard library, sbt
None currently published
Beta / Roadmap

Coverage Notes: 1. Basic Scanning: Lexical and AST syntax inspection for immediate flaw patterns.
2. Cross-File Analysis: Interprocedural call-graph tracing and inter-module taint propagation across full repositories.
3. Sandbox Validation: Ephemeral Docker container execution verifying exploit reachability under real runtime environments.
4. Patch Generation: Dual-Oracle validated code patches delivered as review-ready diffs.
5. Beta / Roadmap: Parsing and basic syntactic rule checks available; cross-file taint and automated sandboxing are in active engineering.

Deployment Modes & Data Custody Architecture

Comprehensive comparison of source code custody, network boundaries, AI provider integrations, and retention policies.

Security Dimension Mode 1: Managed Cloud Mode 2: Private Scan (External AI) Mode 3: Private Scan (Local Models)
Execution Location Google Cloud & AWS RAM containers Customer workstation, VM, or CI runner Customer workstation, VM, or on-prem hardware
Where Source Code Goes Uploaded via TLS 1.3 to ephemeral RAM containers Zero source code or files sent to Cyfendo Zero source code or files sent to Cyfendo
Where Code Goes for AI Analysis Analyzed in ephemeral RAM container; destroyed immediately Parts of your code, including whole source files, sent directly to customer's AI provider (OpenAI, Anthropic, Gemini). .env files, private keys, ignored files and links outside the project are not sent 100% inside perimeter (routed strictly to localhost Ollama/vLLM)
Where Telemetry Goes Scan metadata, finding titles, CWEs saved in workspace Scan metadata (project name, file and LOC counts, provider and model, git branch, commit SHA, and remote URL), progress, and finding counts sent to Cyfendo for quota metering Scan metadata (project name, file and LOC counts, provider and model, git branch, commit SHA, and remote URL), progress, and finding counts sent to Cyfendo for quota metering
External AI Provider Cyfendo-managed enterprise inference Customer's chosen API (OpenAI, Anthropic, Gemini) None (Ollama, vLLM, self-hosted models)
Data Egress Classification Cloud RAM processing with ephemeral destruction Egress to customer's AI provider API + quota telemetry to Cyfendo + package registries for proof-of-concept dependency installs No code or prompts leave your network. Quota telemetry goes to the Cyfendo server, and proof-of-concept dependency installs reach package registries, with or without --no-deps. Without --no-deps, public package names and versions also go to public advisory and package services for the dependency audit
Governing Retention Policy Cyfendo ephemeral RAM policy; destroyed upon scan completion Governed entirely by customer's agreement & retention terms with AI provider Customer's internal machine/hardware policy; no code retained in any cloud
Model Training Policy Never used to train foundation models Governed by customer's agreement with their chosen AI provider No AI provider receives your code
Offline / Air-Gapped Operation No (requires internet connection to Cyfendo cloud) No (requires internet connection to external AI provider & Cyfendo token verification) Supported with an on-premises Cyfendo server (model traffic stays local; entitlement checks go to the server set with --server). Without a route to package registries, proof-of-concept dependency installs fail and the scan carries on, so proofs that need those packages may not run
CLI Command cyfendo scan [PATH] cyfendo scan --private . cyfendo scan --private --provider ollama .
Customer Controls Workspace management, scan schedule, role RBAC Customer controls API keys, provider, and model Customer controls hardware, network, and model weights

Certifications & Trust Disclosures

  • Cloud Infrastructure: Cyfendo cloud services run on Google Cloud Platform and AWS data center facilities holding independent SOC 2 Type II, ISO 27001, and FedRAMP certifications.
  • Platform Security Posture: Cyfendo's platform architecture, internal development lifecycles, and access policies are engineered in strict alignment with SOC 2 Type II and ISO 27001 control frameworks. Cyfendo has not yet completed its own independent corporate audit.
  • Assessment Reports Disclaimer: Cyfendo scan reports and certificates document automated static and sandbox analysis results at the time of evaluation. They reflect empirical test results and do not constitute independent regulatory certification, OWASP endorsement, or an absolute guarantee that an application is vulnerability-free.