UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

54 lines (53 loc) 1.42 kB
rules: - id: aws-insecure-api-gateway-tls-version patterns: - pattern-either: - pattern: | resource "aws_api_gateway_domain_name" $ANYTHING { ... security_policy = "..." ... } - pattern: | resource "aws_apigatewayv2_domain_name" $ANYTHING { ... domain_name_configuration {...} ... } - pattern-not: | resource "aws_api_gateway_domain_name" $ANYTHING { ... security_policy = "TLS_1_2" ... } - pattern-not: | resource "aws_apigatewayv2_domain_name" $ANYTHING { ... domain_name_configuration { ... security_policy = "TLS_1_2" ... } } message: Detected AWS API Gateway to be using an insecure version of TLS. To fix this issue make sure to set "security_policy" equal to "TLS_1_2". languages: - terraform severity: WARNING metadata: cwe: - 'CWE-326: Inadequate Encryption Strength' owasp: - A03:2017 - Sensitive Data Exposure - A02:2021 - Cryptographic Failures category: security technology: - aws - terraform references: - https://owasp.org/Top10/A02_2021-Cryptographic_Failures subcategory: - vuln likelihood: MEDIUM impact: MEDIUM confidence: MEDIUM