UNPKG

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 901 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const rule = { meta: { id: 'SEC013', category: 'security', severity: 'medium', message: 'Stripe live publishable key exposed', fix: 'Use environment variable for Stripe keys', impact: 'Exposed payment keys can be used to initiate unauthorized transactions' }, impl: { patterns: [ { ruleId: 'SEC013', confidence: 0.9, pattern: /(['"`])(?:pk_live_[a-zA-Z0-9]{99})\1/gi, message: 'Stripe live publishable key exposed', severity: 'medium', fix: 'Use environment variable for Stripe keys' } ], fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env'] } }; exports.default = rule; //# sourceMappingURL=SEC013.js.map