From 2e4c8e22f23d0c05a58b27d694c4cc3ab7aeb711 Mon Sep 17 00:00:00 2001 From: Prince Chaddha Date: Thu, 19 Aug 2021 16:47:22 +0530 Subject: [PATCH] Create dockercfg.yaml --- exposures/tokens/docker/dockercfg.yaml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 exposures/tokens/docker/dockercfg.yaml diff --git a/exposures/tokens/docker/dockercfg.yaml b/exposures/tokens/docker/dockercfg.yaml new file mode 100644 index 0000000000..5f426c2785 --- /dev/null +++ b/exposures/tokens/docker/dockercfg.yaml @@ -0,0 +1,29 @@ +id: dockercfg + +info: + name: Detect .dockercfg + author: geeknik + description: Docker registry authentication data + severity: high + tags: docker,auth + +requests: + - method: GET + path: + - "{{BaseURL}}/.dockercfg" + + matchers-condition: and + matchers: + - type: word + part: header + words: + - "text/plain" + - type: word + words: + - "https" + - "email" + - "auth" + condition: and + - type: status + status: + - 200