REST API v1

API Documentation

Real-time REST API endpoints for the xThread malware archive, C2/IOC intelligence, and cloud sandbox analysis engine.

Public Hash & C2 Lookup API

FREE / NO API KEY REQUIRED / CORS ENABLED

Queries SHA-256, MD5, IP address, domain, or malware family name across both the xThread D1 archive and abuse.ch (MalwareBazaar & ThreatFox) databases in a single request.

# Query hash, IP, or C2 domain

curl "https://xthread.rip/api/v1/lookup?q=SHA256_OR_DOMAIN_OR_IP"

Public Intelligence Feeds (Read-Only)

# Latest 40 sandbox analyses + live D1 statistics

GET https://xthread.rip/api/recent

# Free-text / family / C2 search in D1 archive

GET https://xthread.rip/api/intel?q=lumma

# Completed report JSON data (with persistent D1 snapshot cache)

GET https://xthread.rip/api/report/SAMPLE_ID

Authentication for Sandbox Submission

To submit a new file or URL for analysis, sign in with an approved account (cookie) or include a Bearer token in the Authorization header.

Authorization: Bearer YOUR_TOKEN

File Submission (cURL)

Submit samples up to 64 MB as multipart/form-data to the /api/v1/analyze endpoint (up to 32 MB pushes to both Tria.ge & VT; 32–64 MB goes directly to Tria.ge).

curl -X POST https://xthread.rip/api/v1/analyze \

-H "Authorization: Bearer YOUR_TOKEN" \

-F "file=@sample.exe"

Lookup and URL Analysis with Python

import requests


# 1. Free Hash / C2 Lookup

res = requests.get("https://xthread.rip/api/v1/lookup", params={"q": "44d88612fea8a8f36de82e1278abb02f"})

print(res.json())


# 2. Sandbox URL Analysis (Authenticated)

headers = {"Authorization": "Bearer YOUR_TOKEN"}

submit = requests.post("https://xthread.rip/api/v1/analyze", headers=headers, data={"url": "https://example.com/payload.bin"})

print(submit.json())

SIEM / Firewall / Suricata Export

Download active C2 IP and domain lists directly from the /intel page in Firewall Blocklist (.txt), Suricata IDS Rules (.rules), CSV, and JSON formats.