# IP Reputation API: Attack Behaviors, CVEs and Noise Score (`nabeelbaghoor/ip-reputation-attack-behavior-api`) Actor

IP reputation lookup on your own CrowdSec CTI key: crowdsourced verdict, attack behaviors, targeted CVEs, MITRE techniques, background noise score, threat scores, ASN, geo and first or last seen for each IP. Batch, Lucene search and fire feed modes for paid keys. Bring your own key.

- **URL**: https://apify.com/nabeelbaghoor/ip-reputation-attack-behavior-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

$10.00 / 1,000 ip reputation records

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

## IP Reputation API: Attack Behaviors, CVEs and Noise Score

Check any IPv4 or IPv6 address against the CrowdSec CTI crowdsourced IP reputation database on your own key, and get one clean row per IP with its verdict, attack behaviors, targeted CVEs, background noise score, threat scores, ASN, geo and first and last seen dates.

Works with the CrowdSec CTI API v2 (cti.api.crowdsec.net/v2), the "smoke" database built from attack signals shared by CrowdSec deployments worldwide, using only the calls in CrowdSec's published OpenAPI document: `/smoke/{ip}`, `/smoke?ips=`, `/smoke/search` and `/fire`.

Bring your own API key, route-checked but not live-tested: every call and field comes from CrowdSec's OpenAPI document, its CTI documentation and its own open source clients, and the routes were checked with probes. The actor has not been run against a live CrowdSec account.

### What it does

- **IP lookup**: one call per IP, works with every key including the free Community key. Returns reputation (malicious, suspicious, known, safe, benign or unknown) and confidence.
- **Attack behaviors and CVEs**: the behaviors an IP was reported for (SSH bruteforce, HTTP scan, HTTP exploit and more), the CVEs it tried to exploit, the CrowdSec scenarios it triggered and the MITRE ATT\&CK techniques they map to.
- **Background noise score**: 0 to 10, how much of an IP's traffic is internet-wide scanning noise, so alert triage can tell targeted attacks from background scanners.
- **Scores over time**: overall aggressiveness, threat, trust and anomaly, plus total score for the last day, week and month.
- **Network context**: ASN and AS name, country, city and coordinates, reverse DNS, proxy or VPN flag, the IP range and /24 range reputation, and classifications such as Tor exit node or known false positives like search engine crawlers.
- **Batch IP lookup**: up to 100 IPs a call for Premium keys.
- **Search**: Lucene queries such as all IPs exploiting one CVE, or all SSH bruteforcers in one AS, for Advanced CTI plans.
- **Fire feed**: the list of IPs CrowdSec currently rates as malevolent, for plans that include it.
- **Pay only for records**: IPs CrowdSec has never seen, unusable input and refused requests are free rows that say why.

### How to get an API key

Open the CrowdSec Console, go to Settings, CTI API Keys and create a key. The free Community key includes 120 lookups a month; Premium plans include 1500 a month and paid keys go to 5K, 25K or 100K a month. Batch lookup needs a Premium key and search over the API needs an Advanced CTI plan. Paste the key into the API key field, or set the DATA_API_KEY secret. It is sent only to cti.api.crowdsec.net in the x-api-key header and is removed from every log line.

### Input

| Field | Modes | Description |
| --- | --- | --- |
| `mode` | all | `ipLookup` (default), `batchLookup`, `search` or `fire` |
| `ips` | ipLookup, batchLookup | IPv4 or IPv6 addresses, up to 1000 a run |
| `query` | search | Lucene query, such as `cves:"CVE-2021-26086"` |
| `since` | search, fire | Updated in the last `4h`, `7d`, `30m` and so on |
| `maxResults` | search, fire | Stop after this many IPs, default 100 |
| `pageSize` | search, fire | IPs per API call, default 100, at most 1000 |
| `requestsPerMinute` | all | Pacing for every call, default 30 |
| `apiKey` | all | Your CrowdSec CTI API key (or the DATA_API_KEY secret) |

Example: enrich three IPs from a firewall alert.

```json
{
    "mode": "ipLookup",
    "ips": ["185.220.101.1", "192.0.2[.]10", "2001:db8::1"]
}
```

Example: every IP seen exploiting one CVE in the last week (Advanced CTI plan).

```json
{
    "mode": "search",
    "query": "cves:\"CVE-2021-26086\"",
    "since": "7d",
    "maxResults": 500
}
```

### Example output

An illustrative row, shaped like the documented CTI object (values are an example). The full CTI object is kept under `record`.

```json
{
    "mode": "ipLookup",
    "recordType": "ipReputation",
    "found": true,
    "input": "192.0.2.10",
    "ip": "192.0.2.10",
    "reputation": "malicious",
    "confidence": "high",
    "backgroundNoise": "high",
    "backgroundNoiseScore": 10,
    "behaviors": ["HTTP Exploit", "HTTP Scan", "SSH Bruteforce"],
    "behaviorNames": ["http:exploit", "http:scan", "ssh:bruteforce"],
    "cves": ["CVE-2021-26086"],
    "attackDetails": ["crowdsecurity/http-probing", "crowdsecurity/ssh-bf"],
    "mitreTechniques": ["T1190", "T1110"],
    "classifications": ["Tor exit node"],
    "falsePositives": [],
    "asName": "EXAMPLE-AS",
    "asNum": 64500,
    "country": "DE",
    "city": "Frankfurt am Main",
    "reverseDns": "host.example.net",
    "ipRange24": "192.0.2.0/24",
    "ipRange24Reputation": "suspicious",
    "firstSeen": "2026-06-01T10:15:00+00:00",
    "lastSeen": "2026-11-11T22:45:00+00:00",
    "scoreTotal": 5,
    "aggressiveness": 5,
    "threat": 4,
    "trust": 5,
    "anomaly": 1,
    "scoreLastDay": 5,
    "scoreLastWeek": 5,
    "scoreLastMonth": 5,
    "checkedAt": "2026-11-12T09:30:24.102Z",
    "note": null
}
```

### FAQ

#### What is CrowdSec CTI?

CrowdSec CTI is a crowdsourced IP reputation and cyber threat intelligence database. CrowdSec security engines running on servers worldwide share signals about the IPs that attack them, and CrowdSec turns those signals into a reputation, attack behaviors, targeted CVEs and scores for each IP.

#### Do I need my own CrowdSec API key?

Yes. This is a bring-your-own-key actor: it calls the CrowdSec CTI API with your key, under your quota and the CrowdSec EULA you agreed to. A missing, refused or exhausted key ends the run cleanly with a status message that explains what to change, and nothing is charged.

#### Which mode works with the free Community key?

IP lookup. Each IP uses one lookup from the Community key's 120 a month. Batch lookup needs a Premium key, search needs an Advanced CTI plan, and the fire feed needs a plan that includes it; with a key that lacks access the run ends cleanly and says so.

#### What does the background noise score mean?

It runs from 0 to 10 and says how much of an IP's activity is mass internet scanning rather than targeted attacks. A high score points to a background scanner; a low score with a malicious reputation points to something more deliberate.

#### What happens to an IP CrowdSec has never seen?

It comes back as a free row with found set to false and a note. In batch mode, IPs missing from the answer are returned the same way.

#### Can I find every IP attacking a specific CVE?

Yes, with search mode and an Advanced CTI plan: use a query such as `cves:"CVE-2021-26086"` and a time window such as `7d`. Other useful fields are `behaviors.label`, `classifications.classifications.label`, `as_name`, `location.country` and `reputation`.

#### What do I pay?

0.01 USD per IP that CrowdSec has a record for. Unknown IPs, unusable input and refused requests are never charged. Your CrowdSec key or plan is billed separately by CrowdSec.

### Pricing

| Event | Price | Charged for |
| --- | --- | --- |
| `ip-reputation-record` | 0.01 USD | Each IP returned with a CrowdSec CTI record |

### Keyword map

IP reputation API, IP reputation lookup, CrowdSec CTI API, CrowdSec smoke API, malicious IP checker, IP threat intelligence, IP blocklist enrichment, background noise score, internet scanner detection, CVE exploitation IPs, attack behavior lookup, MITRE ATT\&CK enrichment, SSH bruteforce IPs, Tor exit node check, SOC enrichment, SIEM enrichment, SOAR enrichment, bulk IP lookup.

### Terms and data use

Use of the CrowdSec CTI API is governed by your own agreement with CrowdSec (the CrowdSec EULA v2). Article 6 grants the right of use for the exclusive internal needs of the End User and prohibits using the Solution or its data to provide services to third parties, and distributing or marketing IP addresses or attack scenarios from the service, whether free or paid. This actor is a pass-through that runs under your own key for your own internal security workflows; it does not resell or redistribute CrowdSec data, and you should not share or publish the resulting datasets outside your organisation.

# Actor input Schema

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

IP lookup reads each IP with its own call and works with every key, including the free Community key (each IP uses one lookup from your quota). Batch IP lookup reads up to 100 IPs a call and needs a Premium key. Search runs a Lucene query over the CTI database and needs an Advanced CTI plan. Fire feed lists IPs CrowdSec currently rates as malevolent and needs a plan that includes it.

## `ips` (type: `array`):

IP lookup and batch IP lookup only. IPv4 or IPv6 addresses, one per line (commas also work), up to 1000 a run. Defanged values such as 192.0.2\[.]10 are restored first. Duplicates are removed.

## `query` (type: `string`):

Search only. A Lucene query over the CTI fields, for example cves:"CVE-2021-26086", behaviors.label:"SSH Bruteforce", reputation:"malicious" AND location.country:"FR", or as_name:"AMAZON-02". Use AND, OR and NOT in upper case.

## `since` (type: `string`):

Search and fire feed only. Only IPs updated in this window, as a duration in hours (h), days (d) or minutes (m), such as 4h, 7d or 30m. Left empty, search uses 30d and the fire feed uses its own default of 7d.

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

Search and fire feed only. Stop after this many IPs. Each IP with a record is one charged result.

## `pageSize` (type: `integer`):

Search and fire feed only. How many IPs each API call asks for (the limit parameter, at most 1000).

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

Pacing for every API call. A throttled 429 answer is waited out and retried; a spent monthly quota ends the run cleanly.

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

Your own CrowdSec CTI API key, from the CrowdSec Console under Settings, CTI API Keys (a free Community key has 120 lookups a month). Stored as a secret, sent only to cti.api.crowdsec.net in the x-api-key header, and never logged. You can instead set the DATA_API_KEY environment secret.

## Actor input object example

```json
{
  "mode": "ipLookup",
  "ips": [
    "185.220.101.1"
  ],
  "maxResults": 100,
  "pageSize": 100,
  "requestsPerMinute": 30
}
```

# Actor output Schema

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

One row per IP looked up or returned by a search or the fire feed.

# 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 = {
    "ips": [
        "185.220.101.1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("nabeelbaghoor/ip-reputation-attack-behavior-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 = { "ips": ["185.220.101.1"] }

# Run the Actor and wait for it to finish
run = client.actor("nabeelbaghoor/ip-reputation-attack-behavior-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 '{
  "ips": [
    "185.220.101.1"
  ]
}' |
apify call nabeelbaghoor/ip-reputation-attack-behavior-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nabeelbaghoor/ip-reputation-attack-behavior-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/BgtwPfxac7BIK400y/builds/o7KsFtThnIkVS7JWt/openapi.json
