Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The issue:
An unknown private (NAT) client is infected with malware and it's trying to access a Bot server at random times/dates.

How we know about this:
We receive bot traffic notices/alerts from REN-ISAC. Unfortunately, we don't receive those until the next day after it has happened. What they provide to us is:

  • The source address (of the firewall)
  • The destination addresses (it varies, but they're going to network subnet allocated to a German ISP)
  • The source port (which varies--dynamic ports).

What would be the best approach to finding this internal host (historically) with a Cisco ASA as firewall?

I'm guessing blocking anything to the destination address(es), and logging that type of traffic/access might allow me to find the source host, but I'm not sure which tool/command would be the most useful.

I've seen Netflow thrown into a few responses when it comes to logging, but I'm confused with it's association of Logging, NAL, and nBAR, and how they relate to Netflow.

share|improve this question
Just a note, on the ASA's there isn't any netflow until 8.2, and then it's sFlow not netFlow - which there arn't many collectors that can read sFlow yet. – Zypher May 28 '10 at 23:01
How would finding the internal host address help? It's likely to be an RFC1918 address and unless the host is on one of your networks (where you can track down the host) knowing the internal address is of no use as far as I can see. – joeqwerty May 29 '10 at 0:04 – joeqwerty May 29 '10 at 1:52
@joeqwerty as far as I can see, I don't see how it WOULDN'T be useful. We'd like to clean this box :) Maybe I'm not asking the question properly. @both, thanks... at least I'm able to do more research for sflow now. – l0c0b0x Jun 1 '10 at 16:57
@10c0b0x: So you find that the internal host address is at some company... somewhere... in the world... that's trying to infiltrate your network. How is that helpful? Or am I misunderstanding what you're asking\saying? – joeqwerty Jun 1 '10 at 17:33

In regards to questions from @jowqwerty, I'm assuming that you are responsible for the Cisco ASA and the internal network behind it, correct?

If so, you are on the right track. I would recommend using the logging and/or capture features of the ASA to narrow down the traffic.

The more you can narrow down the destination the better. You mention having the destination subnet, do you have the destination protocol/port(s) as well? I would build an ACL which matches the destination and logs hits.

For example:

ip access-list extended find_infected
 permit <tcp/udp> any <destination subnet> <destination mask> eq <destination port> log

Then apply such an ACL to the inside interface of the ASA. Then cross reference future abuse reports with your log entries.

The capture feature builds on this troubleshooting technique by allowing you to capture the traffic in PCAP format. Then you can further analyze it with tools such as WireShark.

ASA/PIX/FWSM: Packet Capturing using CLI and ASDM Configuration Example

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.