Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create prometheus-promtail.yaml #7666

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions http/misconfiguration/prometheus-promtail.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
id: prometheus-promtail

info:
name: Prometheus Promtail - Exposure
author: irshad ahamed
severity: medium
description: |
Prometheus Promtail is an agent that gathers log data from various sources, such as files or systemd journal.
reference:
- https://grafana.com/docs/loki/latest/clients/promtail/
- https://github.com/grafana/loki/issues/8680
metadata:
max-request: 1
verified: true
shodan-query: http.favicon.hash:932345713
tags: misconfig,prometheus,promtail,exposure

http:
- method: GET
path:
- "{{BaseURL}}/service-discovery"

matchers-condition: and
matchers:
- type: word
words:
- '>Promtail</a>'
- 'https://github.com/grafana/loki'
condition: and

- type: status
status:
- 200