Discussion Locked

Explain these Firewall Alerts to me?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can somebody explain what the following firewall alerts mean and should I be concerned and what to do about them? I want to learn how to monitor firewalls thanks...

05/22/2002 10:08:22.256 - Probable TCP FIN scan - Source:209.216.24.67, 80, WAN - Destination:xx.xx.xx.xx, 14552, LAN - -

05/22/2002 07:25:30.736 - Probable TCP NULL scan Source:159.37.7.65, 443, WAN - Destination:xx.xx.xx.xx, 6904, WAN - -

05/16/2002 11:08:36.096 - ICMP packet dropped - Source:216.151.111.83, 8,WAN - Destination:xx.xx.xx.xx, 8, WAN - 'Ping' -

05/16/2002 12:02:56.480 - Sub Seven Attack Dropped - Source:66.188.223.57, 2581, WAN - Destination:xx.xx.xx.xx, 27374, WAN - -
Thanks for sharing your knowledge and getting me smarter...

7 replies

by joseph moore

Let's start from the bottom up.
SubSeven:

"What is SubSeven (Sub-7) ?
Sub7 has become the most popular remote access trojan. At this time, it is the easiest-to-use and most powerful trojan. The reasons for this are:
It is actively maintained/updated. Most other Trojans were created once then development stopped except for a couple of bug fixes.
The program not only includes a scanner, but also can tell a slave machine to scan as well.
The creator has a contest for cracked sites usingSub7.
Supports "port redirection", so that any attack can be funneled through a victim's machines.
Contains extensive tricks to play with ICQ, AOL IM, MSN Messenger, and Yahoo messenger, including password sniffing, posting messages, and other features.
Extensive UI tricks, such as flipping the screen, talking through the victim's speaker, and spying on the victim's screen.
In short, it not only is an excellent hacking tool, the little "magic" tricks are designed to scare the out of victims.

Sub7 is written by a hacker who calls himself "Mobman". His site can be reached at http://subseven.slak.org/.

Sub7 might use the following ports:

1243 - The default connection port for older versions.
2772 - Screen captureport
2773 - Key logger port
6711 - ???
6776 - I'm not sure what this port is for, but it has been claimed that this can serve as a "backdoor" in some versions. (Yes, a backdoor program with a backdoor to avoid password prompts).
7215 - Port for the "matrix" chat program
27374 - Another default port appearing in v2.0
54283 - Spy port"

That definition came from:
http://www.robertgraham.com/pubs/firewall-seen.html
(please remove any spaces)

by joseph moore

Next from the bottom, that is a rejected PING. Someong PINGed you, and your firewall does not issue the ICMP reply that PING uses. You will always see these. YOu just need to watch out for PING of Death, where someone tries to PING your firewall so much with so many large packets that your firewall can't keep up and it goes offline.

by joseph moore

Next, the TCP Null scan:

"NULL scanning

Clearly through it's endowed named, the NULL scan unsets ALL flags available in
the TCP header. ACK, FIN, RST, SYN, URG, PSH all become unassigned. The reserved
bits (RES1, RES2) actually do not effect the result of any scan, whether or not
they are set clearly does not matter. On arrival of this packet to the server,
BSD networking code informs the kernel to drop the incoming call if the port is
open.

client -> NULL (no flags)server -> -

Alternatively, an RST packet will be returned if a closed port has been reached
(yes another inverse mapped scan).

client -> NULL (no flags)
server -> RST

Owing to the fact that the RFC does not exclaim exactly how a host should
respond to these types of packets, various network code for the major operating
systems will differ in the packet responses, ie Microsoft vs UNIX.

Advantages : avoids IDS, avoids TCP three-way handshake
Disadvantages: UNIX only, false positives"

by joseph moore

Last, the FIN scan:

"FIN scanning

The FIN scan method uses inverse mapping to discover closed ports.
Unfortunately, this techniques relies on bad BSD network code which most
operating systems have based their TCP/IP stacks on (all the better for
scanning). Ideally, once a FIN flagged packet is sent, a closed port will resend
with an RST bit. Open ports, alternatively will not send a packet back,
therefore what precisely is not answered with theFIN bit, is assumed to be open
through this process of inverse mapping.

Take a look at the negotiation for open/closed port recognition displayed below.

client -> FIN
server -> -

No reply signaled by the server is iconic of an open port. The server's
operating system silently dropped the incoming FIN packet to the service running
on that port. Opposing this is the RST reply by the server upon a closed port
reached. Since, no service is bound on that port, issuing a FIN invokes a reset
(RST) response from the server.

client -> FIN
server -> RST

by joseph moore

Part 2 of FIN scan:

"Arguably there are two ways to test for an open port. The first is receiving a
list of closed port responses and subtracting these port replies from a list of
the port probes originally sent. For example, sending 3 packets to ports 1, 2, 3
on a remote host.

If the response back is an RST for ports 1 and 3, we then compare the original
port list: 1, 2, 3 to the received ports: 1, 3 and deduce that 2 is the open
port via comparison.

The second test involves using a timeout for the packet response. If the timeout
limit is reached to receive the packet in question then we assume it to be open.
Obviously, this method is test for false positives and should be avoided where
possible. The responsesfor the packet could be obscured because of firewalls,
filters, routers, slow links, and heavy traffic, thus is not a solid test to be
used as a rule of thumb for stealth FIN scanning.

Advantages : avoids many IDS, avoids TCP three-way handshake
Disadvantages: slow false positives"

The FIN and NULL scan definitions came from:
http://www.synnergy.net/downloads/papers/portscan.txt

This discussion is closed to new replies.