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 917 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const rule = { meta: { id: 'SEC012', category: 'security', severity: 'high', message: 'Stripe live secret key exposed', fix: 'CRITICAL: Move Stripe live keys to secure environment', impact: 'Live Stripe keys can be used to process payments and access customer data' }, impl: { patterns: [ { ruleId: 'SEC012', confidence: 0.95, pattern: /(['"`])(?:sk_live_[a-zA-Z0-9]{99})\1/gi, message: 'Stripe live secret key exposed', severity: 'high', fix: 'CRITICAL: Move Stripe live keys to secure environment' } ], fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env'] } }; exports.default = rule; //# sourceMappingURL=SEC012.js.map