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
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rule = {
meta: {
id: 'SEC008',
category: 'security',
severity: 'medium',
message: 'Environment variable with hardcoded fallback',
fix: 'Remove hardcoded fallback values',
impact: 'Fallbacks can leak sensitive defaults and bypass environment-based security'
},
impl: {
patterns: [
{
ruleId: 'SEC008',
confidence: 0.75,
pattern: /process\.env\.\w+\s*\|\|\s*['"`][^'"`]+['"`]/gi,
message: 'Environment variable with hardcoded fallback',
severity: 'medium',
fix: 'Remove hardcoded fallback values'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx']
}
};
exports.default = rule;
//# sourceMappingURL=SEC008.js.map