Skip to content

Commit

Permalink
Add Datadog Client Token regex
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Oct 9, 2021
1 parent 2e79d35 commit b6252e3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pywhat/Data/regex.json
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,20 @@
"Zapier"
]
},
{
"Name": "Datadog Client Token",
"Regex": "^(pub[a-f0-9]{32})$",
"plural_name": false,
"Description": "Client tokens are used to send events and logs from web and mobile applications.",
"Exploit": null,
"Rarity": 1,
"URL": null,
"Tags": [
"API Keys",
"Credentials",
"Datadog"
]
},
{
"Name": "New Relic Admin API Key",
"Regex": "(?i)^(NRAA-[a-f0-9]{27})$",
Expand Down
5 changes: 5 additions & 0 deletions tests/test_regex_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,11 @@ def test_zapier_webhook():
_assert_match_first_item("Zapier Webhook Token", res)


def test_datadog_client_token():
res = r.check(["pub85abf45b82e2f86f25003d559bca07d9"])
_assert_match_first_item("Datadog Client Token", res)


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

0 comments on commit b6252e3

Please sign in to comment.