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: 'SEC011',
category: 'security',
severity: 'high',
message: 'GitHub token exposed',
fix: 'Use environment variables for GitHub tokens',
impact: 'GitHub tokens allow access to repositories and can be used for supply chain attacks'
},
impl: {
patterns: [
{
ruleId: 'SEC011',
confidence: 0.95,
pattern: /(['"`])(?:gh[pousr]_[A-Za-z0-9_]{36,})\1/gi,
message: 'GitHub token exposed',
severity: 'high',
fix: 'Use environment variables for GitHub tokens'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env']
}
};
exports.default = rule;
//# sourceMappingURL=SEC011.js.map