forked from mirrors/kingfisher
- Use system TLS root certificates to support self-hosted GitLab instances with internal CAs
- Added new rule: Coze personal access token
This commit is contained in:
parent
8ff147c08c
commit
5931847300
4 changed files with 38 additions and 3 deletions
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [1.34.0]
|
||||
- Use system TLS root certificates to support self-hosted GitLab instances with internal CAs
|
||||
- Added new rule: Coze personal access token
|
||||
|
||||
## [1.33.0]
|
||||
- Fixed header precedence so custom HTTP validation headers like `Accept` are preserved
|
||||
- Added new Heroku rule
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ publish = false
|
|||
|
||||
[package]
|
||||
name = "kingfisher"
|
||||
version = "1.33.0"
|
||||
version = "1.34.0"
|
||||
description = "MongoDB's blazingly fast secret scanning and validation tool"
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
|
|
@ -82,9 +82,9 @@ reqwest = { version = "0.12", default-features = false, features = [
|
|||
"deflate",
|
||||
"stream",
|
||||
"rustls-tls",
|
||||
"rustls-tls-native-roots",
|
||||
"blocking",
|
||||
"multipart",
|
||||
"rustls-tls",
|
||||
] }
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ rules:
|
|||
\b
|
||||
(
|
||||
(?:AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)
|
||||
[0-9A-Z]{16}
|
||||
[2-7A-Z]{16}
|
||||
)
|
||||
\b
|
||||
min_entropy: 3.2
|
||||
|
|
|
|||
31
data/rules/coze.yml
Normal file
31
data/rules/coze.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
rules:
|
||||
- name: Coze Personal Access Token
|
||||
id: kingfisher.coze.1
|
||||
pattern: '(?i)\b(pat_[a-zA-Z0-9]{64})\b'
|
||||
confidence: medium
|
||||
min_entropy: 5.0
|
||||
validation:
|
||||
type: Http
|
||||
content:
|
||||
request:
|
||||
method: GET
|
||||
url: "https://api.coze.com/v1/workspaces?"
|
||||
headers:
|
||||
Authorization: "Bearer {{TOKEN}}"
|
||||
Content-Type: application/json
|
||||
response_matcher:
|
||||
- type: StatusMatch
|
||||
status: [200, 403] # API returns 403 for a valid token without permission to route
|
||||
- type: JsonValid
|
||||
- type: WordMatch
|
||||
words:
|
||||
- '"access token invalid"'
|
||||
- '"does not have permission"'
|
||||
negative: true
|
||||
references:
|
||||
- https://www.coze.com/docs/developer_guides/coze_api_overview
|
||||
- https://www.coze.com/docs/developer_guides/retrieve_files
|
||||
examples:
|
||||
- "pat_DlOG7fNcVfmw8cYhPWNcdfwrjjzwDr9EkV8EBjzHdgRWU2DzqHC1pPe0x590NN5f"
|
||||
- "pat_93QiTdIvZGuRCFcfGTQJJ1VIYZ9dNHanX88wKoMojwMk3tX5tKqfFtxUp0ux8CjI"
|
||||
- "pat_WvUTLYq5yZyaqegkyLSxXJMjXAJotjYEuC1sqT8daFlfwM3BiaRVJIZsER42DnhV"
|
||||
Loading…
Add table
Add a link
Reference in a new issue