2025-11-15 08:11:25 -08:00
|
|
|
rules:
|
|
|
|
|
- name: MySQL URI with Credentials
|
|
|
|
|
id: kingfisher.mysql.1
|
|
|
|
|
pattern: |
|
|
|
|
|
(?xi)
|
|
|
|
|
(
|
|
|
|
|
mysql:\/\/
|
|
|
|
|
(?:
|
|
|
|
|
[a-z0-9._%+\-]+
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
(?:
|
|
|
|
|
[^\s:@]+
|
|
|
|
|
)
|
|
|
|
|
@
|
|
|
|
|
(?:
|
|
|
|
|
\[
|
|
|
|
|
[0-9a-f:.]+
|
|
|
|
|
\]
|
|
|
|
|
|
|
|
|
|
|
[a-z0-9.-]+
|
|
|
|
|
)
|
|
|
|
|
(?::
|
|
|
|
|
\d{2,5}
|
|
|
|
|
)?
|
|
|
|
|
(?:
|
|
|
|
|
\/
|
|
|
|
|
[^\s"'?:]+
|
|
|
|
|
)?
|
|
|
|
|
(?:
|
|
|
|
|
\?
|
|
|
|
|
[^\s"']*
|
|
|
|
|
)?
|
|
|
|
|
)
|
|
|
|
|
pattern_requirements:
|
|
|
|
|
ignore_if_contains:
|
2025-11-24 09:33:58 -08:00
|
|
|
- "****"
|
|
|
|
|
- "xxxx"
|
2026-01-01 22:24:57 -08:00
|
|
|
- "example"
|
2025-11-15 08:11:25 -08:00
|
|
|
min_entropy: 3.3
|
|
|
|
|
confidence: medium
|
|
|
|
|
examples:
|
|
|
|
|
- CONNECTION_URI="mysql://nimda:m42p!o@2wd@google.com:3306/elephant"
|
|
|
|
|
- mysql://user:pass@example.com:4406/app_db?ssl-mode=REQUIRED
|
|
|
|
|
validation:
|
|
|
|
|
type: MySQL
|
2026-02-02 23:22:08 -08:00
|
|
|
tls_mode: lax
|
2026-02-10 19:24:19 -08:00
|
|
|
references:
|
|
|
|
|
- https://dev.mysql.com/doc/refman/8.0/en/connecting.html
|