Skip to content

Commit b6252e3

Browse files
committed
Add Datadog Client Token regex
1 parent 2e79d35 commit b6252e3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

pywhat/Data/regex.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,20 @@
685685
"Zapier"
686686
]
687687
},
688+
{
689+
"Name": "Datadog Client Token",
690+
"Regex": "^(pub[a-f0-9]{32})$",
691+
"plural_name": false,
692+
"Description": "Client tokens are used to send events and logs from web and mobile applications.",
693+
"Exploit": null,
694+
"Rarity": 1,
695+
"URL": null,
696+
"Tags": [
697+
"API Keys",
698+
"Credentials",
699+
"Datadog"
700+
]
701+
},
688702
{
689703
"Name": "New Relic Admin API Key",
690704
"Regex": "(?i)^(NRAA-[a-f0-9]{27})$",

tests/test_regex_identifier.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,11 @@ def test_zapier_webhook():
906906
_assert_match_first_item("Zapier Webhook Token", res)
907907

908908

909+
def test_datadog_client_token():
910+
res = r.check(["pub85abf45b82e2f86f25003d559bca07d9"])
911+
_assert_match_first_item("Datadog Client Token", res)
912+
913+
909914
def test_new_relic_rest_api_key():
910915
res = r.check(["NRRA-2a2d50d7d9449f3bb7ef65ac1184c488bd4fe7a8bd"])
911916
_assert_match_first_item("New Relic REST API Key", res)

0 commit comments

Comments
 (0)