LinuxQuestions.org
Review your favorite Linux distribution.
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 09-08-2017, 12:45 AM   #1
aviceda
Member
 
Registered: Jul 2003
Location: Brisbane, Queensland, Australia
Posts: 50

Rep: Reputation: 15
My first 'Linux' Trojan


Yesterday booted into Debian and opened Firefox and was greeted by an 'audio' message, purported to be from Microsoft informing me that I had security issues on my PC and would be shut-down if I closed the page (...which I didn't see )

Ran ClamAv and it found several exploits (PUA.Win.Trojan.Xored-1,PUA.Html.Exploit.CVE_2014_0322-1, in my /home/******/.cache/mozilla/firefox directory, would appreciate if anyone have any quarantine advice and tips to beefing-up my security to avoid these again?

Had a similar result when I scanned a Fedora 26 installation too.

Cheers,

Tom
 
Old 09-08-2017, 06:40 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
would appreciate if anyone have any quarantine advice and tips to beefing-up my security to avoid these again?
Had a similar result when I scanned a Fedora 26 installation too.
1) When you scan with Clamav try switch off PUA, because often there are false alarms in it.
2) Delete all firefox related cache folders and contents;
3) Delete cookies that are not important to you. (in my case I always delete all)
Don't run any browser as root and be careful in what you do.

I have not experienced any trojan yet in my linux use.

m.m.
 
1 members found this post helpful.
Old 09-08-2017, 08:36 AM   #3
Ormu
Member
 
Registered: Jun 2011
Posts: 92

Rep: Reputation: 15
Quote:
Originally Posted by aviceda View Post
Yesterday booted into Debian and opened Firefox and was greeted by an 'audio' message, purported to be from Microsoft informing me that I had security issues on my PC and would be shut-down if I closed the page (...which I didn't see )

Ran ClamAv and it found several exploits (PUA.Win.Trojan.Xored-1,PUA.Html.Exploit.CVE_2014_0322-1, in my /home/******/.cache/mozilla/firefox directory, would appreciate if anyone have any quarantine advice and tips to beefing-up my security to avoid these again?

Had a similar result when I scanned a Fedora 26 installation too.

Cheers,

Tom
It sounds like a web site presented you with browser exploit kit or advertisements trying to install or to trick you to install scareware/fake security product to your computer. They were most likely targeted at Windows users, and even if the exploitation was successful, the particular malware wouldn't probably even work on Linux. See the "Win" part in the first detection. The vulnerability mentioned in the second detection was found in 2014 (see the CVE note) so if your browser is even halfway up to date, exploiting the vulnerability should not be possible.

Purge cache and they should be gone.

To harden browser security, I would recommend using an ad blocker such as Adblock Plus or uBlock Origin. NoScript can provide strong protection against browser exploits but it's rather tedious to use and requires some understanding about web site technology. uMatrix is recommended by some people as an alternative to NoScript but I have no experience on it.

If you use Adobe Flash, put it into "ask to activate" mode so that it doesn't run on every site. Do the same to Java plugin and other native plugins if there are any. If you don't need these, uninstall them.

Keep your system up to date and do not run web browser with root privileges. Do not click shady links and aggressive advertisements.

Last edited by Ormu; 09-08-2017 at 08:44 AM.
 
2 members found this post helpful.
Old 09-08-2017, 09:43 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quarantine Method #1
Code:
rm ~/.cache/mozilla/firefox/
repeat scan.
Observe and report.

Last edited by Habitual; 09-08-2017 at 09:44 AM.
 
1 members found this post helpful.
Old 09-08-2017, 09:44 AM   #5
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
Also, you can run Firefox with firejail. It will keep your browser out of the rest of your filesystem. Another option to secure it would be to use apparmor. Or, use both, I guess. All that clamav really does on linux is to detect malware for windows. It is not bad thing to have if you are interacting with windows users, but it does nothing to protect your linux machine.
 
Old 09-09-2017, 04:02 AM   #6
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
correct your www usage habits.
if you found this on several machines, it most probably means that you're habitually clicking the wrong links.
also adblockers and noscript help a lot.
 
1 members found this post helpful.
Old 09-11-2017, 04:55 PM   #7
Zyblin
Member
 
Registered: Oct 2013
Distribution: Linux Mint 18.3 (64)
Posts: 185

Rep: Reputation: 20
When I use to use MS windows I ran Ccleaner often. Since I soly use Linux these days I found a very good alternative with Bleachbit. It also runs on macs and windows os's.

https://www.bleachbit.org/

Debian should have that in their repos already. Linuxmint does and I believe Ubuntu. This may help you keep things clean. I agree with the rest about false positives and a website(s) trying to trick you into installing software.


Edit: BTW. If you use that to clean out your browser make sure you have all your passwords and such saved. Or you can just uncheck those boxes. If checked they will delete all your user names and passwords in that browser.

Last edited by Zyblin; 09-11-2017 at 04:59 PM.
 
Old 09-11-2017, 07:08 PM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,456
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by aviceda View Post
PUA.Win.Trojan.Xored-1,PUA.Html.Exploit.CVE_2014_0322-1
https://www.cve.mitre.org/cgi-bin/cv...=CVE-2014-0322:

"Use-after-free vulnerability in Microsoft Internet Explorer 9 and 10 allows remote attackers to execute arbitrary code via vectors involving crafted JavaScript code, CMarkup, and the onpropertychange attribute of a script element, as exploited in the wild in January and February 2014."

How are you running IE under Linux?
 
Old 09-11-2017, 07:25 PM   #9
un1x
Member
 
Registered: Oct 2015
Posts: 645

Rep: Reputation: Disabled
Is this a JOKE ? ? ?
 
Old 09-12-2017, 12:58 AM   #10
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
^ i prefer trolls that actually bother to formulate proper replies.


Quote:
Originally Posted by Zyblin View Post
When I use to use MS windows I ran Ccleaner often. Since I soly use Linux these days I found a very good alternative with Bleachbit.
...
Debian should have that in their repos already.
i am very sceptical with this sort of software.
not sure how much sense it makes on windows, but it definitely makes less sense on linux!
bound to do more harm than good.
 
Old 09-12-2017, 04:37 AM   #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 un1x View Post
Is this a JOKE ? ? ?
I'm sure the OP isn't.

Quote:
Originally Posted by ondoho View Post
^ i prefer trolls that actually bother to formulate proper replies. ...
I agree, but must admit, reading the last part of this thread, it was/is worth a giggle!
 
Old 09-12-2017, 10:58 AM   #12
Zyblin
Member
 
Registered: Oct 2013
Distribution: Linux Mint 18.3 (64)
Posts: 185

Rep: Reputation: 20
Quote:
Originally Posted by ondoho View Post
^ i prefer trolls that actually bother to formulate proper replies.




i am very sceptical with this sort of software.
not sure how much sense it makes on windows, but it definitely makes less sense on linux!
bound to do more harm than good.

I am confused. How does a program like that not make sense? I have been using them for years on both Windows and now Linux without issue.

It is a tool that helps keep things like your browser clean, thumbnail cache, etc. A lot easier then going in and doing it one by one.
 
Old 09-12-2017, 11:21 AM   #13
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 Zyblin View Post
I am confused. How does a program like that not make sense? I have been using them for years on both Windows and now Linux without issue.

It is a tool that helps keep things like your browser clean, thumbnail cache, etc. A lot easier then going in and doing it one by one.
In all fairness to ondoho, I remember when I had Windows (on my old PC) and CCleaner did delete valid Windows Registry entries. To some extent it was ok, but you do have to be REALLY careful when using such programs.

So I do personally agree with ondoho, as I stopped trusting them, for that reason.
 
1 members found this post helpful.
Old 09-12-2017, 11:50 AM   #14
un1x
Member
 
Registered: Oct 2015
Posts: 645

Rep: Reputation: Disabled
FUD ! simply fud ! ! ( by OP )

 
Old 09-12-2017, 03:50 PM   #15
Zyblin
Member
 
Registered: Oct 2013
Distribution: Linux Mint 18.3 (64)
Posts: 185

Rep: Reputation: 20
Quote:
Originally Posted by jsbjsb001 View Post
In all fairness to ondoho, I remember when I had Windows (on my old PC) and CCleaner did delete valid Windows Registry entries. To some extent it was ok, but you do have to be REALLY careful when using such programs.

So I do personally agree with ondoho, as I stopped trusting them, for that reason.
Ok. That I will agree with. They can be dangerous if common sense is not used. Understanding the program before one uses it should also be common sense. For many years I never had any issues or bad experiences with Ccleaner or Bleachbit so I can't really say anything negative about either.

Last edited by Zyblin; 09-12-2017 at 04:01 PM.
 
  


Reply

Tags
exploit, trojan, virus



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
[SOLVED] Turla trojan for LInux beachboy2 Linux - Security 5 07-31-2015 11:52 PM
Trojan scan/removal for linux Whitestone Linux - Security 6 08-15-2005 08:54 AM

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

All times are GMT -5. The time now is 04:46 PM.

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