| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- {
- "$schema": "https://json.schemastore.org/sarif-2.1.0.json",
- "version": "2.1.0",
- "runs": [
- {
- "tool": {
- "driver": {
- "name": "gitleaks",
- "semanticVersion": "v8.0.0",
- "informationUri": "https://github.com/gitleaks/gitleaks",
- "rules": [
- {
- "id": "aws-access-key",
- "name": "AWS Access Key",
- "shortDescription": {
- "text": "(A3T[A-Z0-9]|AKIA|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{16}"
- }
- },
- {
- "id": "aws-secret-key",
- "name": "AWS Secret Key",
- "shortDescription": {
- "text": "(?i)aws_(.{0,20})?=?.[\\'\\\"0-9a-zA-Z\\/+]{40}"
- }
- },
- {
- "id": "aws-mws-key",
- "name": "AWS MWS key",
- "shortDescription": {
- "text": "amzn\\.mws\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
- }
- },
- {
- "id": "facebook-secret-key",
- "name": "Facebook Secret Key",
- "shortDescription": {
- "text": "(?i)(facebook|fb)(.{0,20})?(?-i)['\\\"][0-9a-f]{32}['\\\"]"
- }
- },
- {
- "id": "facebook-client-id",
- "name": "Facebook Client ID",
- "shortDescription": {
- "text": "(?i)(facebook|fb)(.{0,20})?['\\\"][0-9]{13,17}['\\\"]"
- }
- },
- {
- "id": "twitter-secret-key",
- "name": "Twitter Secret Key",
- "shortDescription": {
- "text": "(?i)twitter(.{0,20})?['\\\"][0-9a-z]{35,44}['\\\"]"
- }
- },
- {
- "id": "twitter-client-id",
- "name": "Twitter Client ID",
- "shortDescription": {
- "text": "(?i)twitter(.{0,20})?['\\\"][0-9a-z]{18,25}['\\\"]"
- }
- },
- {
- "id": "github-pat",
- "name": "Github Personal Access Token",
- "shortDescription": {
- "text": "ghp_[0-9a-zA-Z]{36}"
- }
- },
- {
- "id": "github-oauth",
- "name": "Github OAuth Access Token",
- "shortDescription": {
- "text": "gho_[0-9a-zA-Z]{36}"
- }
- },
- {
- "id": "github-app",
- "name": "Github App Token",
- "shortDescription": {
- "text": "(ghu|ghs)_[0-9a-zA-Z]{36}"
- }
- },
- {
- "id": "github-refresh",
- "name": "Github Refresh Token",
- "shortDescription": {
- "text": "ghr_[0-9a-zA-Z]{76}"
- }
- },
- {
- "id": "linkedin-client",
- "name": "LinkedIn Client ID",
- "shortDescription": {
- "text": "(?i)linkedin(.{0,20})?(?-i)[0-9a-z]{12}"
- }
- },
- {
- "id": "linkedin-secret",
- "name": "LinkedIn Secret Key",
- "shortDescription": {
- "text": "(?i)linkedin(.{0,20})?[0-9a-z]{16}"
- }
- },
- {
- "id": "slack",
- "name": "Slack",
- "shortDescription": {
- "text": "xox[baprs]-([0-9a-zA-Z]{10,48})?"
- }
- },
- {
- "id": "apkey",
- "name": "Asymmetric Private Key",
- "shortDescription": {
- "text": "-----BEGIN ((EC|PGP|DSA|RSA|OPENSSH) )?PRIVATE KEY( BLOCK)?-----"
- }
- },
- {
- "id": "google",
- "name": "Google (GCP) Service Account",
- "shortDescription": {
- "text": "\"type\": \"service_account\""
- }
- },
- {
- "id": "google",
- "name": "Google (GCP) Service Account",
- "shortDescription": {
- "text": "\"type\": \"service_account\""
- }
- },
- {
- "id": "heroku",
- "name": "Heroku API key",
- "shortDescription": {
- "text": "(?i)heroku(.{0,20})?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
- }
- },
- {
- "id": "mailchimp",
- "name": "MailChimp API key",
- "shortDescription": {
- "text": "(?i)(mailchimp|mc)(.{0,20})?[0-9a-f]{32}-us[0-9]{1,2}"
- }
- },
- {
- "id": "mailgun",
- "name": "Mailgun API key",
- "shortDescription": {
- "text": "((?i)(mailgun|mg)(.{0,20})?)?key-[0-9a-z]{32}"
- }
- },
- {
- "id": "paypal",
- "name": "PayPal Braintree access token",
- "shortDescription": {
- "text": "access_token\\$production\\$[0-9a-z]{16}\\$[0-9a-f]{32}"
- }
- },
- {
- "id": "piacatic",
- "name": "Picatic API key",
- "shortDescription": {
- "text": "sk_live_[0-9a-z]{32}"
- }
- },
- {
- "id": "sendgrid",
- "name": "SendGrid API Key",
- "shortDescription": {
- "text": "SG\\.[\\w_]{16,32}\\.[\\w_]{16,64}"
- }
- },
- {
- "id": "sidekiq-secret",
- "name": "Sidekiq Secret",
- "shortDescription": {
- "text": "(?i)(?:BUNDLE_ENTERPRISE__CONTRIBSYS__COM|BUNDLE_GEMS__CONTRIBSYS__COM)(?:[0-9a-z\\-_\\t .]{0,20})(?:[\\s|']|[\\s|\"]){0,3}(?:=|\u003e|:=|\\|\\|:|\u003c=|=\u003e|:)(?:'|\\\"|\\s|=|\\x60){0,5}([a-f0-9]{8}:[a-f0-9]{8})(?:['|\\\"|\\n|\\r|\\s|\\x60|;]|$)"
- }
- },
- {
- "id": "sidekiq-sensitive-url",
- "name": "Sidekiq Sensitive URL",
- "shortDescription": {
- "text": "(?i)\\b(http(?:s??):\\/\\/)([a-f0-9]{8}:[a-f0-9]{8})@(?:gems.contribsys.com|enterprise.contribsys.com)(?:[\\/|\\#|\\?|:]|$)"
- }
- },
- {
- "id": "slack-webhook",
- "name": "Slack Webhook",
- "shortDescription": {
- "text": "https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8,12}/[a-zA-Z0-9_]{24}"
- }
- },
- {
- "id": "stripe",
- "name": "Stripe API key",
- "shortDescription": {
- "text": "(?i)stripe(.{0,20})?[sr]k_live_[0-9a-zA-Z]{24}"
- }
- },
- {
- "id": "square",
- "name": "Square access token",
- "shortDescription": {
- "text": "sq0atp-[0-9A-Za-z\\-_]{22}"
- }
- },
- {
- "id": "square-oauth",
- "name": "Square OAuth secret",
- "shortDescription": {
- "text": "sq0csp-[0-9A-Za-z\\-_]{43}"
- }
- },
- {
- "id": "twilio",
- "name": "Twilio API key",
- "shortDescription": {
- "text": "(?i)twilio(.{0,20})?SK[0-9a-f]{32}"
- }
- },
- {
- "id": "dynatrace",
- "name": "Dynatrace ttoken",
- "shortDescription": {
- "text": "dt0[a-zA-Z]{1}[0-9]{2}\\.[A-Z0-9]{24}\\.[A-Z0-9]{64}"
- }
- },
- {
- "id": "shopify",
- "name": "Shopify shared secret",
- "shortDescription": {
- "text": "shpss_[a-fA-F0-9]{32}"
- }
- },
- {
- "id": "shopify-access",
- "name": "Shopify access token",
- "shortDescription": {
- "text": "shpat_[a-fA-F0-9]{32}"
- }
- },
- {
- "id": "shopify-custom",
- "name": "Shopify custom app access token",
- "shortDescription": {
- "text": "shpca_[a-fA-F0-9]{32}"
- }
- },
- {
- "id": "shopify-private",
- "name": "Shopify private app access token",
- "shortDescription": {
- "text": "shppa_[a-fA-F0-9]{32}"
- }
- },
- {
- "id": "pypi",
- "name": "PyPI upload token",
- "shortDescription": {
- "text": "pypi-AgEIcHlwaS5vcmc[A-Za-z0-9-_]{50,1000}"
- }
- }
- ]
- }
- },
- "results": [
- {
- "message": {
- "text": "test-rule has detected secret for file auth.py at commit 0000000000000000."
- },
- "ruleId": "test-rule",
- "locations": [
- {
- "physicalLocation": {
- "artifactLocation": {
- "uri": "auth.py"
- },
- "region": {
- "startLine": 1,
- "startColumn": 1,
- "endLine": 2,
- "endColumn": 2,
- "snippet": {
- "text": "a secret"
- }
- }
- }
- }
- ],
- "partialFingerprints": {
- "commitSha": "0000000000000000",
- "email": "johndoe@gmail.com",
- "author": "John Doe",
- "date": "10-19-2003",
- "commitMessage": "opps"
- }
- }
- ]
- }
- ]
- }
|