{"id":35444506,"url":"https://github.com/zyazosk/usb-defender","last_synced_at":"2026-04-25T19:00:45.319Z","repository":{"id":321634385,"uuid":"1085205512","full_name":"ZyAzOsK/USB-defender","owner":"ZyAzOsK","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-22T11:37:14.000Z","size":296,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-22T13:28:19.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZyAzOsK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-28T18:12:44.000Z","updated_at":"2026-04-22T11:37:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"360b4bc5-f3b4-4ebd-b011-d166b5002742","html_url":"https://github.com/ZyAzOsK/USB-defender","commit_stats":null,"previous_names":["zyazosk/usb-defender"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZyAzOsK/USB-defender","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZyAzOsK%2FUSB-defender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZyAzOsK%2FUSB-defender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZyAzOsK%2FUSB-defender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZyAzOsK%2FUSB-defender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZyAzOsK","download_url":"https://codeload.github.com/ZyAzOsK/USB-defender/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZyAzOsK%2FUSB-defender/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32273223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-03T01:15:50.169Z","updated_at":"2026-04-25T19:00:45.314Z","avatar_url":"https://github.com/ZyAzOsK.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# USB-Defender\n\n*A cross-platform security ecosystem for real-time USB malware detection, quarantine, AI-powered analysis, and beautiful visualization.*\n\n**USB-Defender** protects you from malicious files hiding in USB drives. It comes in two interconnected parts:\n1. **The Desktop App (Command Center):** A sleek, modern GUI that lives on your PC. It auto-detects USB insertion, runs background scans, and provides a beautiful dashboard to manage quarantined files.\n2. **The Portable Scanner:** A standalone, zero-dependency executable that lives *on the USB drive itself*, protecting the drive when you plug it into *other* people's untrusted machines.\n\n---\n\n## Features\n\n### 1. The Desktop Command Center (Tauri + React + Python)\n- **Zero-Click Auto-Scan:** Automatically detects when a USB drive is plugged in and scans it silently in the background.\n- **Beautiful Dashboard:** Real-time threat feed, severity distribution charts, and historical logs.\n- **Quarantine Vault:** Safely decrypt and restore files that were mistakenly flagged, right from the UI.\n- **\"Arm USB\" Button:** One-click deployment of the Portable Scanner directly to your USB drive.\n\n### 2. The Portable USB Engine\n- **True Portability:** Native binaries for Windows (`.exe`) and Linux (`ELF`), plus a zero-dependency Python fallback. No installation required on the target machine.\n- **Gemini AI Threat Verification:** Uses Google's Gemini 2.5 Flash to act as a cybersecurity analyst, analyzing flagged files to verify if they are truly malicious or just false positives (like developer scripts).\n- **Safe XOR Quarantine:** High-severity threats are instantly neutralized using Symmetric XOR Encryption, preventing accidental execution.\n- **Developer-Friendly Heuristics:** Automatically ignores `.git` and `node_modules` to eliminate false positives on development projects.\n\n---\n\n## Architecture\n\n```mermaid\ngraph TD\n    subgraph \"Your PC (Installed Desktop App)\"\n        A[Tauri Desktop App] --\u003e B[React Dashboard]\n        A --\u003e C[Python API Sidecar]\n        C --\u003e D[USB Auto-Detector]\n        D --\u003e|USB Plugged In| E[Auto-Scan Engine]\n        E --\u003e F[Quarantine Vault]\n        E --\u003e G[SQLite Database]\n        B --\u003e|WebSocket| C\n    end\n\n    subgraph \"Any PC (Portable Mode)\"\n        H[USB Drive] --\u003e I[usb-defender-portable]\n        I --\u003e J[Scan USB Root]\n        J --\u003e K[Terminal Report + Quarantine]\n    end\n```\n\n---\n\n## Installation \u0026 Usage\n\n### Option 1: The Desktop App\nDownload the installer for your platform from the **[Releases](../../releases)** page.\n\n* **Windows:** Download and run the `.msi` installer.\n* **Linux:** Download the `.deb` or `.rpm` package and install via your package manager.\n* **macOS:** Download the `.dmg` (coming soon).\n\nOnce installed, simply open USB Defender and plug in a USB drive!\n\n### Option 2: The Portable Scanner\nIf you just want to protect a specific USB drive:\n1. Open the **Desktop App** and go to the **Scanner** tab.\n2. Select your USB drive and click **\"Arm USB\"**. \n3. *Alternatively:* Download the portable binaries from the Releases page and copy them to the root of your USB drive manually.\n\n**Using the Portable Scanner on a friend's PC:**\n* **Windows:** Double-click `USBDefender.exe` or run `scan.bat`.\n* **Linux:** Run `./usb-defender-linux` or `./scan.sh`.\n* **Any OS:** Run `python3 usb_defender_portable.py`.\n\nThe scanner will present an interactive terminal menu allowing you to scan the drive, use Gemini AI, or restore quarantined files.\n\n---\n\n## Development Setup\n\nWant to build USB-Defender from source?\n\n**1. Clone the repository:**\n```bash\ngit clone https://github.com/ZyAzOsK/USB-defender.git\ncd USB-defender\n```\n\n**2. Setup the Python API Sidecar:**\n```bash\npython3 -m venv .venv\nsource .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\npip install -r requirements.txt\n```\n\n**3. Run the Desktop App (Development Mode):**\n```bash\ncd dashboard\nnpm install\nnpm run tauri dev\n```\n\n**4. Build the Portable Scanner binaries:**\n```bash\npython portable/build_portable.py\n```\n\n---\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyazosk%2Fusb-defender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyazosk%2Fusb-defender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyazosk%2Fusb-defender/lists"}