Identify and restore quarantined files
Every file cPFence v4+ quarantines is listed in the WebUI, where you can search for it, preview its content and put it back. Support users need access to the server plus preview and restore permissions.
Open the quarantine list
Section titled “Open the quarantine list”- Open Threat & Malware Detection and choose one server in Server scope.
- On Scan Summary, select Bulk quarantine actions, or open Advanced Tools → Restore Quarantined Files.
The list shows when each file was quarantined, its original path, where cPFence stores it and its status, Quarantined or Restored. Type part of the original or stored path in Search Quarantined Files to filter the list, and use Refresh list to reload it.
Check the file before restoring it
Section titled “Check the file before restoring it”Select Preview on a row to show the stored content below the list, then Close it when you are done.
Match the original path and time with the detection email or the scan’s Details. If the path contains a website ID, search that ID in Enhance’s Manage Websites to find the owner. For email, note the mailbox path so the message goes back to the right mailbox.
Restore files
Section titled “Restore files”- Tick the files to restore. Select all visible selects every file on the current page; your selection is kept when you move between pages.
- Select Restore and check the server and number of files in Restore selected files.
- Select Also mark as safe only for files you checked and know are clean. cPFence then skips them in future scans; you can undo this under Safe files.
- Select Restore, or Cancel to keep the files in quarantine.
- Check that each file’s status changes to Restored. A file already at the original path, or a missing stored copy, stops that file from being restored.
For a false positive, open the scan’s Details and select Report false positive next to the file; the flagged file is attached automatically. A report asks support to review the signature; it does not create an exception. See quarantine retention before delaying recovery.
From the command line
Section titled “From the command line”As root on the affected server, you can also read the malware detection history:
less /var/lib/cpfcli/scan/infections.historyUse / to search in less and q to leave. WordPress integrity has its own history; see WordPress integrity checks. Stored copies are kept under /var/lib/cpfcli/quarantine/ with different names from the originals, so always restore from the WebUI list using the original path.



