-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrules.yaml
More file actions
311 lines (283 loc) · 9.76 KB
/
Copy pathrules.yaml
File metadata and controls
311 lines (283 loc) · 9.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
rules:
# ===================
# Private Keys
# ===================
- id: RSA_PRIVATE_KEY
pattern: '-----BEGIN RSA PRIVATE KEY-----'
description: "RSA Private Key"
- id: OPENSSH_PRIVATE_KEY
pattern: '-----BEGIN OPENSSH PRIVATE KEY-----'
description: "OpenSSH Private Key"
- id: EC_PRIVATE_KEY
pattern: '-----BEGIN EC PRIVATE KEY-----'
description: "EC Private Key"
- id: PGP_PRIVATE_KEY
pattern: '-----BEGIN PGP PRIVATE KEY BLOCK-----'
description: "PGP Private Key"
- id: DSA_PRIVATE_KEY
pattern: '-----BEGIN DSA PRIVATE KEY-----'
description: "DSA Private Key"
- id: PUTTY_PRIVATE_KEY
pattern: 'PuTTY-User-Key-File-[0-9]:'
description: "PuTTY Private Key"
# ===================
# AWS - must have valid format
# ===================
- id: AWS_ACCESS_KEY
pattern: '(?i)(aws_access_key_id|aws_access_key|access_key_id)\s*[=:]\s*["\x27]?(AKIA[0-9A-Z]{16})["\x27]?'
description: "AWS Access Key ID"
- id: AWS_SECRET_KEY
pattern: '(?i)(aws_secret_access_key|aws_secret_key|secret_access_key)\s*[=:]\s*["\x27]?([A-Za-z0-9/+=]{40})["\x27]?'
description: "AWS Secret Access Key"
# ===================
# GitHub - full token format
# ===================
- id: GITHUB_PAT
pattern: 'ghp_[A-Za-z0-9]{36}'
description: "GitHub Personal Access Token"
- id: GITHUB_OAUTH
pattern: 'gho_[A-Za-z0-9]{36}'
description: "GitHub OAuth Token"
- id: GITHUB_APP_TOKEN
pattern: 'ghu_[A-Za-z0-9]{36}'
description: "GitHub User Token"
- id: GITHUB_SERVER_TOKEN
pattern: 'ghs_[A-Za-z0-9]{36}'
description: "GitHub Server Token"
- id: GITHUB_REFRESH_TOKEN
pattern: 'ghr_[A-Za-z0-9]{36}'
description: "GitHub Refresh Token"
# ===================
# GitLab
# ===================
- id: GITLAB_PAT
pattern: 'glpat-[A-Za-z0-9\-]{20}'
description: "GitLab Personal Access Token"
- id: GITLAB_RUNNER
pattern: 'GR1348941[A-Za-z0-9\-]{20}'
description: "GitLab Runner Token"
# ===================
# Slack - full token format
# ===================
- id: SLACK_BOT_TOKEN
pattern: 'xoxb-[0-9]{10,13}-[0-9]{10,13}-[A-Za-z0-9]{24}'
description: "Slack Bot Token"
- id: SLACK_USER_TOKEN
pattern: 'xoxp-[0-9]{10,13}-[0-9]{10,13}-[A-Za-z0-9]{24}'
description: "Slack User Token"
- id: SLACK_WEBHOOK
pattern: 'https://hooks\.slack\.com/services/T[A-Z0-9]{8}/B[A-Z0-9]{8}/[A-Za-z0-9]{24}'
description: "Slack Webhook URL"
# ===================
# Google
# ===================
- id: GOOGLE_API_KEY
pattern: 'AIza[0-9A-Za-z\-_]{35}'
description: "Google API Key"
- id: GOOGLE_OAUTH_CLIENT
pattern: '[0-9]+-[a-z0-9_]{32}\.apps\.googleusercontent\.com'
description: "Google OAuth Client ID"
# ===================
# Stripe - full key format
# ===================
- id: STRIPE_LIVE_SECRET
pattern: 'sk_live_[0-9a-zA-Z]{24,}'
description: "Stripe Live Secret Key"
- id: STRIPE_TEST_SECRET
pattern: 'sk_test_[0-9a-zA-Z]{24,}'
description: "Stripe Test Secret Key"
- id: STRIPE_LIVE_RESTRICTED
pattern: 'rk_live_[0-9a-zA-Z]{24,}'
description: "Stripe Live Restricted Key"
# ===================
# Database URLs - with credentials
# ===================
- id: POSTGRES_URI
pattern: 'postgres(?:ql)?://[^:]+:[^@]+@[^\s"''<>]+'
description: "PostgreSQL Connection with Credentials"
- id: MYSQL_URI
pattern: 'mysql://[^:]+:[^@]+@[^\s"''<>]+'
description: "MySQL Connection with Credentials"
- id: MONGODB_URI
pattern: 'mongodb(?:\+srv)?://[^:]+:[^@]+@[^\s"''<>]+'
description: "MongoDB Connection with Credentials"
- id: REDIS_URI
pattern: 'redis://[^@\s]+@[^\s"''<>]+'
description: "Redis Connection with Credentials"
# ===================
# SendGrid
# ===================
- id: SENDGRID_API_KEY
pattern: 'SG\.[A-Za-z0-9\-_]{22}\.[A-Za-z0-9\-_]{43}'
description: "SendGrid API Key"
# ===================
# Twilio
# ===================
- id: TWILIO_API_KEY
pattern: 'SK[0-9a-fA-F]{32}'
description: "Twilio API Key"
- id: TWILIO_AUTH_TOKEN
pattern: '(?i)twilio[_\-]?auth[_\-]?token\s*[=:]\s*["\x27]?([a-f0-9]{32})["\x27]?'
description: "Twilio Auth Token"
# ===================
# NPM / PyPI
# ===================
- id: NPM_TOKEN
pattern: 'npm_[A-Za-z0-9]{36}'
description: "NPM Access Token"
- id: PYPI_TOKEN
pattern: 'pypi-[A-Za-z0-9\-_]{50,}'
description: "PyPI API Token"
# ===================
# Shopify
# ===================
- id: SHOPIFY_ACCESS_TOKEN
pattern: 'shpat_[a-fA-F0-9]{32}'
description: "Shopify Access Token"
- id: SHOPIFY_SHARED_SECRET
pattern: 'shpss_[a-fA-F0-9]{32}'
description: "Shopify Shared Secret"
# ===================
# Square
# ===================
- id: SQUARE_ACCESS_TOKEN
pattern: 'sq0atp-[A-Za-z0-9\-_]{22}'
description: "Square Access Token"
- id: SQUARE_OAUTH_SECRET
pattern: 'sq0csp-[A-Za-z0-9\-_]{43}'
description: "Square OAuth Secret"
# ===================
# Discord
# ===================
- id: DISCORD_BOT_TOKEN
pattern: '[MN][A-Za-z\d]{23,}\.[\w-]{6}\.[\w-]{27}'
description: "Discord Bot Token"
- id: DISCORD_WEBHOOK
pattern: 'https://discord(?:app)?\.com/api/webhooks/[0-9]+/[A-Za-z0-9\-_]+'
description: "Discord Webhook URL"
# ===================
# Heroku
# ===================
- id: HEROKU_API_KEY
pattern: '(?i)heroku[_\-]?api[_\-]?key\s*[=:]\s*["\x27]?([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})["\x27]?'
description: "Heroku API Key"
# ===================
# JWT
# ===================
- id: JWT_TOKEN
pattern: 'eyJ[A-Za-z0-9\-_]+\.eyJ[A-Za-z0-9\-_]+\.[A-Za-z0-9\-_]+'
description: "JSON Web Token"
# ===================
# Azure
# ===================
- id: AZURE_STORAGE_KEY
pattern: '(?i)(AccountKey|azure[_-]?storage[_-]?key)\s*[=:]\s*["\x27]?([A-Za-z0-9+/]{86}==)["\x27]?'
description: "Azure Storage Account Key"
- id: AZURE_CONNECTION_STRING
pattern: 'DefaultEndpointsProtocol=https;AccountName=[^;]+;AccountKey=[A-Za-z0-9+/]{86}=='
description: "Azure Storage Connection String"
- id: AZURE_SAS_TOKEN
pattern: '[?&]sig=[A-Za-z0-9%]{43,}%3D'
description: "Azure SAS Token"
- id: AZURE_CLIENT_SECRET
pattern: '(?i)(azure[_-]?client[_-]?secret|aad[_-]?client[_-]?secret)\s*[=:]\s*["\x27]?([A-Za-z0-9\-_.~]{34,})["\x27]?'
description: "Azure AD Client Secret"
# ===================
# DigitalOcean
# ===================
- id: DIGITALOCEAN_TOKEN
pattern: 'dop_v1_[a-f0-9]{64}'
description: "DigitalOcean Personal Access Token"
- id: DIGITALOCEAN_OAUTH
pattern: 'doo_v1_[a-f0-9]{64}'
description: "DigitalOcean OAuth Token"
- id: DIGITALOCEAN_REFRESH
pattern: 'dor_v1_[a-f0-9]{64}'
description: "DigitalOcean Refresh Token"
# ===================
# Datadog
# ===================
- id: DATADOG_API_KEY
pattern: '(?i)(datadog[_-]?api[_-]?key|dd[_-]?api[_-]?key)\s*[=:]\s*["\x27]?([a-f0-9]{32})["\x27]?'
description: "Datadog API Key"
- id: DATADOG_APP_KEY
pattern: '(?i)(datadog[_-]?app[_-]?key|dd[_-]?app[_-]?key)\s*[=:]\s*["\x27]?([a-f0-9]{40})["\x27]?'
description: "Datadog Application Key"
# ===================
# Mailchimp / Mailgun
# ===================
- id: MAILCHIMP_API_KEY
pattern: '[a-f0-9]{32}-us[0-9]{1,2}'
description: "Mailchimp API Key"
- id: MAILGUN_API_KEY
pattern: 'key-[a-zA-Z0-9]{32}'
description: "Mailgun API Key"
# ===================
# Cloudflare
# ===================
- id: CLOUDFLARE_API_KEY
pattern: '(?i)(cloudflare[_-]?api[_-]?key|cf[_-]?api[_-]?key)\s*[=:]\s*["\x27]?([a-f0-9]{37})["\x27]?'
description: "Cloudflare API Key"
- id: CLOUDFLARE_API_TOKEN
pattern: '(?i)(cloudflare[_-]?api[_-]?token)\s*[=:]\s*["\x27]?([A-Za-z0-9\-_]{40})["\x27]?'
description: "Cloudflare API Token"
# ===================
# Firebase
# ===================
- id: FIREBASE_API_KEY
pattern: 'AIza[0-9A-Za-z\-_]{35}'
description: "Firebase/Google API Key"
- id: FIREBASE_URL
pattern: 'https://[a-z0-9\-]+\.firebaseio\.com'
description: "Firebase Database URL"
# ===================
# AI Services
# ===================
- id: OPENAI_API_KEY
pattern: 'sk-[A-Za-z0-9]{48}'
description: "OpenAI API Key"
- id: ANTHROPIC_API_KEY
pattern: 'sk-ant-[A-Za-z0-9\-]{90,}'
description: "Anthropic API Key"
# ===================
# HashiCorp Vault
# ===================
- id: VAULT_TOKEN
pattern: 'hvs\.[A-Za-z0-9]{24}'
description: "HashiCorp Vault Token"
- id: VAULT_SERVICE_TOKEN
pattern: 'hvb\.[A-Za-z0-9]{24,}'
description: "HashiCorp Vault Batch Token"
# ===================
# Atlassian
# ===================
- id: ATLASSIAN_API_TOKEN
pattern: '(?i)(atlassian[_-]?api[_-]?token|jira[_-]?api[_-]?token)\s*[=:]\s*["\x27]?([A-Za-z0-9]{24})["\x27]?'
description: "Atlassian/Jira API Token"
# ===================
# Linear / Notion / Airtable
# ===================
- id: LINEAR_API_KEY
pattern: 'lin_api_[A-Za-z0-9]{40}'
description: "Linear API Key"
- id: NOTION_TOKEN
pattern: 'secret_[A-Za-z0-9]{43}'
description: "Notion Integration Token"
- id: AIRTABLE_API_KEY
pattern: '(?i)(airtable[_-]?api[_-]?key|airtable[_-]?key)\s*[=:]\s*["\x27]?(key[A-Za-z0-9]{14})["\x27]?'
description: "Airtable API Key"
# ===================
# Supabase
# ===================
- id: SUPABASE_KEY
pattern: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\.[A-Za-z0-9\-_]+\.[A-Za-z0-9\-_]+'
description: "Supabase Service Key (JWT)"
# ===================
# Doppler
# ===================
- id: DOPPLER_TOKEN
pattern: 'dp\.pt\.[A-Za-z0-9]{40,}'
description: "Doppler Personal Token"
- id: DOPPLER_SERVICE_TOKEN
pattern: 'dp\.st\.[A-Za-z0-9]{40,}'
description: "Doppler Service Token"