id: s3-torrent

info:
  name: Amazon S3 Torrent Download - Detect
  author: ambassify
  severity: info
  description: Amazon S3 Torrent download was detected, which can allow a malicious user to download files.
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: misconfig,aws,s3,bucket

http:
  - method: GET
    path:
      - "{{BaseURL}}/?torrent"

    matchers:
      - type: word
        part: body
        words:
          - 'RequestTorrentOfBucketError'
          - 's3-tracker'
        condition: or

# digest: 4a0a0047304502210097abb4e8fcd697ed9f43e94fb087a2f124486993bfe4044673f90e78d467a8b302204420f9632dcab6f7c0eee7a7232879ff614e1714be5992aff62f7c349814e175:922c64590222798bb761d5b6d8e72950
