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 • 885 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rule = {
meta: {
id: 'SEC006',
category: 'security',
severity: 'high',
message: 'Hardcoded password detected',
fix: 'Use environment variables for passwords',
impact: 'Passwords in source code can be stolen by anyone with access to the codebase'
},
impl: {
patterns: [
{
ruleId: 'SEC006',
confidence: 0.85,
pattern: /password\s*[:=]\s*['"`][^'"`]+['"`]/gi,
message: 'Hardcoded password detected',
severity: 'high',
fix: 'Use environment variables for passwords'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env']
}
};
exports.default = rule;
//# sourceMappingURL=SEC006.js.map