45 lines
3.5 KiB
Markdown
45 lines
3.5 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
|
|
```
|
|
|
|
## 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.
|
|
|
|
To brand certificates, place your JPEG logo at `config/includes.chroot/etc/nwipe/logo.jpg` before building. Nwipe is built from upstream v0.42, which supports this `logo.jpg` branding file. You can also 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`.
|
|
|
|
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. |