id: amazon-account-id

info:
  name: Amazon Web Services Account ID - Detect
  author: DhiyaneshDK
  severity: info
  description: Amazon Web Services Account ID token was detected.
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/rules/aws.yml
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
  tags: file,keys,aws,amazon,token

file:
  - extensions:
      - all

    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})'

# Enhanced by md on 2023/05/04
# digest: 4b0a00483046022100fd01d278553caeee7ca21d53b69d495847fea3962e6297682130654c9df5f882022100a5e32f46318e269bf2a251fca7fc96a9975cdeef516171f4de2e06dc3c89def6:922c64590222798bb761d5b6d8e72950