Skip to content

Commit e36b83a

Browse files
authored
Merge pull request #196 from gruebel/add-datadog-client-token
Add datadog client token
2 parents ac3b4d5 + 86268bc commit e36b83a

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

pywhat/Data/regex.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,35 @@
685685
"Zapier"
686686
]
687687
},
688+
{
689+
"Name": "Datadog API Key",
690+
"Regex": "^([a-f0-9]{32})$",
691+
"plural_name": false,
692+
"Description": null,
693+
"Exploit": "Use the command below to verify that the API key is valid:\n $ curl -X GET https://api.datadoghq.com/api/v1/validate -H \"Content-Type: application/json\" -H \"DD-API-KEY: API_KEY_HERE\"\n",
694+
"Rarity": 1,
695+
"URL": null,
696+
"Tags": [
697+
"API Keys",
698+
"Bug Bounty",
699+
"Credentials",
700+
"Datadog"
701+
]
702+
},
703+
{
704+
"Name": "Datadog Client Token",
705+
"Regex": "^(pub[a-f0-9]{32})$",
706+
"plural_name": false,
707+
"Description": null,
708+
"Exploit": null,
709+
"Rarity": 1,
710+
"URL": null,
711+
"Tags": [
712+
"API Keys",
713+
"Bug Bounty",
714+
"Datadog"
715+
]
716+
},
688717
{
689718
"Name": "New Relic Admin API Key",
690719
"Regex": "(?i)^(NRAA-[a-f0-9]{27})$",

tests/test_regex_identifier.py

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

908908

909+
def test_datadog_api_key():
910+
res = r.check(["acb6d73d95a10d30aef9894603e90963"])
911+
_assert_match_first_item("Datadog API Key", res)
912+
913+
914+
def test_datadog_client_token():
915+
res = r.check(["pub85abf45b82e2f86f25003d559bca07d9"])
916+
_assert_match_first_item("Datadog Client Token", res)
917+
918+
909919
def test_new_relic_rest_api_key():
910920
res = r.check(["NRRA-2a2d50d7d9449f3bb7ef65ac1184c488bd4fe7a8bd"])
911921
_assert_match_first_item("New Relic REST API Key", res)

0 commit comments

Comments
 (0)