[detector]
id = "bitquery-api-key"
name = "Bitquery API Key"
service = "bitquery"
severity = "high"
keywords = ["bitquery", "BITQUERY", "api_key", "apikey"]
[[detector.patterns]]
regex = "(?:BITQUERY|bitquery)[_a-zA-Z0-9]*[=:\\s\"'']+([a-f0-9]{32})"
description = "Bitquery API key with context anchor"
group = 1
[detector.verify]
method = "POST"
url = "https://graphql.bitquery.io"
body = '{"query": "{ bitcoin { blocks { count } } }"}'
[detector.verify.auth]
type = "header"
name = "X-API-KEY"
template = "{{match}}"
[detector.verify.success]
status = 200