A complete Windows USB security framework that monitors USB devices in real time, auto-blocks unauthorized devices, audits activity, and displays everything in a live GUI dashboard.
- Real-time USB plug & unplug detection
- Auto-block unauthorized USB devices
- Allowlist & Blocklist based control
- Live GUI dashboard with logs
- USB activity auditing
- Stable, clean V2 architecture
- Windows 10 / 11
- Python 3.10+
- Administrator privileges
git clone https://github.com/shahdevam8/USB-Montoring.git
cd USB-Monitoring
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txtpython run.py- Live USB activity logs
- Allowed / Blocked status
- Auto-refreshing view
Logs stored in:
logs/usb_activity.log
[""][""]Format: VID:PID
{
"auto_block": true,
"audit_usb_files": true,
"log_level": "INFO"
}USB_Device_Control_Framework_V2/
├── run.py
├── core/
├── gui/
├── config/
├── logs/
└── data/
- Insert USB
- Check GUI
- Verify logs
- Modify allowlist/blocklist
- Re-test device behavior
Always run with Administrator privileges.
Open-source for educational & research use.