keyhog-core 0.2.1

Core types, traits, and detector specs for the secret scanner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Docs: https://apidocs.hashnode.com/
# Format: Personal Access Token (PAT) - alphanumeric string for GraphQL API
# Verify: POST to gql.hashnode.com with Authorization header
# Prefix: none (requires context anchoring)

[detector]
id = "hashnode-api-token"
name = "Hashnode Personal Access Token"
service = "hashnode"
severity = "medium"
keywords = ["hashnode", "HASHNODE", "pat", "personal_access_token"]

[[detector.patterns]]
regex = '''(?:hashnode|HASHNODE|personal[_-]?access[_-]?token|HASHNODE[_-]?TOKEN)[=:\s"\']+([a-f0-9]{32,})'''
description = "Hashnode Personal Access Token with context anchor"
group = 1