paolocarner/fair-monte-carlo-risk-analysis
Acerca de
Interactive CRQ Monte Carlo simulation tool for quantifying cybersecurity risk using FAIR methodology. Built for EU SMBs, vCISOs, and security practitioners.
Seguridad y privacidadWhat you can do
- 🎯 Interactive Monte Carlo Simulation - Run 1,000 to 50,000 simulations for statistical rigor
- 🌍 External vs Internal Factor Grouping - Clear visual distinction between controllable and uncontrollable risk factors
- 🎚️ Configurable Risk Tolerance - Set custom thresholds (Conservative/Moderate/Aggressive/Custom) aligned with your risk appetite
- 💡 Comprehensive Help System - 35+ in-context tooltips with FAIR-aligned definitions
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- +1
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalFAIR Risk Analysis Dashboard
A professional, web-based tool for conducting quantitative cybersecurity risk assessments using the FAIR (Factor Analysis of Information Risk) methodology.

✨ Key Features
- 🎯 Interactive Monte Carlo Simulation - Run 1,000 to 50,000 simulations for statistical rigor
- 🌍 External vs Internal Factor Grouping - Clear visual distinction between controllable and uncontrollable risk factors
- 🎚️ Configurable Risk Tolerance - Set custom thresholds (Conservative/Moderate/Aggressive/Custom) aligned with your risk appetite
- 💡 Comprehensive Help System - 35+ in-context tooltips with FAIR-aligned definitions
- 📊 Rich Visualizations - Interactive charts with distribution, exceedance curves, percentiles, and LEF analysis
- 🎨 Preset Scenarios - 9 pre-configured risk scenarios for common threats (Ransomware, Data Breach, BEC, DDoS, Insider Threat, Zero-Day, Device Theft, System Outage, Supply Chain)
- 💰 ROI Calculators - Built-in ROSI analysis and insurance recommendation tools
- 📥 Multiple Export Formats - JSON, CSV, and formatted text reports
- 🎓 Educational Design - UI teaches FAIR principles through its structure
🚀 Quick Start
Installation
# Clone the repository
git clone https://github.com/yourusername/fair-risk-dashboard.git
cd fair-risk-dashboard
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Launch the dashboard
streamlit run fair_dashboard.py
The dashboard will automatically open in your browser at http://localhost:8501
First Use
- Load a preset scenario (e.g., "Ransomware Attack")
- Click the (?) help icons to learn FAIR terminology
- Adjust parameters to match your organization
- Click "Run Simulation"
- Explore the four visualization tabs
- Export your results
📊 Understanding the Interface
External vs Internal Factors
The dashboard clearly distinguishes between factors you can and cannot control:
🌍 External Factors (Threat Landscape)
- Contact Frequency - Industry-wide threat volume, a count of contacts per year (you can't control)
🏢 Internal Factors (Your Organization)
- Threat Event Frequency (derived as Contact Frequency × Probability of Action) & Probability of Action - Your attractiveness as a target (partially controllable)
- Vulnerability - Your security control effectiveness (directly controllable)
- Loss Magnitudes - Your specific costs and exposure (partially controllable)
This distinction is fundamental to making smart security investment decisions.
📚 Documentation
- Getting Started Guide - Complete user guide with tutorials
- FAIR Quick Reference - Essential FAIR terminology and concepts
- UI Reorganization Guide - Understanding external vs internal factors
- Help Text Reference - Complete catalog of all tooltips
- Changelog - Version history and updates
🎓 FAIR Methodology
This tool implements the FAIR (Factor Analysis of Information Risk) standard for quantitative risk analysis:
Risk = Loss Event Frequency × Loss Magnitude
Where:
LEF = Threat Event Frequency × Vulnerability
TEF = Contact Frequency × Probability of Action
LM = Primary Loss + Secondary Loss (when applicable)
Learn More:
💡 Use Cases
For Security Analysts
- Quantify cyber risk in financial terms
- Compare different risk scenarios
- Justify security investments with ROSI calculations
- Track risk reduction over time
For Consultants
- Professional client presentations
- Standardized risk assessment methodology
- Clear communication of complex risk concepts
- Generate client-ready reports
For Executives
- Understand risk in business terms (% of revenue)
- Make informed risk acceptance decisions
- Evaluate security investment proposals
- Set realistic risk appetite thresholds
🛠️ Technical Stack
- Framework: Streamlit (Python web framework)
- Simulation: NumPy (Monte Carlo engine)
- Visualization: Plotly (interactive charts)
- Data Export: Pandas (CSV/JSON export)
- Distributions: PERT, Lognormal, Normal, Uniform
📈 Version History
Version 1.3 (Current) - Risk Tolerance Configuration
- 🎚️ Configurable risk tolerance thresholds
- 📊 Four preset profiles (Conservative/Moderate/Aggressive/Custom)
- 📈 Visual threshold indicators on charts
- 🎯 Industry-aligned risk assessment
- 📋 Four new threat scenarios (Zero-Day, Device Theft, System Outage, Supply Chain)
Version 1.2 - UI Reorganization
- ✨ Visual grouping of external vs internal factors
- 🎨 Bordered containers for clear section separation
- 📚 Enhanced help text with controllability indicators
- 📖 New UI Reorganization Guide
Version 1.1 - Complete Help Text
- 💡 35 comprehensive help tooltips (100% coverage)
- 📝 FAIR-aligned definitions with examples
- 🎓 Self-service learning capability
Version 1.0 - Initial Release
- 🎯 Core FAIR risk assessment functionality
- 📊 Monte Carlo simulation engine
- 📈 Interactive visualizations
- 📥 Export capabilities
See CHANGELOG.md for detailed version history.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Development Setup
# Clone and setup
git clone https://github.com/yourusername/fair-risk-dashboard.git
cd fair-risk-dashboard
python -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt
# Run tests
pytest tests/
# Run with hot reload
streamlit run fair_dashboard.py --logger.level=debug
Guidelines
- Follow PEP 8 style guidelines
- Maintain FAIR methodology alignment
- Update help text for new features
- Add tests for new functionality
- Update documentation
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- FAIR Institute - For the FAIR methodology and standard definitions
- Jack A. Jones - Creator of the FAIR framework
- BARE Cybersecurity - Project sponsor and primary use case
📞 Support
- Documentation: See docs/ directory
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- FAIR Resources: fairinstitute.org
🌟 Star History
If you find this tool useful, please consider starring the repository!
Built with ❤️ for the cybersecurity community
Making quantitative risk analysis accessible to everyone
Explorar proyectos relacionados
Cargando…