National Cyber Warfare Foundation (NCWF)login

DeepZero for automated kernel driver vulnerability research pipelines


0 user ratings
2026-10-24 23:27:23
milo
Red Team (CNA)
"DeepZero

DeepZero is a Python pipeline engine that chains decompilation, filtering, semgrep scanning, and LLM assessment stages in declarative YAML for authorized vulnerability research.








Tool416rehman/DeepZero — automated vulnerability research pipeline engine with declarative YAML stages, resumable state, and LLM integration
CategoryVulnerability research automation / static analysis orchestration
Primary UseTriaging corpora of Windows kernel drivers through Ghidra headless decompilation, loldrivers.io hash filtering, and semgrep rule scanning inside reproducible pipelines
Safe UseFor authorized vulnerability researchers, product security teams, and lab environments analyzing drivers they own or are licensed to assess; the shipped demo runs only on harmless text files and performs no exploitation
Telemetry NoteRuns leave per-sample state files on disk, HTML reports, and outbound queries to loldrivers.io hash lookups plus LiteLLM provider APIs — blue teams can audit these artifacts to see what was analyzed

DeepZero positions itself as an automated vulnerability research pipeline engine, and the README is unusually candid about what that means in practice: you define pipelines as YAML, and the engine handles orchestration, parallelism, fault tolerance, and state persistence for you. The project, hosted at 416rehman/DeepZero with 716 stars and an MIT license, is written in Python (3.11+) and targets both Windows and Linux. What makes it interesting is not any single analysis capability but the framing: instead of a monolithic scanner, it treats vulnerability research as a data-processing problem where samples flow through ingest, filter, transform, and LLM-assess stages that you compose declaratively.


The headline use case, reflected in the repository's topic tags (windows-kernel, kernel-drivers, byovd-adjacent vocabulary, semgrep, exploit-development), is a BYOVD kernel driver research pipeline shipped under pipelines/loldrivers/. That pipeline chains four external processors: pe_ingest parses PE headers and extracts driver metadata as an IngestProcessor, loldrivers_filter excludes hashes already cataloged at loldrivers.io as a MapProcessor, ghidra_decompile runs Ghidra in headless mode to produce pseudocode, and semgrep_scanner performs batch scanning with custom rules as a BulkMapProcessor. The net effect is a funnel: start from a driver corpus, discard known-benign or already-known items, decompile the rest, and triage the code patterns your rules care about.


The final stage in that chain is an LLM assessment driven by assessment.j2, a Jinja2 prompt template stored alongside the pipeline definition. DeepZero integrates models through LiteLLM, which means any provider that LiteLLM speaks is available without DeepZero-specific adapters. This is a sensible architectural choice — model churn is real, and hard-coding a single vendor would date the project quickly — but it also means operators must think carefully about what decompiled code they are sending to third-party APIs. For authorized research on proprietary or customer-supplied binaries, that data-flow question belongs in the engagement scope conversation before the first run.


Under the hood, the codebase is organized into src/deepzero/engine/ for orchestration and state persistence, src/deepzero/stages/ for the built-in map, reduce, and ingest processors, and src/deepzero/api/ for an experimental starlette-based REST interface that the README explicitly flags as work-in-progress and incomplete. External processors live outside the package in processors/ and are referenced by path in the pipeline YAML, which is a pragmatic extensibility model: you write a custom processor as a Python class and wire it into a pipeline without touching the engine. The separation between shipped examples and core engine keeps the dependency surface honest — the demo runs with no Ghidra, no driver corpus, and no API keys.


Two engineering details stand out as evidence the author has actually run long jobs. First, execution uses ThreadPoolExecutor with configurable concurrency per stage, so an expensive decompile stage can saturate a workstation while cheap filter stages stay narrow. Second, runs are resumable: state is persisted atomically per sample on disk, and you can Ctrl+C mid-run and re-execute the same pipeline command to pick up where you left off. Anyone who has lost six hours of headless decompilation to an OOM kill will recognize why this matters; for vulnerability research on large driver corpora, resumability is arguably the difference between a tool you demo and a tool you use.


The quickstart is deliberately benign, which is worth calling out given the zero-day branding. The commands deepzero run pipelines/demo/samples -p pipelines/demo/pipeline.yaml and deepzero report -p pipelines/demo/pipeline.yaml --open operate on two harmless text files: the pipeline discovers them, keeps one, filters the smaller one, and emits a browsable HTML report. The README states plainly that this demonstrates the engine and does not run vulnerability analysis. That honesty extends to the installation guidance, which suggests a virtual environment and notes the commands work in both PowerShell and POSIX shells.


Project hygiene is above average for this niche. CI runs on Python 3.11 through 3.14 via GitHub Actions, there is a pytest suite under tests/, and contributors are asked to run ruff check . && ruff format --check . plus a bandit -ll -ii security scan before submitting. The bandit gate is a nice touch for a tool whose output feeds security decisions — a vulnerable analysis harness undermines its own credibility. Documentation lives in a Jekyll-based GitHub Pages site covering architecture, pipeline schemas, CLI references, and custom processor development, with localized README files in Simplified Chinese and French.


From a defensive perspective, DeepZero cuts both ways, and defenders should understand the shape of its footprint. On the research side, it lowers the barrier to systematic driver triage: product security teams auditing their own driver estates, or labs studying BYOVD trends, get reproducible pipelines instead of ad-hoc shell scripts that nobody can rerun. On the observable side, a running instance leaves clear artifacts — per-sample state directories, HTML reports, outbound loldrivers.io hash lookups, Ghidra headless process spawns, and LiteLLM API traffic to whichever model backend is configured. None of this is covert tooling; it is a workstation-grade batch pipeline.


What to watch for: the REST API is explicitly experimental, so treat any exposure of it as unsupported. The loldrivers pipeline has documented prerequisites — Ghidra and driver corpora are your responsibility — and the quality of the semgrep rules under pipelines/loldrivers/rules/ ultimately determines the signal-to-noise of the whole exercise, since the LLM stage only sees what earlier stages pass through. The usual caveats about LLM-assisted triage apply: it is a prioritization aid for a human analyst reviewing authorized targets, not an oracle. As a piece of engineering, though, DeepZero is a clean, honest take on pipeline-style vulnerability research, and the demo-first, resume-everything design suggests it was built by someone who runs these jobs for real.



Official project repository for 416rehman/DeepZero.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/deepzero-for-automated-kernel-driver.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.