How kathireswaran-manoharan/fyp-usbips works
USBIPS is a Windows USB intrusion-prevention client with a companion central management server. Its documented device-arrival workflow extracts identity, classifies the device, quarantines it, checks the local allowlist, then releases approved devices; removal is tracked separately. The client also has synchronization, logging, access-control, and presence subsystems, while the server exposes client, device, request, and event APIs plus a dashboard. The principal client workflow is documented in the README; several internal connections and server API data paths are not shown in the supplied excerpts, so they are left unconnected.
Main entry points: main.py Server application · SyncManager.cpp Sync manager · EnforcementManager.cpp Quarantine and release · main.cpp USB monitor
Components 21
USB client
- USB monitor
main.cpp - Identity extraction
Extractor/DeviceInfoExtractor.cpp - Device classification
Classifier/DeviceClassifier.cpp
Device runtime
- Local allowlist
Allowlist/AllowlistManager.cpp - Quarantine and release
Enforcement/EnforcementManager.cpp - Removal tracking
Presence/DevicePresenceMonitor.cpp - Access control
AccessControl/AccessController.cpp - USB device model
Models/USBDevice.h
Central sync
- Security event logging
Logging/EventLogger.cpp - Sync manager
Network/SyncManager.cpp - REST client
Network/RestClient.cpp
Management server
- Server application
server/app/main.py - Server database
server/app/database/db.py - Client API
server/app/api/clients.py - Device API
server/app/api/devices.py - Request API
server/app/api/requests.py - Event API
server/app/api/events.py - API schemas
server/app/models/schemas.py - Dashboard page
server/app/templates/index.html
Other components
- Operator
- USB device
Connections 20
- USB device → USB monitor: notifies arrival
README.md - USB monitor → Identity extraction: extracts identity
README.md - Identity extraction → Device classification: classifies device
README.md - Device classification → Quarantine and release: quarantines first
README.md - Quarantine and release → Local allowlist: awaits decision
README.md - Local allowlist → Quarantine and release: releases approved
README.md - Operator → USB monitor: approves unknown
README.md - USB device → Removal tracking: removal notification
README.md - Sync manager → REST client: calls
Network/SyncManager.cpp - Sync manager → Local allowlist: syncs remote list
Network/SyncManager.cpp - Sync manager → Removal tracking: checks tracked devices
Network/SyncManager.cpp - Sync manager → Quarantine and release: enforces revocation
Network/SyncManager.cpp - Sync manager → Security event logging: uploads pending events
Network/SyncManager.cpp - Server application → Server database: initializes
server/app/main.py - Server application → Client API: mounts router
server/app/main.py - Server application → Device API: mounts router
server/app/main.py - Server application → Request API: mounts router
server/app/main.py - Server application → Event API: mounts router
server/app/main.py - Server application → Dashboard page: renders
server/app/main.py - REST client → Server application: communicates with