id: llms-file-enum

info:
  name: llms.txt - Enumeration
  author: ritikchaddha
  severity: info
  description: |
    Detects the presence of a /llms.txt file on the server. This file may be used for internal documentation, configuration, or as a placeholder for third-party integrations. Enumerating such files could reveal sensitive or valuable information if misconfigured or publicly exposed.
  metadata:
    verified: true
    max-requests: 1
    shodan-query: html:"/llms.txt"
  tags: enum,llms,config,ai

http:
  - method: GET
    path:
      - "{{BaseURL}}/llms.txt"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "# ", "- ")'
          - 'contains(content_type, "text/plain")'
        condition: and

      - type: word
        part: response
        words:
          - "MongoDB over HTTP on the native"
          - "application/javascript"
          - "application/x-javascript"
          - "application/json"
          - "application/xml"
          - "text/xml"
          - "<html"
          - "<!doctype"
          - "<script"
          - "<meta"
          - "image/"
          - "Response xmlns"
        negative: true
# digest: 4a0a0047304502205a3bed395440f939c404462dc41bd69ced3af8afc61d5ad1f93b6667e9ff1254022100dbe0b48bb0e4bc95e443419f0dc17a5c959ed031d2be6c6aed16161655dfa622:922c64590222798bb761d5b6d8e72950