Summary
I built Vibe-Guard, a Node.js CLI that provides a quick, pattern-based security pass over source code and configuration files. Its 30 rules cover common application, AI, dependency, and container risks, and each finding includes context and a suggested next step.
Vibe-Guard is a heuristic scanner, not a substitute for code review or a full security audit. It requires Node.js 20 or newer; npm installs its declared runtime dependencies. In v2.1.0, I also tightened release and distribution workflows so the package version, Git tag, and Homebrew formulas stay aligned.
Impact / Why It Matters
- Actionable findings – Reports include the rule, severity, file and line, explanation, and a suggested remediation.
- Multiple output formats – Table, JSON, SARIF, and HTML output support terminal use and downstream reporting.
- Workflow options – The CLI can be installed from npm or Homebrew, used in a CI workflow, or run locally from its interactive menu.
- Clear boundaries – Pattern matching can miss issues or flag safe code; findings need review in context, and a clean scan is not proof of security.
What I Built
- Pattern-based scanner – 30 rules covering common application, AI, dependency, and container risks, including exposed secrets, unsafe prompt construction, vulnerable package declarations, and container configuration.
- CLI and reports –
vibe-guard scan <path>supports table, JSON, SARIF, and HTML output. Findings include severity, location, explanation, and a suggested next step. - Interactive menu and configuration –
vibe-guard startprovides scan, rule-list, and configuration-file options; it is a small menu rather than a guided course. - Workflow integration – SARIF output can be used with GitHub Code Scanning, and the CLI can be run in CI or from a pre-commit hook.
- Installation and builds – npm and Homebrew installation options; CI builds standalone binaries for Linux x64/arm64, macOS x64/arm64, and Windows x64.
Results & Evidence
Rule coverage:
- Application security — Authentication and authorization patterns, input validation, injection, data exposure, and configuration risks.
- AI and MCP risks — Provider tokens, unsafe LLM prompt construction, prompt injection, and MCP security patterns.
- Dependencies and containers — Vulnerable or floating package references, mutable Git references, Kubernetes, Dockerfiles, and registry configuration.
Testing and reporting:
- The README documents Jest test runs on Node.js 20 and 22.
- The scanner supports SARIF output for integrations such as GitHub Code Scanning:
1 2- name: Security Scan run: vibe-guard scan . --format sarif --output-file security-report.sarif - Local Jest test-result reporting is provided by a separate utility; it is distinct from scanning source code.
Tech & Methods
- Language: TypeScript, Node.js
- Architecture: Pattern-based rules and CLI reporting
- Security Coverage: 30 heuristic rules spanning application, AI, dependency, and container risks
- CI/CD: GitHub Actions, SARIF format, pre‑commit hooks
- Runtime: Node.js 20+; npm installs declared third-party runtime dependencies
- Distribution: npm package and Homebrew; standalone binaries are CI artifacts, not currently published as GitHub release downloads
Release Engineering: v2.1.0
- Version consistency — Worked around a legacy prebuild script that could report the outdated
1.2.0version during release preparation. - Runtime baseline — Enforced Node.js 20+ across build scripts and CI.
- Controlled npm release — Prepared and approved
vibe-guard@2.1.0through a stage-only npm publishing workflow. - Distribution alignment — Pointed the
v2.1.0Git tag at the finalized release commit (ea8d37a) and updated both Homebrew formulas with the matching tarball URL, SHA-256 checksum, and version assertion.
Limits & Possible Next Steps
Current capabilities:
- Scans a target path and emits local or CI-consumable reports, including SARIF.
- 30 pattern-based rules and table, JSON, SARIF, and HTML report formats.
- The project README documents Jest test runs on Node.js 20 and 22, and CI builds standalone binary artifacts for the listed Linux, macOS, and Windows architectures.
- v2.1.0 release preparation and Homebrew formula updates.
Boundaries:
- Detection completeness or absence of false positives across arbitrary repositories; this is a heuristic scanner, not a full security audit.
- Large‑scale enterprise deployments or performance across large repositories.
- Binary distribution as downloadable GitHub release assets; current builds are CI artifacts.
Next steps:
- Publish standalone binaries as release downloads.
- Expand and tune rules based on reviewed findings and community feedback.
- Add richer integrations and policy controls.
Links
- Website & downloads: https://devjosef.github.io/vibe-guard/
- GitHub: https://github.com/Devjosef/vibe-guard
- npm: https://www.npmjs.com/package/vibe-guard