[detector]
id = "libsql-credentials"
name = "LibSQL Credentials"
service = "libsql"
severity = "high"
keywords = ["LIBSQL", "libsql://", "sqld", "SQLD_AUTH_TOKEN"]
[[detector.patterns]]
regex = "libsql://[a-zA-Z0-9._-]+(:\\d+)?"
description = "LibSQL remote URL (libsql:// protocol)"
[[detector.patterns]]
regex = "(?:LIBSQL[_-](?:URL|DATABASE|CONNECTION))[=:\\s\"'']+(libsql://[^\\s\"'']+)"
description = "LibSQL URL with context anchor"
group = 1
[[detector.patterns]]
regex = "(?:SQLD_AUTH_TOKEN|LIBSQL_AUTH_TOKEN)[=:\\s\"'']+([a-zA-Z0-9_-]{20,})"
description = "LibSQL auth token with context anchor"
group = 1