id: detect-drone-config

info:
  name: Drone - Configuration Detection
  author: geeknik
  severity: high
  description: Drone configuration was discovered.
  reference:
    - https://github.com/drone/drone
  metadata:
    max-request: 1
  tags: config,exposure,drone

http:
  - method: GET
    path:
      - "{{BaseURL}}/.drone.yml"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "kind:"
          - "name:"
          - "steps:"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402200f76eabb6eb62b7e0157d3ccafd575b5999b97552076c3b0a0a83cfe226dfca202200c7a133862d3ce778d773838cf3ef7853e7ff0e8a875da26b5fb8f0fd21f4c14:922c64590222798bb761d5b6d8e72950