Advanced Repository Security Posture Engine
Holistic DevSecOps Scanner for Git Repositories
guardian-sec is a security posture engine designed to perform a comprehensive audit of Git repositories, focusing on:
- Secret exposure detection
- Dependency hygiene analysis
- GitHub security configuration checks
- CI/CD security validation
- Commit history scanning
- SBOM generation (CycloneDX-ready)
- Security scoring (0–100)
- Plugin-based extensibility
- SARIF export for GitHub Security tab
Built following modern DevSecOps, Secure SDLC and OpenSSF best practices.
Modern repositories frequently suffer from:
- Accidental credential leaks
- Disabled security alerts
- Unprotected branches
- Weak CI/CD controls
- Poor dependency hygiene
- Lack of SBOM transparency
- Secrets removed from HEAD but present in Git history
guardian-sec provides a unified and extensible engine to detect these issues early.
guardian-sec/ │ ├── src/ │ ├── cli.ts │ ├── scanner.ts │ ├── checks/ │ ├── reporters/ │ └── core/ │ ├── .github/workflows/ ├── SECURITY.md ├── LICENSE └── README.md
Core Components:
- Scan Engine
- Score Engine
- Plugin Manager
- Reporters (Console, JSON, Markdown, HTML, SARIF)
| Category | Weight |
|---|---|
| Secrets | 25 |
| Dependencies | 20 |
| CI/CD | 15 |
| Branch Protection | 15 |
| Commit History | 15 |
| GitHub Security | 10 |
Score range: 0–100
Global:
npm install -g guardian-sec
Using npx:
npx guardian-sec scan .
Scan repository:
guardian-sec scan .
Export Markdown:
guardian-sec scan . --format md
Generate SARIF:
guardian-sec scan . --format sarif
Generate SBOM:
guardian-sec sbom
- Secret Detection (AWS keys, private keys, API tokens)
- Dependency Hygiene
- CI/CD Security Validation
- GitHub Security Configuration
- Commit History Secret Detection
Example plugin:
export default { name: "custom-check", async run(repoPath) { return { check: "Custom Policy Validation", passed: true, findings: 0 }; } };
CycloneDX-compatible SBOM generation for supply chain transparency.
Supports:
- Dependabot verification
- Branch protection validation
- Security alerts validation
- Repository metadata checks
Security vulnerabilities should NOT be reported via public issues.
Please report responsibly via private channel.
- Fork repository
- Create feature branch
- Add tests
- Submit PR
- Follow conventional commits
- Web dashboard
- Slack integration
- OpenSSF Scorecard API integration
- Fuzz testing
- Multi-repository comparison
MIT License © Felipe Silva
guardian-sec represents DevSecOps maturity, supply chain awareness, and enterprise-ready security architecture.