Introduction
In the article, you can find details about how to restore original files after a scan with the ImunifyAV+ scanner.
Note: The option to clean or restore files is ONLY available with an active ImunifyAV+ license.
WHM Procedure
1. Login to WHM
2. Navigate to the ImunifyAV plugin
3. Click the Files tab
The files tab will display all infected files for discovered by a scan. Under the actions column, the option to restore the original is available.
SSH/CLI Procedure
If you prefer to restore the files in the command-line, the below details will accomplish the task. The below commands use an option called "--user USER" where you need to replace USER with the actual user name of the account attempting restore.
1. First, make sure to enable the feature-management option "av" for the affected account. Attempting to restore in CLI without this option enabled will fail.
imunify-antivirus feature-management enable --feature av --user USER
2. The following command will restore all original files for the account that ImunifyAV+ quarantined or replaced with a 0-byte file.
imunify-antivirus malware malicious restore-original --user USER
3. To return the account to the disabled state after restoring the files, run the following command.
imunify-antivirus feature-management disable --feature av --user USER
For more information, please see the official documentation pages.