UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

38 lines (37 loc) 903 B
rules: - id: aws-ebs-snapshot-encrypted-with-cmk patterns: - pattern: | resource "aws_ebs_snapshot_copy" $ANYTHING { ... encrypted = true ... } - pattern-not-inside: | resource "aws_ebs_snapshot_copy" $ANYTHING { ... encrypted = true kms_key_id = ... ... } message: >- Ensure EBS Snapshot is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation. metadata: category: security technology: - terraform - aws owasp: - A03:2017 - Sensitive Data Exposure cwe: - 'CWE-320: CWE CATEGORY: Key Management Errors' references: - https://owasp.org/Top10/A02_2021-Cryptographic_Failures subcategory: - vuln likelihood: MEDIUM impact: MEDIUM confidence: MEDIUM languages: [hcl] severity: WARNING