id: launchdarkly-detect

info:
  name: LaunchDarkly - Detect
  author: Shivam Kamboj
  severity: info
  description: |
    Detects the presence of LaunchDarkly, a feature management and feature flag platform.
  reference:
    - https://launchdarkly.com/
    - https://launchdarkly.com/docs/sdk/client-side/javascript
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"LDClient.initialize"
  tags: tech,discovery,launchdarkly

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    redirects: true

    matchers:
      - type: word
        part: body
        words:
          - "LDClient.initialize"
          - "ldclient.min.js"
          - "launchdarkly-js-client-sdk"
        condition: or
# digest: 4b0a00483046022100bd1cf54279b3fbf8eb583f4d4eef5f2ac8e69d493e3362da4a15c11000e582fa022100b7829276bcda635b3ac20449ea2aaff91f7a22009ace02e0c695bab6e66c0e44:922c64590222798bb761d5b6d8e72950