Web server security wars: Is IIS or Apache more secure?

The facts of web servers don't necessarily match the myths when it comes to security

Continuing the theme from my previous column on the relative security of Internet Information Service (IIS) vs. Apache, I've come across more studies to support my initial conclusion.

If you remember, I was questioning the findings of a Google report that stated that IIS Web servers were twice as likely as Apache servers to be hosting malware. I wasn't refuting the data, but I was questioning the conclusion, given the fact that the report's authors calculated their statistics using server IP addresses only.

Since a single Web server can, and often does, host multiple Web sites, the published results would be skewed by any server hosting multiple Web sites. And since Apache Web servers are often used to host hundreds to thousands of active sites (and IIS is less likely to host sites on the same scale), I felt the study underreported the prevalence of malicious Apache Web sites.

I was skeptical of the data because of my own experiences. I run both IIS and Apache Web servers in my honeynet. The Apache Web server gets attacked significantly more than the IIS server does. Also, most reported hacks are against Apache Web servers. Finally, I can't think of a single massive attack against IIS servers since the Code Red worm of July 2001. Yet, Apache servers are being taken over by the thousands nearly every night. Something didn't add up.

Of course, being a full-time Microsoft employee, I wondered if my relationship was clouding my "objectivity." Because I make a living in the Windows world, was I not seeing the true malicious Web site activity accurately?

Over the last month, I've decided to track every reported Web site exploitation or malicious Web server host. With more than 3,000 data points, the number of reported malicious or compromised Apache Web sites is running 17 to 1. But it's not just my own data; take any random sampling from Zone-H's hacked Web site monitor statistics and you'll see a huge skew toward Apache servers versus IIS. Normal statistics show that somewhere around 80 to 90 percent of all malicious Web sites originate from an Apache server.

Zone-H's data has some other interesting points, such as how many single IP addresses (a single Web server, in most cases) are linked to the reported Web servers. It's not unusual to see a single exploit affecting a single IP address to result in hundreds to thousands of malicious Web sites. And yes, the vast majority of these data points are Apache.

Paul Laudanski of CastleCops fame collected supporting statistics from his own Phishing Incident Reporting and Termination Squad database for me. He said, "For PIRT reports above 500,000 (without checking their phish status): IIS = 1,302 reports, Apache = 20,104 reports. For all PIRT reports w/o confirming status: IIS = 16,744, Apache = 181,724. There are of course other Web servers I haven't checked for." That works out to be about 6 to 8 percent for IIS and 92 to 94 percent for Apache.

The overwhelming slant toward Apache cannot be explained by sheer numbers alone. Netcraft reports that in August 2007, Apache accounted for 48 percent of public-facing Web sites while IIS rose to 34 percent. So does that mean IIS is more secure than Apache?

The real answer, of course, is that both IIS and Apache, if installed as directed by the developers, are relatively secure. Most malicious Web site infections are the result of administrative mistakes and buggy applications -- not the underlying Web server software.

Open Web Application Security Project, one of the most respected organizations trying to increase Web server security, continues to report nearly the same top 10 Web site security flaws that have plagued Web sites since the beginning of the Web.

So I want to end my one-way debate of IIS vs. Apache by saying that both are fine, relatively secure platforms. Installing a secure Web server is easy; hosting secure applications on top of that secure base is the true challenge.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Roger A. Grimes

Show Comments

Cool Tech

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Breitling Superocean Heritage Chronographe 44

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles


PCW Evaluation Team

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?