id: hashicorp-consul-agent

info:
  name: Hashicorp Consul Agent - Detect
  author: c-sh0
  severity: info
  description: Hashicorp Consul Agent was detected.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:hashicorp:consul:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: hashicorp
    product: consul
    shodan-query:
      - http.title:"consul by hashicorp"
      - cpe:"cpe:2.3:a:hashicorp:consul"
    fofa-query: title="consul by hashicorp"
    google-query: intitle:"consul by hashicorp"
  tags: tech,consul,api,panel,hashicorp,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/v1/agent/self"

    matchers:
      - type: word
        words:
          - '"Datacenter":'
          - '"Revision":'
          - '"PrimaryDatacenter"'
        condition: and

    extractors:
      - type: json
        json:
          - " .Config.Version"
# digest: 490a0046304402207e4551819e6fb184f270e1b2ad7c1d6eedde976e129b8d163a2c7c454e2d6ab3022053a6aa5850c11cadf76356a2f8cfbeb66bf153f94cd1788fa4730d1daba62b7b:922c64590222798bb761d5b6d8e72950