[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