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 • 887 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rule = {
meta: {
id: 'SEC005',
category: 'security',
severity: 'high',
message: 'Supabase key hardcoded in variable',
fix: 'Use process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY',
impact: 'Database credentials in code can be extracted and misused'
},
impl: {
patterns: [
{
ruleId: 'SEC005',
confidence: 0.9,
pattern: /supabaseKey\s*[:=]\s*['"`][^'"`]+['"`]/gi,
message: 'Supabase key hardcoded in variable',
severity: 'high',
fix: 'Use process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro']
}
};
exports.default = rule;
//# sourceMappingURL=SEC005.js.map