id: aws-config

info:
  name: AWS Configuration - Detect
  author: m4lwhere
  severity: medium
  description: AWS config found via /.aws/config.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
  tags: config,exposure,aws,credential,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.aws/config"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - 'aws_access_key_id\s*=\s*'
          - 'region\s*=\s*'

      - type: word
        part: body
        words:
          - '[default]'

      - type: status
        status:
          - 200
# digest: 490a00463044022027be8d7c9ba7e7ea81d6cff5ff3f0adc2e19946dd942553a8fb6a17d80a67c0b022056f7ed86a15236ccb45d3e3ed2377371ced0112092bb37b05c4177a92abcd687:922c64590222798bb761d5b6d8e72950