Re: R: host-based ids evaluation

From: Detmar Liesen (counter.spy@gmx.de)
Date: 08/17/02


Date: Sat, 17 Aug 2002 10:00:13 +0200 (MEST)
From: Detmar Liesen <counter.spy@gmx.de>
To: "Gianpiero Porchia" <gianpiero.porchia@atsweb.it>

Sorry, but you're off topic.

We are discussing __host__-based ids.
NFR NID is a network IDS.

Well, and I was not asking how to monitor ports for various machines but
rather trying to ask how to detect when a program gets bound to a specific TCP
or UDP port on a particular machine. One of the answers was looking into the
netstat tables (a good one).

Normally, the command cmd does spawn a shell on the local console.
If this console gets bound to a TCP or UDP port, the HIDS should notice
that.

Check out nc -L -e cmd.exe [port] on a windoze box and connect from another
machine (e.g. a Linux box) by typing the command:
netcat [dip] [dport]

You can add some additional options like telnet negotiation, but the above
should suffice.

The result will be a remote shell (cmd prompt) with the local rights of the
user that is logged into the windoze box. You could play around a little bit
with windows script host in order to improve things, e.g. automatic startup
of the netcat server, runas or whatever nasty things you can imagine.

Cheers,
Detmar

Gianpiero wrote:
---------------------------

> I'm using an NFR-NID, and I've wrote a custom N-code script that can
> detect
> connections, over strange ports. I've said that in a my precedent post,
> we
> can do that easily writing a hosts list:
>
> 192.168.0.3, 80,25,22
> 192.168.0.4, 21,22
> ...
>
> and for every connection not in this list, my NIDS is raising an alert.
> Obiuvsly, the script can detect shells on that connection (example looking
> for a prompt, or for a shell command - dir or ls).
>
> Bye
>
> - gianpiero
>
> Ing. Gianpiero Porchia
> Security Engineer
> ATS - Advanced Telecom Systems
> Designing, Testing, Managing Network Quality
>
> Via Salgari, 17 - 41100 Modena - ITALY
> Tel +39 059 821332
> Fax +39 059 821492
> E-mail: gianpiero.porchia@atsweb.it
> Web site: http://www.atsweb.it
>

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net



Relevant Pages

  • Re: Primary Differences: FreeBSD/Linux
    ... > shell for scripts, ... Some do, it's in ports. ... ports tree or package tools from a console command line. ...
    (comp.unix.bsd.freebsd.misc)
  • RE: Netcat through Squid HTTP Proxy
    ... You can configure squid to only allow tunneling on certain ports like ... > There is a POC shell program that uses XML-RPC called Monkey ... The HTTP requests can be sent via ...
    (Pen-Test)
  • Re: tcsh fix
    ... mailing lists is counterproductive for all concerned. ... available from ports. ... If person X wants shell Y which is not in the base system, ... Being abusive towards the volunteers who maintain something largely ...
    (freebsd-hackers)
  • Re: recent make system
    ... > CK>Hello, I cannot buildworld lately, or build ports or do much of ... > CK>on a shell line, and make bombs. ...
    (freebsd-current)