From 678beef114aedf9f439d5ab1b7d1f51abf186f4f Mon Sep 17 00:00:00 2001 From: Luke Young Date: Fri, 30 Jan 2026 18:05:59 -0800 Subject: [PATCH] feat(neon): add Neon API Key rule --- data/rules/neon.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 data/rules/neon.yml diff --git a/data/rules/neon.yml b/data/rules/neon.yml new file mode 100644 index 0000000..2c7ee79 --- /dev/null +++ b/data/rules/neon.yml @@ -0,0 +1,31 @@ +rules: + - name: Neon API Key + id: kingfisher.neon.1 + pattern: | + (?x) + \b + ( + napi_ + [a-zA-Z0-9]{64} + ) + \b + min_entropy: 3.5 + confidence: high + examples: + - napi_f6n4wv0d0nzglfk64c1bnzrc5ug82tmrmekh8h4hsxeq8zd0p5ii234bdkah71kw + references: + - https://neon.com/docs/manage/api-keys + validation: + type: Http + content: + request: + headers: + Authorization: Bearer {{ TOKEN }} + Accept: application/json + method: GET + response_matcher: + - report_response: true + - status: + - 200 + type: StatusMatch + url: https://console.neon.tech/api/v2/auth