id: atproto-did-exposure

info:
  name: Well-Known ATProto DID
  author: rxerium
  severity: info
  description: Detects AT Protocol DID reference used by Bluesky.
  impact: |
    Presence of this well-known resource can expose implementation details or policies.
  reference:
    - https://atproto.com/specs/did
  metadata:
    verified: true
    max-request: 1
    google-query: inurl:"/.well-known/atproto-did"
  tags: well-known,atproto,bluesky,misc,identity,miscellaneous,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/.well-known/atproto-did"
      - "{{BaseURL}}/well-known-atproto-did"

    redirects: true
    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'atproto'
          - 'did:plc'
        condition: and

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