Identify, restore and delete quarantined files
Every file cPFence v4+ quarantines is listed in the WebUI, where you can search for it, preview its content, put it back or delete it. Support users need access to the server plus preview, restore and delete 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, an original folder whose owner changed since detection, or a missing stored copy stops that file from being restored, and the WebUI shows the reason next to the file. The file stays in quarantine.
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.
Delete files
Section titled “Delete files”Delete quarantined copies you no longer need, such as confirmed malware.
- Tick the files to delete. You can delete any listed file, including Restored ones.
- Select Delete.
- Check the server and number of files in Delete selected files, then select Delete, or Cancel to keep them.
- Read the result. Done. Deleted …, failed … shows how many files were removed; deleted files leave the list.
Files removed by quarantine retention also leave the list.
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.





