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/crates/noseyparker/data/default/builtin/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: 4a0a00473045022060c7da5f04000e087cd8f3902cf61e562d111ede10e2e805c4aac30a6944c61802210091c114a127297013a120b22553b7e40c4ad0e5c44901db93337d581c8175c97b:922c64590222798bb761d5b6d8e72950