Views
No views yet
1git clone https://github.com/yourusername/insider-threats.git
2cd insider-threatspip install -r requirements.txtpython app_live.pyhttp://localhost:80501python -m venv venv
2source venv/bin/activate # On Windows: venv\Scripts\activatepip install -r requirements.txtpython -c "import dash, tensorflow, pandas; print('✅ All packages installed successfully!')"python app_live.pyinsider-threats/
├── app_live.py # Main dashboard application
├── requirements.txt # Python dependencies
├── README.md # Project documentation
├── .gitignore # Git ignore rules
├── assets/
│ └── style.css # Dashboard styling
├── data/
│ ├── raw/ # Raw LANL authentication logs
│ ├── processed/ # Processed features and baselines
│ └── synthetic/ # Generated synthetic data
├── models/ # Trained ML models
└── src/ # Source code
├── __init__.py
├── adaptive_ml_detector.py # Traditional ML detection
├── anomaly_detector.py # Anomaly detection models
├── config.py # Configuration settings
├── data_generator.py # Synthetic data generation
├── data_loader.py # Data loading utilities
├── enhanced_adaptive_ml_detector.py # Enhanced ML detection
├── explainer.py # SHAP model explanations
├── feature_engineering.py # Feature extraction
├── graph_analyzer.py # Graph-based analysis
├── live_simulator.py # Live simulation engine
├── lstm_autoencoder.py # LSTM temporal detection
├── user_blocking_system.py # User blocking logic
└── vae_anomaly_detector.py # VAE-based detectionsrc/config.py)1# Risk thresholds
2RISK_THRESHOLDS = {
3 'low': (0, 40),
4 'medium': (40, 70),
5 'high': (70, 100)
6}
7
8# Model parameters
9ISOLATION_FOREST_PARAMS = {
10 'n_estimators': 100,
11 'contamination': 0.1,
12 'random_state': 42
13}
14
15# Dashboard settings
16DASHBOARD_PORT = 8050
17DASHBOARD_DEBUG = True1# Install development dependencies
2pip install -r requirements-dev.txt
3
4# Run tests
5python -m pytest tests/
6
7# Run linting
8flake8 src/