Skip to content
New issue

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

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

Already on GitHub? # to your account

New Relic Keys #156

Merged
2 commits merged into from
Oct 2, 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
14 changes: 14 additions & 0 deletions pywhat/Data/regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,20 @@
"Bug Bounty"
]
},
{
"Name": "New Relic User API Key",
"Regex": "(?i)^(NRAK-[a-z0-9]{27})$",
"plural_name": false,
"Description": null,
"Exploit": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Bug Bounty",
"Credentials"
]
},
{
"Name": "Microsoft Teams Webhook",
"Regex": "(?i)^(https://outlook\\.office\\.com/webhook/[A-Za-z0-9\\-@]{64}/IncomingWebhook/[A-Za-z0-9\\-]{64}/[A-Za-z0-9\\-]{64})$",
Expand Down
15 changes: 15 additions & 0 deletions tests/test_regex_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,3 +765,18 @@ def test_stripe_api_key():
def test_zapier_webhook():
res = r.check(["https://hooks.zapier.com/hooks/catch/1234567/f8f22dgg/"])
_assert_match_first_item("Zapier Webhook Token", res)


def test_new_relic_rest_api_key():
res = r.check(["NRRA-2a2d50d7d9449f3bb7ef65ac1184c488bd4fe7a8bd"])
_assert_match_first_item("New Relic REST API Key", res)


def test_new_relic_synthetics_api_key():
res = r.check(["NRSP-us010E1E3D1716F721FF39F726B3E4CBCB7"])
_assert_match_first_item("New Relic Synthetics Location Key", res)


def test_new_relic_user_api_key():
res = r.check(["NRAK-WI4JTVS049IF5A3FGS5N51XS3Y5"])
_assert_match_first_item("New Relic User API Key", res)