# File Hash Reputation API: Malware, AV Scans, URL and IP Intel (`nabeelbaghoor/file-hash-reputation-malware-intel-api`) Actor

File hash reputation and malware intelligence on your own ReversingLabs Spectra Intelligence account: bulk MD5, SHA1 and SHA256 verdicts, multi-AV detections, file and sandbox analysis reports, URL, domain and IP threat reports and bulk network reputation. Read-only. Bring your own credentials.

- **URL**: https://apify.com/nabeelbaghoor/file-hash-reputation-malware-intel-api.md
- **Developed by:** [Nabeel Hassan](https://apify.com/nabeelbaghoor) (community)
- **Categories:** Developer tools, Integrations, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 file reputation verdicts

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## File Hash Reputation API: Malware, AV Scans, URL and IP Intel

Check file hashes, URLs, domains and IPs against ReversingLabs Spectra Intelligence with your own account, and get malware verdicts, AV detections, analysis reports and network threat reports as clean dataset rows ready for a SIEM, SOAR or enrichment workflow.

Works with the ReversingLabs Spectra Intelligence API on data.reversinglabs.com, using the read-only endpoints documented at docs.reversinglabs.com: File Reputation (TCA-0101), Multi-AV Scan Records (TCA-0103), File Analysis (TCA-0104), Dynamic Analysis Results (TCA-0106), URL Threat Intelligence (TCA-0403), Domain Threat Intelligence (TCA-0405), IP Threat Intelligence (TCA-0406) and Network Reputation (TCA-0407).

Bring your own credentials, route-checked but not live-tested: every path, parameter and body field comes from the Spectra Intelligence reference pages and ReversingLabs' own Python SDK. All eight routes were checked with probes (documented paths answer 401 to an invalid username and password, invented sibling paths answer 404). The actor has not been run against a live Spectra Intelligence account.

### What it does

- **Bulk file hash reputation**: up to 100 MD5, SHA1 or SHA256 hashes per request, with status (malicious, suspicious, known or unknown), threat level, trust factor, threat name, malware family, type and platform, the reason for the verdict, AV detection counts, first and last seen, and all three hashes.
- **Multi-AV scan records**: every engine's detection name from the latest scan, scanner counts, file type and size, all hashes, and optionally up to 20 past scans.
- **File analysis reports**: the full Spectra Intelligence record for a hash (static analysis, AV history, sources, parent and child relationships, extracted network indicators), flattened to the key columns with the whole report under `record`.
- **Sandbox dynamic analysis reports**: classification, risk score, threat names, platforms, MITRE ATT\&CK technique IDs and the merged behavior, network and malware config detail for hashes already detonated in the ReversingLabs Cloud Sandbox.
- **URL, domain and IP threat reports**: classification and reason, threat level and name, third-party detections, counts of malicious files served from the location, top threats, and optional WHOIS and GeoIP.
- **Bulk network reputation**: up to 100 mixed URLs, domains and IPs per request, with classification, third-party detection counts, categories and whether malware was downloaded from it.
- **Private by default**: network lookups are sent with `private` on, so your queried indicators are not shared with third-party sources or public feeds.
- **Read-only**: nothing is uploaded, reanalyzed, detonated, overridden or deleted.
- **Pay only for results**: UNKNOWN hashes, samples with no record and refused requests come back as a free row that says why.

### How to get credentials

Spectra Intelligence is a paid ReversingLabs service. ReversingLabs Support issues an API username (in the form `u/company/name`) and password when your account is activated, and each API (file reputation, network reports, dynamic analysis and so on) is licensed separately. Paste the username and the password into the two credential fields, or set the DATA_API_KEY secret to `username:password`. They are sent only to data.reversinglabs.com in the Basic Authorization header and removed from every log line.

### Input

| Field | Modes | Description |
| --- | --- | --- |
| `mode` | all | `fileReputation` (default), `multiAvScan`, `fileAnalysis`, `dynamicAnalysis`, `urlReport`, `domainReport`, `ipReport` or `networkReputation` |
| `hashes` | file modes | One MD5, SHA1 or SHA256 per line, up to 1,000 |
| `networkLocations` | network modes | One URL, domain or IP per line, up to 1,000 |
| `scanHistory` | multiAvScan | Return up to 20 past scans under `record` (default false) |
| `privateQuery` | network modes | Keep queries out of third-party lookups and public feeds (default true) |
| `includeWhois` | domainReport, ipReport | Add WHOIS (and GeoIP for IPs), default false |
| `maxResults` | all | Row ceiling for the run (default 100) |
| `requestsPerMinute` | all | Pacing, default 60 |
| `apiKey`, `apiSecret` | all | Your Spectra Intelligence username and password (or the DATA_API_KEY secret) |

Example: verdicts for a mixed list of hashes.

```json
{
    "mode": "fileReputation",
    "hashes": [
        "3395856ce81f2b7382dee72602f798b642f14d45",
        "ca083f61113e1fb8f539ecfa7c725fc8",
        "10dbb2b27208c5566d326b47950657bf6b3c9a59e302598a128ad7125d5fb4fd"
    ]
}
```

Example: domain reports with WHOIS.

```json
{
    "mode": "domainReport",
    "networkLocations": ["example.com", "example.org"],
    "includeWhois": true
}
```

### Example output

An illustrative file reputation row, shaped like the documented TCA-0101 extended response (values are an example). The full entry is kept under `record`.

```json
{
    "mode": "fileReputation",
    "recordType": "fileReputation",
    "found": true,
    "input": "1d412db0ac58dd8d8bfae8b18c7b355bd14dab2f",
    "indicator": "1d412db0ac58dd8d8bfae8b18c7b355bd14dab2f",
    "indicatorType": "sha1",
    "classification": "MALICIOUS",
    "reason": "antivirus",
    "threatLevel": 5,
    "trustFactor": 5,
    "threatName": "Win32.Trojan.Nsis",
    "malwareFamily": "Nsis",
    "malwareType": "Trojan",
    "platform": "Win32",
    "scannerMatch": 33,
    "scannerCount": 40,
    "scannerPercent": 82.5,
    "firstSeen": "2012-07-12T00:05:00",
    "lastSeen": "2017-08-09T11:40:00",
    "note": null
}
```

And one network reputation row:

```json
{
    "mode": "networkReputation",
    "recordType": "networkReputation",
    "found": true,
    "input": "216.239.34.36",
    "indicator": "216.239.34.36",
    "indicatorType": "ip",
    "classification": null,
    "thirdPartyMalicious": 0,
    "thirdPartyTotal": 11,
    "associatedMalware": false,
    "firstSeen": "2024-02-16T22:41:05",
    "lastSeen": "2024-04-15T10:42:56"
}
```

### FAQ

#### What is ReversingLabs Spectra Intelligence?

Spectra Intelligence (formerly TitaniumCloud) is ReversingLabs' cloud threat intelligence service. It holds reputation, AV scan and analysis data for billions of files plus URL, domain and IP intelligence, and is used by SOC teams and security vendors to triage files and indicators.

#### Do I need my own Spectra Intelligence account?

Yes. This is a bring-your-own-credentials actor: it calls Spectra Intelligence with your username and password, under your ReversingLabs plan, quota and agreement. Missing, rejected or out of quota credentials end the run cleanly with a status message that explains what to change, and nothing is charged.

#### What does UNKNOWN mean in file reputation?

Spectra Intelligence holds no classification for that hash. It is not a verdict that the file is safe. UNKNOWN rows are free and carry a note saying so.

#### Does this actor upload files or submit URLs for analysis?

No. It only reads existing reputation, scan, analysis and threat reports. It never uploads, reanalyzes, detonates or overrides anything, so it never spends upload or sandbox allowances. The dynamic analysis mode returns reports only for samples that were already detonated.

#### Are my queried URLs, domains and IPs shared?

Not by default. Network lookups are sent with `private` set to true, which keeps the queried locations and results away from third-party sources and public feeds. Turn Private queries off only if you want ReversingLabs to share them.

#### Why did a mode end with "not on your plan"?

Each Spectra Intelligence API is licensed separately. A 403 answer means your credentials work but that API is not in your contract. Pick a mode you are licensed for, or ask your ReversingLabs account manager.

#### What happens when my quota runs out?

Spectra Intelligence answers 429 when the daily or monthly quota is reached. The run stops cleanly and says so. Daily quotas reset at 00:00 UTC and monthly ones on the first of the month. A short rate limit answer is waited out and retried.

#### What do I pay?

Pay per result: 0.01 USD per classified file reputation verdict or multi-AV scan record, 0.02 USD per file analysis, sandbox analysis, URL, domain or IP report, and 0.005 USD per bulk network reputation entry. Rows without data and refused requests are never charged. Your Spectra Intelligence subscription is billed separately by ReversingLabs.

### Pricing

| Event | Price | Charged for |
| --- | --- | --- |
| `file-reputation` | 0.01 USD | Each classified file hash verdict |
| `scan-record` | 0.01 USD | Each multi-AV scan record |
| `analysis-report` | 0.02 USD | Each file analysis or sandbox dynamic analysis report |
| `network-report` | 0.02 USD | Each URL, domain or IP threat report |
| `network-reputation` | 0.005 USD | Each bulk network reputation entry |

### Keyword map

ReversingLabs API, Spectra Intelligence API, TitaniumCloud API, file hash reputation, hash lookup API, malware hash check, MD5 SHA1 SHA256 lookup, file reputation API, malware presence, multi-AV scan results, antivirus detections, malware analysis report, sandbox report API, MITRE ATT\&CK, URL reputation, domain reputation, IP reputation, IOC enrichment, threat intelligence API, SOC enrichment, SIEM enrichment, phishing triage.

### Terms and data use

Use of Spectra Intelligence is governed by your own agreement with ReversingLabs. Results are for the key holder's own internal use under that agreement, which limits use to internal purposes, does not allow resale or third-party access, and does not allow using ReversingLabs data to train AI or machine learning models. This actor is a read-only pass-through that runs under your own credentials; it does not store, resell or redistribute ReversingLabs data.

# Actor input Schema

## `mode` (type: `string`):

File reputation checks up to 100 hashes per request and returns the verdict, threat level, threat name and malware family. Multi-AV scan records, File analysis and Sandbox dynamic analysis read one hash each. URL, domain and IP reports read one network location each. Network reputation checks up to 100 mixed URLs, domains and IPs per request. Nothing is ever uploaded or submitted for analysis.

## `hashes` (type: `array`):

File reputation, Multi-AV scan records, File analysis and Sandbox dynamic analysis only. One MD5, SHA1 or SHA256 per line, up to 1,000 a run; the hash type is detected from its length.

## `networkLocations` (type: `array`):

URL, domain, IP report and Network reputation only. One per line, up to 1,000 a run: full http or https URLs for the URL report, bare domains for the domain report, IPv4 or IPv6 addresses for the IP report, any mix for Network reputation.

## `scanHistory` (type: `boolean`):

Multi-AV scan records only. Return up to 20 past scan reports under record instead of only the latest; the columns always show the latest.

## `privateQuery` (type: `boolean`):

URL, domain, IP report and Network reputation only. On (recommended): the queried locations and results are not shared with ReversingLabs third-party sources and stay out of public feeds.

## `includeWhois` (type: `boolean`):

Domain and IP report only. Adds WHOIS registration data (domains) or WHOIS and GeoIP data (IPs) to the report.

## `maxResults` (type: `integer`):

The most rows this run returns and charges for. Each line gives one row, so only this many lines are looked up.

## `requestsPerMinute` (type: `integer`):

Pacing. A rate limit answer is waited out and retried; a used up daily or monthly quota ends the run.

## `apiKey` (type: `string`):

Your own Spectra Intelligence API username (in the form u/company/name), issued by ReversingLabs Support. Stored as a secret, sent only to data.reversinglabs.com in the Basic Authorization header, and never logged. You can also paste username:password here and leave the password empty, or set the DATA_API_KEY secret to username:password.

## `apiSecret` (type: `string`):

The API password that belongs to the username above.

## Actor input object example

```json
{
  "mode": "fileReputation",
  "hashes": [
    "3395856ce81f2b7382dee72602f798b642f14d45"
  ],
  "scanHistory": false,
  "privateQuery": true,
  "includeWhois": false,
  "maxResults": 100,
  "requestsPerMinute": 60
}
```

# Actor output Schema

## `records` (type: `string`):

One row per record returned for the chosen mode.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "hashes": [
        "3395856ce81f2b7382dee72602f798b642f14d45"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nabeelbaghoor/file-hash-reputation-malware-intel-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "hashes": ["3395856ce81f2b7382dee72602f798b642f14d45"] }

# Run the Actor and wait for it to finish
run = client.actor("nabeelbaghoor/file-hash-reputation-malware-intel-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "hashes": [
    "3395856ce81f2b7382dee72602f798b642f14d45"
  ]
}' |
apify call nabeelbaghoor/file-hash-reputation-malware-intel-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nabeelbaghoor/file-hash-reputation-malware-intel-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/x64lgjvlOSZBI1nkO/builds/wAMOkBjWjKAqyIiAV/openapi.json
