Login or register
SecDocs RSS feed

Paper details

Title Security in depth for Linux software
Type Paper
Tags security
Abstract In many designs, the slightest error in the source code may become an exploitable vulnerability granting an attacker barely or not at all restricted access to a system. In this talk, using vsftpd and Google Chrome Linux as examples, we will firstly show how to design your code to be more robust to well-known classes of vulnerabilities and secondly, how to generically mitigate the consequences of such a vulnerability by dropping privileges and reducing attack surfaces. There are a surprising number of options in Linux to manage privileges, but using them tends to be nuanced. This talk will discuss the technical aspects of various options and explain how to mix them to raise the bar to a system compromise from a sophisticated attacker. While Mandatory Access Control systems are readily available, three of them being merged in the current Linux kernel tree, the ability to drop privileges in a "discretionary" way has to often rely on ancient mechanisms (which may not have been designed for security). We will show the state of the art on Linux and how well-known mechanisms, such as switching to an unprivileged uid, using chroot() and capabilities may or may not be suitable to achieve decent privilege dropping. We will discuss their drawbacks, availabilities to non-root processes and how an incorrect usage could be exploited by an attacker to circumvent security measures. We will then explain and demonstrate designs, some of them using novel ideas or obscure features that can allow developers to put error-prone parts of their code inside a sandbox, using vsftpd and the Google Chrome Linux sandbox as examples. We will discuss their limitations and how further kernel support could improve them.
Authors Julien Tinnes Chris Evans
Submitted June 22, 2010
Rating
Currently 0/5 stars (0 votes).
Correlation
Linked to ---
Event Black Hat EU 2010
Resource ---
Download
Source BlackHat-EU-2010-Tinnes-Evans-Security-In-Linux-wp.pdf
Size 49.2 KB
MD5 aaa57f6193c32ffc1369e0448f7b06d5
SHA1 cde1f0e800389c8cb6c8111e95c6c4b0b4613e59

Comments
No comments.
Add new Only logged in users can comment.


Click here to lend your support to: SecDocs and make a donation at www.pledgie.com !