mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
30 lines (29 loc) • 706 B
YAML
rules:
- id: azure-functionapp-disallow-cors
patterns:
- pattern: |
["*"]
- pattern-inside: allowed_origins = ...
- pattern-inside: |
$RESOURCE "azurerm_function_app" "..." {
...
}
message: ensure that CORS disallows all resources to access Function app
languages: [hcl]
severity: WARNING
metadata:
owasp:
- A05:2021 - Security Misconfiguration
cwe:
- 'CWE-942: Permissive Cross-domain Policy with Untrusted Domains'
category: security
technology:
- terraform
- azure
references:
- https://owasp.org/Top10/A05_2021-Security_Misconfiguration
subcategory:
- audit
likelihood: LOW
impact: LOW
confidence: LOW