Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:0xKoda WireMCP Internet Access

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Security, Threat_Intelligence
Last Updated 2026-10-28 00:00 GMT

Overview

Outbound HTTPS internet access to `urlhaus.abuse.ch` required for fetching the URLhaus threat-intelligence blacklist used by WireMCP's threat-check tools.

Description

This environment represents network reachability to the public URLhaus API endpoint (`https://urlhaus.abuse.ch/downloads/text/`). WireMCP's `check_threats` and `check_ip_threats` tools issue an outbound HTTPS GET via `axios` to download the full URLhaus malicious-URL/IP text dump, then extract IPv4 addresses from it via regex to build a blacklist set. No authentication is required — URLhaus is a public feed. The fetch is wrapped in a try/catch that degrades to an empty array on failure, so lack of internet access does not crash the tool, but it silently disables threat detection (all IPs report as "No threats detected").

= Usage

Use this environment for the threat-intelligence lookup tools (`check_threats` and `check_ip_threats`). It is the mandatory prerequisite for the `axios_urlhaus_fetch` implementation to return a populated blacklist. Without this environment, the URLhaus fetch fails and threat checks silently return empty results.

System Requirements

Category Requirement Notes
Network Outbound HTTPS to `urlhaus.abuse.ch:443` Must allow egress; proxies must permit the host
DNS Resolution of `urlhaus.abuse.ch` Standard public DNS
Hardware Any modern CPU No GPU; minimal bandwidth (blacklist is ~1-5MB)

Dependencies

System Packages

  • None beyond a working network stack and DNS resolver

npm Packages

  • `axios` >= 1.8.4 (HTTP client performing the GET)

Credentials

No API credentials or environment variables are required. URLhaus is a public threat-intelligence feed — the endpoint `https://urlhaus.abuse.ch/downloads/text/` is unauthenticated. If a corporate proxy is in use, standard `HTTPS_PROXY` / `HTTP_PROXY` environment variables are respected by axios.

Quick Install

# Verify outbound reachability to URLhaus (no auth required)
curl -sI https://urlhaus.abuse.ch/downloads/text/ | head -n 1
# Expected: HTTP/1.1 200 OK (or a 3xx redirect to the dump)

Code Evidence

URLhaus endpoint and unauthenticated GET from `index.js:208-214`:

const urlhausUrl = 'https://urlhaus.abuse.ch/downloads/text/';
const response = await axios.get(urlhausUrl);
console.error(`URLhaus response status: ${response.status}, length: ${response.data.length} chars`);

Graceful-degradation fallback to empty array on fetch failure from `index.js:227-230`:

} catch (e) {
  console.error(`Failed to fetch URLhaus data: ${e.message}`);
  urlhausData = [];
}

Common Errors

Error Message Cause Solution
`Failed to fetch URLhaus data: getaddrinfo ENOTFOUND` DNS resolution failed Check DNS; ensure `urlhaus.abuse.ch` resolves
`Failed to fetch URLhaus data: connect ETIMEDOUT` Egress blocked / firewall Allow outbound HTTPS to `urlhaus.abuse.ch:443`; configure `HTTPS_PROXY`
`Failed to fetch URLhaus data: certificate ...` TLS interception with bad cert Trust the proxy's CA, or set `NODE_EXTRA_CA_CERTS`
Silent "No threats detected" for all IPs Fetch failed and degraded to `[]` Check stderr logs for `Failed to fetch URLhaus data`; verify connectivity

Compatibility Notes

  • Air-gapped environments: URLhaus is unreachable; threat checks silently return empty results (graceful degradation). All other WireMCP tools (capture, dissection, stats, PCAP analysis, credentials) work without internet.
  • Corporate proxies: axios honors `HTTP_PROXY` / `HTTPS_PROXY` env vars. Set these if egress requires a proxy.
  • Rate limiting: URLhaus may rate-limit aggressive callers. WireMCP fetches the full dump once per `check_threats`/`check_ip_threats` invocation — no caching, so frequent calls may hit limits.
  • No caching: The blacklist is re-fetched on every invocation. For high-frequency use, consider caching the response externally.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment