VT Hash Intel — VirusTotal Threat Intelligence
Check any IOC (Indicator of Compromise) against VirusTotal's 70+ security engines. Supports four IOC types:
| Type |
Example |
VT Endpoint |
| Hash (MD5/SHA1/SHA256) |
44d88612fea8a8f36de82e1278abb02f |
/files/{hash} |
| URL |
https://malicious-site.com/payload |
/urls/{id} |
| Domain |
evil-domain.com |
/domains/{domain} |
| IP Address |
1.2.3.4 |
/ip_addresses/{ip} |
Prerequisites
VT_API_KEY environment variable must be set. Free key: https://www.virustotal.com/gui/my-apikey
Instructions
Step 1: Identify IOCs from user input
The script auto-detects IOC type:
- Hash: 32 hex chars (MD5), 40 hex chars (SHA1), 64 hex chars (SHA256)
- URL: starts with
http:// or https://
- IP: IPv4 format like
1.2.3.4
- Domain: everything else with dots and valid TLD (e.g.
evil.com)
The script also handles defanged IOCs automatically:
hxxp:// → http://
hXXp:// → http://
evil[.]com → evil.com
1[.]2[.]3[.]4 → 1.2.3.4
Step 2: Run the lookup
SKILL_DIR="$(dirname "$(find /root/.openclaw -name 'SKILL.md' -path '*/vt-hash-intel/*' 2>/dev/null | head -1)")"
# Single IOC (auto-detect type)
python3 "$SKILL_DIR/scripts/vt_lookup.py" <ioc>
# Mixed batch (hashes + URLs + domains + IPs together)
python3 "$SKILL_DIR/scripts/vt_lookup.py" <hash> <url> <domain> <ip>
# Force type if auto-detection is wrong
python3 "$SKILL_DIR/scripts/vt_lookup.py" --type domain example.com
Step 3: Parse and present results
The JSON output always contains these common fields:
ioc: the queried value
ioc_type: "hash" | "url" | "domain" | "ip"
detection_ratio: e.g. "45/72"
threat_level: "clean" | "low" | "medium" | "high"
threat_emoji: ✅ | ⚠️ | 🟠 | 🔴
detections: array of engines that flagged it
reputation: VT community reputation score
vt_link: direct link to the VT report
error: non-null if something went wrong
Hash-specific fields: sha256, md5, sha1, file_name, file_type, file_size_human, threat_label, popular_threat_name, crowdsourced_yara, sandbox_verdicts, sigma_rules
URL-specific fields: url, final_url, title, categories
Domain-specific fields: registrar, creation_date, dns_records, categories, popularity_ranks
IP-specific fields: asn, as_owner, country, network
Step 4: Format the response
IMPORTANT: Always present full contextual analysis regardless of threat level. Even when an IOC is "clean" (0 detections), the contextual information is extremely valuable for security analysis. A clean VT result does NOT mean an IOC is safe — it may be too new, targeted, or simply not yet submitted.
For hashes — present:
- Verdict line (emoji + level + detection ratio)
- File info: name, type, size, first seen date
- Threat classification (if malicious): family name, threat label
- Top engine detections (if any)
- YARA rules, sandbox verdicts, Sigma rules (if any)
- VT link
- Contextual analysis + recommendations
For URLs — present:
- Verdict line
- URL + final redirected URL (flag if different — could indicate redirect chain)
- Page title
- Categories assigned by security vendors
- Top detections (if any)
- VT link
- Contextual analysis: analyze whether the URL pattern looks suspicious (random strings, suspicious TLD, known bad path patterns like /wp-content/uploads/*.exe)
- Recommendations
For domains — always present these even if clean:
- Verdict line
- Registrar + creation date (flag if newly registered within last 30 days — common for phishing/malware)
- DNS records (A, AAAA, MX, NS, TXT records — helps identify hosting and infrastructure)
- Categories from security vendors
- Popularity ranking (low/no ranking on a queried domain can be suspicious)
- Reputation score
- VT link
- Contextual analysis: note if domain is very new, uses suspicious TLD, has low popularity, or uses known bulletproof hosting
- Recommendations
For IPs — always present these even if clean:
- Verdict line
- ASN number + AS owner (helps identify hosting provider — flag known bulletproof hosters)
- Country (geographic context)
- Network CIDR range
- Reputation score
- VT link
- Contextual analysis: note if IP belongs to a cloud provider, VPS, residential proxy, or known hosting provider. Flag countries commonly associated with malicious infrastructure if relevant.
- Recommendations
Threat level classification (same for all types):
| Malicious Detections |
Level |
Emoji |
| 0 |
clean |
✅ |
| 1–5 |
low |
⚠️ |
| 6–15 |
medium |
🟠 |
| 16+ |
high |
🔴 |
Step 5: Recommendations
Always provide actionable recommendations based on threat level AND context:
- 🔴 high: Block immediately in firewall/EDR/proxy, sweep environment for related IOCs, investigate affected hosts, collect lateral IOCs (related hashes/domains/IPs from VT)
- 🟠 medium: Likely malicious — isolate and investigate, submit to sandbox, check network IOCs
- ⚠️ low: Possible false positive — verify with sandbox, check file/URL context and origin, monitor
- ✅ clean: Present all available context (ASN, country, registrar, DNS, categories, reputation). Remind user: "Clean on VT does not guarantee safety — the IOC may be too new, too targeted, or not yet submitted. Consider checking other threat intel sources (AbuseIPDB, Shodan, URLhaus, etc.)."
- ❓ not found: Never submitted to VT — does NOT mean safe. Suggest uploading file to VT, or checking AlienVault OTX, AbuseIPDB, URLhaus for additional coverage.
For batch results with mixed types, present a summary table first (IOC | type | verdict | detection ratio | key finding), then detailed reports for each item.
Error Handling
| Error |
Cause |
Response |
NotFoundError |
IOC not in VT DB |
"Not found in VT. This does NOT mean it's safe." |
AuthenticationError |
Bad/missing API key |
"Check VT_API_KEY in your .env file." |
QuotaExceededError |
Rate limit hit |
"Rate limited. Wait and retry." |
UnrecognizedIOC |
Cannot detect type |
"Cannot identify this IOC type. Try --type flag." |
ConnectionError |
Network issue |
"Cannot reach VT API. Check network." |
Examples
User: 帮我查一下这个hash 44d88612fea8a8f36de82e1278abb02f
Agent: Detects MD5 hash → runs lookup → presents file threat report.
User: Check this URL: https://suspicious-site.com/download.exe
Agent: Detects URL → runs lookup → presents URL analysis with categories and detections.
User: 这个域名安全吗?evil-domain.com
Agent: Detects domain → runs lookup → presents domain report with DNS, WHOIS, and detections.
User: 查一下这些IOC:
44d88612fea8a8f36de82e1278abb02f
hxxps://bad-site[.]com/malware
evil.com
1.2.3.4
Agent: Detects mixed types → runs batch lookup → presents summary table then individual reports sorted by severity.
1---
2name: vt-hash-intel
3description: >
4 Instantly check if a file, URL, domain, or IP is malicious using VirusTotal.
5 Paste any MD5/SHA1/SHA256 hash, URL, domain name, or IP address into the chat
6 and get a full threat report — detection ratio across 70+ security engines,
7 malware family, YARA matches, sandbox verdicts, DNS records, WHOIS info, and
8 a direct link to the VirusTotal report. Supports single and batch lookups of
9 mixed IOC types. Also handles defanged IOCs (hxxp, [.] notation).
10 Perfect for incident response, threat hunting, IOC enrichment, SOC triage,
11 and daily security operations. Use this skill whenever the user has a suspicious
12 hash, URL, domain, or IP they want to investigate.
13 Also triggers on: VirusTotal, VT, hash lookup, malware check, file reputation,
14 threat intel, IOC, URL scan, domain reputation, IP reputation,
15 查hash, 查IP, 查域名, 查URL, 威胁情报, 病毒查询, 恶意软件分析.
16version: 2.0.0
17metadata:
18 source: https://skillmd.com/skills/modbender/vt-hash-intel
19 openclaw:
20 requires:
21 env:
22 - VT_API_KEY
23---
24
25# VT Hash Intel — VirusTotal Threat Intelligence
26
27Check any IOC (Indicator of Compromise) against VirusTotal's 70+ security engines. Supports four IOC types:
28
29| Type | Example | VT Endpoint |
30|---|---|---|
31| **Hash** (MD5/SHA1/SHA256) | `44d88612fea8a8f36de82e1278abb02f` | `/files/{hash}` |
32| **URL** | `https://malicious-site.com/payload` | `/urls/{id}` |
33| **Domain** | `evil-domain.com` | `/domains/{domain}` |
34| **IP Address** | `1.2.3.4` | `/ip_addresses/{ip}` |
35
36## Prerequisites
37
38`VT_API_KEY` environment variable must be set. Free key: https://www.virustotal.com/gui/my-apikey
39
40## Instructions
41
42### Step 1: Identify IOCs from user input
43
44The script auto-detects IOC type:
45- **Hash**: 32 hex chars (MD5), 40 hex chars (SHA1), 64 hex chars (SHA256)
46- **URL**: starts with `http://` or `https://`
47- **IP**: IPv4 format like `1.2.3.4`
48- **Domain**: everything else with dots and valid TLD (e.g. `evil.com`)
49
50The script also handles **defanged IOCs** automatically:
51- `hxxp://` → `http://`
52- `hXXp://` → `http://`
53- `evil[.]com` → `evil.com`
54- `1[.]2[.]3[.]4` → `1.2.3.4`
55
56### Step 2: Run the lookup
57
58```bash
59SKILL_DIR="$(dirname "$(find /root/.openclaw -name 'SKILL.md' -path '*/vt-hash-intel/*' 2>/dev/null | head -1)")"
60
61# Single IOC (auto-detect type)
62python3 "$SKILL_DIR/scripts/vt_lookup.py" <ioc>
63
64# Mixed batch (hashes + URLs + domains + IPs together)
65python3 "$SKILL_DIR/scripts/vt_lookup.py" <hash> <url> <domain> <ip>
66
67# Force type if auto-detection is wrong
68python3 "$SKILL_DIR/scripts/vt_lookup.py" --type domain example.com
69```
70
71### Step 3: Parse and present results
72
73The JSON output always contains these common fields:
74- `ioc`: the queried value
75- `ioc_type`: "hash" | "url" | "domain" | "ip"
76- `detection_ratio`: e.g. "45/72"
77- `threat_level`: "clean" | "low" | "medium" | "high"
78- `threat_emoji`: ✅ | ⚠️ | 🟠 | 🔴
79- `detections`: array of engines that flagged it
80- `reputation`: VT community reputation score
81- `vt_link`: direct link to the VT report
82- `error`: non-null if something went wrong
83
84**Hash-specific fields**: `sha256`, `md5`, `sha1`, `file_name`, `file_type`, `file_size_human`, `threat_label`, `popular_threat_name`, `crowdsourced_yara`, `sandbox_verdicts`, `sigma_rules`
85
86**URL-specific fields**: `url`, `final_url`, `title`, `categories`
87
88**Domain-specific fields**: `registrar`, `creation_date`, `dns_records`, `categories`, `popularity_ranks`
89
90**IP-specific fields**: `asn`, `as_owner`, `country`, `network`
91
92### Step 4: Format the response
93
94IMPORTANT: Always present full contextual analysis regardless of threat level. Even when an IOC is "clean" (0 detections), the contextual information is extremely valuable for security analysis. A clean VT result does NOT mean an IOC is safe — it may be too new, targeted, or simply not yet submitted.
95
96**For hashes** — present:
97- Verdict line (emoji + level + detection ratio)
98- File info: name, type, size, first seen date
99- Threat classification (if malicious): family name, threat label
100- Top engine detections (if any)
101- YARA rules, sandbox verdicts, Sigma rules (if any)
102- VT link
103- Contextual analysis + recommendations
104
105**For URLs** — present:
106- Verdict line
107- URL + final redirected URL (flag if different — could indicate redirect chain)
108- Page title
109- Categories assigned by security vendors
110- Top detections (if any)
111- VT link
112- Contextual analysis: analyze whether the URL pattern looks suspicious (random strings, suspicious TLD, known bad path patterns like /wp-content/uploads/*.exe)
113- Recommendations
114
115**For domains** — always present these even if clean:
116- Verdict line
117- Registrar + creation date (flag if newly registered within last 30 days — common for phishing/malware)
118- DNS records (A, AAAA, MX, NS, TXT records — helps identify hosting and infrastructure)
119- Categories from security vendors
120- Popularity ranking (low/no ranking on a queried domain can be suspicious)
121- Reputation score
122- VT link
123- Contextual analysis: note if domain is very new, uses suspicious TLD, has low popularity, or uses known bulletproof hosting
124- Recommendations
125
126**For IPs** — always present these even if clean:
127- Verdict line
128- ASN number + AS owner (helps identify hosting provider — flag known bulletproof hosters)
129- Country (geographic context)
130- Network CIDR range
131- Reputation score
132- VT link
133- Contextual analysis: note if IP belongs to a cloud provider, VPS, residential proxy, or known hosting provider. Flag countries commonly associated with malicious infrastructure if relevant.
134- Recommendations
135
136Threat level classification (same for all types):
137
138| Malicious Detections | Level | Emoji |
139|---|---|---|
140| 0 | clean | ✅ |
141| 1–5 | low | ⚠️ |
142| 6–15 | medium | 🟠 |
143| 16+ | high | 🔴 |
144
145### Step 5: Recommendations
146
147Always provide actionable recommendations based on threat level AND context:
148
149- **🔴 high**: Block immediately in firewall/EDR/proxy, sweep environment for related IOCs, investigate affected hosts, collect lateral IOCs (related hashes/domains/IPs from VT)
150- **🟠 medium**: Likely malicious — isolate and investigate, submit to sandbox, check network IOCs
151- **⚠️ low**: Possible false positive — verify with sandbox, check file/URL context and origin, monitor
152- **✅ clean**: Present all available context (ASN, country, registrar, DNS, categories, reputation). Remind user: "Clean on VT does not guarantee safety — the IOC may be too new, too targeted, or not yet submitted. Consider checking other threat intel sources (AbuseIPDB, Shodan, URLhaus, etc.)."
153- **❓ not found**: Never submitted to VT — does NOT mean safe. Suggest uploading file to VT, or checking AlienVault OTX, AbuseIPDB, URLhaus for additional coverage.
154
155For batch results with mixed types, present a summary table first (IOC | type | verdict | detection ratio | key finding), then detailed reports for each item.
156
157## Error Handling
158
159| Error | Cause | Response |
160|---|---|---|
161| `NotFoundError` | IOC not in VT DB | "Not found in VT. This does NOT mean it's safe." |
162| `AuthenticationError` | Bad/missing API key | "Check VT_API_KEY in your .env file." |
163| `QuotaExceededError` | Rate limit hit | "Rate limited. Wait and retry." |
164| `UnrecognizedIOC` | Cannot detect type | "Cannot identify this IOC type. Try --type flag." |
165| `ConnectionError` | Network issue | "Cannot reach VT API. Check network." |
166
167## Examples
168
169**User**: 帮我查一下这个hash 44d88612fea8a8f36de82e1278abb02f
170**Agent**: Detects MD5 hash → runs lookup → presents file threat report.
171
172**User**: Check this URL: https://suspicious-site.com/download.exe
173**Agent**: Detects URL → runs lookup → presents URL analysis with categories and detections.
174
175**User**: 这个域名安全吗?evil-domain.com
176**Agent**: Detects domain → runs lookup → presents domain report with DNS, WHOIS, and detections.
177
178**User**: 查一下这些IOC:
17944d88612fea8a8f36de82e1278abb02f
180hxxps://bad-site[.]com/malware
181evil.com
1821.2.3.4
183**Agent**: Detects mixed types → runs batch lookup → presents summary table then individual reports sorted by severity.