vibe-guard
Version:
🛡️ Vibe-Guard Security Scanner - 25 essential security rules to catch vulnerabilities before they catch you! Zero dependencies, instant setup, works everywhere, optimized performance. Detects SQL injection, XSS, exposed secrets, CSRF, CORS issues, and mo
14 lines • 589 B
TypeScript
import { BaseRule, FileContent, SecurityIssue } from '../types';
export declare class CsrfProtectionRule extends BaseRule {
readonly name = "csrf-protection";
readonly description = "Detects missing CSRF protection and unsafe cookie configurations";
readonly severity: "high";
private readonly csrfPatterns;
private readonly cookiePatterns;
private readonly safePatterns;
check(fileContent: FileContent): SecurityIssue[];
private hasSafePatterns;
private isCommentOrTest;
private isDevelopmentContext;
}
//# sourceMappingURL=csrf-protection.d.ts.map