{
    "Provider": "aws",
    "CheckID": "ecs_task_definitions_no_environment_secrets",
    "CheckTitle": "Check if secrets exists in ECS task definitions environment variables",
    "CheckType": ["Protect", "Secure development", "Credentials not hard-coded"],
    "ServiceName": "ecs",
    "SubServiceName": "",
    "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
    "Severity": "critical",
    "ResourceType": "AwsEcsTaskDefinition",
    "Description": "Check if secrets exists in ECS task definitions environment variables",
    "Risk": "The use of a hard-coded password increases the possibility of password guessing. If hard-coded passwords are used; it is possible that malicious users gain access through the account in question.",
    "RelatedUrl": "",
    "Remediation": {
      "Code": {
        "CLI": "",
        "NativeIaC": "",
        "Other": "",
        "Terraform": ""
      },
      "Recommendation": {
        "Text": "Use Secrets Manager or Parameter Store to securely provide credentials to containers without hardcoding the secrets in code or passing them through environment variables.",
        "Url": "https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html"
      }
    },
    "Categories": [],
    "Tags": {
      "Tag1Key": "value",
      "Tag2Key": "value"
    },
    "DependsOn": [],
    "RelatedTo": [],
    "Notes": "",
    "Compliance": []
  }
