Implementation:416rehman DeepZero LoldriversFilter
Appearance
| Knowledge Sources | |
|---|---|
| Domains | Threat_Intelligence, Filtering, Security_Research |
| Last Updated | 2026-10-27 00:00 GMT |
Overview
External MapProcessor that excludes samples whose sha256 matches a known entry in the loldrivers.io database, with automatic DB download and caching.
Description
The LoldriversFilter class is an external MapProcessor (located in processors/loldrivers_filter/) that excludes samples already cataloged in the loldrivers.io database. The loldrivers.io project maintains a curated list of known vulnerable Windows kernel drivers.
Key behaviors:
- setup(): runs once before execution. Resolves the DB path (local override, or cached download), downloads from
https://www.loldrivers.io/api/drivers.jsonif the cache is stale or missing, and loads known sha256 hashes into a set. - process(): checks the sample's sha256 (from upstream history) against the known set. If matched, returns ProcessorResult.filter("already in loldrivers.io database"); otherwise ProcessorResult.ok().
- Caching: the DB is cached at cache_dir/loldrivers.io.json with a configurable TTL (default 7 days). The download is HTTPS-only and atomic.
Usage
- Excluding known-vulnerable drivers from novel discovery: the filter drops samples that are already documented, so downstream analysis focuses on unknown threats.
- Custom DB path: db_path: "/path/to/custom_db.json"
- Cache TTL: cache_ttl_days: 30
Code Reference
Source Location
- Repository: DeepZero
- File: processors/loldrivers_filter/loldrivers_filter.py
Signature
@dataclass
class LoldriversFilterConfig:
db_path: str = ""
cache_ttl_days: int = 7
class LoldriversFilter(MapProcessor):
description = "excludes samples whose sha256 matches a known entry in the loldrivers.io database"
Config = LoldriversFilterConfig
def setup(self, global_config: dict[str, Any]) -> None: ...
def process(self, ctx: ProcessorContext, entry: ProcessorEntry) -> ProcessorResult: ...
Import
# Loaded via pipeline YAML as: processor: loldrivers_filter/loldrivers_filter.py:LoldriversFilter
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| db_path | str | No (config) | Local DB path override (default: auto-download) |
| cache_ttl_days | int | No (config) | Cache TTL in days (default 7) |
| entry.history | dict | Yes (runtime) | Upstream sha256 from discover stage |
Outputs
| Name | Type | Description |
|---|---|---|
| returns | ProcessorResult | ok() if novel, filter("already in loldrivers.io database") if known |
Usage Examples
BYOVD Pipeline YAML
stages:
- name: loldrivers_filter
processor: loldrivers_filter/loldrivers_filter.py:LoldriversFilter
config:
db_path: ""
cache_ttl_days: 7
Custom DB Path
config:
db_path: "/data/custom_drivers.json"
cache_ttl_days: 30
Related Pages
Implements Principle
- Principle:416rehman_DeepZero_Threat_Intelligence_Filtering
- Principle:416rehman_DeepZero_Metadata_Filtering
- Principle:416rehman_DeepZero_Processor_Contract
Requires Environment
Page Connections
Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment