keyhog-core 0.5.4

keyhog-core — shared data model and detector specifications for the KeyHog secret scanner
Documentation
# Docs: https://smartproxy.com/documentation
# Format: Username:password for proxy authentication (no API key format)
# Verify: Basic auth request to proxy endpoint
# Prefix: none (user-defined username)

[detector]
id = "smartproxy-credentials"
name = "Smartproxy Credentials"
service = "smartproxy"
severity = "critical"
keywords = ["smartproxy", "SMARTPROXY", "smart_proxy", "us.smartproxy.com"]

[[detector.patterns]]
regex = "(?:smartproxy|SMARTPROXY)[_\\s]*(?:user|username)[=:\\s\"'']+([a-zA-Z0-9_-]+)"
description = "Smartproxy username with context anchor"
group = 1

[[detector.patterns]]
regex = "(?:smartproxy|SMARTPROXY)[_\\s]*(?:pass|password)[=:\\s\"'']+([a-zA-Z0-9_-]+)"
description = "Smartproxy password with context anchor"
group = 1

[[detector.companions]]
name = "smartproxy_username"
regex = "(?:smartproxy|SMARTPROXY)[_\\s]*(?:user|username)[=:\\s\"'']+[a-zA-Z0-9_-]+"
within_lines = 5