Richard Gomez 961f2e674f feat(generic-api-key): tune false positives (#1606) há 1 ano atrás
..
1password.go 93acc6e82a feat(rules): add 1password token (#1583) há 1 ano atrás
adafruit.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
adobe.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
age.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
airtable.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
algolia.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
alibaba.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
asana.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
atlassian.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
authress.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
aws.go 9152eaa57a feat(aws): add entropy & allowlist (#1582) há 1 ano atrás
azure.go 8fb39ba8dc feat(azure): detect Azure AD client secrets (#1199) há 1 ano atrás
beamer.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
bitbucket.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
bittrex.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
clojars.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
cloudflare.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
codecov.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
cohere.go 1a2f656278 feat: add cohere rule (#1549) há 1 ano atrás
coinbase.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
config.tmpl 2db25f1367 feat(config): ignore swagger-ui assets (#1604) há 1 ano atrás
confluent.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
contentful.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
curl.go 7206d6bc56 feat(curl): tweak tps and fps (#1603) há 1 ano atrás
databricks.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
datadog.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
definednetworking.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
digitalocean.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
discord.go 8cfa6b2e43 fix(rules): add entropy (#1580) há 1 ano atrás
doppler.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
droneci.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
dropbox.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
duffel.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
dynatrace.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
easypost.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
etsy.go 9e06824372 Restrict Etsy keywords (#1491) há 1 ano atrás
facebook.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
fastly.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
finicity.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
finnhub.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
flickr.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
flutterwave.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
flyio.go 78f7d3f5df feat: create fly.io rule (#1528) há 1 ano atrás
frameio.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
freshbooks.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
gcp.go df126a7473 feat(gcp): update api key rule (#1481) há 1 ano atrás
generic.go 961f2e674f feat(generic-api-key): tune false positives (#1606) há 1 ano atrás
github.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
gitlab.go 8cfa6b2e43 fix(rules): add entropy (#1580) há 1 ano atrás
gitter.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
gocardless.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
grafana.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
harness.go e93a7c0d26 Update Harness rules to add _ and - in the account ID part. (#1503) há 1 ano atrás
hashicorp.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
hashicorp_vault.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
heroku.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
hubspot.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
huggingface.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
infracost.go 8cfa6b2e43 fix(rules): add entropy (#1580) há 1 ano atrás
intercom.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
intra42.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
jfrog.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
jwt.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
kraken.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
kubernetes.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
kucoin.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
launchdarkly.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
linear.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
linkedin.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
lob.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mailchimp.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mailgun.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mapbox.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
mattermost.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
messagebird.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
netlify.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
newrelic.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
npm.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
nuget.go aabe381539 Define multiple allowlists per rule (#1496) há 1 ano atrás
nytimes.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
okta.go 0afb525e59 feat(okta): bump entropy to 4 (#1599) há 1 ano atrás
openai.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
openshift.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
plaid.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
planetscale.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
postman.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
prefect.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
privateai.go 00bb82153e feat: add PrivateAI rule (#1548) há 1 ano atrás
privatekey.go bf8a49fc29 Make private key check less greedy and include fifth dash (#1440) há 1 ano atrás
pulumi.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
pypi.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
rapidapi.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
readme.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
rubygems.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
scalingo.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
sendbird.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
sendgrid.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
sendinblue.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
sentry.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
shippo.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
shopify.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
sidekiq.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
slack.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
snyk.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
square.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
squarespace.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
stopwords.go e97695b852 feat(generic-api-key): exclude keywords (#1587) há 1 ano atrás
stripe.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
sumologic.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
teams.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
telegram.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
travisci.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
trello.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
twilio.go 455ae0aab7 More rule fixes (#1586) há 1 ano atrás
twitch.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
twitter.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
typeform.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
yandex.go bd81872eee Make config generation utils public (#1480) há 1 ano atrás
zendesk.go bd81872eee Make config generation utils public (#1480) 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 := []string{
utils.GenerateSampleSecret("api-token", "rdme_"+secrets.NewSecret(utils.AlphaNumeric("70"))),
}
fps := []string{
`const API_KEY = 'rdme_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';`,
}
return utils.Validate(r, tps, fps)
}