Encrypted Quarantine Vault
When DodaShield detects a malicious or suspicious file, it does not leave it on your hard drive where it can be accidentally double-clicked, and it does not simply delete it in case of a false positive. Instead, DodaShield safely neutralizes the threat using the Encrypted Quarantine Vault.
1. Why Immediate File Deletion Is Dangerous
Many basic antivirus utilities immediately delete flagged files from your computer. This creates two critical dangers:
- Accidental Deletion of Critical Files (False Positives): If an important business spreadsheet, a custom program, or an accounting database is misidentified as suspicious, immediate deletion destroys your valuable work forever.
- Threat Leaks & Malware Re-Infection: If a virus is merely renamed or left in the Recycle Bin, other background malware or an unsuspecting family member can click it and trigger a system-wide infection.
With DodaShield’s Encrypted Quarantine Vault:
- Flagged files are instantly stripped of execution privileges (
chmod 000/ DACL lockdown). - The raw malicious binary is encrypted using high-strength AES encryption and moved into an isolated, protected vault directory (
%PROGRAMDATA%\DodaShield\quarantine). - The malware is rendered completely inert—it cannot execute, replicate, or communicate with the internet.
- You remain in complete control: review detailed forensic diagnostics, purge threats permanently, or safely restore legitimate files with one click.
2. Vault Capabilities & Architecture
flowchart TD
THREAT["Threat Detected<br/>(From Malware Scanner, Real-Time Guard, or Mail Shield)"]
THREAT --> LOCK["Step 1: Execution Lockdown<br/>(Process Handles Closed, Permissions Stripped to 000)"]
LOCK --> ENCRYPT["Step 2: Cryptographic Isolation<br/>(Encrypted with Hardware-Bound AES-256 GCM)"]
ENCRYPT --> STORE["Step 3: Secure Vault Storage<br/>(Moved to %PROGRAMDATA%\DodaShield\quarantine)"]
STORE --> META["Step 4: Tamper-Evident Metadata Manifest<br/>(JSON Record: Original Path, SHA-256, Threat Name, Timestamp)"]
META --> UI["Quarantine Vault Management Dashboard"]
UI -->|"User Action: Permanently Delete"| PURGE["Permanent Secure Shredding<br/>(NIST SP 800-88 Cryptographic Purge)"]
UI -->|"User Action: Restore False Positive"| RESTORE["Decryption & Safe Restoration<br/>(Restored to Original Path + Whitelist Exclusion)"]
classDef danger fill:#fef2f2,stroke:#ef4444,stroke-width:2px,color:#991b1b;
classDef action fill:#eff6ff,stroke:#3b82f6,stroke-width:2px,color:#1e40af;
classDef storage fill:#f5f3ff,stroke:#8b5cf6,stroke-width:2px,color:#5b21b6;
classDef done fill:#ecfdf5,stroke:#10b981,stroke-width:2px,color:#065f46;
class THREAT,PURGE danger;
class LOCK,ENCRYPT,META,UI action;
class STORE storage;
class RESTORE done;
3. How to Manage Quarantined Files (Procedure)
- Open Protection → Quarantine Vault in the left sidebar.
- The table displays all neutralized threats with:
- Threat Name: Specific malware classification (e.g.,
Win.Trojan.Agent,Heur.Ransomware.Payload). - Original Path: The exact location where the virus attempted to strike.
- Quarantine Date: Precise timestamp of containment.
- File Size & SHA-256: Cryptographic fingerprint for forensic review.
- Threat Name: Specific malware classification (e.g.,
- To Permanently Delete Threats:
- Select an item and click Delete Selected, or click Purge All to permanently shred all quarantined files and free up disk space.
- To Restore a Legitimate File (False Positive):
- Select the file and click Restore File.
- DodaShield decrypts the binary and safely restores it to its original folder location while offering to add an exclusion rule so it won’t be flagged on subsequent scans.
4. Under the Hood: Cryptographic Vault Architecture
DodaShield’s quarantine engine (durga_av/engine/quarantine.py) enforces strict security safeguards:
- AES-256 Symmetric Encryption: Quarantined binaries are never stored as plain byte streams. Each file is encrypted with a localized symmetric key before being written to the vault disk.
- Metadata Integrity: Each quarantined artifact is paired with a tamper-evident JSON metadata file containing the exact original creation timestamps, file ownership permissions, and cryptographic SHA-256 hashes.
- Automatic Storage Retention: To prevent quarantine storage from growing excessively, DodaShield enforces an automated storage ceiling (configurable under Settings → Quarantine Limit, defaulting to 2,048 MB) and cleans files older than 60 days.
5. Comparison: Without DodaShield vs. With DodaShield
| Scenario | Without DodaShield Vault | With DodaShield Quarantine Vault |
|---|---|---|
| Infected File Download | File sits in Downloads folder; user or child double-clicks it later, infecting the entire machine. | File is encrypted and moved to the vault milliseconds after landing on disk; double-clicking is impossible. |
| False Positive on Business Tool | Aggressive scanner deletes the tool; unrecoverable loss of work and hours of downtime. | Tool is held safely in encrypted stasis; user clicks Restore and resumes work in seconds. |
| Secondary Infection Attempt | Malware attempts to re-read its dropped payload from disk. | Payload has been encrypted with AES and moved; secondary malware fails and crashes. |
Related Security Modules
- Malware Scanner — Understand how scanner detections route automatically into vault isolation.
- Real-Time Sentinel — Learn how on-access interceptions safely lock down rogue files.
- Security Reports & Forensic Audit — Review cryptographic hashes and forensic details of quarantined files.