24 lines
609 B
YAML
24 lines
609 B
YAML
|
id: hashicorp-token
|
||
|
|
||
|
info:
|
||
|
name: Hashicorp API Token
|
||
|
author: DhiyaneshDK
|
||
|
severity: info
|
||
|
reference:
|
||
|
- https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/hashicorp-tf-api-token.go
|
||
|
- https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/hashicorp-tf-api-token.yaml
|
||
|
metadata:
|
||
|
max-request: 1
|
||
|
verified: true
|
||
|
tags: hashicorp,exposure,tokens
|
||
|
|
||
|
http:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}"
|
||
|
|
||
|
extractors:
|
||
|
- type: regex
|
||
|
part: body
|
||
|
regex:
|
||
|
- (?i)[a-z0-9]{14}\.atlasv1\.[a-z0-9\-_=]{60,70}
|