-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathauthentication.json
More file actions
73 lines (72 loc) · 2.28 KB
/
Copy pathauthentication.json
File metadata and controls
73 lines (72 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[
{
"id": "auth-basic-header-suspicious",
"phase": 2,
"pattern": "(?i)Authorization: Basic\\s+[a-zA-Z0-9+/=]{0,}",
"targets": ["HEADERS"],
"severity": "LOW",
"action": "log",
"score": 2,
"description": "Log requests with potentially incomplete or suspicious Basic Authentication headers."
},
{
"id": "auth-jwt-no-signature",
"phase": 2,
"pattern": "^(?:[a-zA-Z0-9_-]+\\.){2}[a-zA-Z0-9_-]*$",
"targets": ["HEADERS:Authorization", "COOKIES"],
"severity": "HIGH",
"action": "log",
"score": 7,
"description": "Log JWT tokens without a signature (can be vulnerable to tampering)."
},
{
"id": "auth-jwt-algorithm-none",
"phase": 2,
"pattern": "(?i)\"alg\":\\s*\"none\"",
"targets": ["HEADERS:Authorization", "COOKIES"],
"severity": "HIGH",
"action": "block",
"score": 9,
"description": "Block JWT tokens using algorithm 'none' for signature, can be tampered with"
},
{
"id":"auth-weak-password-indicators",
"phase": 2,
"pattern": "(?i)(?:\\b(?:password|pwd|pass)\\b.*?(?:invalid|incorrect|not\\s+found))",
"targets": ["BODY"],
"severity": "LOW",
"action": "log",
"score": 2,
"description": "Log login responses that might indicate weak password handling."
},
{
"id":"auth-no-cookies-set",
"phase": 2,
"pattern":"^$",
"targets": ["HEADERS:Set-Cookie"],
"severity": "MEDIUM",
"action":"log",
"score": 4,
"description":"Log requests that should be setting a cookie but they are not"
},
{
"id":"auth-login-form-missing",
"phase": 2,
"pattern":"^$",
"targets": ["BODY"],
"severity":"LOW",
"action":"log",
"score": 3,
"description":"Log login requests that do not contain login form fields"
},
{
"id":"auth-session-cookie-not-http-only",
"phase":2,
"pattern":"(?i)(?:session|sid|token|auth)[^;]*?(?<!HttpOnly)(?=[;]|$)",
"targets": ["HEADERS:Set-Cookie"],
"severity": "MEDIUM",
"action": "log",
"score": 4,
"description": "Log session cookies that are not marked as HttpOnly"
}
]