-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecurity-review.stim
More file actions
42 lines (34 loc) · 1.27 KB
/
security-review.stim
File metadata and controls
42 lines (34 loc) · 1.27 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
command security_review {
ask("What code files should be reviewed for security vulnerabilities?")
wait_for_response()
security_areas = [
"Input validation and sanitization",
"Authentication and authorization",
"SQL injection and NoSQL injection",
"Cross-site scripting (XSS)",
"Cross-site request forgery (CSRF)",
"Insecure direct object references",
"Security misconfiguration",
"Sensitive data exposure",
"Insufficient logging and monitoring",
"Using components with known vulnerabilities"
]
for area in security_areas {
ask("Review the code for: " + area)
wait_for_response()
}
ask("Check for hardcoded secrets, API keys, or passwords")
wait_for_response()
ask("Verify proper error handling that doesn't leak sensitive information")
wait_for_response()
ask("Review dependency versions for known vulnerabilities")
wait_for_response()
ask("Check for proper HTTPS enforcement and secure headers")
wait_for_response()
ask("Provide a security assessment report with:")
ask("1. Critical vulnerabilities found")
ask("2. Medium/low severity issues")
ask("3. Recommendations for fixes")
ask("4. Best practices to implement")
create_file("SECURITY_REVIEW.md", "security_assessment_report")
}