Skip to main content

Interactive process tree visualization widget for security and forensics analysis in marimo notebooks

Project description

process-tree-widget

An interactive process tree visualization widget for security and forensics analysis, built for marimo notebooks using the anywidget framework.

Please refer to this blog post for background and context.

Process Tree Visualization

Overview

The widget ingests OS process telemetry from two sources:

  • MDE (Microsoft Defender for Endpoint) ProcessCreated events
  • Volatility pstree memory forensics output

Both are normalized to a common ASIM schema, assembled into a tree structure, and rendered as an interactive D3-backed visualization with expand/collapse, zoom, right-click context menu, and an optional time-range filter.

JavaScript rendering

The widget uses a vendored copy of DependenTree (located in js/dependentree/) for the D3 tree layout, bundled directly by esbuild — no CDN fetch at runtime.

Development setup

Python:

uv venv --python 3.12
uv sync
source .venv/bin/activate

JavaScript:

npm install
npm run dev   # watches js/ (including js/dependentree/) and rebuilds on change

Demo notebook:

marimo edit notebooks/demo_mde.py
# or
marimo edit notebooks/demo_vol.py

Build commands

npm run build    # bundle js/ → src/process_tree_widget/static/ (esbuild, ESM, minified)
npm run dev      # same with inline sourcemaps + watch mode
uv build         # full Python package build (triggers npm run build via hatch-jupyter-builder)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

process_tree_widget-0.1.8.tar.gz (138.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

process_tree_widget-0.1.8-py3-none-any.whl (137.8 kB view details)

Uploaded Python 3

File details

Details for the file process_tree_widget-0.1.8.tar.gz.

File metadata

  • Download URL: process_tree_widget-0.1.8.tar.gz
  • Upload date:
  • Size: 138.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for process_tree_widget-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e4b2901d67100455d91afac86034067899d1985390e51f68dcc2e95b8d6c7e74
MD5 b346b008b3c68cc1b203d2c07d86b02d
BLAKE2b-256 8630d23e6e0e794512bf02f29d4c2610d3bd1b642868e8f48e5b891bb0a0e4f6

See more details on using hashes here.

File details

Details for the file process_tree_widget-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for process_tree_widget-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 98f40fe4314411a77b474c49a112b3c76ae20806b13315ee07a27fb0166a853e
MD5 b5b8d3831aa1edc762d61e082e813771
BLAKE2b-256 401968546020e64c3c2b7344cfcdf7263a637549c157656e5f3155cead8d360e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page