id: ec2-detection

info:
  name: AWS EC2 Detection
  author: melbadry9
  severity: info
  description: Amazon Elastic Compute Cloud (EC2) detected.
  reference:
    - https://aws.amazon.com/ec2/
    - https://infosecwriteups.com/dangling-dns-aws-ec2-e2d801701e8
  classification:
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: dns,ec2,aws,discovery

dns:
  - name: "{{FQDN}}"
    type: CNAME

    extractors:
      - type: regex
        regex:
          - "ec2-[-\\d]+\\.compute[-\\d]*\\.amazonaws\\.com"
          - "ec2-[-\\d]+\\.[\\w\\d\\-]+\\.compute[-\\d]*\\.amazonaws\\.com"
# digest: 4a0a00473045022100bc33167ce23c800d73d18c3b8205110288deb3423dee4c1ac3c87af55ac23e5f022001beb32181ea78ac498f1af48c853673d078ba828bb289515f62b1cc18a73d95:922c64590222798bb761d5b6d8e72950