aniket2348823/vigilagent / .agents/skills/analyzing-indicators-of-compromise
analyzing-indicators-of-compromise
VerifiedAnalyzes indicators of compromise (IOCs) including IP addresses, domains, file hashes, URLs, and email artifacts to determine maliciousness confidence, campaign attribution, and blocking priority. Use when triaging IOCs from phishing emails, security alerts, or external threat feeds; enriching raw IOCs with multi-source intelligence; or making block/monitor/whitelist decisions. Activates for requests involving VirusTotal, AbuseIPDB, MalwareBazaar, MISP, or IOC enrichment pipelines.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 11.0 KB |
| SKILL.md | skill md | 7.0 KB |
| references/api-reference.md | markdown | 2.9 KB |
| scripts/agent.py | script | 8.8 KB |
references/api-reference.md
View on GitHub# API Reference: IOC Enrichment Tools
## VirusTotal API v3
### File Hash Lookup
```bash
curl -H "x-apikey: $VT_KEY" \
"https://www.virustotal.com/api/v3/files/<sha256>"
```
### Domain Lookup
```bash
curl -H "x-apikey: $VT_KEY" \
"https://www.virustotal.com/api/v3/domains/<domain>"
```
### IP Lookup
```bash
curl -H "x-apikey: $VT_KEY" \
"https://www.virustotal.com/api/v3/ip_addresses/<ip>"
```
### Key Response Fields
| Field | Description |
|-------|-------------|
| `last_analysis_stats.malicious` | Number of AV engines detecting as malicious |
| `last_analysis_stats.undetected` | AV engines finding clean |
| `reputation` | Community reputation score |
| `popular_threat_classification` | Threat label consensus |
### Python (vt-py)
```python
import vt
client = vt.Client("API_KEY")
file_obj = client.get_object(f"/files/{sha256}")
stats = file_obj.last_analysis_stats
client.close()
```
## AbuseIPDB API v2
### Check IP
```bash
curl -G "https://api.abuseipdb.com/api/v2/check" \
-H "Key: $ABUSE_KEY" -H "Accept: application/json" \
-d "ipAddress=1.2.3.4" -d "maxAgeInDays=90"
```
### Response Fields
| Field | Description |
|-------|-------------|
| `abuseConfidenceScore` | 0-100 abuse confidence |
| `totalReports` | Report count in timeframe |
| `countryCode` | Source country |
| `isp` | Internet service provider |
| `isTor` | Tor exit node flag |
## MalwareBazaar API (abuse.ch)
### Hash Lookup
```bash
curl -X POST "https://mb-api.abuse.ch/api/v1/" \
-d "query=get_info" -d "hash=<sha256>"
```
### Response Fields
| Field | Description |
|-------|-------------|
| `signature` | Malware family name |
| `tags` | Associated tags |
| `file_type` | File type identification |
| `first_seen` | First submission date |
| `reporter` | Submitting analyst |
## URLScan.io API
### Submit URL for Scan
```bash
curl -X POST "https://urlscan.io/api/v1/scan/" \
-H "API-Key: $KEY" -H "Content-Type: application/json" \
-d '{"url": "http://suspicious.com", "visibility": "private"}'
```
### Retrieve Results
```bash
curl "https://urlscan.io/api/v1/result/<uuid>/"
```
## Shodan API
### IP Lookup
```bash
curl "https://api.shodan.io/shodan/host/<ip>?key=$SHODAN_KEY"
```
### Response Fields
| Field | Description |
|-------|-------------|
| `ports` | Open ports list |
| `os` | Operating system |
| `org` | Organization |
| `asn` | Autonomous system number |
| `hostnames` | Associated hostnames |
## IOC Confidence Scoring Framework
| Score | Disposition | Criteria |
|-------|-------------|----------|
| >= 70 | BLOCK | 15+ VT detections, AbuseIPDB >= 70%, or MalwareBazaar match |
| 40-69 | MONITOR | 5-14 VT detections, moderate abuse score |
| < 40 | INVESTIGATE | Low detection, no campaign attribution |
## Defanging Convention
| Original | Defanged |
|----------|----------|
| `http://` | `hxxp://` |
| `https://` | `hxxps://` |
| `.com` | `[.]com` |
| `evil.com` | `evil[.]com` |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |