Skip to content

Commit 86268bc

Browse files
committed
Add Datadog API Key regex
1 parent b6252e3 commit 86268bc

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

pywhat/Data/regex.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,17 +685,32 @@
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+
},
688703
{
689704
"Name": "Datadog Client Token",
690705
"Regex": "^(pub[a-f0-9]{32})$",
691706
"plural_name": false,
692-
"Description": "Client tokens are used to send events and logs from web and mobile applications.",
707+
"Description": null,
693708
"Exploit": null,
694709
"Rarity": 1,
695710
"URL": null,
696711
"Tags": [
697712
"API Keys",
698-
"Credentials",
713+
"Bug Bounty",
699714
"Datadog"
700715
]
701716
},

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_api_key():
910+
res = r.check(["acb6d73d95a10d30aef9894603e90963"])
911+
_assert_match_first_item("Datadog API Key", res)
912+
913+
909914
def test_datadog_client_token():
910915
res = r.check(["pub85abf45b82e2f86f25003d559bca07d9"])
911916
_assert_match_first_item("Datadog Client Token", res)

0 commit comments

Comments
 (0)