Skip to content

Snyk API Token

ID: snyk-api-token

Severity: info

Author: DhiyaneshDK

Tags: snyk,exposure,tokens

id: snyk-api-token
info:
name: Snyk API Token
author: DhiyaneshDK
severity: info
reference:
- https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/snyk-api-token.go
- https://github.com/semgrep/semgrep-rules/blob/develop/generic/secrets/gitleaks/snyk-api-token.yaml
metadata:
verified: true
max-request: 1
tags: snyk,exposure,tokens
http:
- method: GET
path:
- "{{BaseURL}}"
extractors:
- type: regex
part: body
regex:
- (?i)(?:snyk_token|snyk_key|snyk_api_token|snyk_api_key|snyk_oauth_token)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:['|\"|\n|\r|\s|\x60|;]|$)
# digest: 4b0a00483046022100ca4acbf328bcdc8b1183b76503d7590091785f09ed6a2529fbf721686ae534a3022100d4db49977e590c2eabe5b4e9144ed0a591d0c2ac52963e4fbc0325197ab51d1a:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/tokens/synk/snyk-api-token.yaml"

View on Github