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

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: 4a0a0047304502203180577104674d19902b80478b2afecec63a5546a9ab700891c83fb14852591402210099e94d05c13695333faaf16a33b5054d4764979d22af5b51453be29fb9b514ae:922c64590222798bb761d5b6d8e72950