devoops DevOops 2020 Msc (06.07.2020 — 10.07.2020)

Sandboxing in Linux with zero lines of code

img

Linux seccomp is a simple, yet powerful tool to sandbox running processes and significantly decrease potential damage in case the application code gets exploited. Ignat will discuss different ways of integrating seccomp into the application and pros and cons of potential approaches.

<p>Linux seccomp is a simple, yet powerful tool to sandbox running processes and significantly decrease potential damage in case the application code gets exploited. It provides fine-grained controls for the process to declare what it can and can’t do in advance and in most cases has zero performance overhead.</p> <p>The only disadvantage — to utilize this framework, application developers have to explicitly add sandboxing code to their projects and developers usually either delay this or omit completely as their main focus is mostly on the functionality of the code rather than security. Moreover, seccomp security model is based around system calls, but many developers, writing their code in high-level programming languages and frameworks, either have little knowledge of no experience with syscalls or just don’t have easy to use seccomp abstractions or libraries for their frameworks.</p> <p>All this makes seccomp not that widely adopted, but what if there was a way to easily sandbox any application in any programming language without writing a single line of code? This presentation discusses potential approaches and their pros and cons.</p>