A newer version of the Streamlit SDK is available:
1.49.1
title: Cysec Purpleteam IDS
emoji: ๐
colorFrom: purple
colorTo: gray
sdk: streamlit
sdk_version: 1.42.2
app_file: app.py
pinned: false
license: mit
short_description: Cybersecurity Purple Team Intrusion Detection System
๐ก๏ธ Cybersecurity IDS Dashboard
A web-based Cybersecurity Purple Team Intrusion Detection System (IDS) powered by Streamlit and Hugging Faceโs AI models for real-time threat detection and analysis.
๐ Features
โ
AI-Powered Threat Detection: Leverages Hugging Faceโs cybersecurity models for intelligent threat classification.
โ
Real-time Monitoring: Live dashboard for security log analysis and threat detection.
โ
Interactive Visualizations: Dynamic charts and metrics for threat analysis.
โ
Customizable Alerts: Configurable threat severity levels and confidence thresholds.
โ
Dark Mode Interface: Professional cybersecurity dashboard with high-contrast visuals.
๐ Prerequisites
โ System Requirements
- Python 3.8+
- Hugging Face API Token (Get yours here)
โ Required Python Packages
pip install streamlit pandas plotly requests
๐ง Setup
1๏ธโฃ Clone the Repository
git clone <repository-url>
cd cybersecurity-ids-dashboard
2๏ธโฃ Install Dependencies
pip install -r requirements.txt
3๏ธโฃ Configure Hugging Face API
- Obtain your API token from Hugging Face
- Enter it in the dashboardโs sidebar when prompted
- OR set it as an environment variable:
export HUGGINGFACE_API_TOKEN="your_api_token_here"
4๏ธโฃ Run the Application
streamlit run app.py
๐จ Style Guide
Our dashboard follows a professional cybersecurity theme:
Colors
Color | Hex Code | Usage |
---|---|---|
Primary | #1A237E |
Deep Navy (Header) |
Secondary | #FF4081 |
Alert Red (Warnings) |
Success | #4CAF50 |
Green (Safe Events) |
Warning | #FFC107 |
Yellow (Caution) |
Background | #121212 |
Dark Mode (Main UI) |
Text | #FFFFFF |
White (Text Elements) |
Typography
- Primary Font: Roboto Mono
- Secondary Font: Source Code Pro
- Base Size:
16px
๐ Usage
๐ Dashboard Navigation
- Main Metrics Panel: Displays threat statistics.
- Timeline View: Shows detection history.
- Threat Distribution Chart: Visualizes attack patterns.
- Real-time Alerts: Notifies on new threats.
๐๏ธ Filtering & Analysis
- Filter threats by severity level.
- Adjust confidence thresholds for detection sensitivity.
- View detailed threat information for forensic analysis.
โ๏ธ Configuration Options
- API settings (Sidebar input field).
- Customizable alert thresholds (Configurable via UI).
- Dark mode toggle & visual preferences.
๐ ๏ธ Configuration Files
File | Purpose |
---|---|
.streamlit/config.toml |
Streamlit server settings |
.streamlit/theme.toml |
UI theme configuration |
styles/custom.css |
Custom CSS styling rules |
๐ Documentation & Resources
๐ Official Docs:
๐ Streamlit Documentation
๐ Hugging Face API Guide
๐ Plotly Documentation
๐ค Contributing
We welcome contributions! To contribute:
1๏ธโฃ Fork the repository
2๏ธโฃ Create your feature branch (git checkout -b feature-branch
)
3๏ธโฃ Commit your changes (git commit -m "Add new feature"
)
4๏ธโฃ Push to the branch (git push origin feature-branch
)
5๏ธโฃ Open a Pull Request
๐ License
This project is licensed under the MIT License โ see the LICENSE file for details.
๐ Security Best Practices
โ Log files are stored in cysec_ids.log
.
โ API tokens should never be committed to version control.
โ Use environment variables for sensitive data.
๐ฎ Support & Contact
๐ง For questions or support, open an issue in the repository or contact the maintainers.
๐ Built with ๐ by the Purple Team IDS Project Contributors