Configuration
Security features
Detection features are toggled via the features option (or remotely from the dashboard). Most are on by default; a few are opt-in to keep false positives low.
Enable or disable any feature explicitly:
initSilker({
features: {
sqliDetection: true,
xssDetection: true,
ssrfDetection: true, // inbound SSRF is opt-in
promptInjectionDetection: true,
dataLeakageDetection: { strategy: 'redact' },
},
});Core detection
rateLimitDefault: onLimits requests per IP (sliding window, default 60/min) to blunt brute-force and DoS.
sqliDetectionDefault: onDetects SQL injection patterns in query params, body, and headers.
xssDetectionDefault: onDetects cross-site scripting payloads in request input.
pathTraversalDetectionDefault: onBlocks directory-traversal attempts (e.g. ../etc/passwd).
ipBanningDefault: onAuto-bans IPs after detected attacks or limit breaches; bans sync across instances and the dashboard.
scannerTrapDetectionDefault: onHoneypot paths (/.env, /wp-login.php, /.git/config, /phpmyadmin...) bots probe before attacking. A hit is flagged as a Scanner Probe and - with ipBanning on - the IP is banned instantly. Near-zero false positives on Node/Next.
AI / LLM protection
promptInjectionDetectionDefault: onDetects attempts to manipulate LLM behavior - jailbreaks, instruction overrides, and context leaks.
OWASP Top 10
accessControlDetectionDefault: onA01: Broken Access Control. Flags privilege-escalation and unauthorized resource access.
cryptographicValidationDefault: onA02: Cryptographic Failures. Checks for weak crypto usage and sensitive data exposed in transit.
sqliDetection / xssDetectionDefault: onA03: Injection. SQL injection, XSS, and command-injection protection.
zeroTrustDetectionDefault: onA04: Insecure Design. Enforces zero-trust request-integrity checks.
securityHeadersValidationDefault: onA05: Security Misconfiguration. Validates CSP, HSTS, X-Frame-Options and flags defaults.
vulnerableComponentsDetectionDefault: onA06: Vulnerable & Outdated Components. Surfaces use of known-vulnerable dependencies (CVEs).
authenticationValidationDefault: onA07: Identification & Authentication Failures. Detects weak auth, credential stuffing, brute force.
softwareIntegrityValidationDefault: onA08: Software & Data Integrity Failures. Verifies integrity of updates, CI/CD, and critical flows.
auditLoggingDefault: onA09: Logging & Monitoring Failures. Ensures security events are logged and alertable.
ssrfDetectionOpt-inA10: SSRF (inbound). Blocks requests targeting internal networks and metadata services. Opt-in to avoid false positives; outbound fetch SSRF protection is on by default.
Advanced web security
csrfDetectionDefault: onVerifies Origin/Referer on state-changing requests.
idorDetectionDefault: onFlags Insecure Direct Object Reference access via predictable IDs.
hostHeaderInjectionDetectionDefault: onPrevents Host-header manipulation (cache poisoning, password-reset poisoning).
dataLeakageDetectionDefault: onScans responses for secrets and PII (API keys, credit cards, SSN/PESEL). Accepts a strategy: block, redact, or monitor.
sessionAnomaliesDetectionDefault: onBehavioral analysis for session hijacking and unusual user patterns.
apiSchemaValidationDefault: onValidates requests against expected API schemas/structures.
fileUploadDetectionDefault: onValidates uploaded file types/extensions and scans for malicious content.
thirdPartyDetectionDefault: onMonitors interactions with third-party APIs and services.
complianceDetectionDefault: onFlags GDPR/HIPAA and other regulatory violations.
threatIntelligenceDefault: onMatches IPs and signatures against threat-intelligence lists (extendable via threatIntel).
cloudCommunicationDefault: onSends sanitized security events to Silker Cloud for dashboard reporting and remote config.
disableLegacySecurity: true to skip the legacy web-security checks (CSRF, SSRF, IDOR, Host-header) and avoid duplicate work.