{
  "Provider": "aws",
  "CheckID": "ssm_document_secrets",
  "CheckTitle": "Find secrets in SSM Documents.",
  "CheckType": [],
  "ServiceName": "ssm",
  "SubServiceName": "",
  "ResourceIdTemplate": "arn:aws:ssm:region:account-id:document/document-name",
  "Severity": "critical",
  "ResourceType": "AwsSsmDocument",
  "Description": "Find secrets in SSM Documents.",
  "Risk": "Secrets hardcoded into SSM Documents 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": "",
      "NativeIaC": "",
      "Other": "",
      "Terraform": ""
    },
    "Recommendation": {
      "Text": "Implement automated detective control (e.g. using tools like Prowler) 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"
  ],
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": ""
}
