IAC - False Positive detection for AVD-AWS-0028 (aws_instance should activate session tokens for Instance Metadata Service) #5792
Closed
nishad-aliaqua
started this conversation in
False Detection
Replies: 1 comment
-
Hi @nishad-aliaqua ! I created issue #5793 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
IDs
AVD-AWS-0028
Description
Issue:
CFT defined with HttpTokens : required for configuring EC2 instance with IMDSv2 as defined in the below CFT sample shows FP detection for AVD-AWS-0028
Example CFT
AWSTemplateFormatVersion: 2010-09-09 Resources: LTnishad: Type: AWS::EC2::LaunchTemplate Properties: LaunchTemplateName: !Sub ${AWS::StackName}-launch-template-for-testing-cspm LaunchTemplateData: InstanceType: t2.micro SecurityGroupIds: - sg-0390a728fexxxd50ca KeyName: nishad-new-2022 ImageId: ami-026257f4f39c28af8 MetadataOptions: HttpEndpoint: enabled HttpPutResponseHopLimit: 1 HttpTokens: required TagSpecifications: - ResourceType: launch-template Tags: - Key: Name-new Value: nishad-test BastionInstance: Type: AWS::EC2::Instance Properties: LaunchTemplate: LaunchTemplateName: !Sub ${AWS::StackName}-launch-template-for-testing-cspm Version: 1 SubnetId: !Ref PublicSubnet UserData: Fn::Base64: !Sub | #!/bin/bash Tags: - Key: Name Value: !Sub '${AWS::StackName}'
Reproduction Steps
Target
Git Repository
Scanner
Misconfiguration
Target OS
No response
Debug Output
Version
Checklist
-f json
that shows data sources and confirmed that the security advisory in data sources was correctBeta Was this translation helpful? Give feedback.
All reactions