# MalwareBazaar API reference

> 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…

Source: https://osinttools.io/apis/malwarebazaar/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/malwarebazaar/

- Base URL: https://mb-api.abuse.ch/api/v1
- Authentication: API key in the `Auth-Key` header. Get a key: https://auth.abuse.ch/
- Rate limits: Not stated in the docs (fair-use principles apply)
- Vendor docs: https://bazaar.abuse.ch/api/

## Overview

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.

## Lookups

### Look up one sample by SHA256, SHA1 or MD5 hash.

`POST /?query=get_info`

- Takes: File
- Footprint: passive (the target is not contacted)

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

Response fields:

- `query_status` (string): ok or an error status
- `data[].sha256_hash` (string): SHA256 hash
- `data[].md5_hash` (string): MD5 hash
- `data[].first_seen` (string): First seen (UTC)
- `data[].file_name` (string): File name
- `data[].file_size` (integer): Size in bytes
- `data[].file_type` (string): File type
- `data[].signature` (string): Malware family
- `data[].tags[]` (string): Tags
- `data[].intelligence.clamav` (string): ClamAV signature

```bash
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"
}'
```

Example response (200):

```json
{
  "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`

- Footprint: 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.

Response fields:

- `query_status` (string): ok or an error status such as tag_not_found
- `data[].sha256_hash` (string): SHA256 hash
- `data[].signature` (string): Malware family
- `data[].tags[]` (string): Tags

```bash
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
}'
```

Example response (200):

```json
{
  "query_status": "ok",
  "data": [
    {
      "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "signature": "ExampleFamily",
      "tags": [
        "examplefamily"
      ]
    }
  ]
}
```

### List samples of a malware family (signature).

`POST /?query=get_siginfo`

- Footprint: passive (the target is not contacted)

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

Response fields:

- `query_status` (string): ok or an error status
- `data[].sha256_hash` (string): SHA256 hash
- `data[].first_seen` (string): First seen (UTC)

```bash
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
}'
```

Example response (200):

```json
{
  "query_status": "ok",
  "data": [
    {
      "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "first_seen": "2026-01-01 00:00:00"
    }
  ]
}
```

## Recent

### Latest additions: the last 60 minutes or the latest 100 samples.

`POST /?query=get_recent`

- Footprint: 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).

Response fields:

- `query_status` (string): ok or an error status
- `data[].sha256_hash` (string): SHA256 hash
- `data[].file_type` (string): File type
- `data[].signature` (string): Malware family

```bash
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"
}'
```

Example response (200):

```json
{
  "query_status": "ok",
  "data": [
    {
      "sha256_hash": "0000000000000000000000000000000000000000000000000000000000000000",
      "file_type": "exe",
      "signature": "ExampleFamily"
    }
  ]
}
```

## Code signing

### Dump the Code Signing Certificate Blocklist.

`POST /?query=get_cscb`

- Footprint: passive (the target is not contacted)

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

Response fields:

- `time_stamp` (string): When the entry was listed
- `serial_number` (string): Certificate serial number
- `subject_cn` (string): Certificate subject
- `issuer_cn` (string): Certificate issuer
- `cscb_listed` (boolean): Whether the certificate is listed
- `cscb_reason` (string): Reason for listing

```bash
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"
}'
```

Example response (200):

```json
{
  "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"
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
