nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Linux Security: Find Out If Someone Is Trying To Hack My System

This is a discussion on Linux Security: Find Out If Someone Is Trying To Hack My System within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I have doubt, 1: how Linux system security know the remote system doing some bad behavior (hack like activities), 2: ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 24-06-2009, 11:19 AM
kasimani's Avatar
Senior Member
User
 
Join Date: Jul 2006
Location: India, Delhi
OS: CentOS, RedHat, Fedora, Ubuntu
Posts: 151
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 4
kasimani is on a distinguished road
Send a message via Yahoo to kasimani
Default Linux Security: Find Out If Someone Is Trying To Hack My System

I have doubt,
1: how Linux system security know the remote system doing some bad behavior (hack like activities),

2: In which file they maintain record, for bad systems for further considerations ?
Reply With Quote
  #2 (permalink)  
Old 24-06-2009, 04:31 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

  • You need to monitor log files for activities. For e.g. /var/log/secure has info about failed ssh login. Configure logwatch to monitor all log files ( Howto: Linux monitor logfiles ) to monitor log files.
  • Turn on SELinux.
  • Install and configure firewall. Read firewall logs.
  • Protect server console (see Tips To Protect Linux Servers Physical Console Access)
  • Install IDS ( See Debian / Ubuntu Linux Install Advanced Intrusion Detection Environment (AIDE) Software ). It will send email if attacker tried to install new binaries.
  • Install rootkits checking software
  • (See Linux Detecting / Checking Rootkits with Chkrootkit and rkhunter Software)
  • Encrypt transmitted data whenever possible – Do not use rservices or insecure protocol such as telnet / ftp etc. Use scp, ssh and other secure alternative.
  • Minimize software to minimize vulnerability - Only install required ports and applications. The simplest way to avoid vulnerabilities in software is to avoid installing that software.
  • Run different network services on separate systems - If possible, a server should be dedicated to serving exactly one network service. This limits the number of other services that can be compromised in the event that an attacker is able to successfully exploit a software flaw in one network service.
  • Use and configure security tools to improve system robustness - Use firewall for host based firewalling and kernel protection, MAC etc for protection against vulnerable services. Configure log auditing for detecting problems.
  • Updating Software - You need to update both base system + kernel via yum.
  • Avoid weak and default passwords - Do not leave network ports open. Always follow close all, open required port policy using firewall. Do not expose internal hosts such as sql servers, backup servers to the Internet. Use nating / proxy to hide internal server IPs.
  • Do not run insecure and badly configured programs - For e.g. do not run apache, dns or mail server as a root user. Do not grant full system access to php or perl script. Restrict them to directories.
  • Delete all unwanted account - For e.g. laid-off employee may seek revenge
  • You need both host and firewall security.
  • Never ever assumed that you are not target - you can be targeted by both humans and automated worms and virus. All you can do is set tight permissions and make sure you are always prepared for attacks.
  • Always make a backup. Keep offsite backups on tape or dvd. RAID is not backup solution. Second hard disk on the same system is not a backup solution. Mirroring (to other server or disk) is not a backup. Backups are physically removed from the machine and stored where they can't be altered until they're needed for a restore. Always, check backup media and run dummy restore procedure. Use tools such as dump(, restore(, tar(1) etc. You can also use rsync, rsnapshot and other 3rd party apps.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
windows server 2003 as a host system for LINUX guest system VPS h@foorsa.biz Web servers 3 15-11-2008 10:13 AM
AIX /etc/security/user like file for Linux ftengcheng Getting started tutorials 4 25-03-2008 01:28 AM
hack click007 Getting started tutorials 1 11-09-2007 09:07 AM
Which Linux network services pose a security threat? chimu Linux software 2 20-07-2006 06:59 PM
find out info. reg. files for each user in the system ganes Solaris/OpenSolaris 6 20-09-2005 06:49 PM


All times are GMT +5.5. The time now is 04:45 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38