Linux.com

Feature: Security

Securing Linux by breaking it with Damn Vulnerable Linux

By Mayank Sharma on February 28, 2007 (8:00:00 AM)

Share    Print    Comments   

Damn Vulnerable Linux (DVL) is everything a good Linux distribution isn't. Its developers have spent hours stuffing it with broken, ill-configured, outdated, and exploitable software that makes it vulnerable to attacks. DVL isn't built to run on your desktop -- it's a learning tool for security students.

DVL is a live CD available as a 150MB ISO. It's based on the popular mini-Linux distribution Damn Small Linux (DSL), not only for its minimal size, but also for the fact that DSL uses a 2.4 kernel, which makes it easier to offer vulnerable elements that might not work under the 2.6 kernel. It contains older, easily breakable versions of Apache, MySQL, PHP, and FTP and SSH daemons, as well as several tools available to help you compile, debug, and break applications running on these services, including GCC, GDB, NASM, strace, ELF Shell, DDD, LDasm, LIDa, and more.

DVL was initiated by Thorsten Schneider of the International Institute for Training, Assessment, and Certification (IITAC) and Secure Software Engineering (S²e) in cooperation with Kryshaam from the French Reverse Engineering Team.

"The main idea behind DVL," says Schneider, "was to build up a training system that I could use for my university lectures." His goal was to design a Linux system that was as vulnerable as possible, to teach topics such as reverse code engineering, buffer overflows, shellcode development, Web exploitation, and SQL injection.

Schneider says that DVL's sole purpose is to give users as many security tools and training options as possible. "DVL is made by people with significant black hat backgrounds, incorporating the community of ReverseEngineering.net and Crackmes.de. It contains a huge amount of lessons, including lesson descriptions and solutions if the level has been solved by a community member at Crackmes.de.

"We wanted to build up a plug-and-play system. Simply run DVL in a virtual machine, with all the required tools installed, [and you have] functional training lessons included, ready to go."

Josh Sweeney, a security expert working for SPI Dynamics and editor of SecurityDistro.com, agrees. "The DVL staff," he says, "recognized that most of the tutorials on the Internet were either hard to follow, didn't work, or were just too advanced for many users. They packaged tools, workbooks, text tutorials, and exploits into one easy-to-use live distribution, then took the extra step to create their own video tutorials."

Sweeney believes that DVL as a learning distribution will most likely be paired with security distributions like OWASP LabRat and Hakin9. "The main difference in LabRat is that it is being purpose-built for Web application security and OWASP tools. Hakin9 is also a great learning CD, but only if you get the CD with the magazine. The downloadable ISO does not contain all of the tutorials that are in the magazine version. To the best of my knowledge there are no other live security distributions made specifically for learning. BackTrack, nUbuntu, Knoppix-STD, and others are built for security professionals to use on their own. They can be used for learning but were not purpose-built for that task."

DVL screenshot
Click to enlarge
DVL bundles a set of break-in exercises with their solutions and exploits. The exercises demonstrate various PHP exploits and can be accessed from a Web browser. For the exploits, you have to use the command line and various CLI and GUI tools.

I'd anyone interested in the distro to download the videos available on DVL's Web site. The first steps video is an introduction to DVL, where you get a tour of the distribution along with a brief description and overview of the various tools. Once you are comfortable with DVL, download the first lesson video, which details a buffer overflow.

The videos aren't been included in the distribution to keep its size down. But it would be nice to have two versions of DVL -- a vanilla version with only the tools, and an extended version with the videos as well.

So what exactly does one learn?

Security is a wide topic and security issues can arise from almost everywhere. Schneider says the tutorials are split into three parts. "The first is about binary exploitation, buffer overflows, format string vulnerabilities, or shellcodes. The second is about Web exploitation such as SQL injection, path retrieval, and Web site insecurity. The third part is about reverse code engineering and copy protection analysis and teaches how vulnerable copy protections are in reality."

"The one thing that sets DVL apart the most," Sweeney says, "is the focus on buffer overflows and disassembly." Disassembly, he says, is often talked about in conjunction with buffer overflows and reverse engineering. "Disassembling is when someone breaks down a program into the assembly language for further analysis. By doing this, users can analyze code at a very low level and look for security issues. There have been many excellent papers on the subject over the years, but these generally don't come with learning tools in a self-contained, easy-to-use environment."

More releases and videos coming up

Since DVL isn't a normal distribution, I asked Schneider how the developers plan to release updates. He promises upcoming releases with more tools, such as the Metasploit framework, while later releases will focus more on the training material and lessons. "The next release will be a tool release mainly, with a few more training lessons. After this we focus on the tutorial section. However, one of the next releases will contain a perverted Linux kernel which is highly vulnerable. Also we are planning to extend DVL into a hacking wargame."

Many projects that have promised great things have failed to deliver. There are currently just two videos available on DVL's Web site, though they are very detailed. "The training video section will grow soon," Schneider promises. "However, producing such videos takes a lot of time and so the progress appears slow to some people. But we'll try to speed up. Text tutorials depend on the community, since the more the community helps, the faster the tutorial section grows. However, people can add their own challenges via the Crackmes.de Web site. This will spawn DVL tutorials faster."

DVL is an interesting distribution with an interesting goal. Even though I am not a security student, I was able to follow and try out a buffer overflow exploit. DVL has enough lessons to keep one occupied for quite some time. If Schneider sticks to his plans and puts out tutorials and lessons at a steady pace, DVL will continue to be a great learning tool.

Share    Print    Comments   

Comments

on Securing Linux by breaking it with Damn Vulnerable Linux

Note: Comments are owned by the poster. We are not responsible for their content.

Re:

Posted by: Anonymous Coward on March 03, 2007 12:07 PM
So, they used a vanilla Linux kernel then?<nobr> <wbr></nobr>;^)

#

At reboot...

Posted by: Anonymous Coward on March 05, 2007 12:52 PM
Is it true that after breaking things for several hours their system spontaneously came up with a "Windows XP" boot screen?

*pah-ching-boom*

Sorry couldn't resist...

#

really interesting

Posted by: Anonymous Coward on February 28, 2007 05:52 PM
just started watching the first-lesson on DVL website and found very interesting for a mid-level coder like me

#

Re:really interesting

Posted by: Anonymous Coward on February 28, 2007 09:48 PM
What about an entry-level coder? Will I still be able to follow?<nobr> <wbr></nobr>:x

#

Vulnerable

Posted by: Anonymous Coward on February 28, 2007 06:05 PM
If they want an vulnerable and easy exploitable operating system, why don't they just run Windows?<nobr> <wbr></nobr>:D

#

Training needs more of a challenge

Posted by: Anonymous Coward on February 28, 2007 08:04 PM

The exercises that really help a student shouldn't be too easy. There has to be some element of challenge.

#

Its first stage.

Posted by: Anonymous Coward on February 28, 2007 08:59 PM
Secound stage put them head to head with a normal distro. Little bit out of day but normal distro.

#

Re:Vulnerable

Posted by: Anonymous Coward on March 01, 2007 12:41 AM
I know you were being funny, but it's all a matter of licensing. The fundamental obstacle to using Windows as a learning tool for forensic analysis or other security-related lessons is that nobody can ship an image of a Windows machine. That means that you can't build a vulnerable or cracked version of Windows and then distribute it for analysis by students.
Ultimately, this means that you can't legitimately go off and learn Windows security in practice, but rather only in theory, unless you buy yet another Windows license for a machine that you're going to crack over and over for analysis.

#

Re:Vulnerable

Posted by: Anonymous Coward on March 02, 2007 02:09 AM
Well It Seems They Have BLOCK ACCESS from people
outside the US..

Ive been trying to access the website from the beginning, but i haven't been able to!!

SUCK!!

#

Re:Vulnerable

Posted by: Anonymous Coward on March 02, 2007 02:10 AM
Well It Seems They Have BLOCK ACCESS from people
outside the US..

Ive been trying to access the website from the beginning, but i haven't been able to!!

SUCK!!!

#

Re:Vulnerable

Posted by: Anonymous Coward on March 02, 2007 02:10 AM
Well It Seems They Have BLOCK ACCESS from people
outside the US..

Ive been trying to access the website from the beginning, but i haven't been able to!!

SUCK!!!!

#

Re:Vulnerable

Posted by: Anonymous Coward on March 02, 2007 02:12 AM
Well It Seems They Have BLOCK ACCESS from people
outside the US..

Ive been trying to access the website from the beginning, but i haven't been able to!!

SUCK!!!!!! !!!

#

Re:Vulnerable

Posted by: Anonymous Coward on March 02, 2007 05:41 PM
ehm... well, we had some server problems due the fact that hordes of interested people overwhelmed the server<nobr> <wbr></nobr>:) The first mirrors should be up this evening. Sorry for the problems, at least the website is up again<nobr> <wbr></nobr>:)

Zero / Founder DVL

#

Securing Linux by breaking it with Damn Vulnerable Linux

Posted by: Anonymous [ip: 156.77.108.71] on January 02, 2008 05:58 PM
One other good resource for pentest LiveCD's are on de-ice.net. He currently has two "scenario" ISO's that you attack with BackTrack using ISSAF pentest methodologies.

#

Re: Securing Linux by breaking it with Damn Vulnerable Linux

Posted by: Anonymous [ip: 70.209.110.19] on January 28, 2008 05:43 AM
Thomas, at De-ICE.net, just added a more difficult scenario to his pentest LiveCDs. It's pretty difficult.

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya