{
  "Provider": "aws",
  "CheckID": "cloudformation_outputs_find_secrets",
  "CheckTitle": "Find secrets in CloudFormation outputs",
  "CheckType": [],
  "ServiceName": "cloudformation",
  "SubServiceName": "",
  "ResourceIdTemplate": "arn:partition:cloudformation:region:account-id:stack/resource-id",
  "Severity": "critical",
  "ResourceType": "AwsCloudFormationStack",
  "Description": "Find secrets in CloudFormation outputs",
  "Risk": "Secrets hardcoded into CloudFormation outputs can be used by malware and bad actors to gain lateral access to other services.",
  "RelatedUrl": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-secretsmanager-secret-generatesecretstring.html",
  "Remediation": {
    "Code": {
      "CLI": "https://docs.bridgecrew.io/docs/bc_aws_secrets_2#cli-command",
      "NativeIaC": "",
      "Other": "",
      "Terraform": ""
    },
    "Recommendation": {
      "Text": "Implement automated detective control to scan accounts for passwords and secrets. Use secrets manager service to store and retrieve passwords and secrets.",
      "Url": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-secretsmanager-secret-generatesecretstring.html"
    }
  },
  "Categories": [
    "secrets"
  ],
  "Tags": {
    "Tag1Key": "value",
    "Tag2Key": "value"
  },
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": "Infrastructure Protection"
}
