diff --git a/crates/kingfisher-rules/data/rules/unkey.yml b/crates/kingfisher-rules/data/rules/unkey.yml index acbe47d..138f047 100644 --- a/crates/kingfisher-rules/data/rules/unkey.yml +++ b/crates/kingfisher-rules/data/rules/unkey.yml @@ -47,14 +47,11 @@ rules: id: kingfisher.unkey.2 pattern: | (?xi) - (?: - UNKEY(?:_API)?_KEY \s* [=:] \s* - | x-api-key \s* : \s* - | Authorization \s* : \s* Bearer \s+ - ) - ( - key_[A-Za-z0-9]{10,48} - ) + \b + unkey + (?:.|[\n\r]){0,32}? + (?:API_KEY|KEY|SECRET|TOKEN)? + (?:.|[\n\r]){0,16}? \b pattern_requirements: min_digits: 1