Sulat.com / Writing on AIMonday, December 7, 2026
Enter →
Agent Engineering/6 December 2026

CybeDefend runs a security audit inside your coding agent

CybeDefend's /cybedefend skill has your coding agent audit a repository and prove each flaw with a test. I ran it on a small app I seeded with flaws. The code scanners found none of them.

CybeDefend 3D logo beside a glass panel of code lines with a green check and a red cross, for its agent-run security audit.
Illustration: Sulat, featuring the CybeDefend logo

At a glance

  • CybeDefend is an open source, self-hosted AppSec platform whose /cybedefend skill has a coding agent map a repository's entry points, hunt for flaws and prove each one with a test.
  • I ran it in Claude Code on a small Express app I seeded with flaws. The verdict was NOT YET: three high findings block, and the agent proved four flaws with failing tests.
  • Opengrep and Gitleaks found nothing in that app, and Trivy's dependency scan couldn't download its database from my sandbox, so the dependencies went unread.
  • Run through the symlink that the installer creates for Claude Code, the start script exits silently without doing anything. Calling it by its real path works.
  • Snyk's free plan caps projects and code tests. CybeDefend's Community edition has no quota, and the price is hosting it yourself.

CybeDefend is an open source, self-hosted security platform whose main feature is a skill. Type /cybedefend in a coding agent and it audits the repository it’s open in, then proves each flaw with a test. The README names Claude Code, Codex and Cursor, plus any agent that reads skills. I installed it, ran it in Claude Code on a small Express app I’d seeded with flaws, and read what it produced. The agent proved four flaws with failing tests. The open source scanners it runs found none of them.

The code is under AGPL-3.0, and the README says the project launched on Product Hunt on 4 December. CybeDefend SAS, the company behind it, also sells a hosted version of the same platform.

What you get

The Community Edition is a Docker Compose stack: a dashboard, an API, backend services and PostgreSQL. It keeps findings branch by branch, applies policies written in YAML that decide what blocks a deploy, and produces OWASP Top 10 and CWE Top 25 reports. It connects to GitHub, GitLab, Jira, Linear and Slack, and it runs an MCP server with 21 tools that your agent can read. The README says there’s no seat limit, no scan quota and no telemetry.

CybeDefend’s pricing page lists Community at $0 forever, with unlimited projects and users. The hosted Cloud plan is priced per seat, Pro up to 5 seats and Team up to 25. Enterprise starts at 26 seats, on quote.

How the audit works

One command runs five steps. Open source scanners run first, in containers, so nothing installs on your machine: Opengrep for code, Trivy for dependencies and infrastructure files, Gitleaks for secrets, and others such as zizmor, Bandit, gosec, Brakeman, Checkov and poutine when the stack calls for them. Then your own coding agent does the part a pattern matcher can’t. It lists every entry point, writes down what the code must never allow, hunts for broken access rights and business logic, and writes each exploit as a test in your repository’s own suite. No extra model or API key is involved, because the agent you’re already running does the review.

CybeDefend audit as five boxes: scanners, AI scanner, triage, dashboard and report, with the AI scanner step highlighted.
The scanners are step one. The step that writes exploit tests is the agent’s.

The agent then judges every scanner finding against your code, the dashboard’s policies give a verdict, and a report lists what blocks and the fix for each. The verdict is SHIP, SHIP with things to fix, or NOT YET. The same skill has more commands for other jobs.

CommandWhat it does
/cybedefendThe full audit: the whole repository on the first run, what the branch changed after that
/cybedefend fixFixes what blocks, each fix proven by a test
/cybedefend deepA heavier audit for releases, with a verdict on every function
/cybedefend importSends another tool’s SARIF file to the dashboard
/cybedefend liveReplays the proven flaws against your running app, with throwaway data
Five of the commands in the README’s table.

What I ran

The install is one command, and the audit is one more typed inside the agent. It needs Docker with Compose 2.24.4 or later, about 4 GB of memory, git and Node.js. I used a box with 4 cores, 16 GB RAM and Ubuntu 24.

Code
npx skills add CybeDefend/cybedefend -g
/cybedefend

The target was a tiny task-board API with eight entry points. I planted four problems: any member can read another member’s task by its id, any member can delete it, PATCH /me copies the request body onto the user record so a member can set their own role to admin, and a made-up Stripe-style key sits in a config file. It also pins Express 4.17.1 and lodash 4.17.15, both old. I ran the audit headless with this command.

Code
claude -p "/cybedefend" --model claude-sonnet-5-5 --allowedTools "Bash Read Write Edit Glob Grep Task"

Docker pulled the images, the setup started the dashboard on localhost, and the run finished with a verdict of NOT YET and exit code 1. The model usage came to about US$0.49.

CybeDefend audit report page for the test app reading not ready to ship, with three blocking findings and four flaws proven.
The report the run opened: three high findings block the deploy.
FindingWhereSeverityStatus
A member can delete another member’s tasksrc/app.js:25HighProven by a failing test
A member can read another member’s task by its idsrc/app.js:20HighProven by a failing test
A member can make themselves admin, then purge every tasksrc/app.js:31HighProven by a failing test
A live-format payment key is committed in the sourcesrc/config.js:1MediumProven by a failing test
Bearer tokens, the admin’s included, are written in the sourcesrc/app.js:5LowLead, not proven
What the audit reported for the test app.
CybeDefend test run: scanners found 0 flaws, the AI scanner found 4 proven by failing tests and 1 unproven lead.
On my small test app the scanners found nothing and the agent proved four flaws.

The same findings were waiting in the dashboard my machine was hosting, split by severity and by scanner. All five came from the AI scanner step.

CybeDefend dashboard for the test project showing five open findings, three of them high, all from the code scanner.
The same findings in the dashboard my machine was hosting.

The proof is a test

This is the idea worth copying. A finding only counts when a test in your own framework fails for the reason the agent claims, so you can read the exploit and run it. The agent wrote its proofs into test/app.security.test.js. Here’s the one for the delete flaw.

Code
proof('test_security_member_cannot_delete_another_members_task', async () => {
  const created = await call('POST', '/tasks', 'tok-alice', { title: 'alice keep' });
  await call('DELETE', `/tasks/${created.body.id}`, 'tok-bob');
  const still = await call('GET', '/tasks', 'tok-alice');
  assert.ok(still.body.some((t) => t.id === created.body.id), 'bob deleted alice\'s task');
});

The proof wrapper keeps your suite green while the flaw exists. It swallows the failure, and it throws the day the test starts passing, telling you to remove the mark. With the proofs in, my suite reported five of five passing. Setting CYBEDEFEND_RAW=1 runs them bare, and all four fail.

Code
not ok 1 - test_security_member_cannot_read_another_members_task
  error: "bob read alice's task"
not ok 2 - test_security_member_cannot_delete_another_members_task
  error: "bob deleted alice's task"
not ok 3 - test_security_member_cannot_grant_themselves_admin_role
  error: 'alice became admin through PATCH /me and purged every task'
not ok 4 - test_security_no_live_payment_key_in_source
  error: 'a live-format payment key is committed in src/config.js'
# tests 4
# pass 0
# fail 4
CybeDefend proof steps: the agent writes the exploit as a test, it fails today, and it passes once the code is fixed.
A finding counts only when its test fails for the reason claimed.

What went wrong in my run

Trivy’s dependency scan didn’t finish. It couldn’t download its vulnerability database from my sandbox, so Express 4.17.1 and lodash 4.17.15 went unread, and I can’t say what it would have reported. A second run gave the same error. Gitleaks passed the made-up Stripe-style key without a flag. Only the agent caught it.

The more useful catch was in the install. The installer put the skill in ~/.agents/skills and symlinked it into ~/.claude/skills for Claude Code. Running the start script through that symlink exits with code 0 and prints nothing, because the script compares its path to its own real location before it runs. I reproduced it in an empty repository. Calling the script by its real path under ~/.agents/skills printed the banner and ran. The agent in my headless run spotted the silence and switched paths on its own, but a person running the script by hand would see nothing happen.

Against Snyk

The README calls CybeDefend the open source Snyk alternative, so the comparison is fair to make. Snyk’s pricing page lists a Free plan with 5 projects and 100 Snyk Code tests a month. Team starts at US$25 a month for up to 10 developers, with 100 projects and 1,000 code tests. Snyk’s own FAQ says its Evo capabilities, such as AI pentesting and coding-agent security, aren’t on Free or Team and need an Enterprise subscription.

Snyk Free allows 5 projects and 100 code tests a month; CybeDefend Community has no scan quota or seat limit.
Snyk’s free plan has caps. CybeDefend’s open source edition has none, and you host it.

CybeDefend Community has no quota, and the cost is running it. You need Docker, a few gigabytes of memory, and a first run that pulls images the README puts at about 6 GB. It also isn’t a closed shop. The README says any scanner that writes SARIF 2.1.0, such as Semgrep, CodeQL, Grype or TruffleHog, can feed the same dashboard through /cybedefend import. Agent-run security checks are turning up elsewhere too, such as Wiz’s Codex plugin, which turns cloud findings into draft pull requests.

Before you run it

  1. Try it on a throwaway branch first. The run starts containers, writes a .cybedefend folder and adds test files, though it says it changes no application code.
  2. In CI or any unattended run, add --no-open. Without it, the finish step opens two browser tabs and puts the administrator’s password on your clipboard.
  3. Credentials land in ~/.cybedefend/appsec/credentials.json with mode 600. The skill also reads Claude Code’s session log on your machine to count the tokens a run cost, keeps only the counts and sends nothing. CYBEDEFEND_NO_USAGE=1 turns that off.
  4. Commit the proof tests, .cybedefend/audit/ and .cybedefend/config.json. The out folder stays out of git on its own.
  5. Read the AGPL clause before you modify the platform and expose it to users over a network, because it requires you to offer them your changes.

What this covers

This is a smoke test: one run, one model, one tiny app with textbook flaws, headless. I didn’t run it on a real codebase, and I didn’t try the fix, deep or live commands. I didn’t inspect the platform’s network traffic, so the no-telemetry claim is the README’s, not mine. I don’t know what Trivy would have said about the two old packages, because its database never downloaded.

Sources: CybeDefend README and skill pages (GitHub); CybeDefend pricing page; Snyk pricing page; my run of the skill in Claude Code 2.1.337 against a test app, with Claude Sonnet 5.5.