id: aws-account-id

info:
  name: AWS Account ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/aws.yml
  metadata:
    verified: true
    max-request: 1
  tags: aws,amazon,token,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)aws_?(?:account)_?(?:id)?["''`]?\s{0,30}(?::|=>|=)\s{0,30}["''`]?([0-9]{4}-?[0-9]{4}-?[0-9]{4})'
# digest: 4a0a00473045022100ba6003b42588b598b404e803dd3ecccee7590b66430ec877dee5fce637c2f0ca022075aaf5c048a1d02e47e931e644bff240002ad8d965f625bd25bb832cfb65d2e2:922c64590222798bb761d5b6d8e72950