maciejklim/IOC-Workbench
GitHub: maciejklim/IOC-Workbench
一组 PowerShell 函数,在命令行中统一查询多个免费威胁情报 API,快速调查 IP、域名、URL 和文件哈希的信誉与恶意指标。
Stars: 0 | Forks: 0
# IOC Workbench
一组独立的 PowerShell 函数,用于通过免费版威胁情报 API 快速查询 IOC(IP / hash / domain / URL)。
## 前置条件
- Netlas 需要安装带有 `netlas` 模块的 Python(`pip install netlas`)。
- 如果您不使用 Netlas,可以跳过此步骤。
## 安装说明
1. 将 `.env.example` 重命名为 `.env` 并填入您的 API 密钥。
该文件的内容说明了每个 API 密钥的获取途径。
2. 在您的 PowerShell Profile 中加载脚本
打开您的 PowerShell profile:
```
notepad $PROFILE
```
如果您没有 PowerShell profile,请创建一个:
```
New-Item -ItemType File -Path $PROFILE -Force
```
3. 添加以下几行,将 `$IocWorkbenchPath` 指向**您下载此仓库的任意位置**:
```
# IOC Workbench - 快速访问的 IOC lookup commands
$IocWorkbenchPath = "C:\path\to\IOC-Workbench" # <-- set this to your directory location
Get-ChildItem -Path $IocWorkbenchPath -Filter "*.ps1" -ErrorAction SilentlyContinue | Unblock-File -ErrorAction SilentlyContinue
. (Join-Path $IocWorkbenchPath "virustotal.ps1")
. (Join-Path $IocWorkbenchPath "abuseipdb.ps1")
. (Join-Path $IocWorkbenchPath "alienvault.ps1")
. (Join-Path $IocWorkbenchPath "greynoise.ps1")
. (Join-Path $IocWorkbenchPath "urlhaus.ps1")
. (Join-Path $IocWorkbenchPath "netlas.ps1")
. (Join-Path $IocWorkbenchPath "dnsfilter.ps1")
```
4. 重启终端(或运行 `. $PROFILE`),使用命令即会生效。
## 使用示例
```
VT evil.com # URL reputation
AbuseIPDB 1.2.3.4 # abuse score, last 90 days
AlienVault evil.example.com # OTX pulses for a domain
GreyNoise 8.8.8.8 # is this IP internet background noise?
URLhaus evil.com # known-malicious URL check
netlas 1.2.3.4 # host recon (note: -IP, not positional)
DNSFilter example.com # domain category / security flag
VT 1.2.3.4 -Json # raw JSON from any tool
```
## 工具
| 命令 | 接受输入 | 功能描述 |
| -------------------- | ------------------------------- | --------------------------------------------------------------------------------- |
| `VT ` | IPv4, MD5/SHA1/SHA256, domain | VirusTotal - 检出率、标签、威胁分类、恶意厂商列表 |
| `AbuseIPDB ` | 仅 IP | AbuseIPDB - 过去 365 天的滥用置信度得分 |
| `AlienVault ` | IP / IPv6 / hash / URL / domain | AlienVault OTX - pulse 数量和汇总的恶意软件家族 |
| `GreyNoise ` | 仅 IP | GreyNoise(社区版) - 互联网噪音 / RIOT 分类 |
| `URLhaus ` | URL / hash / host | abuse.ch URLhaus - 已知恶意 URL 查询 |
| `netlas ` | 仅 IP | Netlas - 地理位置、开放端口、软件/CVE、VPN/proxy/TOR 标志 |
| `DNSFilter ` | 仅 domain / FQDN | DNSFilter - 内容/安全类别分类 |
每个工具还支持 `-Json` 参数,用于输出原始 API 响应,而不是格式化报告:
```
VT 1.2.3.4 -Json
```
## 截图
* AbuseIPDB

* AlienVault OTX

* Greynoise

* Netlas

* URLHaus

* Virustotal

标签:AI合规, GitHub, IOC查询, IPv6, Libemu, PowerShell, 威胁情报, 安全运营, 实时处理, 开发者工具, 扫描框架, 逆向工具