Json Yaml Transit Encryption Disabled
Description
Identifies AWS ElastiCache clusters defined in CloudFormation templates that do not have transit encryption enabled. When transit encryption is disabled, data transmitted between the cache nodes and client applications is not encrypted, potentially exposing sensitive information to unauthorized access during transmission.
Detection Strategy
• Examines CloudFormation resource definitions of type 'AWS::ElastiCache::CacheCluster'
• Checks if the TransitEncryptionEnabled property is either missing or set to false
• Reports a vulnerability when an ElastiCache cluster is configured without transit encryption, making data-in-transit vulnerable to interception
Vulnerable code example
Resources:
MyRedisCache:
Type: 'AWS::ElastiCache::CacheCluster'
Properties:
CacheNodeType: 'cache.t2.micro'
Engine: 'redis'
NumCacheNodes: '1'
TransitEncryptionEnabled: false # Vulnerable: Transit encryption disabled, data in transit not protected✅ Secure code example
Resources:
MyRedisCache:
Type: 'AWS::ElastiCache::CacheCluster'
Properties:
CacheNodeType: 'cache.t2.micro'
Engine: 'redis'
NumCacheNodes: '1'
TransitEncryptionEnabled: true # Enable in-transit encryption to protect data during transferSearch for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.