Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regex for various API keys #99

Merged
merged 2 commits into from
Jun 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 165 additions & 0 deletions pywhat/Data/regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,171 @@
"Networking"
]
},
{
"Name": "Google API Key",
"Regex": "AIza[0-9A-Za-z-_]{35}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Google"
]
},
{
"Name": "Google ReCaptcha API Key",
"Regex": "6L[0-9A-Za-z-_]{38}|^6[0-9a-zA-Z_-]{39}$",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Google"
]
},
{
"Name": "Google OAuth Token",
"Regex": "ya29.[0-9A-Za-z-_]+",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Google"
]
},
{
"Name": "AWS Access Key ID",
"Regex": "A[SK]IA[0-9A-Z]{16}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"AWS"
]
},
{
"Name": "Mailgun API Key",
"Regex": "key-[0-9a-zA-Z]{32}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials"
]
},
{
"Name": "Twilio API Key",
"Regex": "SK[0-9a-fA-F]{32}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Twilio"
]
},
{
"Name": "Twilio Account SID",
"Regex": "AC[a-zA-Z0-9_-]{32}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Twilio"
]
},
{
"Name": "Twilio Application SID",
"Regex": "AP[a-zA-Z0-9_-]{32}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Twilio"
]
},
{
"Name": "Square Application Secret",
"Regex": "sandbox-?sq0csp-[0-9A-Za-z-_]{43}|sq0[a-z]{3}-[0-9A-Za-z-_]{22,43}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Square"
]
},
{
"Name": "Square Access Token",
"Regex": "sqOatp-[0-9A-Za-z-_]{22}|EAAA[a-zA-Z0-9-_]{60}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Square"
]
},
{
"Name": "Stripe API Key",
"Regex": "[srp]k_live_[0-9a-zA-Z]{24}",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials"
]
},
{
"Name": "GitHub Access Token",
"Regex": "[a-zA-Z0-9_-]*:[a-zA-Z0-9_-]+@github.com*",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials"
]
},
{
"Name": "Slack Token",
"Regex": "xox[a-zA-Z]-[a-zA-Z0-9-]+",
"plural_name": false,
"Description": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials"
]
},
{
"Name": "Amazon Resource Name (ARN)",
"Regex": "(?i)^arn:(?P<Partition>[^:\n]*):(?P<Service>[^:\n]*):(?P<Region>[^:\n]*):(?P<AccountID>[^:\n]*):(?P<Ignore>(?P<ResourceType>[^:\/\n]*)[:\/])?(?P<Resource>.*)$",
Expand Down
Loading