audit_security_vulnerabilities
Audit code snippets for hardcoded secrets, SQL/Command injection, weak CORS, missing sanitization, and insecure JWT usage to identify and fix security risks.
Instructions
Performs defensive security audits on code snippets to detect hardcoded secrets/API keys, SQL/Command injection risks, weak CORS headers, missing sanitization, and insecure JWT usage.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code_snippet": "<code_snippet>"
},
"name": "audit_security_vulnerabilities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code_snippet | Yes | Code snippet or file content to audit for security risks | |
| language_or_framework | No | Language or framework (e.g., 'JavaScript', 'Python', 'SQL', 'React', 'Express') |