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.
28 lines • 954 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rule = {
meta: {
id: 'SEC015',
category: 'security',
severity: 'low',
message: 'Console statement found (may leak sensitive info)',
fix: 'Remove console statements before production',
impact: 'Console logs can expose sensitive data in browser developer tools'
},
impl: {
patterns: [
{
ruleId: 'SEC015',
confidence: 0.6,
pattern: /console\.(log|debug|info|warn|error)\(/gi,
message: 'Console statement found (may leak sensitive info)',
severity: 'low',
fix: 'Remove console statements before production'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro'],
skipPatterns: [/logger/i]
}
};
exports.default = rule;
//# sourceMappingURL=SEC015.js.map