Canstralian's picture
Update README.md
66af112 verified

A newer version of the Streamlit SDK is available: 1.49.1

Upgrade
metadata
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

Python
Streamlit
Hugging Face
MIT License
Replit

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


๐ŸŽฏ Live Deployment on Replit

Run on Replit