Helping people with computers... one answer at a time.

It's rare for a router to be infected with malware. More commonly, viruses and spyware will infect the computer and then make changes to the router configuration.

Hi, I'm concerned with router security. Can a router be infected with a virus or does it contain any memory for a virus?

In this excerpt from Answercast #81, I look at the possibilities of malware infecting a router.

Router infected with malware

Well, in practice the answer is no. Routers are, I can't say "never," but extremely rarely infected with malware.

What more often happens with routers is that your computer will be infected with some kind of malware that then knows how to reach out to your router. If you haven't changed the default password, the default administration password for your router, the malware on your computer can reach out to your router and reconfigure it.

It doesn't install any malware, it just reconfigures it:

  • It may set security settings to "off";

  • It may redirect where your DNS is coming from;

  • It can cause a lot of havoc.

The malware is not on the router, the malware is on one of your computers - and that malware has reconfigured the router so that the router contains bad information.

But it's not the router itself having been itself infected.

Router software is not common

It is true that routers are, in fact, small computers. Many of them are actually running Linux on the inside (some form of Linux kernel) and they certainly have RAM for all of the things that a router does.

But it's extremely rare for a router to be infected because all of these different routers are so very different from each other. It's very difficult for a general purpose piece of malware to be written that would, somehow, manage to insert itself into the router.

It's much easier for malware authors to target more common platforms, like Windows, and simpler interfaces, like the administration interfaces on most popular routers.

So the thing to be worried about, with your router, is to make sure you have already changed the administration password - so that these types of malware (which absolutely do exist) cannot infect your PC, and cannot, in turn, go out and make changes to your router that you don't want it to make.

(Transcript lightly edited for readability.)

End of Answercast 81 Back to - Audio Segment

Article C6173 - December 24, 2012 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Comments on this entry are closed.

If you have a question, start by using the search box up at the top of the page - there's a very good chance that your question has already been answered on Ask Leo!.

If you don't find your answer, head out to to ask your question.