🛡️ A cybersecurity analytics platform for threat intelligence and risk prediction
The Cyber Incident Intelligence Platform is an end-to-end analytics and machine learning system that transforms raw cybersecurity incident data into actionable intelligence.
It enables security analysts and decision-makers to understand attack patterns, measure organizational risk exposure, and predict the likelihood of high-severity breaches using statistical analysis and machine learning.
It performs:
- Exploratory data analysis (EDA)
- Statistical testing
- Feature engineering
- Predictive modeling (logistic regression)
- Interactive visualization via a Streamlit dashboard
The goal is to transform raw breach data into actionable security intelligence.
The Cyber Incident Intelligence Platform helps organizations:
- Identify high-risk sectors vulnerable to cyberattacks
- Understand how attack patterns evolve over time
- Quantify data exposure from cybersecurity incidents
- Predict breach severity using machine learning
- Support proactive cybersecurity decision-making
This transforms raw data into actionable security intelligence
-
Threat landscape
- What attack types are increasing over time?
- Which industries experience the most incidents?
- Which attack methods are most damaging?
-
Risk exposure
- Which sectors lose the most records?
- Which attack vectors cause the largest breaches?
-
Predictive insights
- Can we predict breach severity based on incident attributes?
-
Strategic intelligence
- What trends should organizations prepare for?
- Python (pandas, numpy, scipy)
- Machine Learning (scikit-learn)
- Visualization (matplotlib, seaborn)
- Dashboard (Streamlit)
- Configuration (YAML)
-
Data pipeline (
src/data/data_pipeline.py)- Load raw CSV or generate sample data (
generate_data.py) - Clean data, handle missing values, remove duplicates
- Save processed dataset
- Load raw CSV or generate sample data (
-
Feature engineering (
src/features/feature_engineering.py)breach_severityincident_yearrecords_lost_logindustry_risk_score
-
Exploratory analysis (
src/analysis/exploratory_analysis.py)- Attack distribution
- Sector incident counts
- Yearly trends
- Correlation matrix
-
Statistical tests (
src/statistics/statistical_tests.py)- Chi-square test: attack type vs sector
- Pearson correlation tests
-
Modeling (
src/models/risk_prediction.py)- Logistic regression to predict high-severity breaches
-
Visualization (
src/visualization/visualization.py)- Attack type distribution
- Incidents over time
- Sector risk comparison
- Correlation heatmap
-
Dashboard (
app/dashboard.py)- Streamlit app for interactive exploration
Raw Data → Cleaning → Feature Engineering → ML Model → Dashboard
A modular pipeline that transforms raw cybersecurity data into predictive intelligence through preprocessing, feature engineering, and machine learning.
git clone https://github.com/ysf-sheikh/cyber-incident-intelligence-platform.git cyber-incident-intelligence
cd cyber-incident-intelligence
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
pip install -e .If you don’t have a real dataset, you can generate a mock dataset using:
python src/data/generate_data.pyThe generated dataset includes:
- incident_date – date of the incident (2020–2024)
- sector – e.g., Finance, Healthcare, Retail, Government, Education, Technology
- attack_type – e.g., Ransomware, Phishing, SQL Injection, DDoS, Insider Threat, Malware
- records_lost – number of records compromised (follows a skewed distribution; Finance incidents tend to have higher losses, and recent incidents favor Ransomware/Phishing)
Process the raw data and generate engineered features:
python main.pyStart the interactive Streamlit interface:
streamlit run app/dashboard.py

