npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kernelforge/ntsim-analyzer

v0.1.6

Published

Run-any-driver analysis harness over ntsim: upload .sys -> map -> DriverEntry -> IOCTLs -> report

Readme

@kernelforge/ntsim-analyzer

Run-any-.sys harness: map → DriverEntry → deferred drains → scripted IOCTLs → report. Pair with @kernelforge/linux-analyzer (analyzeKo) for .ko files. Same code runs in Node tests and in the browser (no fs, no Buffer).

import { analyzeDriver } from "@kernelforge/ntsim-analyzer";
const report = await analyzeDriver(bytes, { backendName: "js" });

CLI mode (kf-analyze)

The repo ships a small unified CLI for .sys and .ko (Linux support via @kernelforge/linux-analyzer). No build step, Node >=20.

Install

# from a checkout of kernelforge-analyzer (or the Kasm monorepo)
npm install

# or global from npm (also pulls @kernelforge/ntsim + struct tables)
npm install -g @kernelforge/ntsim-analyzer @kernelforge/linux-analyzer

z3-solver is only needed for concolic / find-bugs flows, not for plain CLI runs. --backend=qemu additionally needs qemu-system-x86_64 on PATH (or QEMU_PATH=/path/to/qemu-system-x86_64).

Use

# Windows driver, deterministic JS backend, full JSON report to stdout
kf-analyze driver.sys --backend=js

# auto-drive harvested IOCTLs, save report to a file
kf-analyze driver.sys --auto-irp --max-codes 16 --json report.json

# scripted IOCTLs (repeat --ioctl), hex input, custom output length
kf-analyze driver.sys --ioctl 0x222003 --ioctl 0x222007 --input deadbeef --output-len 128

# invoke DriverUnload at the end
kf-analyze driver.sys --ioctl 0x222003 --run-unload

# Linux LKM (unlocked_ioctl is the default file_op)
kf-analyze mod.ko --auto-ops --json report.json
kf-analyze mod.ko --op unlocked_ioctl --ioctl 0x1234 --input 00ff

# from a repo checkout without a global install
node packages/ntsim-analyzer/bin/kf-analyze.mjs driver.sys --auto-irp
node tools/kf-analyze.mjs driver.sys --help     # same CLI, shortcut path
npm run analyze -- driver.sys --auto-irp        # monorepo script alias

Useful flags: --backend=js|hybrid|unicorn|qemu, --tables=<dir> (Vergilius struct tables, .sys only), --quiet (JSON only, no progress on stderr), --help for the full list.

Report surfaces

analyzeDriver returns, alongside load/entry/ioctls/trace:

  • arch + archEvents — CPUID/MSR/TSC/port-I/O counters and the hot leaves and MSRs the driver touched. Virtualization is on by default; disable with arch: false or tune with { intel: true, hypervisor: true, timing: false } (CLI: --no-arch, --intel, --hv).
  • detections — probe classifier: PE-header scans, KUSD/hypervisor-page reads, system-module and kernel-struct probes, driver self-reads (header/IAT), SEH accept/reject telemetry, stuck-STATUS_ACCESS_DENIED runs, plus a timeline of the last events. Disable with diag: false (CLI: --no-diag).
  • callbacks — simulated process/thread/image notify events, Ob pre/post handle operations (pre-op access stripping is surfaced as accessStripped), and Cm registry callbacks with blocking status. Disable with simulateEvents: false (CLI: --no-events).
  • bugcheck + bugcheckText — named stop code, decoded parameters, double/triple-fault status and a register/stack/RBP-chain post-mortem.
  • registryActivity — real driver registry mutations (writes/creates/deletes) classified into self service key / security policy / boot config / other services / user / BCD, plus emulator auto-created key count. Replaces reading registryWrites (the full registry dump) as evidence.
  • apiResolutions — what MmGetSystemRoutineAddress resolved, provisioned or failed to resolve.
  • integrity — verified negatives: process-list consistency (DKOM), SSDT entries vs pristine thunks, and foreign MajorFunction slots.
  • IRP results include method (BUFFERED/IN_DIRECT/OUT_DIRECT/NEITHER), buffers and invoked completions; pending IRPs drain DPC/timer work.

BCD hive virtualization (bcd: false, CLI --no-bcd) seeds \Registry\Machine\BCD and synthesizes typed zeros for queried elements.