 |
 |
 |
 |
| Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits. |

17th January 2010, 11:24 PM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 3

|
|
|
steps to securing Fedora 12
Hi
I am relatively new to linux having only used ubuntu 9.10. Trouble is for all the talk of how secure ubuntu is, truth is it kept getting remote hacked (I have a stalker who is messing with me) over and over so now I am going to try fedora in hopes of finally having a secure system.
My question is, what steps do I need to take to try to secure Fedora 12?
Thanks
|

17th January 2010, 11:31 PM
|
 |
Registered User
|
|
Join Date: Aug 2009
Posts: 752

|
|
|
:) shawn1, thank you for your posts. :)
 shawn1, thank you for your posts.
Quote:
Originally Posted by shawn1
...truth is it kept getting remote hacked (I have a stalker who is messing with me) over and over so now I am going to try fedora in hopes of finally having a secure system.
My question is, what steps do I need to take to try to secure Fedora 12?...
|
Here's a couple starting threads to review...
=====================================
* Help securing my Fedora 11 server -
http://forums.fedoraforum.org/showthread.php?t=234292
* How secure is my fedora 12 -
http://forums.fedoraforum.org/showpo...42&postcount=4
=====================================
Also, trying searching the forum for your subject and review accordingly.
Hope this helps.
__________________
2 dual cores, 11 GB RAM, F14 Laughlin - 2.6.35.14-106.fc14.x86_64 & 2.6.35.14-106.fc14.i686.PAE
2 dual cores, 11 GB RAM, F15 Lovelock - 2.6.43.8-2.fc15.x86_64 & 2.6.43.8-2.fc15.i686
3 dual cores, 19 GB RAM, F16 Verne - 3.6.2-1.fc16.x86_64 & 3.6.2-1.fc16.i686
2 dual cores, 11 GB RAM, F17 Beefy Miracle - 3.6.2-4.fc17.x86_64 / .i686
16 x86_64 computing cores,80 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Last edited by diamond_ramsey; 17th January 2010 at 11:39 PM.
|

17th January 2010, 11:43 PM
|
|
Clueless in a Cuckooland
|
|
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922

|
|
http://docs.fedoraproject.org/ and start reading both SELinux and Security Guide, you can also install Fedora Security Guide with Yum so that it's always available to you.
|

18th January 2010, 01:10 AM
|
 |
Retired Again - Administrator
|
|
Join Date: Nov 2007
Location: Reality
Posts: 3,034

|
|
Quote:
Originally Posted by shawn1
... it kept getting remote hacked ...
|
What services were you running that allowed that to happen? Did you have a firewall running? For a default desktop Linux install, it's pretty hard to get hacked directly. If you're running servers, then you should look at specifically hardening those services as well as general measures.
Also, what indicators did you have that you'd been hacked? What did the hacker actually do to your machine?
Quote:
|
(I have a stalker who is messing with me)
|
Keep an image of the hard-drive after a hack event (for evidence - you can use something like SystemRescueCD) and make a complaint to your local police - your stalker may be local also.
__________________
.
Marching to the beat of his own conundrum.
|

18th January 2010, 01:24 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 3

|
|
Quote:
Originally Posted by Evil_Bert
What services were you running that allowed that to happen? Did you have a firewall running? For a default desktop Linux install, it's pretty hard to get hacked directly. If you're running servers, then you should look at specifically hardening those services as well as general measures.
Also, what indicators did you have that you'd been hacked? What did the hacker actually do to your machine?
Keep an image of the hard-drive after a hack event (for evidence - you can use something like SystemRescueCD) and make a complaint to your local police - your stalker may be local also.
|
I wasn't running any services that were not on the default install of ubuntu 9.10. I even removed telnet but they are still getting in. Can't figure out how because after it happenes there are always snippets of logfiles missing.
Indicators that the system is hacked have been
a ssh connection showing in firestarter to a local unix server in the city that this person live in
tabs opening by themselves, commercials playing on speakers not from any web pages I am on
synaptic package manager breaks and won't open
internet speed slows to a halt etc etc
I need to figure out how this is happening so I can stop it. I am even behind a linksys router on a wired connection but still same thing over and over again. Maybe grsecurity will help?
|

18th January 2010, 01:44 AM
|
 |
Registered User
|
|
Join Date: May 2007
Location: U.S.
Posts: 4,852

|
|
You say yet...
Quote:
Originally Posted by shawn1
a ssh connection showing in firestarter to a local unix server in the city that this person live in
|
That's how. Disabling telnet but leaving SSH does almost nothing. Most script kiddies and cracking bots don't bother with telnet cracking because server admins don't even have the telnet service running anyway, so crackers and various miscreants focus on SSH anyway.
Disable ssh if you don't need it, blacklist (with iptables or denyhosts) & report the IP, or switch to key-based auth if you need ssh.
EDIT:
Well, wait. If you're behind a router, are you forwarding the port for ssh to the machine?
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Last edited by forkbomb; 18th January 2010 at 01:51 AM.
|

18th January 2010, 01:55 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 3

|
|
Quote:
Originally Posted by tjvanwyk
You say
yet...That's how. Disabling telnet but leaving SSH does almost nothing. Most script kiddies and cracking bots don't bother with telnet cracking because server admins don't even have the telnet service running anyway, so crackers and various miscreants focus on SSH anyway.
Disable ssh if you don't need it, blacklist (with iptables or denyhosts) & report the IP, or switch to key-based auth if you need ssh.
|
As far as I know ssh isn't installed with the default ubuntu 9.10 so how did it get on there? Am I missing something here? I'm relatively new to this.
|

18th January 2010, 02:20 AM
|
 |
Registered User
|
|
Join Date: May 2007
Location: U.S.
Posts: 4,852

|
|
Quote:
Originally Posted by shawn1
As far as I know ssh isn't installed with the default ubuntu 9.10 so how did it get on there? Am I missing something here? I'm relatively new to this.
|
It is installed by default on Fedora and running by default in every version of Fedora I've ever used (6-12).
It shouldn't be a security liability unless you have extremely weak passwords that can be cracked by brute-forcing or dictionary cracks.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
|

18th January 2010, 03:29 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 4,976

|
|
One other thing, which might be mentioned in one of the links provided by Diamond_Ramsey, is to have ssh listen on a different port. (Choose something that isn't used by anything in /etc/services---usually, any port above 1023 should be alright.)
It's not a complete fix in itself, but it will stop automated brute force attacks against ssh.
It's part of what's known as security by obscurity, which in itself, is known to not be all that effective, but it should remove one large group of attackers--they'll move on (in theory, anyway), to easier targets.
As tjvanwyk says, be sure to have decent passwords as well. A few other possibilities with ssh are only to allow some users to login, so they have to get the username as well as a password, and to disable root login. (You can look at man(5) sshd_config for an idea of available options.)
I should add, that in sshd_config, many items have a comment sign(#) in front of them. This doesn't necessarily mean they're not used, it means, at least in some cases, that they are default options, and are being used. For example, you'll see,
Code:
#PermitRootLogin yes
Although it has a comment sign in front of it, in this case, it's a default option, and is what you have at present. So, when you change it from yes to no, uncomment it as well.
|

23rd January 2010, 05:05 AM
|
 |
Registered User
|
|
Join Date: Oct 2007
Location: Dubai UAE
Posts: 95

|
|
|
Best Bet: switch from password auth to pubkey auth..
..Then, you do not need to worry about some uninvited persons entering your system. they can try and try and NEVER gain entry.
Here is a HOW-TO to assist setting up public key auth. It was written for openBSD but the Linux method is the same:
http://open.bsdcow.org/histerical/tu...sh_pubkey_auth
Original credit to tjVanWyck for mentioning this
__________________
Linux Counter # 52009
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 15:29 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|