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

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: 4a0a00473045022100ac6bb0536d4061c2df41fcff77cebe17e96b07dfd43c0743384a7fa5a7479c0b022063b6e73fa4a5a2bd4a27c9d8c3c9ad586682fe9f721ca4ce9a088c171746d5ab:922c64590222798bb761d5b6d8e72950