UNPKG

ubon

Version:

Security scanner for AI-generated apps (Cursor, Lovable, Windsurf, v0). Catches hardcoded secrets, prompt injection, hallucinated imports, Server Actions / Edge runtime mistakes, and the vibe-coded vulnerabilities traditional linters miss.

27 lines 891 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const rule = { meta: { id: 'SEC007', category: 'security', severity: 'high', message: 'Database URL hardcoded', fix: 'Use environment variable for database connection', impact: 'Database credentials allow complete access to your data if compromised' }, impl: { patterns: [ { ruleId: 'SEC007', confidence: 0.85, pattern: /DATABASE_URL\s*[:=]\s*['"`][^'"`]+['"`]/gi, message: 'Database URL hardcoded', severity: 'high', fix: 'Use environment variable for database connection' } ], fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env'] } }; exports.default = rule; //# sourceMappingURL=SEC007.js.map