UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

54 lines (53 loc) 1.38 kB
rules: - id: gcp-compute-ssl-policy patterns: - pattern: resource - pattern-either: - pattern-inside: | resource "google_compute_ssl_policy" "..." { ... profile = "MODERN" ... } - pattern-inside: | resource "google_compute_ssl_policy" "..." { ... profile = "CUSTOM" custom_features = [..., "TLS_RSA_WITH_AES_256_GCM_SHA384", ...] ... } - pattern-not-inside: | resource "google_compute_ssl_policy" "..." { ... profile = "MODERN" min_tls_version = "TLS_1_2" ... } - pattern-not-inside: | resource "google_compute_ssl_policy" "..." { ... profile = "CUSTOM" custom_features = ["TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"] ... } message: >- Ensure no HTTPS or SSL proxy load balancers permit SSL policies with weak cipher suites metadata: owasp: - A03:2017 - Sensitive Data Exposure - A02:2021 - Cryptographic Failures cwe: - 'CWE-326: Inadequate Encryption Strength' category: security technology: - terraform - gcp references: - https://docs.bridgecrew.io/docs/google-cloud-policy-index subcategory: - audit likelihood: LOW impact: LOW confidence: LOW languages: [hcl] severity: WARNING