Skip to content

DataX-Soham/AI_CYBER_RISK_DETECTION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI_CYBER_RISK_DETECTION

AI system to detect cyber threats using ML (Regression + Classification) πŸ”₯ AI Cyber Risk Detection System

An advanced Machine Learning project that detects potential cyber threats and assigns a risk score based on network behavior.


πŸš€ Overview

This project combines Machine Learning and Cybersecurity concepts to analyze network activity and classify whether it is normal or malicious.

It uses:

  • Regression β†’ to calculate a risk score
  • Classification β†’ to detect attack vs normal behavior

🧠 Concepts Used

  • Linear Regression (from scratch)
  • Softmax / Logistic Regression
  • Gradient Descent Optimization
  • Cross Entropy Loss
  • Data Preprocessing & Normalization
  • Confusion Matrix Evaluation

πŸ“Š Dataset

  • KDD Cup 99 Intrusion Detection Dataset
  • Loaded using Scikit-learn

βš™οΈ Features

  • Detects cyber attacks from network data
  • Generates a numerical risk score
  • Classifies traffic as Normal / Attack
  • Provides simple explanations for predictions
  • Visualizes:
    • Training loss curves
    • Confusion matrix
    • Risk distribution

πŸ“ˆ Sample Output

Risk Score: 78 Risk Level: ATTACK ⚠️

Reasons:

  • High data transfer
  • Unusual traffic pattern

πŸ“ Project Structure

smart-risk-intelligence-system/ β”‚ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ preprocessing.py β”‚ β”œβ”€β”€ regression.py β”‚ β”œβ”€β”€ classification.py β”‚ β”œβ”€β”€ evaluation.py β”‚ β”œβ”€β”€ explainability.py β”‚ β”œβ”€β”€ output/ β”‚ └── graphs/ β”‚ β”œβ”€β”€ main.py β”œβ”€β”€ README.md


▢️ How to Run

  1. Install dependencies: pip install numpy matplotlib scikit-learn

  2. Run the project: python main.py


πŸ“Š Output Graphs

The system automatically saves graphs in: output/graphs/

  • Regression Loss Curve
  • Classification Loss Curve
  • Confusion Matrix
  • Risk Score Distribution

πŸ’‘ Future Improvements

  • Real-time network monitoring
  • Integration with security tools
  • Deployment as a web app
  • Advanced anomaly detection

πŸ‘¨β€πŸ’» Author

DataX_Soham


⭐ If you like this project

Give it a star on GitHub!

Releases

No releases published

Packages

 
 
 

Contributors

Languages