vibe-guard
Version:
██ Vibe-Guard Security Scanner - 28 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, contain
44 lines • 1.74 kB
TypeScript
import { BaseRule, FileContent, SecurityIssue } from '../types';
export declare class InsecureErrorHandlingRule extends BaseRule {
readonly name = "insecure-error-handling";
readonly description = "Detects information disclosure in error handling and stack traces with context-aware analysis";
readonly severity: "medium";
private readonly errorPatterns;
private readonly safeErrorPatterns;
check(fileContent: FileContent): SecurityIssue[];
private analyzeContext;
private isSafeContext;
private calculateConfidence;
private calculateSeverity;
private detectLanguage;
private detectFramework;
private hasErrorHandling;
private hasSanitization;
private isInComment;
private isInTestFile;
private isInDocumentation;
private isInDevelopment;
private isFalsePositive;
private validateStackTraceExposure;
private validateStackTraceResponse;
private validateDatabaseErrorExposure;
private validateDatabaseSpecificError;
private validateFileSystemErrorExposure;
private validateNetworkErrorExposure;
private validateDetailedErrorExposure;
private validateErrorObjectLogging;
private validatePHPErrorLogging;
private validatePHPDebugOutput;
private validatePythonErrorLogging;
private validatePythonErrorPrinting;
private validateJavaErrorLogging;
private validateJavaErrorPrinting;
private validateRailsErrorLogging;
private validateSpringErrorLogging;
private validateDjangoErrorLogging;
private validateDetailedErrorResponse;
private validateErrorResponseSending;
private validateErrorTemplateRendering;
private generateSuggestion;
}
//# sourceMappingURL=insecure-error-handling.d.ts.map