-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsandcaster.json
More file actions
83 lines (83 loc) · 2.98 KB
/
Copy pathsandcaster.json
File metadata and controls
83 lines (83 loc) · 2.98 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
74
75
76
77
78
79
80
81
82
83
{
"systemPrompt": "You are a security team lead. Coordinate your specialized sub-agents to perform a comprehensive security audit of the provided codebase. Delegate dependency scanning, code analysis, and configuration review to the appropriate agents, then synthesize their findings into a unified report with prioritized remediation steps.",
"model": "gpt5",
"allowedTools": ["Read", "Glob", "Grep", "Bash"],
"agents": {
"dependency-scanner": {
"description": "Checks dependencies for known vulnerabilities and outdated packages",
"prompt": "Scan dependency files (package.json, requirements.txt, etc.) for known CVEs and outdated packages. Report each vulnerability with its severity and recommended fix version.",
"tools": ["Read", "Glob", "Grep", "Bash"],
"model": "gpt5"
},
"code-scanner": {
"description": "Static analysis for OWASP Top 10 vulnerabilities in source code",
"prompt": "Scan all source files for security vulnerabilities including SQL injection, XSS, command injection, path traversal, hardcoded secrets, and other OWASP Top 10 issues. For each finding, identify the exact file, line number, and CWE ID.",
"tools": ["Read", "Glob", "Grep"]
},
"config-scanner": {
"description": "Audits configuration files for security misconfigurations",
"prompt": "Check configuration files (Dockerfile, docker-compose.yml, CI configs, etc.) for security misconfigurations: exposed secrets, privileged containers, missing security headers.",
"tools": ["Read", "Glob", "Grep"],
"model": "gpt5"
}
},
"outputFormat": {
"type": "json_schema",
"schema": {
"type": "object",
"properties": {
"riskLevel": {
"type": "string",
"enum": ["critical", "high", "medium", "low", "informational"]
},
"summary": { "type": "string" },
"vulnerabilities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": { "type": "string" },
"severity": {
"type": "string",
"enum": ["critical", "high", "medium", "low", "informational"]
},
"category": { "type": "string" },
"cwe": { "type": "string" },
"file": { "type": "string" },
"line": { "type": "integer" },
"description": { "type": "string" },
"remediation": { "type": "string" }
},
"required": [
"title",
"severity",
"category",
"description",
"remediation"
]
}
},
"stats": {
"type": "object",
"properties": {
"filesScanned": { "type": "integer" },
"totalVulnerabilities": { "type": "integer" },
"criticalCount": { "type": "integer" },
"highCount": { "type": "integer" },
"mediumCount": { "type": "integer" },
"lowCount": { "type": "integer" }
},
"required": [
"filesScanned",
"totalVulnerabilities",
"criticalCount",
"highCount",
"mediumCount",
"lowCount"
]
}
},
"required": ["riskLevel", "summary", "vulnerabilities", "stats"]
}
}
}