id: aws-ecs-container-agent-tasks

info:
  name: aws-ecs-container-agent-tasks
  author: dogasantos
  severity: info
  description: Aws container metadata content
  reference:
    - https://docs.aws.amazon.com/en_us/elasticbeanstalk/latest/dg/create_deploy_docker_ecstutorial.html#create_deploy_docker_ecstutorial_connect_inspect
  metadata:
    max-request: 2
  tags: miscellaneous,aws,docker,ec2,misc,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/v1/metadata"
      - "{{BaseURL}}/v1/tasks"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "arn:aws:ecs"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502201a1264f737b2b7fe3a47892f39dfd9cdd44208a5eae9c0a14b6270e8e69d7cbd02210083591e43bfd910eff33ac6713579f063f64161f35ab2d3c7b71143dc0c8d80ba:922c64590222798bb761d5b6d8e72950