43 lines
1011 B
YAML
43 lines
1011 B
YAML
|
id: aws-credentials
|
||
|
|
||
|
info:
|
||
|
name: AWS Credentials - Detect
|
||
|
author: m4lwhere
|
||
|
severity: high
|
||
|
description: AWS credentials found via /.aws/credentials endpoint.
|
||
|
classification:
|
||
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
|
||
|
cvss-score: 9.4
|
||
|
cwe-id: CWE-200
|
||
|
reference: https://aws.amazon.com/blogs/security/what-to-do-if-you-inadvertently-expose-an-aws-access-key/
|
||
|
tags: config,exposure
|
||
|
metadata:
|
||
|
max-request: 1
|
||
|
|
||
|
http:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}/.aws/credentials"
|
||
|
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: word
|
||
|
words:
|
||
|
- "aws_access_key_id"
|
||
|
|
||
|
- type: dsl
|
||
|
dsl:
|
||
|
- "!contains(tolower(body), '<html')"
|
||
|
- "!contains(tolower(body), '<body')"
|
||
|
condition: and
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 200
|
||
|
extractors:
|
||
|
- type: regex
|
||
|
part: body
|
||
|
regex:
|
||
|
- "(A3T[A-Z0-9]|AKIA|AGPA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}"
|
||
|
- "([a-zA-Z0-9+/]{40})"
|