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