From e428dc64542ed630c423d0d258a038fcf40b96b1 Mon Sep 17 00:00:00 2001 From: Geeknik Labs <466878+geeknik@users.noreply.github.com> Date: Sat, 24 Jul 2021 14:28:33 -0500 Subject: [PATCH] Create production-logs.yaml --- exposures/logs/production-logs.yaml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 exposures/logs/production-logs.yaml diff --git a/exposures/logs/production-logs.yaml b/exposures/logs/production-logs.yaml new file mode 100644 index 0000000000..65db4e120d --- /dev/null +++ b/exposures/logs/production-logs.yaml @@ -0,0 +1,35 @@ +id: production-logs + +info: + name: Discover production log files + author: geeknik + severity: info + +requests: + - method: GET + path: + - "{{BaseURL}}/log/production.log" + - "{{BaseURL}}/logs/production.log" + - "{{BaseURL}}/production.log" + + matchers-condition: and + matchers: + - type: word + words: + - "Connecting to database specified by database.yml" + - "Started GET" + condition: and + - type: word + part: header + words: + - "text/html" + negative: true + - type: status + status: + - 200 + extractors: + - type: regex + name: last_modified + part: header + regex: + - 'Last-Modified:.*'