UNSOLVED

TrophyWife11112

updated

11 years ago

T

TrophyWife11112

1 Rookie

•

26 Posts

0

5018

July 28th, 2015 14:00

List of Files in Quarantine?

Isilon OneFS 7.0.2.x

I found trying to copy a large amount of data off the Isilon files that are in Quarantine. 1300+ (I know....)

I see nothing in the GUI that gives me a listing without going into File Explorer in individual directories.

Looking at CLI commands, I do not see an option for a listing of what is in quarantine. Just to put something there or take something out.

Is there a command or variation of a command that will spit out a list of what is in there?

Thanks!

  • 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!

  • TrophyWife11112

    1 Rookie

    •

    26 Posts

    2562

    0

    Posted July 29th, 2015 07:00

    Hi Katie:

    Thanks for the reply.

    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:

    isi avscan report threat --all | egrep -B2 "Quarantined"

    Nothing is coming up.

    But there is definitely files that are quarantined. Example below:

    Capture.JPG.jpg

    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?

    Thanks.

  • johnsonka

    130 Posts

    2562

    0

    Posted July 30th, 2015 07:00

    Hello,

    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.

  • mattashton1

    93 Posts

    2562

    0

    Posted July 30th, 2015 07:00

    Hi JStamp,

    You can also do 'isi avscan get filename.ext' on the individual files to get the status:

    File:        testscan

       Last scan:   09-11-2014 11:05

       Scan result: clean

       Last ISTag:  1410344545

       Scan status: current

       Quarantined: false

    But to search all files, I think you'll have to isi avscan report and grep through the output and/or grep your robocopy output... 

    Cheers,
    Matt

  • TrophyWife11112

    1 Rookie

    •

    26 Posts

    2562

    0

    Posted July 31st, 2015 06:00

    I did open a ticket with EMC.

    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. =/

  • johnsonka

    130 Posts

    2562

    0

    Posted August 3rd, 2015 09:00

    Hello jstamp,

    Have you had any luck with your quarantined files? Let us know if there is anything else we can do to help!

    If you're having any issues with your service request, we can look in to that for you as well. Let us know!

  • mattashton1

    93 Posts

    2562

    0

    Posted August 4th, 2015 07:00

    Hi JStamp,

    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.

    Cheers,
    Matt


  • TrophyWife11112

    1 Rookie

    •

    26 Posts

    2562

    0

    Posted August 4th, 2015 07:00

    EMC didn't have the "cure".

    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.

    Thanks!

  • TrophyWife11112

    1 Rookie

    •

    26 Posts

    2562

    0

    Posted August 4th, 2015 08:00

    This is what I'm using:

    find /ifs/userdirectory -type f -print0 | xargs -0 isi avscan get | grep -B5 "Quarantined: true" | grep "File:*" > /tmp/quarantined.txt

    Based on that, I may mass unquarantine and then delete them, if necessary.

    find /ifs/userdirectory -type f -print0 | xargs -0 isi avscan unquarantine

  • sile1

    1 Rookie

    •

    27 Posts

    479

    0

    Posted February 23rd, 2017 12:00

    This seemed to work for us.  Just copied it off cluster to avoid messing with anything.  then just pop open a sqlite DB browser