UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

47 lines (46 loc) 1.09 kB
rules: - id: gcp-compute-firewall-unrestricted-ingress-21 patterns: - pattern: resource - pattern-either: - pattern-inside: | resource "google_compute_firewall" "..." { ... allow { protocol = "tcp" ports = [21] } source_ranges = ["0.0.0.0/0"] ... } - pattern-inside: | resource "google_compute_firewall" "..." { ... allow { protocol = "tcp" ports = [..., "21", ...] } source_ranges = ["0.0.0.0/0"] ... } message: >- Ensure Google compute firewall ingress does not allow unrestricted FTP access metadata: owasp: - A05:2017 - Broken Access Control - A01:2021 - Broken Access Control cwe: - 'CWE-284: Improper Access Control' 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