CodeArmor is a premium security tool that automatically scans your codebase for security vulnerabilities.
CodeArmor runs 11 parallel AI agents to detect security weaknesses in your projects, validates and consolidates findings via the ArmorClaw service, and displays findings in an interactive VS Code panel and standalone Admin dashboard.
CodeArmor scans for 40+ vulnerability types across 11 AI agents:
- Route Analyst: Endpoint structures, missing input validations, path parameter security.
- Auth Inspector: Missing authentication, IDOR vulnerabilities, inadequate role-based access controls.
- Injection Hunter: SQL Injection, NoSQL Injection, Command Injection, LDAP Injection, XPath Injection, Template Injection.
- Data Flow Tracer: Sensitive data in logs, verbose error message exposures, sensitive responses, data in URLs.
- Config Auditor: Unencrypted credentials, CORS misconfigurations, missing security headers, missing rate limits, debug settings active in production.
- XSS Scanner: Reflected XSS, Stored XSS, DOM XSS, unsafe templating engines.
- CSRF Scanner: Missing CSRF protection, incorrect SameSite cookie attributes.
- File Security Agent: Path traversal, unrestricted file upload, insecure file permissions.
- API Security Agent: Mass assignment, IDOR, input validations.
- Business Logic Agent: Open redirects, SSRF, insecure deserialization, race conditions, business logic bypass.
- Crypto Auditor: Weak ciphers, hardcoded IVs, insecure random generation, missing encryption, hardcoded secrets.
- Extension: VS Code Extension API, TypeScript, React, esbuild.
- Backend: Node.js, Express, PostgreSQL, Drizzle ORM, bcryptjs, jwt.
- Admin UI: React, Vite, Tailwind CSS, Axios.
graph TD
A[VS Code Extension / Webview UI] -->|Trigger Scan| B[Backend Server]
C[Admin UI] -->|API/Metrics| B
B -->|Orchestrate| D[11 Parallel AI Agents]
D -->|Raw Findings| E[ArmorClaw Validator]
E -->|Consolidate & Score| F[PostgreSQL Database]
CodeArmor calculates a security score out of 100 using a deduction-based formula:
Where deductions are:
- CRITICAL Findings: -15 points each (capped at -60)
- WARNING Findings: -5 points each (capped at -30)
- INFO Findings: -1 point each (capped at -10)
CodeArmor adopts a feature-based (domain-driven) folder structure to ensure scalability and maintainability:
codearmor/
├── backend/
│ └── src/
│ ├── features/
│ │ ├── admin/ # Admin-related APIs
│ │ ├── armoriq/ # ArmorIQ / ArmorClaw integration
│ │ ├── auth/ # Authentication APIs
│ │ └── scan/ # Security scanning orchestration
│ ├── db/ # Drizzle ORM setup and schema
│ └── agents/ # AI agent definitions
├── admin-ui/ # React UI for managing vulnerabilities
└── extension/ # VS Code extension and Webview UI
- Environment Setup:
Copy
.env.exampleto.envin thebackend/directory and configure keys. - Setup DB:
cd backend npm install npm run setup-db npm run create-admin - Run Backend:
npm run dev
- Run Admin UI:
cd ../admin-ui npm install npm run dev - Run Extension:
Open
extension/in VS Code and pressF5to start debugging.
CodeArmor's agents are powered by models with massive context windows (e.g., up to 2,000,000 tokens). This enables the system to:
- Handle entire medium-to-large codebases (150,000 to 300,000+ lines of code) in a single analysis context.
- Use dynamic exploration strategies (searching, listing, and targeted reading) to efficiently scan even larger enterprise repositories.
- Correlate vulnerabilities across multiple files and modules without "forgetting" earlier context, ensuring deep architectural understanding.
