id: amprion-gridloss-panel

info:
  name: Amprion Grid Loss Login Panel - Detect
  author: righettod
  severity: info
  description: |
    Amprion Grid Loss login panel was detected.
  reference:
    - https://www.amprion.net/index-2.html
  metadata:
    verified: true
    max-request: 1
  tags: panel,amprion,login,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}/config/public"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(to_lower(body), "amprion") && contains(to_lower(body), "grid loss")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"envTitle":"([A-Z0-9a-z]+)"'
# digest: 490a0046304402202a1d897d1e461d1060c271b10c1832281707a9cc9cda0248bff491133c094be402206538d3fa3812c0f96c9e059957c9aeff6f7052a534bbaaae168f9b7adb172253:922c64590222798bb761d5b6d8e72950