2023-10-24 04:26:17 +00:00
|
|
|
id: aws-detect
|
|
|
|
|
|
|
|
info:
|
2023-11-19 08:08:48 +00:00
|
|
|
name: AWS Service - Detect
|
2023-10-24 04:26:17 +00:00
|
|
|
author: 6mile
|
|
|
|
severity: info
|
2023-11-19 08:08:48 +00:00
|
|
|
description: Detect if AWS is being used in the application.
|
2023-10-24 04:26:17 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/6mile/cloud-headers
|
|
|
|
classification:
|
|
|
|
cwe-id: CWE-200
|
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-11-19 08:08:48 +00:00
|
|
|
tags: tech,aws,amazon,alb,cloudfront,codebuild,gateway,xray,captcha,dynamodb,kms
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
|
|
|
|
|
|
|
host-redirects: true
|
|
|
|
max-redirects: 3
|
2023-11-19 08:30:54 +00:00
|
|
|
|
2023-10-24 04:26:17 +00:00
|
|
|
matchers-condition: or
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2023-11-19 08:08:48 +00:00
|
|
|
name: aws-service
|
2023-10-24 04:26:17 +00:00
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'X-Amz-Content-Sha256:'
|
|
|
|
- 'X-Amz-Date:'
|
|
|
|
- 'X-Amz-Version-Id:'
|
|
|
|
- 'X-Amz-Id-2:'
|
|
|
|
- 'X-Amz-Delete-Marker:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-alb
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'Server: awselb/2.0'
|
|
|
|
- 'Set-Cookie: AWSALB='
|
|
|
|
- 'Set-Cookie: AWSALBCORS='
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-cloudfront
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'X-Amz-Cf-Id:'
|
|
|
|
- 'X-Amz-Cf-Pop:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: dsl
|
|
|
|
name: aws-cloudfront
|
|
|
|
dsl:
|
|
|
|
- "contains(tolower(header), 'x-cache: hit from cloudfront')"
|
|
|
|
- "contains(tolower(header), 'x-cache: refreshhit from cloudfront')"
|
|
|
|
- "contains(tolower(header), 'x-cache: miss from cloudfront')"
|
|
|
|
- "contains(tolower(header), 'x-cache: error from cloudfront')"
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-codebuild
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "arn: arn:aws:codebuild"
|
|
|
|
- 'X-Amz-Meta-Codebuild-Buildarn:'
|
|
|
|
- 'X-Amz-Meta-Codebuild-Content-Sha256:'
|
|
|
|
- 'X-Amz-Meta-Codebuild-Content-Md5:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-api-gateway
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'X-Amz-Apigw-Id:'
|
|
|
|
- 'X-Amzn-Requestid:'
|
|
|
|
- 'X-Amzn-Errortype: MissingAuthenticationTokenException'
|
2023-10-24 05:41:05 +00:00
|
|
|
- 'X-Amzn-Remapped-Connection:'
|
|
|
|
- 'X-Amzn-Remapped-Content-Length:'
|
|
|
|
- 'X-Amzn-Remapped-Date:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-kms
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'X-Amz-Server-Side-Encryption:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-xray
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'X-Amzn-Trace-Id:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-waf-captcha
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'X-Amzn-Waf-Action:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-10-24 04:26:17 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
name: aws-dynamodb
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- 'X-Amz-Crc32:'
|
|
|
|
- 'X-Amz-Target:'
|
2023-11-19 08:08:48 +00:00
|
|
|
condition: or
|
|
|
|
case-insensitive: true
|
2023-11-20 05:10:39 +00:00
|
|
|
|
|
|
|
# digest: 4a0a00473045022100e2ace673ed88fa77d9fec8b7907b9cc284a8bfe6f324f7ee76f704ad3509109302204cb221bb8326582bf6fc0e1244f4f1e6f395e1dfe7f56d1d6c04986a52584d82:922c64590222798bb761d5b6d8e72950
|