Chris 09242ce9c8 Add new Looker client ID and client secret rules (#1947) há 2 meses atrás
..
1password.go 23cb69fba4 feat(rules): Add 1Password secret key detection (#1834) há 9 meses atrás
adafruit.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
adobe.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
age.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
airtable.go c98e5e0d27 feat: add Airtable Personnal Access Token detection (#1952) há 2 meses atrás
algolia.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
alibaba.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
anthropic.go 72977e41b6 feat: add Anthropic API key detection (#1910) há 7 meses atrás
artifactory.go a044b815b3 feat: add artifactory reference token and api key detection (#1906) há 7 meses atrás
asana.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
atlassian.go ef8223700a fix(atlassian): reduce false-positives for v1 pattern (#1892) há 8 meses atrás
authress.go 83e99bacf1 feat(report): allow user-defined templates (#1650) há 1 ano atrás
aws.go 87d96295d6 feat: add Amazon Bedrock API key detection (#1935) há 4 meses atrás
azure.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
beamer.go 973c794cf0 chore(rules): include fps in reference (#1471) há 1 ano atrás
bitbucket.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
bittrex.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
clickhouse.go 9bc725786d Adding clickhouse scanner (#1826) há 10 meses atrás
clojars.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
cloudflare.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
codecov.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
cohere.go 1a2f656278 feat: add cohere rule (#1549) há 1 ano atrás
coinbase.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
config.tmpl 3821f30b06 Config min version (#1955) há 4 meses atrás
confluent.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
contentful.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
curl.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) há 10 meses atrás
databricks.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
datadog.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
definednetworking.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
digitalocean.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
discord.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
doppler.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
droneci.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
dropbox.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
duffel.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
dynatrace.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
easypost.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
etsy.go 83e99bacf1 feat(report): allow user-defined templates (#1650) há 1 ano atrás
facebook.go d88bc094f7 facebook keyword há 1 ano atrás
fastly.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
finicity.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
finnhub.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
flickr.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
flutterwave.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
flyio.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
frameio.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
freemius.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
freshbooks.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
gcp.go f6193bc92c feat(gcp): increase rule entropy (#1840) há 9 meses atrás
generic.go 782f310478 Archive support (#1872) há 8 meses atrás
github.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) há 10 meses atrás
gitlab.go 107a41827b Add support for GitLab Runner Tokens (Routable) (#1820) há 10 meses atrás
gitter.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
gocardless.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
grafana.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
harness.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
hashicorp.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
hashicorp_vault.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) há 10 meses atrás
heroku.go 6f251eef65 Added Heroku API Key New Version (#1883) há 8 meses atrás
hubspot.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
huggingface.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
infracost.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
intercom.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
intra42.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
jfrog.go f0d4499064 Add comma as operator for GenerateSemiGenericRegex (#1679) há 1 ano atrás
jwt.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
kraken.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
kubernetes.go 6f967cad68 fix(kubernetes): remove slow element from pat (#1848) há 9 meses atrás
kucoin.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
launchdarkly.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
linear.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
linkedin.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
lob.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
looker.go 09242ce9c8 Add new Looker client ID and client secret rules (#1947) há 2 meses atrás
mailchimp.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
mailgun.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
mapbox.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
mattermost.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
maxmind.go 3e8cd2d1ab Add MaxMind license key rule (#1771) há 10 meses atrás
meraki.go 3fdaefdaa3 fix(meraki): restrict keyword case (#1722) há 1 ano atrás
messagebird.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
netlify.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
newrelic.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
notion.go c5ccbb9468 Respect contexts with timeouts (#1948) há 3 meses atrás
npm.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
nuget.go cfdeb0d7e0 feat(rule): validate & sort rule when generating (#1817) há 10 meses atrás
nytimes.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
octopusdeploy.go 43fae355e6 feat(rules): create Octopus Deploy api key (#1602) há 1 ano atrás
okta.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
openai.go ddcc75371f implement new openai regex pattern (#1780) há 10 meses atrás
openshift.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
perplexity.go 7fb21a4e61 feat(rules): Add Perplexity AI API key detection (#1825) há 9 meses atrás
plaid.go 782f310478 Archive support (#1872) há 8 meses atrás
planetscale.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
postman.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
prefect.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
privateai.go 00bb82153e feat: add PrivateAI rule (#1548) há 1 ano atrás
privatekey.go 3fa5a3a954 Minor false positive improvements (#1758) há 1 ano atrás
pulumi.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
pypi.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
rapidapi.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
readme.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
rubygems.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
scalingo.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
sendbird.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
sendgrid.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
sendinblue.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
sentry.go 3fa5a3a954 Minor false positive improvements (#1758) há 1 ano atrás
settlemint.go f6966057f5 feat: add settlemint api keys detection (#1663) há 1 ano atrás
shippo.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
shopify.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
sidekiq.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
slack.go 9708e65c25 A first attempt adding hooks.slack.com/triggers/ (#1792) há 10 meses atrás
snyk.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
sonar.go a82bc53d89 feat: improve regex to detect Sonar tokens with prefixes (#1931) há 6 meses atrás
sourcegraph.go c6424a6fc3 added sourcegraph token rule (#1736) há 1 ano atrás
square.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
squarespace.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
stopwords.go e97695b852 feat(generic-api-key): exclude keywords (#1587) há 1 ano atrás
stripe.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
sumologic.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
teams.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
telegram.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
travisci.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
trello.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
twilio.go 3f4d91fc22 build: support either stdlib or 3rd-party regexp (#1706) há 1 ano atrás
twitch.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
twitter.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
typeform.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
yandex.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás
zendesk.go c11adc91ad Generate comprehensive secret samples (#1484) há 1 ano atrás

readme.go

package rules

import (
"github.com/zricethezav/gitleaks/v8/cmd/generate/config/utils"
"github.com/zricethezav/gitleaks/v8/cmd/generate/secrets"
"github.com/zricethezav/gitleaks/v8/config"
)

func ReadMe() *config.Rule {
// define rule
r := config.Rule{
RuleID: "readme-api-token",
Description: "Detected a Readme API token, risking unauthorized documentation management and content exposure.",
Regex: utils.GenerateUniqueTokenRegex(`rdme_[a-z0-9]{70}`, false),
Entropy: 2,
Keywords: []string{
"rdme_",
},
}

// validate
tps := utils.GenerateSampleSecrets("api-token", "rdme_"+secrets.NewSecret(utils.AlphaNumeric("70")))

fps := []string{
`const API_KEY = 'rdme_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';`,
}
return utils.Validate(r, tps, fps)
}