sys-shred
sys-shred is a multi-threaded, forensic-grade Rust library and CLI for the irreversible destruction of sensitive files.
[!CAUTION] IRREVERSIBLE DATA DESTRUCTION NOTICE
Data processed by
sys-shredis physically overwritten at the hardware level. Please verify your target paths carefully before execution. Once processed, data cannot be recovered by forensic software.
Disclaimer
This project is not affiliated with any government or military entity. It is provided for legitimate data sanitization, privacy protection, and compliance purposes. Users are responsible for using this tool legally and ethically. The maintainers discourage any malicious or unauthorized usage and are not liable for any misuse.
Key Features
- Hardware-Level Sync: Uses
fsyncandsync_allto bypass volatile OS caches and ensure data is written to physical media. - Memory Efficient: A stream-based architecture that maintains a low RAM footprint even when processing millions of files.
- SSD Optimization: Supports hardware
TRIMcommands to mitigate wear-leveling artifacts on modern flash storage. - Parallel Performance: Powered by
rayonfor massive parallel execution and high throughput.
[!IMPORTANT] This is the official repository for
sys-shred. Please report bugs and request features via GitHub Issues.
Quick Start
For a detailed list of options, run sys-shred --help.
To perform a standard cryptographic overwrite on a file:
Installation
Via Cargo (Recommended):
Via AUR (Arch Linux):
Documentation Index
Erasure Algorithms
Standard Cryptographic
Overwrites data using three passes of cryptographically secure random entropy (default).
Military Grade (DoD)
Implements the US Department of Defense 5220.22-M standard (Pass 1: Zeros, Pass 2: Ones, Pass 3: Random).
Maximum Security (Gutmann)
The rigorous 35-pass Gutmann algorithm, designed for older magnetic media.
Advanced Targeting
Recursive Destruction
Destroy entire directory trees using a highly optimized, lock-free parallel execution engine.
Glob Exclusions
Exclude specific files or directories using wildcard patterns.
Dry-Run Simulation
Preview which files will be targeted without modifying the filesystem.
Enterprise Features
SSD TRIM / Discard
Dispatches hardware-level block deallocation commands (FALLOC_FL_PUNCH_HOLE on Linux, FSCTL_SET_ZERO_DATA on Windows) to handle SSD wear-leveling.
JSON Audit Logging
Generate verifiable destruction reports for GDPR/HIPAA compliance.
Hardware Verification
Validates destruction by reading physical blocks back into memory to ensure they were correctly overwritten.
Safety Guards
- Symlink Protection: Isolates symbolic links, unlinking the reference without traversing or destroying the external target.
- Interactive Prompts: Confirmation prompts help prevent accidental recursive destruction. Use
--forceto bypass.
Links
License
Copyright (c) 2026 V1lleneuve. Licensed under the MIT License.