IP Threat Check
Check IP address threat intelligence from multiple sources.
Features
- - Multi-source Query - Query multiple threat intelligence sources
- Geolocation - Get IP geolocation info
- Threat Score - Check abuse/threat scores
- History - View recent abuse reports
- Bulk Check - Check multiple IPs at once
Usage
CODEBLOCK0
Actions
| Action | Description |
|---|
| INLINECODE0 | Check single IP address |
| INLINECODE1 |
Check multiple IPs |
|
info | Get basic IP info (no API key needed) |
Options
| Option | Type | Default | Description |
|---|
| INLINECODE3 | string | - | IP address to check |
| INLINECODE4 |
string | - | File with IPs (one per line) |
|
--source | string | all | Source (all, abuseipdb, ipapi) |
|
--days | int | 30 | Days of history to check |
Data Sources
| Source | API Key | Info Provided |
|---|
| ip-api.com | ❌ Free | Geolocation, ISP |
| AbuseIPDB |
✅ Required | Threat score, reports |
| VirusTotal | ✅ Optional | Additional threat info |
Examples
CODEBLOCK1
Environment Variables
| Variable | Required | Description |
|---|
| INLINECODE7 | Optional | AbuseIPDB API key |
Output Example
CODEBLOCK2
Use Cases
- 1. Security Analysis - Check suspicious IPs
- Log Analysis - Enrich log data with threat info
- Incident Response - Quick IP reputation check
- Threat Hunting - Identify malicious IPs
Current Status
In development.
IP威胁检查
从多个来源检查IP地址威胁情报。
功能特性
- - 多源查询 - 查询多个威胁情报来源
- 地理位置 - 获取IP地理位置信息
- 威胁评分 - 检查滥用/威胁评分
- 历史记录 - 查看近期滥用报告
- 批量检查 - 同时检查多个IP
使用方法
bash
python3 skills/ip-threat-check/scripts/ip_threat.py <动作> [选项]
动作列表
批量检查多个IP |
| info | 获取基本IP信息(无需API密钥) |
选项说明
| 选项 | 类型 | 默认值 | 描述 |
|---|
| --ip | 字符串 | - | 待检查的IP地址 |
| --file |
字符串 | - | 包含IP地址的文件(每行一个) |
| --source | 字符串 | all | 数据来源(all, abuseipdb, ipapi) |
| --days | 整数 | 30 | 检查的历史天数 |
数据来源
| 来源 | API密钥 | 提供信息 |
|---|
| ip-api.com | ❌ 免费 | 地理位置、ISP |
| AbuseIPDB |
✅ 必需 | 威胁评分、报告 |
| VirusTotal | ✅ 可选 | 额外威胁信息 |
示例
bash
基本IP信息(无需API密钥)
python3 skills/ip-threat-check/scripts/ip_threat.py info --ip 8.8.8.8
完整威胁检查(需要API密钥)
python3 skills/ip-threat-check/scripts/ip_threat.py check --ip 192.168.1.1
批量检查
python3 skills/ip-threat-check/scripts/ip_threat.py bulk --file ips.txt
环境变量
| 变量 | 必需 | 描述 |
|---|
| ABUSEIPDBAPIKEY | 可选 | AbuseIPDB API密钥 |
输出示例
json
{
success: true,
ip: 8.8.8.8,
geolocation: {
country: 美国,
city: 山景城,
isp: Google LLC
},
threat: {
score: 0,
reports: 0,
risk: 低
}
}
使用场景
- 1. 安全分析 - 检查可疑IP
- 日志分析 - 用威胁信息丰富日志数据
- 事件响应 - 快速IP信誉检查
- 威胁狩猎 - 识别恶意IP
当前状态
开发中。