The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Security
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


Security Anything involving computer security goes here.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Microsoft Security Advisory (910550): Macromedia Security Bulletin: MPSB05-07 Flash P iBot Security Advisories (RSS) - Microsoft 0 12-24-2007 06:00 AM
Trustix Secure Linux Security Advisory - bind, clamav, curl ... - Help Net Security iBot UNIX and Linux RSS News 0 07-30-2007 03:40 AM
security question blanks UNIX for Dummies Questions & Answers 0 03-01-2005 09:33 AM
UNIX Security Question OBCCBIP UNIX for Dummies Questions & Answers 3 08-09-2004 03:02 PM
PostFix security question fundidor UNIX for Dummies Questions & Answers 3 06-06-2004 08:46 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-20-2006
tayyabq8's Avatar
Registered User
 

Join Date: Nov 2004
Location: Kuwait
Posts: 510
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
One Question about security

Hi there,

Due to limited resource available in my network, I had to allow users comming from internet to telnet my SCO UNIXWARE box directly, like:

telnet 23.1.1.2, anyone can access. I can't make it secure based on IP addresses or hostnames since IP address is dynamic. I have made all the passwords secure but still there is a risk of system hack thru telnet port. Any one can suggest me the way to improve my security with the resources available.

Regards,
Tayyab
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-20-2006
System Shock's Avatar
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 361
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
You can't. As long as you use telnet, passwds are flying back and forth in ASCII.
At the very least, install SSH and use keys.
Reply With Quote
  #3 (permalink)  
Old 05-20-2006
tayyabq8's Avatar
Registered User
 

Join Date: Nov 2004
Location: Kuwait
Posts: 510
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks for your reply. Can you give me some more detail how can I integrate my existing application with ssh.

Regards,
Tayyab
Reply With Quote
  #4 (permalink)  
Old 05-21-2006
Registered User
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 130
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I have been supporting a dialup BBS -- yes they still exist -- for five years now. Telnet itself is not an inherently insecure protocol nor are most daemon implementations any more buggy than, say, FTP. Stay current with patches and you'll be fine on that point. There are two issues that you must consider:

1 ) Transmission of account and password information in plain text
Since the server is Internet facing, it is quite possible that someone could intercept a valid user's account/password information and use it for nefarious activities. Depending on your server configuration, that account may also grant the intruder access to through other services such as FTP or mail.
2 ) Shell access to the server.
Unlike HTTP which can more readily be limited to specific areas of the system, shell access throws open the floodgates to your system and any weaknesses in configuration. Using restricted shells does little as there are numerous ways to bypass that limited security.
Here are some ideas:

As System Shock suggested, Secure Shell can completely address Issue #1 by encrypting not only the data stream once logged in but also the account information as the user logs in. It is freely available from http://www.openssh.org/. It is moderately complex to compile and configure but it will integerate seamlessly with your existing application; it is simply a replacement for Telnet not the application already running on the system.

The down-side is that it requires your users to use an SSH client to connect to your server. Telnet and Hyperterminal will no longer work. This can be a deal-breaker.

The second issue can be addressed with a "change root" jail in which the user is locked into a subdirectory structure of the entire file system. I have no direct experience myself but the http://www.jmcresearch.com/projects/jail/ reference has been suggested. There may be issues integrating with your application but I can not say what they would be.

So, what to do?

The most important thing is to harden your server to the point of paranoia. There are many documents on how this can be achieved but here are a few general suggestions.
  • Disable ALL unnecessary network services ideally leaving Telnet only.
  • Lock all system accounts except root, of course, restricting root access to the console only.
  • Enforce a strict password policy with an 8-character minimum length and frequent password changes.
  • Isolate your server from the rest of your network. Firewalls work fine but physical isolation is not susceptible to configuration errors. To simplify periodic access to the server, a second interface can be added with a cross-over connection to another server. On your Internet facing system, the interface can be left up while on the cross-over server, bring down the interface when not in use.
  • PATCHES!! Stay on top of all security patches for your environment. This is most important and most overlooked.
Reply With Quote
  #5 (permalink)  
Old 05-21-2006
tayyabq8's Avatar
Registered User
 

Join Date: Nov 2004
Location: Kuwait
Posts: 510
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Hi,

Thanks a lot for your detailed reply. It was more than I expected.

Quote:
Disable ALL unnecessary network services ideally leaving Telnet only.
Following is the only entry which I have in my hosts.allow file:
Code:
in.telnetd: ALL
This means no other service but telnet only.
Quote:
Lock all system accounts except root, of course, restricting root access to the console only.
Enforce a strict password policy with an 8-character minimum length and frequent password changes.
Yeah, I restricted root access to the console only. And same is the case with password policy.
Quote:
Isolate your server from the rest of your network. Firewalls work fine but physical isolation is not susceptible to configuration errors. To simplify periodic access to the server, a second interface can be added with a cross-over connection to another server. On your Internet facing system, the interface can be left up while on the cross-over server, bring down the interface when not in use.
PATCHES!! Stay on top of all security patches for your environment. This is most important and most overlooked.
I'll check if I can acheive it.

About ssh, I can't stop my telnet daemon, users they don't use telnet directly. They are using a client software wiz KCML Client. So, if they are diretly doing telnet to system, I can simply replace telnet with ssh. But for above case, I'll check with my software provider, if they could help me.

Thanks a lot for your help.

Best Regards,
Tayyab
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:17 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102