Definitive guide to writing a Linux virus

Austrian student publishes White Paper

James Middleton

Following on from this week's discovery of the Jac Linux virus, an open source hacker from the University of Linz, Austria, has released a definitive guide to writing Linux viruses.

The Jac virus was discovered on Tuesday and quickly dismissed by the Linux community for its inability to spread effectively - a common occurrence in Linux viruses.

Advertisement

But yesterday, Alexander Bartolich released "the Linux virus writing howto".

"This document describes how to write parasitic file viruses infecting ELF executables on Linux/i386. Though it contains a lot of source code, no actual virus is included," reads the abstract for the site.

Bartolich said that "an astonishing number of people think that viruses require secret black magic."

This may not be entirely the case, but "writing a program that inserts code into another program file is one thing. Writing that program so that it can be inserted itself is a very different art."

In his White Paper, Bartolich shows code and techniques for constructing ELF (Executable and Linking Format) infecting code, which he claims is not a "Construction Kit for Dummies".

"Since regular users can't overwrite system files (we are talking about serious operating systems here) that is not even half the journey," he said.

"To make any impact you need root permissions. Either by tricking the super user to run your virus, or combining it with a root-exploit. And since all popular distributions come with checksum mechanisms, a single command can detect any modification. Unless you implement kernel-level stealth functionality."

Bartolich then goes on to describe and demonstrate how to build said virus. "You may have heard that Linux is a difficult target for malware because there are so many different distributions," he said.

"Well, basically they all use the same compiler, producing the same idiosyncrasies. This allows us to cheat in big style," he said.

Although Bartolich identifies techniques and tools for Linux virus writing, the task itself is considerable. Bartolich acknowledges that he wrote the document to combat FUD (fear, uncertainty, doubt) and not to give script kiddies a leg up.

The full White Paper can be found here.

  • Have your say
  • Send to a friend
  • Print
  • Digg
  • Reddit
  • Share

Tags:

Do you agree?

Further reading

Beware Bill and his unsafe sax

Users warned over Clinton virus

Jac virus targets Linux

First to hit the platform in three months

Related whitepapers

Related jobs

Most watched

Salesforce.com on the new Chatter service

Company explains the need for collaboration service

t-mobile logo

V3.co.uk weekly debrief, 20 Nov 09

This week we round up the major vendor conference events, plus T-Mobile sells customer data

Analysis and Reports

Remote access - Three steps to getting connected

3.4 million UK professionals now work from home – is your company equipped?

Cost benefits of a global collaboration network

This white paper is a must read for organisations looking for evidence of the bottom-line benefits of high-definition video and voice communications

Poll

Impact of Information Overload poll

Impact of Information Overload poll

What is the biggest problem your firm faces as a result of the data explosion?

View poll results

Advertisement

White paper library

Keep up to date with the latest products, services and technologies from the world's leading IT companies; IThound.com brings you over 6,000 white papers, case studies and analyst reports.

Advertisement

Newsletter signup

Sign up for our range of FREE newsletters:

Existing User

Newsletter user login:

Enter email address to edit your newsletter preferences

Job of the week

Search thousands of IT jobs :

Search thousands of IT jobs:

Advanced search

Hiring now on ComputingCareers:

Related IT jobs

Search thousands of IT jobs :

Search thousands of IT jobs:

Advanced search

Advertisement

Spotlight

t-mobile logo

V3.co.uk weekly debrief, 20 Nov 09

This week we round up the major vendor conference events,...

Apple iPhone apps

Top 10 articles, 20 Nov 2009

An App Store upset for Apple, and a scandal at...

Biz Stone

Twitter founder details commercial account plans

Biz Stone says paid-for accounts will give users access to...

Cloud computing

Enisa launches comprehensive cloud security report

EU security agency provides checklist for firms looking to vet...

Primary Navigation