schema_version = 1
detector_id = "github-refresh-token"
service = "github"
severity = "critical"
[[positive]]
text = "ghr_rH39afa0PHvEDg72PPnuryL5UP0ZUAPR44Bp"
credential = "ghr_rH39afa0PHvEDg72PPnuryL5UP0ZUAPR44Bp"
reason = "Canonical anchor + synthesized body satisfying detector's primary regex."
[[positive]]
text = "ghr_rH39afa0PHvEDg72PPnuryL5UP0ZUAPR44Bp=\"ghr_rH39afa0PHvEDg72PPnuryL5UP0ZUAPR44Bp\""
credential = "ghr_rH39afa0PHvEDg72PPnuryL5UP0ZUAPR44Bp"
reason = "Quoted-value variant of the canonical positive."
[[negative]]
text = "YOUR_API_KEY_HERE_PLACEHOLDER_VALUE"
reason = "Placeholder-keyword body — suppression gate matches PLACEHOLDER prefix."
[[negative]]
text = "ghr_rEXAMPLEEXAMPLER44Bp"
reason = "EXAMPLE token marker inside the body — suppression gate strips it."
[[evasion]]
text = "Authorization: Bearer ghr_rH39afa0PHvEDg72PPnuryL5UP0ZUAPR44Bp"
credential = "ghr_rH39afa0PHvEDg72PPnuryL5UP0ZUAPR44Bp"
reason = "Adversarial envelope — credential must still surface under this detector."
[perf]
fixture_bytes = 4096
max_microseconds = 25000
note = "Standard single-file budget."
[scale]
fixture_bytes = 1048576
min_findings = 1
max_seconds = 2.0
note = "1 MiB filler + planted credential."
readme_claim = "900 service-specific detectors"