Ana Sayfa / Kod ve Scriptler / USB Sentinel - Advanced USB Security System
USB Sentinel - Advanced USB Security System
Cihaz kontrolü, tehdit taraması, karantina, RBAC, izleme, PostgreSQL, FastAPI ve yapay zekâ içeren Python USB güvenlik sistemi.
- Yayın tarihi15 Ağustos 2026
- Paket içeriği.py, .sql
- Son güncelleme15 Ağustos 2026

Overview
USB Sentinel — Advanced USB Security & Device Control System
USB Sentinel is a complete Windows-focused cybersecurity source-code project built with Python for monitoring, analyzing and controlling USB devices through a modern security-oriented desktop interface. The project combines USB device detection, security policies, threat analysis, quarantine workflows, administrator approval, role-based access control, monitoring, audit logging, PostgreSQL persistence, a FastAPI backend and an integrated AI assistant. It is designed for developers, cybersecurity students, researchers and organizations looking for a customizable foundation for USB device security and endpoint-control projects.
Key Features
USB Device Detection & Monitoring
- Real-time USB device monitoring
- Device insertion and removal detection
- VID/PID identification
- Serial and device information collection
- Device fingerprinting
- Windows PnP and USB telemetry
- Device status tracking
USB Security Workflow
- Zero-Trust inspired device handling
- Pending device approval
- Allow device for current session
- Block device for current session
- Permanent device blocking
- Device quarantine workflow
- Whitelist and blacklist management
- Administrator approval controls
- Global USB port-lock controls
###strong/strong###
- USB threat scoring
- Risk classification
- Suspicious device detection ###li/li###
- HID behavior analysis
- Suspicious enumeration detection
- Network-emulation indicators
- Security findings and recommended actions
USB Storage Scanner
- Suspicious file-type detection
- Autorun detection
- Executable and script-file checks
- Hidden-file analysis
- File entropy analysis
- Risk-score generation
- Optional Microsoft Defender integration
Authentication & Access Control
- Secure administrator authentication
- Password hashing
- Role-Based Access Control (RBAC)
- SUPER_ADMIN
- SECURITY_ANALYST
- OPERATOR
- STANDARD_USER
- Permission-based protected actions
- Session management
- Reauthentication controls
- Login protection
- OTP password recovery
Security Controls
- Safe Mode
- Panic Mode
- Global USB Lock
- Hardware security-token support
- Integrity verification
- Sensitive-action protection
- Rate limiting
- Session security
- Recovery mechanisms
Security Dashboard
- Real-time security overview
- USB device status
- Pending approval requests ###li/li###
- System metrics
- Security alerts
- Recent events
- Active sessions
- Driver status and diagnostics
User Management
- User administration
- Role assignment
- Permission management
- Session visibility
- Login history
- Access information
Logging & Monitoring
- Structured security logging
- Audit logging
- SIEM-oriented events
- USB event history
- Authentication history ###li/li###
- System telemetry
- Network monitoring
- Security event history
PostgreSQL Database The project includes a structured PostgreSQL database layer covering users, authentication, RBAC, USB devices, device registry, access requests, policies, USB history, threat assessments, threat intelligence, security alerts, SIEM events, telemetry, system metrics, AI observability, settings and support requests. A repository and service architecture separates database operations from business logic and the user interface. FastAPI Backend USB Sentinel includes a FastAPI backend providing protected REST endpoints for authentication, security data, logs, USB events, threat information, system metrics, system status and AI functionality. Authentication uses signed JWT access tokens and permission-based endpoint protection. Real-Time WebSocket Security Events The backend includes a protected WebSocket security stream. Authorized clients can receive historical and live security events through an in-process event bus without continuously polling the server. The WebSocket connection validates JWT authentication and RBAC permissions before streaming security events. Sentinel AI Assistant An integrated cybersecurity assistant is available directly from the application. The AI architecture includes:
- Google Gemini integration
- Application-specific system instructions
- Page-aware assistance
- Retrieval-Augmented Generation (RAG)
- Semantic documentation retrieval
- Gemini embeddings
- FAISS vector search
- Conversation memory
- Sensitive-data redaction
- AI safety filtering
- Structured responses
- AI observability and diagnostics
When online AI functionality is unavailable, USB Sentinel can use its local application documentation through a keyword-based retrieval fallback. No separate offline generative LLM is included. Windows Integration USB Sentinel uses Windows-specific security and device-management capabilities including:
- Windows PnP telemetry
- PowerShell device information
- WMI/CIM information
- SetupAPI telemetry
- Windows Registry integration
- pnputil-based user-mode enforcement
</ul
Features
- Real-time USB device detection and monitoring
- USB insertion and removal tracking
- VID/PID, serial number and device fingerprint identification
- Zero-Trust inspired USB approval workflow
- Allow once, block once and permanent block actions
- Device quarantine and restricted-access workflow
- USB whitelist and blacklist management
- Configurable USB security policies
- USB storage scanning and suspicious-file detection
- Risk scoring and threat-level classification ###li/li###
- HID and suspicious-enumeration behavior analysis
- Network-emulation device indicators
- Optional Microsoft Defender-assisted scanning
- Secure administrator authentication
- OTP-based password recovery
- Role-Based Access Control (RBAC)
- SUPER_ADMIN, SECURITY_ANALYST, OPERATOR and STANDARD_USER roles
- Permission-based protected actions
- Session management and reauthentication controls
- Login protection and rate limiting
- Safe Mode and Panic Mode protection
- Global USB lock controls
- Optional hardware security-token support
- Application integrity verification
- Security dashboard with real-time operational information
- USB scan history and device history
- User and access management
- Structured audit logging
- SIEM-oriented security events
- System and network monitoring
- PostgreSQL database architecture
- Repository and service-layer architecture
- FastAPI REST backend
- JWT authentication
- Protected WebSocket security-event streaming
- Integrated Sentinel AI assistant
- Google Gemini integration
- Retrieval-Augmented Generation (RAG)
- Gemini embeddings and FAISS semantic search
- Page-aware AI assistance
- AI conversation memory
- Sensitive-data redaction and AI safety filtering
- Local documentation keyword fallback when Gemini is unavailable
- Dark and light interface modes
- English, French, Arabic and Tamazight interface strings
- Windows PnP, PowerShell, WMI/CIM and SetupAPI integration
- User-mode USB enforcement through Windows tools
- Experimental KMDF driver integration and driver bridge
- Detailed Markdown technical documentation
- Modular and customizable source code
Requirements
- Windows 10 or Windows 11 64-bit
- Python 3.12 or a compatible Python 3 environment
- PostgreSQL database server
- Python package manager (pip)
- Administrator privileges for USB enable/disable and other protected Windows device-control operations
- PowerShell available on the Windows system
- Windows Plug and Play / PnP services enabled
- Internet connection only when online Gemini AI functionality is required
- Google Gemini API key for online AI generation and semantic embedding features
- SMTP account/configuration if OTP email recovery is used
- Compatible Python packages listed in the project documentation
- Visual Studio and Windows Driver Kit are required only for developers who want to build or experiment with the included KMDF driver
- Driver signing/test-signing and an isolated Windows VM are strongly recommended for KMDF driver experimentation
- Basic knowledge of Python, PostgreSQL and Windows administration is recommended for customization
Benzer ürünler

Sesli sohbet, React gösterge paneli, özelleştirilebilir temalar ve Python kaynak kodu içeren yapay zekâ destekli macOS masaüstü asistanı.
Yayın: Kasım 2026
Cüzdan yatırmaları, hediye kartları, yönetici paneli ve tedarikçi API desteği olan oyun kontör yükleme sitesi. Python + PostgreSQL.
Yayın: Ekim 2026
FastAPI, PostgreSQL, cüzdan ve yönetici paneli ile oyun kontörü ve hediye kartı satışı.
Yayın: Ekim 2026
Bu kendi sunucunuzda barındırılan Python uygulamasıyla belgeleri OCR, arama ve yapay zeka asistanıyla düzenleyin.
Yayın: Eylül 2026
Bu Telegram botu, destek ekiplerinin belgelerinde yapay zekâ yanıtları bulmasına ve SSS'leri, şablonları ile programları yönetmesine yardımcı olur.
Yayın: Kasım 2026
ManageFactory; fabrikaların ürünleri, depoları, satın almayı, üretimi ve satışı, çevrimdışı bir Python masaüstü uygulamasında yönetmesine yardım eder.
Yayın: Kasım 2026