kingfisher/crates/kingfisher-rules/data/rules/clickhouse.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

2025-08-16 08:41:39 -07:00
rules:
- name: ClickHouse Cloud Secret Key
id: kingfisher.clickhouse.1
pattern: |
2026-03-09 20:11:58 -07:00
(?x)
2025-08-16 08:41:39 -07:00
\b
(
2026-03-09 20:11:58 -07:00
4b1d[a-zA-Z0-9]{38}
2025-08-16 08:41:39 -07:00
)
\b
pattern_requirements:
min_digits: 2
2026-03-09 20:11:58 -07:00
confidence: high
2025-08-16 08:41:39 -07:00
min_entropy: 3.5
examples:
- "4b1dwEZ8aNo1U9ODBqffSci1INBrltLHM2d1bHF4dq"
validation:
type: Http
content:
request:
method: GET
url: "https://api.clickhouse.cloud/v1/organizations"
headers:
Authorization: "Basic {{ CLICKHOUSE_ID | append: ':' | append: TOKEN | b64enc }}"
response_matcher:
- report_response: true
- type: StatusMatch
status: [200]
- type: WordMatch
words:
- '"id":'
- '"name":'
match_all_words: true
depends_on_rule:
- rule_id: "kingfisher.clickhouse.2"
variable: CLICKHOUSE_ID
references:
2026-02-10 19:24:19 -08:00
- https://clickhouse.com/docs/cloud/security/cloud-access-management/overview
2025-08-16 08:41:39 -07:00
- name: ClickHouse Cloud Key ID
id: kingfisher.clickhouse.2
pattern: |
(?xi)
\b
clickhouse
(?:.|[\n\r]){0,16}?
2025-08-16 14:54:01 -07:00
(?:ID|USER)
2025-08-16 08:41:39 -07:00
(?:.|[\n\r]){0,16}?
(
[a-z0-9]{20}
)
pattern_requirements:
min_digits: 2
2025-08-16 08:41:39 -07:00
confidence: medium
visible: false
min_entropy: 3.0
examples:
- "clickhouse_id = 4ywspD2Tb0gJh4QbLnDI"