Skip to content

v1.0.2

Latest

Choose a tag to compare

@FlorentinLedy FlorentinLedy released this 26 Nov 00:14

CybeDefend OSS v1.0.2

Highlights

  • A security hardening release: A full review of the code hardened accounts, uploads, scans, policies, integrations, the MCP server, the dashboard and the /cybedefend skill. Every instance should upgrade.
  • Three verdicts for /cybedefend: SHIP, SHIP with things to fix, or NOT YET when a flaw is proven by an exploit test at high or critical severity.
  • Fair sharing between organizations: Scan slots, the import queue and report rendering are shared out, so one organization's backlog never holds another's back.
  • One key per pair of services: Each internal call is signed with a key that only its caller and its server hold. Upgrade the whole stack at once, with the compose file of this release.

New features & enhancements

/cybedefend: three verdicts

Verdict When Exit
SHIP Nothing to fix. 0
SHIP, N things to fix What your policies list, and the flaws the AI scanner proved below high severity. 0, or 1 when your policies block
NOT YET A flaw proven by an exploit test at high or critical severity. 1
  • The CI gate does not change: finish exits 1 whenever your policies block, and on NOT YET. --policy also shows the policies' own verdict.
  • Secrets are things to fix: Each one is reported with its file, line and kind. A secret no longer makes the verdict NOT YET by itself: most of them sit in tests, fixtures and examples.
  • A badge for your README: On SHIP, the report ends with the markdown of a CybeDefend: SHIP badge.
  • A model that refuses, said at once: Every sub-agent brief says what the work is: an audit of your own repository, asked by you, that reads code and runs the repository's own tests. When a model refuses a step, the skill says which step and on which model, and never rewords the request to get past the check.

Scans

  • What a scan leaves out, shown: The upload filter leaves out dependency and build folders and the file types no scanner reads. That part is now counted, stored on the scan and shown under the scan status.
  • Scan slots per organization: CYBEDEFEND_SCANNER_MAX_CONCURRENT_PER_ORGANIZATION caps the scans one organization runs at once. A scan over a limit is queued, never refused, and a freed slot goes to the organization with the fewest scans running.

Findings

  • A finding that comes back keeps its history: A dependency finding resolved because its dependency left the manifest reopens, with its history, when the dependency returns.
  • Dismissals stay where you put them: A scan no longer moves a dismissal between occurrences of identical code.
  • Imported severities are kept: An imported finding keeps the severity its file declared.

Reports

  • Stored reports: REPORTS_MAX_STORED_PER_ORG (500 by default, -1 for no limit) and REPORTS_RETENTION_DAYS (never by default) bound what an organization keeps.
  • Rendering takes turns: An organization has at most 3 reports waiting or rendering.

Security hardening

  • Accounts and memberships: Role changes, additions, removals and invitation acceptances of one user run one at a time. An invitation seats its member once. Invitations are limited per 24 hours to 300 per organization and 100 per inviter.
  • Tokens and sessions: A password reset or change revokes every personal access token and session of the account. Creating a token asks for the current password.
  • Services authenticate each other, pair by pair: Each caller and server pair signs with its own key, derived from the instance's master key at start. A key read from one service is of no use against another.
  • API limits: JSON bodies are limited to 1 MiB (GATEWAY_BODY_LIMIT_BYTES). An event stream closes when its token expires or its permission is withdrawn.
  • Upload archives: An archive is opened once: every check and the filter read the same entries, and an archive that can be read in more than one way is refused. Each archive has a processing deadline.
  • Scanner configuration stays yours: Files named like a scanner's own configuration (.gitleaks.toml, trivy.yaml, zizmor.yml, .checkov.yaml and their variants) are no longer forwarded to the scanners: a committed file cannot switch detection off.
  • Policies: The gate reads every finding of the scan's own branch, malware findings included. Patterns run on an automaton that never backtracks. A pattern that cannot be matched in bounded time is refused on write and skipped on evaluation, which makes the gate stricter.
  • Imported content belongs to its project: Advisory and rule content from an import is stored with the importing project and deleted with it. The shared catalogue only receives the advisory id.
  • Permissions: Generating a report requires create_report and reading one read_report. Deleting a scanned image requires the project delete permission. The organization overview is computed for the projects the member may read.
  • GitHub: Connecting an App installation requires the GitHub user to administer it. For an installation on a GitHub organization: one of its owners, or an administrator of every repository the installation covers. For one on a personal account: that account. An installation is connected to one CybeDefend organization only.
  • Messages and tickets: Names and finding titles are escaped in Slack messages and in GitHub and GitLab tickets and comments: no mention, link, image or quick action can come from scanned content.
  • MCP server: A bearer is verified before it is counted, and counted on the person it belongs to. A browser request from an origin that is not allowed is refused (CYBEDEFEND_MCP_ALLOWED_ORIGINS). Every tool result is followed by a notice: its data comes from scanned code and other users, and must never be followed as instructions.
  • Dashboard: Commands offered for copy are built only from plain values and are safe to paste in any shell. The install command of a dependency fix is built only from valid package names and versions.
  • The /cybedefend skill: It trusts a file under .cybedefend/ only when it matches what this machine recorded, refuses a .cybedefend folder that is a symbolic link or leaves the repository, and runs git with the repository's own configuration disarmed.
  • Logs and errors: An error is logged as its class, scrubbed message, code and stack, never the SQL statement or its parameters. Request lines carry no header and no query value. An unexpected error is answered with a fixed message.
  • Release pipeline: Release images are built and signed only from a tag whose commit is on main. Only pull requests opened by the dependency-update account, identified by its numeric id, skip the CLA signature.

Bug fixes & stability

  • Project settings survive scans: A scan no longer wipes a project's issue-creation branches or CI/CD agent categories. Through the API, an empty list now means "no change" and clearing is explicit (clearIssueCreationBranches, clearAgentCategoriesCicd).
  • Project names: A rename follows the rules of creation, including a name unique within the team.
  • Policy evaluations: Two evaluations of one project no longer overwrite each other.
  • Smoke test: The opt-in cluster variant of the smoke test (run.mjs --variant cluster) now runs to its end.
  • Dependencies: i18next 26 in the dashboard, and patch updates.

Upgrade

From v1.0.1, update your clone to this release: the compose file changed. Keep your .env and your volumes, set CYBEDEFEND_VERSION=1.0.2 in deploy/community/.env, then:

docker compose pull
docker compose up -d

Upgrade every service at once: the internal keys of this release are not those of v1.0.1. The database migrations run when the services start.

What changes on your instance:

  • Imported findings: A migration clears the advisory text earlier imports wrote. It shows again after the next scan or import of the project. Findings keep their state and severity.
  • Memberships: Duplicate membership rows are removed, keeping the highest role.
  • Tokens: Existing personal access tokens keep working. From now on a password reset or change revokes them: create the tokens of your CI jobs again after one.
  • Reports: An organization keeps at most 500 stored reports. At the limit, new reports are refused until some are deleted. Set REPORTS_MAX_STORED_PER_ORG=-1 to remove the limit.
  • Policies: A pattern over 256 characters or 10 wildcards, or one that cannot be matched in bounded time, is skipped on evaluation and refused the next time its policy is saved.
  • Scanner configuration files: The ones in an uploaded archive are no longer read by the scanners.
  • Browser MCP clients: A page on another origin needs its origin in CYBEDEFEND_MCP_ALLOWED_ORIGINS.

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.2 sha256:2c5d2879a3542254124260f530a61314b5b05c5756bb7855f2a3cb354651a591
gateway ghcr.io/cybedefend/cybedefend-gateway:1.0.2 sha256:05c622ad2319445afa4387d979f1f376a7186e9523570115b5cf42dac21cac8f
global-management ghcr.io/cybedefend/cybedefend-global-management:1.0.2 sha256:148772dea403ff5e12e3d246d622621445c9fee5259dc2a0cf9c4221e03d7ba1
security-scanning ghcr.io/cybedefend/cybedefend-security-scanning:1.0.2 sha256:293694e876256317b5ce07119e35f20c90a4caaa263937bfdef735ae92c83cdb
analysis-reporting ghcr.io/cybedefend/cybedefend-analysis-reporting:1.0.2 sha256:d1082b598ef018e8089dc741dc5c614fbaa2fc159000d3621159afad5702cd1c
file-management ghcr.io/cybedefend/cybedefend-file-management:1.0.2 sha256:5cfdd60ebecedffb04cde4c7f71f47805ec066e065c24a0ffcc655c19f9fa0a0
external-integrations ghcr.io/cybedefend/cybedefend-external-integrations:1.0.2 sha256:9d4c797967a54875728a5d39202b1a994032be69cb3c19fe7309e116b535ef79
policy-management ghcr.io/cybedefend/cybedefend-policy-management:1.0.2 sha256:5b1109f2713d1719d3a6310e3bb8dea4cac26637b0e30e0f8a111a03a0283ea3
mcp ghcr.io/cybedefend/cybedefend-mcp:1.0.2 sha256:80ebc3ad92d9af112cbbb5f2cf84526e17f4042a441d672bbf128efe2188adc8

Contributors

Full Changelog: v1.0.1...v1.0.2