Linux Security Guide

Forum Linux/Free BSD : Linux/Free BSD General Discussion - Linux Security Guide

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

I was wondering if you guys might be willing to help me create a sticky thread that we could use to talk about Linux security from beginner level up to more advanced topics. I was thinking that this way we could help any newbies to Linux (or BSD for that matter) get a feel for security, and I'd have a place to refer back to (because I forget things). I'd appreciate any contributions you guys are willing to make.

--Zorak

Sponsored Links
Register or log in to remove.

Brilliant idea. I have about zero knowledge on this topic, and a thread like this is up high on my wanted list. Hopefully this all goes well :)

Reply to Pyroflea

Step 0. unplug your internet connection.

 

Step 1. lock your computer up in a secure underground vault.

 

Step 2. procure sharks with friggin lasers to guard your underground lair.

 

Step 3. profit?!?!

 

:D :lol:


Message edited by linux_0 on 10-06-2009 at 07:27:58 AM
------------------------------ $GNU_Linux=$Linus_Torvalds=AWESOME();

Need Linux help? PM me
Reply to linux_0

Ok, seriously now....

 

Step 0. use strong passwords.

 

Step 1. do not use any wireless technologies. No wifi, no bluetooth, no wireless keyboards or mice.

 

Step 2. physical security, keep everything locked, use an alarm system and cameras.

 

Step 3. always use encryption. Use whole disk encryption and only encrypted protocols.

 

Step 4. disable all system services/daemons except ssh.

 

Step 5. do not use the well known ports in /etc/services.

 

Step 6. read up on iptables at http://netfilter.org/ and apply the strictest firewall rules you can live with.

 

Step 7. Disable root logins.

 

Step 8. Install tripwire, aide, etc.

 

Step 9. Make sure any services running on your computer are only accessible from your LAN.

 

Step 10. always check the checksums and sigs and run virus scans before you install anything.

 

Step 11. run rootkit checking software daily.

 

Step 12. run yum / apt-get daily.

 

Step 13. to be continued.

 


Semper Fi :)


Message edited by linux_0 on 10-06-2009 at 07:45:07 AM
------------------------------ $GNU_Linux=$Linus_Torvalds=AWESOME();

Need Linux help? PM me
Reply to linux_0

Sweet, thanks for the response! Perhaps we could elaborate on these one by one? For example, how might one find a list of all the outward facing daemons on their machine? I think after finding all the outward facing daemons, it might be a good idea to either shut them down as Linux_0 so wisely stated, or if they are needed, perhaps change the ports they use so that scanners will have a harder time finding them?

Also, I think we should also talk about doing a bit of "forensic analysis" (i.e. how to figure out if your machine got compromised and what to do about it). When I have a bit more free time (like this weekend) I will read up on it and post my findings here.

--Zorak

Reply to Zorak

My guide to Linux Security:

Step 1) only install software from the official software distribution application (i.e. in Ubuntu 9.10 that's the Software Store)

Step 2) Enable updates and make sure they are installed at regular intervals

Step 3) Don't connect your PC directly to the internet, but make use of a NAT router in between. Note that this works independently from any firewall you may or may not have.

Step 4) there is no step 4


Basically, if you leave the Windows world where you're used to download executable code from the internet and execute it without thought or restrictions, you're so much better off from a security standpoint. Since virtually all windows PCs are infected with spyware a merge to Linux would be very beneficial to security. Even with a clean windows installation contains a light form of spyware - Microsoft does business with Alexia which integrates their sniffing app with Windows).

------------------------------ ...man will occasionally stumble over the truth, but usually manages to pick himself up, walk over or around it, and carry on.
Reply to sub mesa
Tom's Hardware > Forum > Linux/Free BSD > Linux/Free BSD General Discussion > Linux Security Guide
Go to:

There are 1227 identified and unidentified users. To see the list of identified users, Click here.

Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them