LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-14-2018, 10:49 AM   #1
derezion
Member
 
Registered: Aug 2018
Distribution: Anything Debian-based
Posts: 81

Rep: Reputation: Disabled
ClamAV found an infected file... should I use Darik's Boot and Nuke?


ClamAV found an infected file... should I use Darik's Boot and Nuke

Should I post the report I got or is it sensitive information?

Clam Antivirus found an infected file in Firefox folder. I was told by a computer savvy friend that I should use a trusted antivirus to remove any infected files.

Oh and the file seemed to have moved. Also I deleted the standard user account the file was in. I'm using Ubuntu 16.04 LTS. I think I want to just wipe my hard drive with Darik's Boot and Nuke and install Windows 10 and Debian or just Debian. What do you you think?
 
Old 08-14-2018, 11:33 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by derezion View Post
ClamAV found an infected file... should I use Darik's Boot and Nuke

Should I post the report I got or is it sensitive information?

Clam Antivirus found an infected file in Firefox folder. I was told by a computer savvy friend that I should use a trusted antivirus to remove any infected files.

Oh and the file seemed to have moved. Also I deleted the standard user account the file was in. I'm using Ubuntu 16.04 LTS. I think I want to just wipe my hard drive with Darik's Boot and Nuke and install Windows 10 and Debian or just Debian. What do you you think?
Without the report from ClamAV, it's hard to say what you mean by "infected". It should display the names of the files "infected", which I would not think would be "sensitive information".

Linux isn't Windows, it's much harder for viruses to propagate under a Linux system, because of the user privilege system implemented in Linux/UNIX.

It should be safe to just remove the "infected" file(s), but it would depend on the extent of the "infection".
 
1 members found this post helpful.
Old 08-16-2018, 08:44 AM   #3
derezion
Member
 
Registered: Aug 2018
Distribution: Anything Debian-based
Posts: 81

Original Poster
Rep: Reputation: Disabled
Here's the report:
Code:
/home/USERNAME/.cache/mozilla/firefox/icgb9k87.default/cache2/entries/1987E989971C6F72EE5D081641773F7D68471C38: Html.Exploit.CVE_2017_11901-6393372-0 FOUND
The problem is I looked in that folder and found nothing.

I've since deleted that standard user account.
Does that solve my problem?
 
Old 08-16-2018, 08:49 AM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by derezion View Post
Here's the report:
Code:
/home/USERNAME/.cache/mozilla/firefox/icgb9k87.default/cache2/entries/1987E989971C6F72EE5D081641773F7D68471C38: Html.Exploit.CVE_2017_11901-6393372-0 FOUND
The problem is I looked in that folder and found nothing.

I've since deleted that standard user account.
Does that solve my problem?
Yes, if that also deleted your user profile folder as well (normally does delete your user profile folder).
 
Old 08-16-2018, 11:03 AM   #5
derezion
Member
 
Registered: Aug 2018
Distribution: Anything Debian-based
Posts: 81

Original Poster
Rep: Reputation: Disabled
The file disappeared before I deleted the user account. Is using Darik's Boot and Nuke a good solution and installing a new OS a good solution?
 
Old 08-16-2018, 11:10 AM   #6
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by derezion View Post
The file disappeared before I deleted the user account. Is using Darik's Boot and Nuke a good solution and installing a new OS a good solution?
Have you ran another virus scan?

While yes you could do what you're suggesting, it seems pretty heavy-handed to me. I think given that the detection was in Firefox's browser cache, just clearing the browser cache would have deleted it. Deleting your user account would have almost certainly cleared it, therefore I don't think there's any need for such a heavy-handed approach. It's up to you, but I think what you're suggesting is once again just overkill.
 
2 members found this post helpful.
Old 08-16-2018, 11:20 AM   #7
derezion
Member
 
Registered: Aug 2018
Distribution: Anything Debian-based
Posts: 81

Original Poster
Rep: Reputation: Disabled
I haven't run another scan. I think I'll try that. Thanks!
I wouldn't mind a heavy handed approach because I don't have anything important on this PC.
Thanks again.
 
Old 08-16-2018, 12:16 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by derezion View Post
The file disappeared before I deleted the user account. Is using Darik's Boot and Nuke a good solution and installing a new OS a good solution?
Overkill IMO.
~/.cache/firefox/ can always be "nuked". All of any not-in-use ~/.cache/ for that matter.

Close browser, open terminal and issue >
Code:
rm -fr ~/.cache/ ; exit
back at your desktop, rescan, open browser, rescan again.
Observe and report.

deleting standard user account does NOT "fix" the problem

Clean the cache next time, and check again.
 
Old 08-16-2018, 12:28 PM   #9
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by derezion View Post
The problem is I looked in that folder and found nothing.

I've since deleted that standard user account.
Does that solve my problem?
No, it does not. What is the problem? Finding nothing, or deleting "nothings"?

Next infection that is found here's what I'd do.

IF it below /home/$USER/.cache/ close the browser(s) and nuke /home/$USER/.cache/ and scan again.
Do not enable Potentially Unwanted Programs in clam-tk (PUPs)
No need to scan anything out of /home/$USER/

Don't need heavy handed anything.
"Nothing on it" is not a reason to go nuclear by deleting "user".

Just some advice
Good Luck!

Last edited by Habitual; 08-16-2018 at 12:31 PM.
 
1 members found this post helpful.
Old 08-16-2018, 02:52 PM   #10
derezion
Member
 
Registered: Aug 2018
Distribution: Anything Debian-based
Posts: 81

Original Poster
Rep: Reputation: Disabled
Just delete everything in
/home/$USER/.cache/
And clear the trash bin?

How is that different than deleting the account?
 
Old 08-16-2018, 11:06 PM   #11
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by derezion View Post
Just delete everything in
/home/$USER/.cache/
I think Habitual is just saying that deleting everything in the /home/$USER/.cache/ folder also deletes whatever apps cache that use that folder for their "cache", rather than using the app concerned (like Firefox) to clear that app's cache. Which is quite correct.

Quote:
And clear the trash bin?
No, if your "trash bin" does not use that folder. On my machine the "trash bin" is actually stored in the /home/james/.local/share/Trash/ folder, which is a different folder again. Therefore in my case deleting the /home/$USER/.cache folder would have no effect on the "trash bin" and would not delete it's contents.

Quote:
How is that different than deleting the account?
Because your "home" folder is only one part of your overall "user profile", your "user account" itself allows you to login and a "user account" could use a different folder to the /home/$USER folder. Also, your "user account" is defined in the /etc/passwd and /etc/shadow files, not in the /home/$USER folder. That's simply a folder dedicated to your "user account", where it can call "home".
 
1 members found this post helpful.
Old 08-17-2018, 01:02 AM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by derezion View Post
Here's the report:
Code:
/home/USERNAME/.cache/mozilla/firefox/icgb9k87.default/cache2/entries/1987E989971C6F72EE5D081641773F7D68471C38: Html.Exploit.CVE_2017_11901-6393372-0 FOUND
The problem is I looked in that folder and found nothing.
to explain:
something was in your browser's cache.
it disappeared by itself - that could have several harmless reasons. probably because your browser is set up to remove cached files after closing.

what was it then?
thankfully clamav has identified it for you.
searching yields one result.
if you, too, visited yahoo finance, that would explain it, but there is no reason that that particular baddie can't be found elsewhere.

did it do any harm to your computer? (i have no answer to that)

what to do?
browsing with an unconfigured browser is like sex with a stranger, without a condom.
you need to be careful which sites you visit, and especially where you allow javascript to be executed (99% of all mal/spy/etc.ware can't get onto your machine if javascript is disabled). i use the noscript addon.
 
Old 08-17-2018, 08:46 AM   #13
derezion
Member
 
Registered: Aug 2018
Distribution: Anything Debian-based
Posts: 81

Original Poster
Rep: Reputation: Disabled
I use noscript on one user account. But the account I posted about it didn't have noscript.

By securing my browser would you also say I change things that I currently have in Firefox like
  1. Remembering my history
  2. Remembering Usernames
I don't have Firefox remember passwords because I just write them down.
 
Old 08-17-2018, 12:38 PM   #14
derezion
Member
 
Registered: Aug 2018
Distribution: Anything Debian-based
Posts: 81

Original Poster
Rep: Reputation: Disabled
What should my next steps be?

Sorry, I don't mean to waste anyone's time.
Here's the steps I've taken since starting this thread.
1. I've cleared cookies, site data and cached web content using Firefox preferences
2. I've scanned again with ClamAV twice and got a clean report.
3. I Googled "rm -fr ~/.cache/ ; exit" which habitual recommended but I didn't understand what it does (Although it's supposed to start with "rm -rf". I got this link
https://askubuntu.com/questions/3683...-from-terminal
I didn't really understand the other codes either.

I didn't visit the result ondoho was talking about because I don't know if clamxav.com is safe.

My friend said to make sure the problem wasn't a rootkit.
He advised reading the manpages for rkhunter if I didn't understand the program.
Wondering what my next steps should be.
 
Old 08-17-2018, 12:39 PM   #15
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by derezion View Post
Just delete everything in
/home/$USER/.cache/
And clear the trash bin?

How is that different than deleting the account?
One is overkill. One is a "fix" via proper maintenance.

Stitches vs surgery.

Gonna delete any user account that is infected, Forever??
http://linux.oneandoneis2.org/LNW.htm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer is INFECTED according to ClamAV davidlu766 Linux - Security 3 04-11-2010 07:12 PM
Why don't search ClamAV infected files dawidson Linux - Newbie 2 11-24-2005 12:03 PM
clamav: infected files provkitir Linux - Security 2 12-20-2004 01:19 AM
1st ClamAV scan.. 48 files infected... What??!! sh1ft Linux - Security 2 06-29-2004 10:06 PM
clamav infected file emetib Linux - Software 1 04-11-2004 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration