Analysis_Tools

Hashmire/Analysis_Tools Dashboard

A refreshable, real-time dashboard that provides insights and statistics from Hashmire/Analysis_Tools log files.

πŸ“‹ Overview

The dashboard system consists of several components that work together to provide real-time monitoring of the Hashmire/Analysis_Tools:

πŸš€ Quick Start

The dashboard is automatically integrated into the Hashmire/Analysis_Tools workflow:

# Run the Hashmire/Analysis_Tools normally - dashboard updates automatically!
cd src/analysis_tool
python analysis_tool.py [your normal CVE analysis arguments]

# πŸ“Š Open reports/local_dashboard.html to watch real-time progress
# πŸ”„ Data refreshes automatically every 100 CVEs during processing
# βœ… Final update occurs at completion

Real-time Monitoring:

  1. Start: Dashboard created with initial data
  2. During Processing: JSON updates every 100 CVEs (dashboard auto-refreshes)
  3. Completion: Final data update with complete results

Method 2: Manual Dashboard Generation

# Generate dashboard from existing log data
python src/analysis_tool/utilities/log_analyzer.py --summary

# The local dashboard (reports/local_dashboard.html) is automatically updated
# Open reports/local_dashboard.html directly in your browser

Method 3: JSON Data Only

# Generate only JSON data without local dashboard
python src/analysis_tool/utilities/log_analyzer.py --summary --no-local-dashboard

πŸ“Š Dashboard Features

Real-time Metrics

Visual Components

Interactive Features

πŸ“ File Structure

Analysis_Tools/
β”œβ”€β”€ src/analysis_tool/utilities/
β”‚   β”œβ”€β”€ log_analyzer.py          # Main log parsing script
β”‚   β”œβ”€β”€ generate_local_dashboard.py # Dashboard HTML generator
β”œβ”€β”€ generated_pages/             # Main HTML vulnerability reports
β”œβ”€β”€ test_output/                 # Test-generated HTML files
β”œβ”€β”€ reports/
β”‚   β”œβ”€β”€ local_dashboard.html     # Self-contained local dashboard
β”‚   β”œβ”€β”€ dashboard_data.json      # Generated data file
β”œβ”€β”€ logs/
β”‚   └── *.log                    # Hashmire/Analysis_Tools log files
β”œβ”€β”€ cache/                       # CPE cache files
β”œβ”€β”€ datasets/                    # Generated CVE datasets
└── temp/                        # Temporary files

πŸ”§ Configuration

Local Dashboard Generator

The local dashboard generator creates a self-contained HTML file with embedded data, perfect for local file access without CORS issues:

python src/analysis_tool/utilities/generate_local_dashboard.py --help

Options:
  --input FILE, -i FILE    Input JSON data file (default: reports/dashboard_data.json)
  --output FILE, -o FILE   Output HTML file (default: reports/local_dashboard.html)

Benefits of Local Dashboard:

Log Analyzer Options

python src/analysis_tool/utilities/log_analyzer.py --help

Options:
  --log-dir DIRECTORY     Directory containing log files (default: logs)
  --log-file FILE         Specific log file to analyze
  --output FILE           Output JSON file (default: reports/dashboard_data.json)
  --summary              Print summary to console

Dashboard Data Format

The dashboard_data.json file contains structured data including:

Enhanced Dashboard Features

The dashboard now includes several advanced analysis sections:

πŸ” Interactive Elements:

⚑ Workflow Performance Analysis:

🌐 API Performance Breakdown:

πŸ” CPE Query Analysis:

⚠️ Resource Monitoring:

πŸ”„ Automated Updates

The dashboard is automatically integrated into the main CVE analysis workflow:

Benefits:

🎯 Use Cases

πŸ“ Notes


For more information about the Hashmire/Analysis_Tools itself, see the main project documentation.