Skip to content

v1.0.3

Latest

Choose a tag to compare

@FlorentinLedy FlorentinLedy released this 01 Dec 15:32

CybeDefend OSS v1.0.3

Highlights

  • The tokens a run cost, counted: /cybedefend now says how many tokens a run cost your coding agent, read from the agent's own session log on your machine. Claude Code is the first agent supported.
  • Local scans read no scanner configuration: A configuration file committed in your repository can no longer switch a scanner's detection off during a local scan.
  • GitLab links stay where they are: A repository already linked to one project can no longer be moved to another project.
  • A critical dependency fix: cross-spawn 7.1.2 fixes CVE-2026-137199.

New features & enhancements

/cybedefend: the tokens a run cost

  • Where it shows: The finish step counts the tokens the run cost the coding agent. The count appears in the terminal, in finish's JSON, in the agent's report and on the audit page.
  • What it reads: The agent's own session log on this machine. Only the token counts are kept, never the conversation, and nothing is sent anywhere. CYBEDEFEND_NO_USAGE=1 turns it off.
  • One run, one count: Each run notes when it started. A later finish in the same session, after a triage or a live view, counts only its own run.
  • Billed tokens first: The sentence starts with output and prompt-cache writes, and ends with cache reads and the total.
  • More agents: Claude Code is the first agent with a reader. Codex, Gemini CLI and the others are open to contributions in #5.

Faster lists

  • Indexes: Two new indexes speed up the report list of an organization and the file-scan list of a project. They are added on both MySQL and PostgreSQL.

Security hardening

  • The local scan never reads a scanner configuration from the repository: The repository copy that the skill's tools read held every file git sees, including the scanners' own configuration. A committed .gitleaks.toml, trivy.yaml, .trivyignore, .semgrepignore or .checkov.yaml could switch detection off. The instance already dropped these files from the archives it scans. The local copy now leaves them out too, wherever they are, for every tool of scanners.lock. scan.mjs says how many files it left out.
  • No unmasked result is kept: After the tools run, the secrets Gitleaks found are masked in every result, because a tool may quote the code it flags. If masking fails, the scan now keeps no result: each result file is removed, its tool is reported as not finished with the reason, and the scan exits 2.
  • A GitLab link never moves a repository to another project: A member allowed to manage the integrations of one project could link a repository that was already linked to another team's project, and so take over its webhook, scans and results. That link is now refused with ALREADY_EXISTS (409), as GitHub links already are. Linking a repository again to its own project still works.
  • Integrations of a deleted organization: GitHub and GitLab operations on an integration whose organization no longer exists are refused with NOT_FOUND.
  • cross-spawn (CVE-2026-137199, critical): cross-spawn moves from 7.0.6 to 7.1.2 everywhere it is pinned. On Windows, a crafted argument could break out of its quotes when a batch file is spawned. It is a transitive dependency, and no service calls it directly.

Bug fixes & stability

  • Branch sync: A bulk branch resync from GitHub or GitLab only adds and updates branches. It never deletes one. The full reconcile still runs on the first read of a repository.
  • Dependencies: Patch updates, including jose 6.2.19, @nestjs/swagger 12.1.3, i18next 26.3.6 and postcss 8.5.34. The third-party notices are regenerated.

Upgrade

The compose file has not changed since v1.0.2. Keep your .env and your volumes, set CYBEDEFEND_VERSION=1.0.3 in deploy/community/.env, then:

docker compose pull
docker compose up -d

The two new indexes are added by migrations that run when the services start.

To get the token count in /cybedefend, update the skill from this release.

Images

Images for linux/amd64 and linux/arm64, also tagged :latest. The digest is the one of the multi-platform index.

Service Image Digest
dashboard ghcr.io/cybedefend/cybedefend-dashboard:1.0.3 sha256:7c801f5065213f35ce916dc00342e770a4147390d0a01158a239b20114f60e76
gateway ghcr.io/cybedefend/cybedefend-gateway:1.0.3 sha256:f2221c79e53da6034b7e9d078f2cc6ea0441466f4ca82e09a49380cdee3f656d
global-management ghcr.io/cybedefend/cybedefend-global-management:1.0.3 sha256:03a3186d95a1793b4d339baed614dbd2068a776586b2209092cb8630320a6f99
security-scanning ghcr.io/cybedefend/cybedefend-security-scanning:1.0.3 sha256:4268caf6aa3b532004f05630c25b1e5ede0949a9496aafa6edbca6e7793a5359
analysis-reporting ghcr.io/cybedefend/cybedefend-analysis-reporting:1.0.3 sha256:7e137ec50e96e67e6ba3f1c6f7f7fd43b038435c5e0babc94f3e489477cf3754
file-management ghcr.io/cybedefend/cybedefend-file-management:1.0.3 sha256:7f52ac224824cb99cd3fee5d76d090423578dd5a4561cdc61c3082df22f30bfc
external-integrations ghcr.io/cybedefend/cybedefend-external-integrations:1.0.3 sha256:ad93c78cdce01c443c4ae9a1eb2bd465d40966de085a46584525439bb9efc6af
policy-management ghcr.io/cybedefend/cybedefend-policy-management:1.0.3 sha256:527917e9ab98459ef58931950d3909bf18a890526b92c2414f8bed1c49791032
mcp ghcr.io/cybedefend/cybedefend-mcp:1.0.3 sha256:7cf5fad8d49a00572a9f313e8ab1430ed3bf4f5de288e2489cc97efb34a97f22

Contributors

Full Changelog: v1.0.2...v1.0.3