UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

46 lines (45 loc) 1.2 kB
rules: - id: appservice-enable-https-only message: >- By default, clients can connect to App Service by using both HTTP or HTTPS. HTTP should be disabled enabling the HTTPS Only setting. patterns: - pattern: resource - pattern-not-inside: | resource "azurerm_app_service" "..." { ... https_only = true ... } - pattern-either: - pattern-inside: | resource "azurerm_app_service" "..." { ... } - pattern-inside: | resource "azurerm_app_service" "..." { ... https_only = false ... } metadata: cwe: - 'CWE-319: Cleartext Transmission of Sensitive Information' category: security technology: - terraform - azure references: - https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#https_only - https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-bindings#enforce-https owasp: - A03:2017 - Sensitive Data Exposure - A02:2021 - Cryptographic Failures subcategory: - vuln likelihood: MEDIUM impact: MEDIUM confidence: MEDIUM languages: [hcl] severity: ERROR