
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
cerber-core
Advanced tools
Prevent secrets (API keys, passwords) and console.log in commits. Zero-config pre-commit hooks with Husky auto-install. Blocks Stripe, GitHub, AWS credentials out-of-the-box. 357+ teams protected.
Detects workflow/config drift across repos and enforces a single source of truth via CERBER.md.
AI doesn't break your project. Lack of a contract does.
Cerber enforces your project roadmap as executable contract (CERBER.md). Write rules once, get automatic validation on every commit + CI run.
✅ Contract guard — Validates your CERBER.md rules are enforced
✅ Drift detector — Catches when CI config/workflow changes break protection
✅ Works WITH existing tools — Doesn't replace ESLint/Prettier/tests. Ensures they stay required.
❌ Not a linter — Use ESLint for code style
❌ Not a test runner — Use Jest/Vitest for unit tests
❌ Not a deployment tool — Use your existing CD pipeline
Think of it as: Policy-as-code layer that prevents your other tools from being bypassed.
CERBER.mdSolution: Guardian blocks bad commits before they reach CI. CI re-validates and protects itself from tampering.
Cerber protects real SaaS applications. See it in action:
Eliksir Platform CI Pipelines:
These aren't demo projects - live production systems serving real users, protected by Cerber since day one.
📖 Full case study: How Cerber prevented 47 production bugs
Join the Cerber Core Discord for support, feedback, and CI/Doctor showcases: 👉 https://discord.gg/V8G5qw5D
#general#feedback (bugs can also go to GitHub Issues)#showcase# 1. Install
npm i -D cerber-core
# 2. Generate contract template
npx cerber init
# 3. Edit CERBER.md (use AI assistant or manual)
# → Define your roadmap, tech stack, protected assets
# 4. Generate hooks + CI workflow
npx cerber init
# 5. Verify setup
npx cerber doctor
# 6. Commit and push
git add .
git commit -m "feat: add Cerber protection"
git push
That's it. Guardian now blocks bad commits. CI re-validates and protects itself.
📍 TODAY: CI contract guard + workflow drift detection
🚀 ROADMAP: Post-deploy health gates (experimental in v1.1, production-ready in v2.0)
Cerber is a devtool — we don't break pipelines:
{"version": "1.0", ...}). New fields = minor, changed fields = major.cerber init --force.Current stability: v1.1.11 is production-ready for CI contract guard use case. See production proof.
$ npx cerber doctor
[Cerber Doctor] Setup Validation
[OK] All checks passed!
Configuration:
Mode: dev
Guardian: enabled
Health: enabled
CI: github
Override: DISABLED
[READY] Ready to commit!
⭐ If Cerber helped you, star the repo: https://github.com/Agaslez/cerber-core
💬 Join Discord for feedback/support: https://discord.gg/V8G5qw5D
When drift detected:
$ npx cerber doctor
[Cerber Doctor] Setup Validation
[FAIL] Issues found:
[!] .github/workflows/cerber.yml
GitHub workflow not found
Next Steps:
1. Re-run initialization to generate missing files:
npx cerber init
Help: https://github.com/Agaslez/cerber-core/discussions
Cerber is simple: write rules once in CERBER.md, enforce on every commit + CI run.
📍 TODAY: Pre-commit Guardian + CI workflow drift detection
🚀 ROADMAP: Post-deploy health gates (experimental)
Roadmap → CERBER.md contract → enforced automatically on every commit/push.
npm i -D cerber-core
npx cerber init
If CERBER.md did not exist, Cerber creates a template and stops.
Now YOU fill the contract (ideally with an AI assistant).
Take your project roadmap + repo structure and paste it into ChatGPT/Claude/Cursor with the Cerber Contract Translator prompt (see below).
Then:
CERBER.mdnpx cerber init
npx cerber doctor
Exit codes:
0 ✅ All checks pass2 ❌ Missing CERBER.md3 ❌ Missing schema (strict mode)4 ❌ Missing hook/workflowgit commit → Guardian validates staged changes (blocks violations)git push → GitHub Actions validates again in CIHaving issues? Want to share your setup?
Show your CI runs in Discord #showcase!
Use this to generate a production-ready
CERBER.mdfrom your roadmap.
Cerber does NOT design your architecture. It enforces what you write.
PROMPT:
You are a "Cerber Contract Translator". Convert my roadmap + repo structure into a `CERBER.md` contract.
RULES:
- Do NOT invent architecture or rules.
- Only translate what I explicitly provide.
- If something is missing, ask up to 10 questions in a `QUESTIONS` section and leave placeholders.
- Output must be a complete `CERBER.md` with:
1) CERBER_CONTRACT (YAML)
2) ROADMAP_AS_LAW (milestones)
3) AI_AGENT_RULES (no guessing)
4) PROTECTED_ASSETS
5) CERBER_OVERRIDE (TTL safety fuse)
6) QUESTIONS
INPUT I PROVIDE:
- Roadmap (what we are building, milestones, priorities)
- Repo structure (`tree -L 3` or folder list)
- Tech stack + commands for smoke/e2e/build
- Integrations (Stripe/Ghost/Cloudinary/etc.)
- What files/paths are "protected" from deletion
Now generate `CERBER.md`.
Single rule: CERBER.md is the ONLY source of truth.
If CERBER.md is missing:
npx cerber init to generate templateIf CERBER.md exists:
Schema policy (important):
schema.mode: strict → DO NOT generate schema filesschema.mode: template_only → you may generate only the minimal template (NOT decisions)Safety rules:
cerber-ciCERBER.md, .github/workflows/cerber.yml, scripts/cerber-guardian.mjs, .husky/pre-commit, .github/CODEOWNERScontinue-on-errorcat <<EOF for TS/JS (corrupts ${} template literals)If a required rule is not present in CERBER.md → ASK USER or FAIL FAST.
## CERBER_CONTRACT
\```yaml
version: 1
mode: solo # solo | dev | team
guardian:
enabled: true
schemaFile: BACKEND_SCHEMA.mjs
schema:
enabled: true
file: BACKEND_SCHEMA.mjs
mode: strict # Recommended: You create schema, Cerber never generates
health:
enabled: true
endpoint: /api/health
ci:
provider: github
branches: [main]
\```
Schema modes:
strict (recommended) → You design architecture, Cerber guards ittemplate_only → Helper scaffold for beginners (NOT design decisions)Quick Links:
Workflows by Team Size:
Examples:
For P0 production hotfixes only, controlled safety fuse with strict TTL:
## CERBER_OVERRIDE
enabled: true
reason: "P0 - Payment API down, emergency rollback"
expires: "2026-01-04T18:00:00Z" # 6-hour TTL
approvedBy: "CTO Name"
What Override DOES:
What Override NEVER DOES:
cerber-integrity job (self-protection always runs)Use sparingly. After expiry, guardian proceeds with normal validation.
Contributions welcome! Please read CONTRIBUTING.md first.
git clone https://github.com/Agaslez/cerber-core.git
cd cerber-core
npm install
npm run build
npm test
MIT © 2026 Stefan Pitek
Free for commercial use. See LICENSE for details.
Founded by Agata Ślęzak, created and maintained by Stefan Pitek
Read the full story: docs/STORY.md
Support development: docs/SPONSORING.md
⭐ If Cerber saved you time, give it a star! ⭐
Made with 🛡️ by developers, for developers
FAQs
Prevent secrets (API keys, passwords) and console.log in commits. Zero-config pre-commit hooks with Husky auto-install. Blocks Stripe, GitHub, AWS credentials out-of-the-box. 357+ teams protected.
We found that cerber-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.