3447-OFFICIAL/SWISS-CYBERGUARD

GitHub: 3447-OFFICIAL/SWISS-CYBERGUARD

一个基于 Streamlit 的瑞士网络安全情报平台,通过 AI 辅助与 NCSC 数据同步,为合规与威胁场景提供实时法规与 advisory。

Stars: 0 | Forks: 0

# 🛡️ SWISS CYBERGUARD — Swiss Cyber Assistant ![Python](https://img.shields.io/badge/Python-3.9%2B-blue?style=for-the-badge&logo=python) ![Streamlit](https://img.shields.io/badge/Streamlit-FF4B4B?style=for-the-badge&logo=streamlit) ![Status](https://img.shields.io/badge/Status-Prototype-orange?style=for-the-badge) **Swiss CyberGuard** is a Streamlit-driven cybersecurity intelligence layer engineered to deliver authoritative insights on Swiss cyber laws, guidelines, and real-time advisories. It fuses a conversational AI interface with contextual knowledge retrieved from the **Swiss National Cyber Security Centre (NCSC)**, enabling users to access actionable, regulation-aligned information instantly. ## 🚀 核心价值主张 ### **🤖 AI-Enhanced Cyber Assistant** * A conversational engine powered by free AI APIs (Gemini / OpenRouter). * Provides concise, context-aware responses to cybersecurity queries. ### **🌐 实时 NCSC 情报同步** * Scrapes and aggregates publicly available content from the Swiss NCSC portal. * Injects fresh regulatory and threat-advisory data into every response. ### **📁 合规文档中心** * Dedicated interface to surface simulated circulars, directives, and regulatory timelines. * Enables rapid compliance readiness and traceability. ### **🖥️ Streamlit 用户体验** * Interactive, modular interface supporting: * Cyber Assistant Mode * Compliance Documentation Dashboard ## 📦 仓库结构 ``` / ├── .gitattributes ├── LICENSE ├── README.md ├── requirements.txt └── switzerland_cyber_bot.py ``` ## ⚙️ 部署指南 Follow these steps to set up the environment locally. ### 1. 克隆仓库 ``` git clone cd ``` ### 2. 初始化虚拟环境 # 创建虚拟环境 ``` python -m venv .venv ``` # 激活环境(macOS / Linux) ``` source .venv/bin/activate ``` # 激活环境(Windows) ``` .venv\Scripts\Activate.ps1 ``` ### 3. 安装依赖 ``` pip install -r requirements.txt ``` ### 4. 配置密钥(强制要求) ``` API keys = "your_gemini_key_here" ``` ### 5. 运行应用程序 ``` streamlit run switzerland_cyber_bot.py ``` The app will launch automatically at: http://localhost:8501 ### **🧩 架构概述** System Components Component Description AI Model Interface Uses Gemini / OpenRouter for text generation NCSC Scraper Pulls live data from Swiss NCSC public pages Context Engine Merges scraped intelligence into chat responses Compliance Viewer Displays simulated circular documents & timelines Streamlit UI Layer Frontend interaction surface ### **Technology Stack** * Python * Streamlit * Google Generative AI SDK * BeautifulSoup4 * Pandas * Plotly ### **🛡️ 安全与操作控制** * Enforce environment-based key management * Ensure zero logging of user PII * Run scraper within acceptable access constraints * Add rate-limiting and user throttling in production * Perform periodic key rotation and secret scanning ### **📈 产品路线图** * Enhancement Status * Replace simulated circulars with real PDF ingestion Upcoming * Role-based access management Under analysis * Vector search for NCSC content Future iteration * Multi-country cyber intelligence expansion Planned * Persistent conversation history with anonymization In pipeline ### 🤝 贡献模型 * Fork the repository * Create a feature branch * Implement enhancements / fixes * Submit a pull request with detailed notes ### **📄 许可** * Refer to the MIT LICENSE file for usage and distribution terms. ## 免责声明 ### 本工具仅访问公开可用信息,并遵守 NCSC 的公共使用政策。 ### 本项目为教育原型。 ### 它不提供法律建议。 ### 它与任何政府机构无关。
标签:Gemini, Kubernetes, NCSC, OpenRouter, Python, Ruby, Streamlit, 原型, 合规, 合规文档, 威胁情报, 实时同步, 对话式AI, 开发者工具, 情报平台, 文档仪表板, 无后门, 法规遵循, 瑞士, 瑞士网络安全中心, 瑞士网络警卫, 监管指导, 知识库, 网络安全, 访问控制, 逆向工具, 隐私保护