schema_version = 1
detector_id = "libsql-credentials"
service = "libsql"
severity = "high"
[[positive]]
text = "libsql://myapp-db-a1b2c3d4.turso.io"
credential = "myapp-db-a1b2c3d4.turso.io"
reason = "Canonical Turso remote URL (libsql:// scheme + alphanumeric database host)."
[[positive]]
text = "SQLD_AUTH_TOKEN=aB3dEf6gH9jK2mN5pQ8rS1tU4vW7xY0z"
credential = "aB3dEf6gH9jK2mN5pQ8rS1tU4vW7xY0z"
reason = "SQLD_AUTH_TOKEN context anchor + 32-char alphanumeric auth token."
[[negative]]
text = "libsql://YOUR_API_KEY_HERE_PLACEHOLDER_VALUE"
reason = "Placeholder-keyword body (suppression gate matches PLACEHOLDER prefix)."
[[negative]]
text = "SQLD_AUTH_TOKEN=aB3dEf6gH9jEXAMPLE2mN5pQ8rS1tU4vW"
reason = "EXAMPLE marker inside the token body (suppression strips example tokens)."
[[evasion]]
text = "libsql://myapp-db-a1b2c3d4.turso.io"
credential = "myapp-db-a1b2c3d4.turso.io"
reason = "Adversarial header_bare 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."