22 lines
568 B
YAML
22 lines
568 B
YAML
|
id: hashicorp-api-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.yaml
|
||
|
- https://github.com/returntocorp/semgrep-rules/blob/develop/generic/secrets/gitleaks/hashicorp-tf-api-token.go
|
||
|
metadata:
|
||
|
verified: true
|
||
|
tags: hashicorp,file,keys
|
||
|
|
||
|
file:
|
||
|
- extensions:
|
||
|
- all
|
||
|
|
||
|
extractors:
|
||
|
- type: regex
|
||
|
part: body
|
||
|
regex:
|
||
|
- (?i)[a-z0-9]{14}\.atlasv1\.[a-z0-9\-_=]{60,70}
|