69 lines
5.3 KiB
Markdown
69 lines
5.3 KiB
Markdown
# EP Eraser
|
|
|
|
EP Eraser is a small Debian Live image for securely retiring SATA/NVMe SSDs and rotational HDDs. It boots into a text console inspired by DBAN, but uses device-specific erase methods instead of overwriting every disk indiscriminately.
|
|
|
|
## Safety model
|
|
|
|
- The tool requires an exact device name and a typed `ERASE` confirmation.
|
|
- It refuses mounted devices, the live boot device, read-only devices, and devices with mounted descendants.
|
|
- SSDs use `blkdiscard --secure` where supported, with NVMe sanitize as an option.
|
|
- HDDs use a three-pass `shred` overwrite followed by a device-state/status check.
|
|
- `nwipe` is available as an interactive multi-drive erasure tool and generates PDF certificates.
|
|
- Every operation is logged to `/var/log/ep-eraser.log` and a summary is written to the target's parent device metadata only when supported.
|
|
|
|
No software can guarantee recovery resistance for every controller, reserved area, remapped sector, or damaged drive. For high-assurance disposal, combine this image with the drive vendor's sanitize command or physical destruction according to your organization's policy.
|
|
|
|
## Build
|
|
|
|
Build from Debian/Ubuntu, WSL, or Docker. The builder must run as root because `live-build` creates a chroot.
|
|
|
|
```sh
|
|
sudo ./build.sh
|
|
```
|
|
|
|
The output is `build/ep-eraser-amd64.hybrid.iso`. Write it to a USB drive with a tool such as Rufus or `dd`. Verify the output checksum before deployment.
|
|
|
|
To build without installing packages on the host, use Docker from Linux or WSL:
|
|
|
|
```sh
|
|
docker build -t ep-eraser-builder .
|
|
docker run --rm -v "$PWD:/work" ep-eraser-builder
|
|
```
|
|
|
|
## VMware/VirtualBox images
|
|
|
|
Create a writable monolithic-sparse VMDK from the root ISO with `qemu-img` (`qemu-utils` on Debian):
|
|
|
|
```sh
|
|
./create-vmdk.sh
|
|
```
|
|
|
|
The script defaults to `ep-eraser-amd64.hybrid.iso` and writes `ep-eraser-amd64.vmdk` plus a SHA-256 sidecar in the project root. You can pass an ISO path and output VMDK path explicitly. The VMDK contains the same live boot image, not an installed OS or persistent live session. Attach it as an existing disk in VMware or VirtualBox; ESXi may require importing it into a datastore with `vmkfstools`.
|
|
|
|
The Docker builder includes `qemu-img` too. After building that image, run the converter with `docker run --rm -v "$PWD:/work" --entrypoint /work/create-vmdk.sh ep-eraser-builder`.
|
|
|
|
Create an ESXi-importable OVA with its own OVF descriptor and stream-optimized disk:
|
|
|
|
```sh
|
|
./create-ova.sh
|
|
```
|
|
|
|
The default output is `ep-eraser-amd64.ova` plus a SHA-256 sidecar. Import it in ESXi with **Deploy OVF Template**; VirtualBox can import the same OVA. The appliance defaults to BIOS boot and 2 CPUs/2 GiB RAM. It runs the same temporary live environment, not an installed persistent OS. Wiping host disks from a VM requires separately attaching the target disk through supported passthrough/RDM; the OVA disk itself is the protected boot medium. Use physical boot media for direct hardware wiping.
|
|
|
|
To build the OVA in Docker, use `docker run --rm -v "$PWD:/work" --entrypoint /work/create-ova.sh ep-eraser-builder`.
|
|
|
|
## Use
|
|
|
|
Boot the target machine from the image, inspect the disk list, and choose the exact device path. The program detects rotational media and presents the appropriate operation. Reboot after completion; do not remove the USB device until the result is shown.
|
|
|
|
Choose `nwipe` from the startup menu to use its interactive interface. Its PDF certificates are saved under `/var/log/ep-eraser/reports`; copy them to persistent storage before rebooting because the live system's filesystem is temporary. Press `c` in nwipe to edit certificate details such as company, customer, and host information. Those settings are also temporary unless included in the image.
|
|
|
|
The supplied `config/includes.chroot/etc/nwipe/eternity-project-logo.svg` is converted to `logo.jpg` during image preparation for nwipe PDF certificates. The same logo is rendered as a colored startup screen above the tty1 menu. Nwipe is built from upstream v0.42 and uses `/etc/nwipe/logo.jpg` for PDF branding. You can include `/etc/nwipe/nwipe.conf` in `config/includes.chroot` to ship default certificate settings.
|
|
|
|
NetworkManager provides network connectivity; wired Ethernet uses DHCP automatically, and Wi-Fi can be configured with `nmcli device wifi list` followed by `nmcli device wifi connect "SSID" --ask`. The image starts SSH and Telnet servers for the `eraser` account with password `eperaser`; root SSH login is disabled. The account can run only the EP Eraser and nwipe programs through passwordless `sudo`, for example `sudo -n /usr/local/sbin/ep-eraser` or `sudo -n /usr/local/bin/nwipe`.
|
|
|
|
On the local or VM console, the erasure UI stays on tty1 and tty2 automatically opens a shell as `eraser`. SSH and Telnet startup now waits for the live account password setup to complete.
|
|
|
|
Telnet sends both passwords and commands without encryption. Use it only on an isolated, trusted internal network; anyone able to monitor that network can capture the credentials. The predefined password is shared by every image built from this configuration, so change it in `config/includes.chroot/usr/local/sbin/ep-eraser-remote-setup` before deploying outside a controlled test environment. Connect with `ssh -t eraser@HOST` or `telnet HOST`.
|
|
|
|
This project intentionally does not include an automatic wipe-all mode. |