id: api-alienvault

info:
  name: AlienVault Open Threat Exchange (OTX) API Test
  author: daffainfo
  severity: info
  description: IP/domain/URL reputation
  reference:
    - https://otx.alienvault.com/api
    - https://github.com/daffainfo/all-about-apikey/tree/main/alienvault-open-threat-exchange
  metadata:
    max-request: 1
  tags: token-spray,alienvault,exchange

self-contained: true

http:
  - raw:
      - |
        GET https://otx.alienvault.com/api/v1/pulses/subscribed?page=1 HTTP/1.1
        Host: otx.alienvault.com
        X-OTX-API-KEY: {{token}}

    matchers:
      - type: word
        part: body
        words:
          - '"$schema":'
          - '"properties":'
        condition: and
# digest: 4a0a00473045022100f577cde9f18dec3c699f3023d5d62adcae92c7222039444f87b5752a4f7ad5d0022040046d88aeeec871004eb110b20d601df62b70bb76fb79381c49f97d31928418:922c64590222798bb761d5b6d8e72950