[Snort-users] Alerting on internal TCP connection attempts to non-existent services or hosts .

Jonathan Heard jonathan.heard at ...16604...
Tue Dec 3 08:58:25 EST 2013


Hi All,
   I'm trying to configure snort in a closed network (i.e. no internet) and I really want to be able to receive alerts if snort ever sees particular types of connection on the wire, regardless of whether it actually reaches a host. e.g. If someone so much as tries to establish a telnet or ftp connection from an internal host to any ip address, I want to know about it.

Snort is running in passive mode and is receiving all traffic for analysis via an ERSPAN session (i.e. snort is decoding almost 100% GRE inbound). It's version "2.9.5.3 GRE (Build 132)" and I compiled it myself from source using mainly the default config options.

At present a rule such as:

alert tcp any any -> any 3389 (sid:100000; msg:"RDP Detected";)

...only fires when I establish a successful TCP connection between two hosts on the Monitored VLAN - This includes just using 'telnet <ip_address> 3389'. However if I use the IP address of either a non-existent server in the subnet, or a server which is not listening on port 3389 then snort doesn't log any alerts for this rule :-(

If I run 'snort -v' I can see the captured TCP packet leaving the host which initiated the connection, so I know snort is seeing it - But I cannot find a way to make it react.

The packet is represented by snort -v as follows (with some info redacted):
<Date/Time> <SRC_IP>:58978 -> <DEST_IP>:3389
TCP TTL: 128 TOS:0x0 ID:XXXXX IpLen: 20 DgmLen:52 DF
******S* Seq: 0xXXXXXXXX Ack: 0x0 Win: 0x2000 TcpLen: 32
TCP Options (6) => MSS: 1260 NOP WS: 8 NOP NOP SackOK

I'm using the snort.conf which comes with the snort free subscription ruleset - I've tried stripping it back to a very basic config with most of the preprocessors and stock rules disabled but the behaviour remains the same.

Is it possible to achieve this and if so how please?

Many Thanks in advance
Jonathan

This message includes information that we consider will be prejudicial to our commercial interests if it is disclosed. If, pursuant to the provisions of the Freedom of Information Act 2000 (or any subordinate legislation or codes of practice), you receive any request to disclose and/or intend to disclose all or any of the Information you agree that you will consult with us before disclosing any such Information. In so consulting you will act reasonably and in good faith and will duly consider any representations we may make relating to the proposed disclosure or otherwise of such Information.

The information transmitted by this email is confidential and for the sole use of the intended recipient(s). If you are neither an intended recipient nor an employee or agent responsible for delivery to the intended recipient, you should be aware that any unauthorised review, use, disclosure or distribution is strictly prohibited.

If you have received this message in error please immediately contact the sender by return email and delete the original message and destroy all copies thereof.

Q Associates has taken every reasonable precaution to ensure that any attachment to this email has been checked for software viruses however the company cannot accept liability for any damages sustained as a result of a virus and would advise that you carry out your own virus checks before opening any attachment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20131203/103bbe3c/attachment.html>


More information about the Snort-users mailing list