Skip to content
OSINTtools.io

MalwareBazaar API

abuse.ch repository of malware samples searchable by hash, family, tag or signature, with free downloads for research.

Base URL
https://mb-api.abuse.ch/api/v1
Sign-in
API key
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from bazaar.abuse.ch · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The MalwareBazaar community API from abuse.ch returns records of malware samples: hashes, file type, malware family signature, tags, code-signing details and more. An investigator uses it to look up a file hash, or to list samples by tag or family.

Every call is an HTTP POST with form data to https://mb-api.abuse.ch/api/v1/. A query form field selects the action. The key goes in the Auth-Key header and is free from the abuse.ch Authentication Portal (auth.abuse.ch). The docs also describe sample download (get_file, a password-protected ZIP) and upload; these are not described here.

The docs say the community API is under fair-use principles and is not for commercial use; they give no numeric limit.

Quick start

  1. Get a key

    Create an account with MalwareBazaar and copy your api key. Where to get it

  2. Make your first request

    Look up one sample by SHA256, SHA1 or MD5 hash.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl -X POST 'https://mb-api.abuse.ch/api/v1/?query=get_info' \
      -H 'Auth-Key: YOUR_API_KEY' \
      -H 'Content-Type: application/x-www-form-urlencoded' \
      -d '{
      "query": "get_info",
      "hash": "0000000000000000000000000000000000000000000000000000000000000000"
    }'
  3. Read the response

    A 200 response looks like this.

    {
      "query_status": "ok",
      "data": [
        {
          "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
          "md5_hash": "00000000000000000000000000000000",
          "first_seen": "2026-01-01 00:00:00",
          "file_name": "file",
          "file_size": 145408,
          "file_type": "exe",
          "signature": "ExampleFamily",
          "tags": [
            "examplefamily"
          ],
          "intelligence": {
            "clamav": "Win.Trojan.Example-1-0"
          }
        }
      ]
    }

Authentication

Send your API key in the Auth-Key header of every request.

Get a key from MalwareBazaar

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs (fair-use principles apply)

Lookups

Send the form field query=get_info together with hash. query_status is ok, or hash_not_found, illegal_hash or no_hash_provided.

Request body (form) · 2Show

querystringalways present

Fixed value get_info

hashstringalways present

SHA256, SHA1 or MD5 hash of the sample

Response fields · 10Show

query_statusstring

ok or an error status

sha256_hashstring

SHA256 hash

md5_hashstring

MD5 hash

first_seenstring

First seen (UTC)

file_namestring

File name

file_sizeinteger

Size in bytes

file_typestring

File type

signaturestring

Malware family

tags[]string

Tags

clamavstring

ClamAV signature

curl -X POST 'https://mb-api.abuse.ch/api/v1/?query=get_info' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "query": "get_info",
  "hash": "0000000000000000000000000000000000000000000000000000000000000000"
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "data": [
    {
      "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "md5_hash": "00000000000000000000000000000000",
      "first_seen": "2026-01-01 00:00:00",
      "file_name": "file",
      "file_size": 145408,
      "file_type": "exe",
      "signature": "ExampleFamily",
      "tags": [
        "examplefamily"
      ],
      "intelligence": {
        "clamav": "Win.Trojan.Example-1-0"
      }
    }
  ]
}

List samples carrying a tag.

POST/?query=get_taginfo

  • Passive: the target is not contacted

Send the form field query=get_taginfo with tag and optionally limit (default 100, maximum 1000). Same record shape as get_info.

Request body (form) · 3Show

querystringalways present

Fixed value get_taginfo

tagstringalways present

Tag to search

limitinteger

Maximum records, default 100, maximum 1000

Response fields · 4Show

query_statusstring

ok or an error status such as tag_not_found

sha256_hashstring

SHA256 hash

signaturestring

Malware family

tags[]string

Tags

curl -X POST 'https://mb-api.abuse.ch/api/v1/?query=get_taginfo' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "query": "get_taginfo",
  "tag": "examplefamily",
  "limit": 10
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "data": [
    {
      "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "signature": "ExampleFamily",
      "tags": [
        "examplefamily"
      ]
    }
  ]
}
  • Passive: the target is not contacted

Send the form field query=get_siginfo with signature and optionally limit (default 100, maximum 1000).

Request body (form) · 3Show

querystringalways present

Fixed value get_siginfo

signaturestringalways present

Malware family name

limitinteger

Maximum records

Response fields · 3Show

query_statusstring

ok or an error status

sha256_hashstring

SHA256 hash

first_seenstring

First seen (UTC)

curl -X POST 'https://mb-api.abuse.ch/api/v1/?query=get_siginfo' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "query": "get_siginfo",
  "signature": "ExampleFamily",
  "limit": 10
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "data": [
    {
      "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "first_seen": "2026-01-01 00:00:00"
    }
  ]
}

Recent

  • Passive: the target is not contacted

Send the form field query=get_recent with selector set to time (last 60 minutes) or 100 (latest 100).

Request body (form) · 2Show

querystringalways present

Fixed value get_recent

selectorstringalways present

time or 100

Response fields · 4Show

query_statusstring

ok or an error status

sha256_hashstring

SHA256 hash

file_typestring

File type

signaturestring

Malware family

curl -X POST 'https://mb-api.abuse.ch/api/v1/?query=get_recent' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "query": "get_recent",
  "selector": "time"
}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "data": [
    {
      "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "file_type": "exe",
      "signature": "ExampleFamily"
    }
  ]
}

Code signing

  • Passive: the target is not contacted

Send the form field query=get_cscb. No other parameters.

Request body (form) · 1Show

querystringalways present

Fixed value get_cscb

Response fields · 6Show

time_stampstring

When the entry was listed

serial_numberstring

Certificate serial number

subject_cnstring

Certificate subject

issuer_cnstring

Certificate issuer

cscb_listedboolean

Whether the certificate is listed

cscb_reasonstring

Reason for listing

curl -X POST 'https://mb-api.abuse.ch/api/v1/?query=get_cscb' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d '{
  "query": "get_cscb"
}'
Replace YOUR_API_KEY with your key
Response
{
  "time_stamp": "2026-01-01 00:00:00",
  "serial_number": "00000000000000000000000000000000",
  "subject_cn": "Example Software Ltd.",
  "issuer_cn": "Example Code Signing CA",
  "cscb_listed": true,
  "cscb_reason": "ExampleFamily"
}