keyhog-core 0.5.4

keyhog-core — shared data model and detector specifications for the KeyHog secret scanner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Docs: https://github.com/Medium/medium-api-docs
# Format: 32-character hexadecimal string (integration token)
# Verify: GET /v1/me with Bearer token returns 200 and user data
# Prefix: none (32 char hex, requires context anchoring)

[detector]
id = "medium-api-token"
name = "Medium API Integration Token"
service = "medium"
severity = "medium"
keywords = ["medium", "MEDIUM", "integration_token", "MEDIUM_INTEGRATION_TOKEN"]

[[detector.patterns]]
regex = '''(?:medium|MEDIUM|integration[_-]?token|MEDIUM[_-]?INTEGRATION[_-]?TOKEN)[=:\s"\']+([a-f0-9]{32})'''
description = "Medium integration token with context anchor"
group = 1