UNPKG

@sun-asterisk/sunlint

Version:

☀️ SunLint - Multi-language static analysis tool for code quality and security | Sun* Engineering Standards

42 lines (41 loc) 1.07 kB
{ "id": "S042", "name": "Require re-authentication for long-lived sessions or sensitive actions", "category": "security", "description": "S042 - Reduce the risk of session hijacking or privilege misuse by forcing re-authentication after long idle periods or before critical actions.", "severity": "error", "enabled": true, "semantic": { "enabled": true, "priority": "high", "fallback": "heuristic" }, "patterns": { "include": ["**/*.js", "**/*.ts", "**/*.jsx", "**/*.tsx"], "exclude": [ "**/*.test.js", "**/*.test.ts", "**/*.spec.js", "**/*.spec.ts", "**/node_modules/**", "**/dist/**", "**/build/**" ] }, "analysis": { "approach": "symbol-based-primary", "fallback": "regex-based", "depth": 1, "timeout": 4000 }, "validation": { "httpIndicators": [ "http://", "require('http')", "require(\"http\")", "http.createServer" ], "httpsModules": ["https", "tls"], "frameworks": ["express", "nextjs", "nuxtjs", "nestjs"] } }