diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fdb88a..e0964dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. ## [1.22.0] -- Added rules for Google Gemini AI, Cohere, Stability.ai +- Added rules for Google Gemini AI, Cohere, Stability.ai, Replicate ## [1.21.0] - Improved Azure Storage rule diff --git a/data/rules/replicate.yml b/data/rules/replicate.yml new file mode 100644 index 0000000..5a20417 --- /dev/null +++ b/data/rules/replicate.yml @@ -0,0 +1,39 @@ +rules: + - name: Replicate API Token + id: kingfisher.replicate.1 + pattern: | # + (?x) + \b + ( + r8_ + [A-Za-z0-9]{37} + ) + \b + min_entropy: 3.0 + confidence: medium + examples: + - r8_WesXNvqsCpq7r1gpQABpB3NJvdR21nb2s7HVy + - r8_Lvn3Tsrs8H2wCYSEPDiUfyePqWpBOWi0vQTtN + - r8_XOpqpi4q9UADwsgrbEjCpT9p1cDldUu3t1D8R + - r8_ap8Mo5iTbW01FHJtElPrBUqf7fjz1r40EVrJu + references: + - https://replicate.com/docs/reference/http + validation: + type: Http + content: + request: + method: GET + url: https://api.replicate.com/v1/account + headers: + Authorization: Bearer {{ TOKEN }} + response_matcher: + - report_response: true + - type: StatusMatch + status: [200] + - type: JsonValid + - type: WordMatch + match_all_words: true + words: + - '"type"' + - '"username"' + - '"name"'