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:416rehman DeepZero Internet Access

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

Overview

Outbound HTTPS access to download the loldrivers.io threat-intelligence database used by the LoldriversFilter processor.

Description

This environment provides outbound internet connectivity to `https://www.loldrivers.io/api/drivers.json`. The `LoldriversFilter` processor downloads the known-vulnerable-driver database on first run (or when the cached copy is older than the configured TTL, default 7 days) and stores it under `.cache/loldrivers_filter/`. The download uses Python's `http.client.HTTPSConnection` with a 30-second timeout and refuses non-HTTPS URLs. If internet is unavailable, the filter silently passes all samples (no hashes loaded) rather than failing the run.

Usage

Use this environment when running the loldrivers pipeline (or any pipeline using the `LoldriversFilter` processor) for the first time, or when the cached database has expired. If a local `db_path` is configured or a fresh cached copy exists, internet access is not needed at run time.

System Requirements

Category Requirement Notes
OS Any Must allow outbound HTTPS
Hardware Any No special hardware
Disk ~5-20 MB Cached DB file under `.cache/`
Network Outbound HTTPS to loldrivers.io 30s connection timeout

Dependencies

System Packages

  • None beyond the base Python environment

Python Packages

  • Python >= 3.11 (base DeepZero requirement)
  • Standard library only (`http.client`, `urllib.parse`)

Credentials

No credentials required. The loldrivers.io API is public and unauthenticated.

Quick Install

# Verify connectivity
curl -sI https://www.loldrivers.io/api/drivers.json | head -1

# Pre-populate the cache manually (optional)
curl -s https://www.loldrivers.io/api/drivers.json -o .cache/loldrivers_filter/loldrivers.io.json

Code Evidence

Download URL and cache file from `loldrivers_filter.py:19-20`:

LOLDRIVERS_URL = "https://www.loldrivers.io/api/drivers.json"
LOLDRIVERS_CACHE_FILE = "loldrivers.io.json"

HTTPS-only enforcement from `loldrivers_filter.py:69-72`:

parsed = urlparse(LOLDRIVERS_URL)
if parsed.scheme != "https":
    self.log.warning("refusing to fetch non-https url: %s", LOLDRIVERS_URL)
    return None

Download with timeout and atomic write from `loldrivers_filter.py:74-89`:

conn = http.client.HTTPSConnection(parsed.netloc, timeout=30)
conn.request("GET", parsed.path, headers={"User-Agent": "deepzero/0.2"})
resp = conn.getresponse()
if resp.status != 200:
    self.log.warning("download failed, HTTP %d", resp.status)
    return None
data = resp.read()
conn.close()

dest.parent.mkdir(parents=True, exist_ok=True)
tmp = dest.with_suffix(".tmp")
tmp.write_bytes(data)
os.replace(tmp, dest)

Cache TTL check from `loldrivers_filter.py:55-60`:

if cached.exists():
    age_days = (time.time() - cached.stat().st_mtime) / 86400
    if age_days < ttl:
        self.log.info("using cached db (%.1f days old)", age_days)
        return cached
    self.log.info("cached db is %.1f days old (ttl=%d), refreshing", age_days, ttl)

Silent pass-through when no hashes loaded from `loldrivers_filter.py:109-111`:

def process(self, ctx: ProcessorContext, entry: ProcessorEntry) -> ProcessorResult:
    if not self._known_hashes:
        return ProcessorResult.ok()

Common Errors

Error Message Cause Solution
`download failed, HTTP ` loldrivers.io returned non-200 Retry later; check loldrivers.io status
`download failed (TimeoutError): ...` Network timeout (30s) Check firewall/proxy allows outbound HTTPS
`refusing to fetch non-https url` URL scheme changed to non-HTTPS This is a safety guard; investigate the URL
All samples pass filter unexpectedly No hashes loaded (download failed silently) Check logs for download warnings; pre-populate cache

Compatibility Notes

  • HTTPS only: The processor refuses to fetch non-HTTPS URLs as a safety measure.
  • Graceful degradation: If the download fails, the filter loads no hashes and passes all samples — it does not fail the pipeline. Check logs for download warnings.
  • Cache TTL: Default 7 days (`cache_ttl_days`). Configure a local `db_path` to bypass download entirely.
  • Atomic writes: Downloads write to a `.tmp` file then `os.replace` to avoid corruption on interruption.
  • User-Agent: Sends `deepzero/0.2` as the User-Agent header.

Related Pages

Page Connections

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