Thank you for your question! I have used commands like this in the past to get me a full listing of all files in quarantine:
# isi avscan report threat --all | egrep -B2 "Quarantined" | egrep -o "/ifs.*$" | tee -a /ifs/data/Isilon_Support/quarantined_files_$(date '+%Y-%m-%d').txt
The resulting text file in /ifs/data/Isilon_Support will include a list of files that are in quarantine. I have also used the following to unquarantine all files. (Keep in mind, this will unquarantine EVERYTHING including any potential real viruses on the cluster):
# isi avscan report threat --all | egrep -B2 "Quarantined" | egrep -o "/ifs.*$" | tee -a /ifs/data/Isilon_Support/quarantined_files_$(date '+%Y-%m-%d').txt | while read qFile; do if isi avscan unquarantine "${qFile}"; then echo "$(date '+%Y-%m-%dT%H:%M:%S%z') SUCCESSFUL unquarantine of ${qFile}" | tee -a /ifs/data/Isilon_Support/unquarantined_files_$(date '+%Y-%m-%d').txt; else echo "$(date '+%Y-%m-%dT%H:%M:%S%z') FAILED to unquarantine ${qFile}" | tee -a /ifs/data/Isilon_Support/quarantined_files_$(date '+%Y-%m-%d').txt; fi; done
Both of these commands are run in one line. I would also recommend running them in a screen session if you have been running avscan for a long period of time as the command may take a while to complete and you don't want to terminate the command if you lose SSH connection.
Please let us know if there is anything else we can do for you!
Is there an age limit on what comes out of the report? I suspect these have been in quarantine a very long time (several years). I am not getting any results on the report search. I even shorted the command to just display anything:
But there is definitely files that are quarantined. Example below:
I'm finding them by a robocopy script that is getting access denied on the quarantined files. I *could* massage that output to give me just those lines, but it is a bit of a pain.
Running just, isi avscan report threat --all, does give results but all "Remediation" status show "Infected". And there are way less than 1300.
Any other thoughts on how to find these efficiently?
The commands that I provided to you are dependent on the AVScan database and report retention. By default, I believe the reports are saved for 1 year. You can validate this on the OneFS web administration interface on the Antivirus Settings page near the avscan settings.PNG.png" style=" ">
If your reports that included these files have been removed from the database, you may be able to run another AVScan job on the directory in question to find all infections and add them to the reporting database.
You can start an AVScan job by configuring a policy scan on the WebUI for the directory you are currently interested in getting files from. I would set this to manual and start the scan once configured (since we should only need to run it once). Once complete, the commands I provided should get you the information you require.
If this is not an option in your environment, I would recommend contacting your EMC account representative and requesting an engagement with our Professional Services team to create a custom solution for you.
The av report retention is at 1 year, so these were all prior to that.
mattashton, they essentially asked me to do what you suggested above.
I did get the stats on a single quarantined file and the Scan Status shows "Quarantined". So it appears I will have to search all files based on that output. Waiting to see if EMC comes up with something better. Also a way to mass release or delete these files.
Many of these look like false positives. Legit software cab and zip files that couldn't be looked at by the AV software and just dumped into quarantine.
Unfortunately, it gets emotional at this point contacting file owners to see if they really want these files that they haven't noticed they couldn't access over several years. =/
Try looking at the avscan log file, /var/log/isi_avscan_d.log; assuming it is complete there will probably be some entries with files that have been scanned, rejected, skipped, etc...
That being said, one could theoretically look at the avscan database itself (it's a sqlite3 db):
But if you don't know what you are doing, you could potentially really screw things up:
cd /ifs/.ifsvar/modules/avscan
sqlite3 isi_avscan.db
select * from Infections;
.quit
Be careful. Better yet, find a *nix admin/dba and have them help you.
Essentially it's a 2 page list of things to try. Again, I'm not a Linux command line guru, so have to look into the details of these combinations to root these things out.
Going through it today. I'll post an update as soon as I can.
johnsonka
130 Posts
2562
1
Posted July 28th, 2015 14:00
Hello Jstamp,
Thank you for your question! I have used commands like this in the past to get me a full listing of all files in quarantine:
# isi avscan report threat --all | egrep -B2 "Quarantined" | egrep -o "/ifs.*$" | tee -a /ifs/data/Isilon_Support/quarantined_files_$(date '+%Y-%m-%d').txt
The resulting text file in /ifs/data/Isilon_Support will include a list of files that are in quarantine. I have also used the following to unquarantine all files. (Keep in mind, this will unquarantine EVERYTHING including any potential real viruses on the cluster):
# isi avscan report threat --all | egrep -B2 "Quarantined" | egrep -o "/ifs.*$" | tee -a /ifs/data/Isilon_Support/quarantined_files_$(date '+%Y-%m-%d').txt | while read qFile; do if isi avscan unquarantine "${qFile}"; then echo "$(date '+%Y-%m-%dT%H:%M:%S%z') SUCCESSFUL unquarantine of ${qFile}" | tee -a /ifs/data/Isilon_Support/unquarantined_files_$(date '+%Y-%m-%d').txt; else echo "$(date '+%Y-%m-%dT%H:%M:%S%z') FAILED to unquarantine ${qFile}" | tee -a /ifs/data/Isilon_Support/quarantined_files_$(date '+%Y-%m-%d').txt; fi; done
Both of these commands are run in one line. I would also recommend running them in a screen session if you have been running avscan for a long period of time as the command may take a while to complete and you don't want to terminate the command if you lose SSH connection.
Please let us know if there is anything else we can do for you!