diff --git a/pywhat/Data/regex.json b/pywhat/Data/regex.json index f977a51..8cb572c 100644 --- a/pywhat/Data/regex.json +++ b/pywhat/Data/regex.json @@ -685,6 +685,35 @@ "Zapier" ] }, + { + "Name": "Datadog API Key", + "Regex": "^([a-f0-9]{32})$", + "plural_name": false, + "Description": null, + "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", + "Rarity": 1, + "URL": null, + "Tags": [ + "API Keys", + "Bug Bounty", + "Credentials", + "Datadog" + ] + }, + { + "Name": "Datadog Client Token", + "Regex": "^(pub[a-f0-9]{32})$", + "plural_name": false, + "Description": null, + "Exploit": null, + "Rarity": 1, + "URL": null, + "Tags": [ + "API Keys", + "Bug Bounty", + "Datadog" + ] + }, { "Name": "New Relic Admin API Key", "Regex": "(?i)^(NRAA-[a-f0-9]{27})$", diff --git a/tests/test_regex_identifier.py b/tests/test_regex_identifier.py index 403fb99..6732296 100644 --- a/tests/test_regex_identifier.py +++ b/tests/test_regex_identifier.py @@ -906,6 +906,16 @@ def test_zapier_webhook(): _assert_match_first_item("Zapier Webhook Token", res) +def test_datadog_api_key(): + res = r.check(["acb6d73d95a10d30aef9894603e90963"]) + _assert_match_first_item("Datadog API Key", 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)