Re: How to shut off the ports

From: karl [x y] (jamescagney90210@excite.com)
Date: 08/21/02


From: "karl [x y]" <jamescagney90210@excite.com>
Date: Wed, 21 Aug 2002 08:45:52 -0400


"Kirby Cheng" <xicheng@iusb.edu> wrote in message
news:472f01c24866$40df5f40$a5e62ecf@tkmsftngxa07...
> Hi, everyone:
>
> Due to the security concern, our campus OIT asked us to
> shut off the ports before they will reconnect our server
> to the network.
>
> My first question is where to find the descriptions of the
> ports, and more urgently, how to shut them down. I am new
> in the profession, please provided a little bit more
> detailed information. We don't have the server resource
> kit.
>
> Second question: our server is currently a stand lone
> server, with IIS 5.0: serveces planned to run: web, ftp,
> smtp. The ports asked to be shut are :
> 7 echo, 9 discard, 13 daytime, 17 qotd. 19 chargen, 42
> nameserver, 53 named, 563 snews, 6666 irc-srv( what is
> irc?), 6667 irc, 6668 irc, 7007 afs-bos.

I'm assuming these ports are open and listening on your server. I would be
concerned with how those ports got there. Ports 563, 6666, 6667, 6668 and
7007 are not ports that come with Windows or with IIS. [IRC is a chat
program BTW.] Unless you installed extra software that uses these ports,
this could be a sign that your server has been hacked. If this is the case,
simply closing the ports is not enough. You would also need to find and
close whatever vulnerabilities exist on your machine that permitted it to be
hacked, or else a hacker will "open more ports" on your machine again in the
future.

Running a firewall is only part of a complete security plan. Patches and
configuration and third party software such as antivirus like Norton that is
set to download updates every single day are some of the other things you
really need to be sure you've done.

Download and run HFNETCHK from www.microsoft.com/security to see what
critical patches if any you are missing, apply the security checklists for
Windows and IIS from the same location, and download and run a virus scan to
see if you do indeed have a virus. This message makes me suspect the
"virus" could be Code Red and/or Nimda. If you have IIS web services
running on your computer, check your IIS web logs, you might be able to see
exactly how this was done.

Note however that once you've had an intrusion, the only way to be 100%
certain that you've removed any and all back doors that a hacker might have
installed on your system is to format and reinstall everything including
security settings and patches before putting it on the internet again.
Patching the holes that let the intruder in does not necessarily block the
other holes the intruder may have added afterwards.

Unless you want to just format the machine and reinstall everything,
probably the first step is to determine whether or not you've been hacked,
and if so, how it was done. The following tools should help you do this:
fport from
www.foundstone.com, pstools from www.sysinternals.com , trojan scanners such
as www.pestpatrol.com or www.sunbelt-software.com, a file change checker
such as the free Languard File Integrity Checker from www.gfi.com and the
books Hacking Exposed 3rd edition and/or Incident Response.



Relevant Pages

  • Re: Finally, a secure computer
    ... paranoia in the security aspects of IIS administration. ... security at the IBM website is compromised, ... I ran a port check on 10,000 plus ports (I ... > trouble downloading updates [I'm not sure about AVG pro, ...
    (microsoft.public.inetserver.iis.security)
  • Re: IIS / Web Services Security threats
    ... You will be surprised to know, due to a recent virus attack on the perimeter network, the common ports have been closed too. ... I also develop Java applications which runs on weblogic server. ... Since, the entire world knows about port 80 and 443, I thought opening a specific port with IP Sec configuration may make the network little secure. ... My security team thinks allowing communication between the two IIS ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: LISTENING, ESTABLISHED, CLOSE_WAIT TCP Ports & UDP Ports?
    ... properties of a process and it will show you what tcp/ip ports and services ... Beyond that I suggest you read the Windows 2003 Server Security Guide to see ...
    (microsoft.public.windows.server.security)
  • Re: Source Code to Filter out WindowsMessenger POP-UPS
    ... > time to get the details I did get about the ports and none ... It does not act as a relay server - at least ... To that I will just add that REAL security - ... > port 80 inbound ...
    (microsoft.public.inetserver.iis.security)
  • Re: Dropping syn+fin replies, but not really?
    ... Now we're required to run external security scans on some of the hosts, and they constantly come back with a "high" or "medium" severity problem: The host replies to TCP packets with SYN+FIN set. ... Since when did "pound ssl proxy" equal "aladdin web server"? ... You can let tcpdump only show specific ports and source/destination ...
    (FreeBSD-Security)