UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

35 lines (34 loc) 821 B
rules: - id: aws-cloudtrail-encrypted-with-cmk patterns: - pattern: | resource "aws_cloudtrail" $ANYTHING { ... } - pattern-not-inside: | resource "aws_cloudtrail" $ANYTHING { ... kms_key_id = ... ... } message: >- Ensure CloudTrail logs are 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: - audit likelihood: LOW impact: LOW confidence: LOW languages: [hcl] severity: WARNING