Skip to content
Projects

davidljohnson/flowviz has 254 GitHub stars and 51 forks. GitHot measured +1 stars in 24 hours and +2 in 7 days. Last checked 2026-11-25 05:22 UTC. Last push 2026-09-01.

How these counts are measured

What you can do

  • Multi-provider AI support (Anthropic Claude, OpenAI GPT, Ollama)
  • Real-time streaming visualization as content is analyzed
  • MITRE ATT&CK technique mapping
  • Export to PNG, STIX 2.1, Attack Flow Builder (.afb), or JSON

Measured star growth

in 24h
+1
in 7 days
+2
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

AI-powered cybersecurity attack flow visualization tool using MITRE ATT&CK

Security

README.md

Original

FlowViz - Attack Flow Visualizer

Open-source tool that analyzes cybersecurity articles and generates interactive attack flow visualizations using MITRE ATT&CK.

FlowViz attack flow visualization

Features

  • Multi-provider AI support (Anthropic Claude, OpenAI GPT, Ollama)
  • Real-time streaming visualization as content is analyzed
  • MITRE ATT&CK technique mapping
  • Export to PNG, STIX 2.1, Attack Flow Builder (.afb), or JSON
  • Save and load previous analyses

Quick Start

Prerequisites: Node.js 18+

  1. Clone and install:

    git clone https://github.com/davidljohnson/flowviz.git
    cd flowviz
    npm install
    
  2. Configure provider:

    cp .env.example .env
    

    Edit .env and add at least one:

    • ANTHROPIC_API_KEY - Get from console.anthropic.com
    • OPENAI_API_KEY - Get from platform.openai.com
    • OLLAMA_BASE_URL + OLLAMA_TEXT_MODEL - For local models (no API key needed)
    • Or multiple to enable switching between providers
  3. Start:

    npm run dev:full
    

    Opens at http://localhost:5173

Usage

  1. Paste a cybersecurity article URL or text
  2. Click "Analyze Article"
  3. Watch the attack flow build in real-time
  4. Click nodes for details
  5. Export or save your analysis

Configuration

See .env.example for all options. Key settings:

# Required (choose one or multiple)
ANTHROPIC_API_KEY=
OPENAI_API_KEY=
OLLAMA_BASE_URL=
OLLAMA_TEXT_MODEL=

# Optional
ANTHROPIC_MODEL=claude-sonnet-5
OPENAI_MODEL=gpt-4o
PORT=3001

Where Your Analyses Live

Saved flows are kept in your browser's localStorage, so they stay on the machine that made them and no account is involved. Export them as FlowViz JSON to move one somewhere else, or to keep a copy outside the browser.

If you are serving the frontend and the backend from different origins, point the app at the backend:

VITE_API_BASE_URL=https://api.your-domain.com

Ollama Configuration

  1. Download Ollama from ollama.com/download
  2. Pull a model: ollama pull mistral:7b (or any model you prefer)
  3. Add to .env:
    OLLAMA_BASE_URL=http://127.0.0.1:11434
    OLLAMA_TEXT_MODEL=mistral:7b
    

Available models are detected automatically from your local Ollama instance. The Ollama provider currently supports text analysis only (vision analysis is skipped).

For best results with a high-end GPU (e.g. NVIDIA RTX 5090), try huggingface.co/TeichAI/Qwen3-14B-Claude-Sonnet-4.5-Reasoning-Distill-GGUF:latest — a 14B parameter model that produces more detailed attack flows. Smaller models like mistral:7b work well for shorter articles.

Troubleshooting

API key not working:

  • Verify key in .env file
  • Restart server: npm run dev:full
  • Check account has credits

CORS errors:

  • Ensure backend is running (npm run server)
  • Check requests use /api proxy

Development

npm run dev        # Frontend only
npm run server     # Backend only
npm run dev:full   # Both (recommended)
npm run build      # Production build

Architecture

  • Frontend: React 18 + TypeScript + Material-UI + React Flow
  • Backend: Express proxy with rate limiting and SSRF protection
  • AI: Anthropic Claude / OpenAI GPT / Ollama via server-side API calls

License

MIT License - see LICENSE file for details

Attribution

FlowViz maps techniques onto MITRE ATT&CK, and ships a technique/tactic index built from MITRE's published STIX data (npm run attack:update regenerates it from a pinned ATT&CK release).

© The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.

ATT&CK® is a registered trademark of The MITRE Corporation. FlowViz is not affiliated with or endorsed by MITRE. See the ATT&CK Terms of Use.

Explore related projects

Loading…