LAMP lights way on open source security

The most popular open-source software is also the most free of bugs, according to the first results of a US government-sponsored effort to help make such software as secure as possible.

The so-called LAMP stack of open-source software has a lower bug density -- the number of bugs per thousand lines of code -- than a baseline of 32 open-source projects analysed, Coverity, a maker of code analysis tools, announced Monday.

The US Department of Homeland Security awarded US$1.24 million in funding to Stanford University, Coverity and Symantec to hunt for security bugs in open-source software and to improve Coverity's commercial tool for source code analysis. The funding, announced in January, is for a three-year "Open Source Hardening Project."

LAMP includes the Linux operating system, Apache Web server, MySQL database and a scripting language--PHP, Perl or Python. It has been pushing its way into mainstream corporate computing, a rival to Java and Microsoft's .Net.

In the analysis, more than 17.5 million lines of code from 32 open-source projects were scanned. On average, 0.434 bugs per 1,000 lines of code were found, Coverity said. The LAMP stack, however, "showed significantly better software quality," with an average of 0.29 defects per 1,000 lines of code, the technology company said.

There is one caveat: PHP, the popular programming language, is the only component in the LAMP stack that has a higher bug density than the baseline, Coverity said.

Of the other open-source projects scanned, Coverity found that the Amanda back-up tool had the highest number of bugs per 1,000 lines of code, with a bug density of 1.237. The lowest was the XMMS audio player, with 0.051 defects per 1,000 lines of code.

In absolute numbers, most defects were found in X, the low-level graphical interface software for Linux and Unix. Coverity found 1,681 defects in X, it said. With only six defects, XMMS also scored best in absolute numbers.

Coverity's analysis looked for 40 of the most critical security vulnerabilities and coding mistakes in software code. The company did not give details on the scope of the flaws it found. The analysis can't be used to measure the security of open source code next to that of proprietary code because that code is not available for scanning.

As part of the government-funded effort, Stanford and Coverity have built a system that does daily scans of the code contributed to popular open-source projects. The resulting database of bugs is accessible to developers, allowing them to get the details they need to fix the flaws, Coverity said.

Talkback

Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

Terms of Service - As a ZDNet registrant, and by using this service, you indicate that you agree to our Terms and Conditions and have read and understand our Privacy Policy.

Tech Blueprint

ZDNet Australia Live

I think the CBA point here is fairly much moot now. There was some, limited, argument for it before the NBN began, but as many people hav...

41 minutes ago by seven_tech on NBN cost-benefit analyses are so 2011

NBN's Tassie upgrade to cost $1.3 million: NBN Co will spend $1.3 million on replacing outdated network technolo... http://t.co/LCq84LB0

Govt urges telcos to team up against NBN Co: The Department of Broadband, Communications and the Digital Economy... http://t.co/E6axgFc2

Refund for some Facebook investors http://t.co/stdpGowE

Finding PCI-compliant cloud providers #in http://t.co/atLHOabj via @zdnetaustralia

Refund for some Facebook investors http://t.co/tUUxRbJd

RT @zdnetaustralia: Is Windows Phone really the third challenger to Android and iOS? http://t.co/2V9xgN6d

Cloud inefficiency - Bad habits are hard to break | ZDNet http://t.co/j4pda3KC

30 servers to 7: BUPA redoes virtualisation http://t.co/EPL5pPpl via @zdnetaustralia

Refund for some Facebook investors http://t.co/TdKeV7y0

Research key to good apps: Westpac CIO http://t.co/tqHNyHs5

by http://t.co/vmlLt4bh: Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook... http://t.co/TZuND7bC

Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook's troubled initial publ... http://t.co/tmiz9zwu

Refund for some Facebook investors: Morgan Stanley, the lead investment bank in Facebook's troubled initial publ... http://t.co/g1t9N5Pb

IT Priorities: servers and storage http://t.co/E1U97jCk

RT @rladvisory: Video - Rob Livingstone @EVOLVECloud 'Getting cloud adoption right' - @zdnetaustralia http://t.co/G6GwvJCp http://t.co/nJrIY3vA @rladvisory

What's happening now with storage and servers? We delved into the area in our IT Priorities webinar series. http://t.co/XmLAsln8 ^ST

RT @rladvisory: ZDNet Video of my recent Executive Keynote presentation delivered at the EVOLVE.Cloud conference entitled...: http://t.co/2h9hEno2

IT Priorities: servers and storage: In November 2011, ZDNet Australia published the results of its IT Priorities... http://t.co/uOxpN90t

IT Priorities: servers and storage http://t.co/iQ6oT7qe

Accelerator targets 'clean-tech' start-ups http://t.co/8kGTxJGp via @zdnetaustralia

Westpac board goes paperless with iPads http://t.co/kdm26Ewr via @zdnetaustralia

Cloud TVRs stop in wake of TV Now ruling http://t.co/2hLRUvt6 via @zdnetaustralia

RT @WauloK: Two cloud-based TV recording services have been suspended after Optus TV Now. http://t.co/VomMRrRs // @techwebcast Beem is dead.

ZDNet Patch Monday ep137 - Removing the anonymity from Anonymous: http://t.co/E6Tn8vJr

ZDNet Patch Monday ep138 - Anonymous 'crippled': where to for hacktivism?: http://t.co/lbKew6Bo

ZDNet Patch Monday ep139 - War talk dominates AusCERT 2012: http://t.co/rUm22Zjm

ZDNet Patch Monday ep135 - iiNet wards off AFACT, but what next?: http://t.co/0xVdYm6i

ZDNet Patch Monday ep136 - Blackhole crimeware as a service here to stay: http://t.co/evnCUlsX

GoogleTV will revolutionize television once viewers understand it http://t.co/c4lEyb3a

Reading this article is like stepping back in time. If I was Paul Berryman I would hang my head in shame. How embarrassing!!! I can’t b...

3 hours ago by MikeSkoey on 30 servers to 7: BUPA redoes virtualisation

Phone cloning, maybe, but bill duplication? Tech-heads give verdict
http://t.co/aw5SNigN
#ozpolitics

The registration sticker provided a visual reminder to the driver to renew regardless of what happened to the renewal letter. The experie...

3 hours ago by dccharron on NSW ditches rego stickers for tech

"xfire: Why is telecommunications being treated different to roads, water and electricity?" Good question, my guess is AUS is far behind...

3 hours ago by ngoctranminh on Five pros and cons of the NBN

“@zdnetaustralia: Is Windows Phone really the third challenger to Android and iOS? http://t.co/Tr7ASra0 ”. It's different but fast and good

Can HP bounce back? http://t.co/TSlWjmrA

Thanks for the response Luke, Given that the quotes are accurate, then the person in charge of the Vic Health App needs to find another j...

3 hours ago by butterflyeffecs on Android fragmentation steers Vic Health

Social business in Australia http://t.co/aBuXFy40 . Australian businesses still laging behind with social business. Time to catch up!

Can Windows Phone bring a new challenge? #WindowsPhone http://t.co/m82nU7hK

Nice analogy. Another factor is whether you can find 50 people with powerful enough weapons. Minassian's argument is essentially that the...

3 hours ago by Mukimu on National Botnet Network coming: Earthwave

RT @digitaltasmania: @ZDNetAustralia #NBN's Tassie upgrade to cost $1.3m http://t.co/1nTbLUJv -Countdown begins for 1st Oppn. MP to misconstrue per unit cost

It's nice to see Tas finally get some decent internet connectivity, for too long Tas has been stooged on decent internet connectivity but...

4 hours ago by Jingles on NBN's Tassie upgrade to cost $1.3 million

Who is Luke Hartsuyker? He must be the Apprentice FUDster. As PaulPC has already said regional consumers want, deserve and are entitled...

4 hours ago by dickster on Regional review highlights NBN, mobile

Its good to see the NBN keeping up with the latest equipement & letting the people benefit from it. After all thats why it was a trial, ...

4 hours ago by fibretech on NBN's Tassie upgrade to cost $1.3 million

Shadow Minister for Regional Communications Luke Hartsuyker has got it wrong. Regional consumers want improved mobile services AND the NB...

5 hours ago by PaulPC on Regional review highlights NBN, mobile

Just remember that Google haven't broken any laws here, they're just doing what all their other multinational competitiors do; minimise t...

6 hours ago by Pachanga on Much ado about Google's tax

ルイヴィトン バッグ : http://www.lovebagjp.com/ Louis Vuitton bags, Louis Vuitton pretension nose about,Louis Vuitton daydre...

6 hours ago by bundLourb on Reservoir blogs: Fan fakes Tarantino diary

シャネル バッグ : http://www.bagssalejp.org/ Chanel trap,chanel shekels,gucci bags,direct purse,poor recent Louis Vuitton keep...

8 hours ago by bybrinkLync on Reservoir blogs: Fan fakes Tarantino diary

I guess but in both cases, dead body!

18 hours ago by Doubt on National Botnet Network coming: Earthwave

I think it's for the very reasons you mention in your first paragraph that there is no CBA. With the ideological differences and vested ...

18 hours ago by RealismBias on NBN cost-benefit analyses are so 2011

Good points; but how do you establish consensus about the terms of reference of a cost-benefit analysis? What is to be included? How far ...

19 hours ago by Gwyntaglaw on NBN cost-benefit analyses are so 2011

I live in a small country town & have done since 2002. When I got to this town it had no mobile phone & no broadband. The only reason w...

19 hours ago by fibretech on Regional review highlights NBN, mobile

Hi there, just became alert to your blog through Google, and found that it is really informative. I am going to watch out for brussels. I...

19 hours ago by Uttedsips on Fujitsu Stylistic ST5011

Like most things in life, the devil is in the details. If a cost benefit analysis included a societal element, I'm certain nobody on eit...

19 hours ago by RealismBias on NBN cost-benefit analyses are so 2011

The coalition has done nothing else but keep changing their view over the last 2 years. -first it was "there is nothing wrong with the ...

20 hours ago by djz on NBN cost-benefit analyses are so 2011

This story has been voted 12000 times in the last 24 hours!

1 day ago, Is Bill Gates a great leader?

This story has been voted 10 times in the last 24 hours!

2 days ago, CeBIT 2012 opens: photos

This story has been voted 15 times in the last 24 hours!

2 days ago, Lenovo ThinkPad 3G tablet (32GB)

Facebook Activity

Keep up with ZDNet Australia

ZDNet Events Calendar

ZDNet Events Calendar