LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-17-2009, 10:21 AM   #1
3dmatrix
Member
 
Registered: Feb 2007
Posts: 61

Rep: Reputation: 15
Poison websites


I wish to know how i can protect my comp from the poison websites.
Heard of some java script or other malwares and scripts that get activated just by visiting the websites.
How can i protect my comp / browser from them ? and
How can I detect if my browser is already compromised or not.
Plz advise.
 
Old 12-17-2009, 12:00 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you use firefox, you can use add-ons like NoScript and Flashblock.
 
Old 12-17-2009, 03:59 PM   #3
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
as a perfect solution: don't use java and flash at all. that will solve more problems. not all, of course.
if you run firefox, you can also change your user-agent to avoid some attacks at firefox, made by checking user-agent.
 
Old 12-17-2009, 06:58 PM   #4
3dmatrix
Member
 
Registered: Feb 2007
Posts: 61

Original Poster
Rep: Reputation: 15
So you mean no more Java, no more flash, no more java script (or any other script)
But these days there are many websites which are 100% flash based. There are many financial web sites that work totally on Java. So how do we be sure we are safe ?
How can i change my user agent and what should i change it to ?
Moreover, is there any way to know that my browser (firefox) is in perfect health
 
Old 12-17-2009, 08:17 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by 3dmatrix View Post
So you mean no more Java, no more flash, no more java script (or any other script)
But these days there are many websites which are 100% flash based. There are many financial web sites that work totally on Java. So how do we be sure we are safe ?
NoScript will let you specify which sites and/or addresses are allowed to execute Java, JavaScript, Flash, etc. in your browser. If you wish to have protection even from trusted sites, one option would be to use a virtual machine for your browsing needs.

Quote:
How can i change my user agent and what should i change it to ?
Search here and you'll find add-ons that do this for you. You can change it to whatever you like, but keep in mind that this technique would be security through obscurity so you would be foolish to rely on it for any serious protection.

Quote:
Moreover, is there any way to know that my browser (firefox) is in perfect health
One way would be to use a HIDS (which can actually tell you about your entire system's health). That said, one cheap yet effective way to reduce the risk posed by malicious code on the Web is to use disposable accounts for certain things. Personally, I use the guest account on my Ubuntu box quite a bit. It self-destructs after every use.

Last edited by win32sux; 12-17-2009 at 08:19 PM.
 
Old 12-17-2009, 08:50 PM   #6
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
Quote:
How can i change my user agent and what should i change it to ?
type in about:config in your addressbar.

search for useragent

change firefox to something else
 
Old 12-18-2009, 06:25 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by 3dmatrix
I wish to know how i can protect my comp from the poison websites.
An especially paranoid approach could involve cruising the web from a live CD.
 
Old 12-18-2009, 10:44 PM   #8
3dmatrix
Member
 
Registered: Feb 2007
Posts: 61

Original Poster
Rep: Reputation: 15
So it seems from the replies till now that Linux browsers are equally vulnerable as Windoz, because :
(1) its the same browser on a different OS,
(2) the security is dependent on users decision to visit a site or not,
(3) security is dependent on how much i avoid using the features (scrips flash etc) and not on protection available in Linux.

I would be happy if i am wrong but plz correct me.

I am a very ordinary Linux user, not a geek, for me making decision b4 visit EVERY website for getting information is very difficult. Already there are many websites of important companies and financial establishments who offer a IE specific website, on top of that if i close down all other things like scripts and flash then i cut down the size of 'available' internet for me. Its something like living in China where a large section of internet is not available to ppl.

Moreover there seems to be no easy way to detect that my browser is infected.
 
Old 12-18-2009, 10:57 PM   #9
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
An "infected" browser is much less likely on Linux than it is on windows. Make sure your browser and plugins are updated, i.e. Adobe Flash, Sun java etc.

if you use Firefox;
Use NoScript and only allow sites that you can more or less trust to run scripts.
Use AdBlock+ to block other crud.

If you want you can use a hosts file to block a lot of the known "bad" sites. I have used the one from http://www.mvps.org/winhelp2002/hosts.htm on my wife's windows system and on my linux system for a couple of years.

Most of all never ever run a web browser as root.

My system is a bit over 5 yrs old, I have used Firefox with the same profile all this time, not once in all this time has my system or my browser been compromised.

There is such a thing as being too paranoid.
 
Old 12-19-2009, 08:22 AM   #10
3dmatrix
Member
 
Registered: Feb 2007
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by craigevil View Post
Most of all never ever run a web browser as root.
But in many distros like PUPPY (and there are several others) the browser is always run as root.
So in that case using Puppy is a very risky thing to do. Is it so ?
 
Old 12-19-2009, 10:14 AM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by 3dmatrix View Post
So it seems from the replies till now that Linux browsers are equally vulnerable as Windoz, because :
(1) its the same browser on a different OS,
(2) the security is dependent on users decision to visit a site or not,
(3) security is dependent on how much i avoid using the features (scrips flash etc) and not on protection available in Linux.
Same-brand browsers can contain significant differences between their platform-specific versions. That said, I would agree that the vulnerability could be about the same, generally speaking. You'd need to conduct a formal assessment to get an accurate picture, though (otherwise assuming the worst would be a healthy practice). On the other hand, the overall risk represented by GNU/Linux browsers should indeed be lower (due in part to the much lower threat level). And yes, it's completely normal for security to involve a compromise of usability/features (this is true on any operating system).

Quote:
Originally Posted by 3dmatrix View Post
But in many distros like PUPPY (and there are several others) the browser is always run as root.
So in that case using Puppy is a very risky thing to do. Is it so ?
Yes, the more privileges your browser runs with, the more damage can be caused by someone who exploits it.

Last edited by win32sux; 12-19-2009 at 12:07 PM.
 
Old 12-19-2009, 12:35 PM   #12
3dmatrix
Member
 
Registered: Feb 2007
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by win32sux View Post
Yes, the more privileges your browser runs with, the more damage can be caused by someone who exploits it.
Well you scare me I like Puppy and often use it for small work esp while traveling. So you say Puppy and Slax or similar distros are relatively unsafe

Can you suggest any other distro similar to Puppy which does not runs as root ?
 
Old 12-19-2009, 12:45 PM   #13
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by 3dmatrix View Post
Well you scare me I like Puppy and often use it for small work esp while traveling. So you say Puppy and Slax or similar distros are relatively unsafe
I can see how one could draw that conclusion from my statement, but I was actually referring exclusively to the browser issue. I can't speak of either of those distros, since I don't use them. Besides, surely they let you set things up the way you want, right? Or are you obligated to run your browser as root? Can't you create a non-root account and use that instead?

Quote:
Can you suggest any other distro similar to Puppy which does not runs as root ?
No, but maybe someone else can.

Last edited by win32sux; 12-19-2009 at 12:47 PM.
 
  


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
why is the default wallpaper a poison symbol? newbiesforever MEPIS 1 01-19-2009 01:59 PM
new DNS poison exploit... are fixes' coming sir-lancealot Linux - Server 2 07-09-2008 04:20 PM
need your assist regarding mac/arp poison Net_Spy Linux - Security 3 05-12-2007 12:39 PM
ettercap arp poison gabsik Linux - Security 0 01-22-2007 01:31 PM
Get ready for the poison. shazam75 Linux - Software 2 11-06-2005 08:01 AM

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

All times are GMT -5. The time now is 11: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