id: sparklighter-detect

info:
  name: Spark Lighter Detection
  author: icarot
  severity: info
  description: |
    Detects a Spark Lighter server, a REST API for Apache Spark on K8S or YARN.
  classification:
    cpe: cpe:2.3:a:apache:spark:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: apache
    product: spark
    category: productivity
    shodan-query:
      - http.html:"/apps/imt/html/"
      - http.title:"spark master at"
    fofa-query:
      - title="spark master at"
      - body="/apps/imt/html/"
    google-query: intitle:"spark master at"
  tags: tech,lighter,spark,detect,apache

http:
  - method: GET
    path:
      - "{{BaseURL}}/lighter/api"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>Lighter</title>'
          - '/lighter/favicon.svg'
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100885f1e1553d131a3bbba3319f5b12215deef51d4d638ef1e63f434b16fc0c78d022100fcaa52ebc6a19aa0eafad637f6816d21e8e9a7ce9f9ee6b0982c6074bfadfcc1:922c64590222798bb761d5b6d8e72950