This release includes 2 security fixes for security teams reviewing exposed deployments.
Topics
+10 more
Affected surfaces
Summary
AI summaryStructured error migration to KastellError hierarchy across all command files.
Full changelog
v2.0.0 — Technical Debt + Infrastructure Hardening
Highlights
- Structured error migration — all 9 command files use
classifyErrorwith instanceof branching (KastellError hierarchy) - logSafeModeBlock — structured security logging wired into all SAFE_MODE guard sites
- secureWriteFileSync — platform-aware secure file operations with POSIX permissions
- Config repair —
kastell config repairdiagnoses and repairs corrupted configs - MCP audit enhancements — snapshot save/compare, category/severity filter, threshold gate
- Property-based + fuzz tests — fast-check arbitraries, kernel/firewall/filesystem fuzzing
- E2E nightly CI — automated provision→lock→audit→destroy pipeline
Security
- secureWrite migration (SEC-06) for all credential files
- TOCTOU fix in auth.ts
- ESLint security plugins, Zod schemas for all 4 providers
- CI hardening with explicit permissions + SHA-pinned actions
- Dependency updates: axios 1.15.0 (CVE-2025-62718), follow-redirects 1.16.0, hono 4.12.14
Stats
- 240 test suites, 10127 tests, 12 snapshots
- 9 phases (P105-P113) completed
- Coverage: 90% global, 95% audit, 90% provider, 90% MCP
Full changelog: https://github.com/kastelldev/kastell/blob/main/CHANGELOG.md
Breaking Changes
- All 9 command files now use `classifyError` with instanceof branching against the KastellError hierarchy, altering error propagation and handling.
Security Fixes
- dep: axios 1.15.0 — CVE-2025-62718
- TOCTOU fix in auth.ts
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About kastelldev/kastell
Server security auditing and hardening toolkit. 413 security checks across 29 categories (SSH, Firewall, Docker, TLS, HTTP Headers), CIS/PCI-DSS/HIPAA compliance mapping, 19-step production hardening, fleet management, and forensic evidence collection. Supports Hetzner, DigitalOcean, Vultr, and Linode. 13 MCP tools.
Related context
Related tools
Beta — feedback welcome: [email protected]