2. About Me Student: MSc.CA at SICSR Windows & Information Security Enthusiast Database Freak
3. Agenda What is Apparmor? Why Use Apparmor? Apparmor Profiles Demo
4. Introduction AppArmoris the most effective and easy-to-use Linux application security system available on the market today. AppArmor is a security framework that proactively protects the operating system and applications from external or internal threats, even zero-day attacks, by enforcing good program behavior and preventing even unknown software flaws from being exploited. AppArmor security profiles completely define what system resources individual programs can access, and with what privileges. A number of default policies are included with AppArmor, and using a combination of advanced static analysis and learning-based tools, AppArmor policies for even very complex applications can be deployed successfully in a matter of hours.
6. Which Programs can be Protected..?? General recommendation : Every program that mediates Privileges. Network Services : Every program(server/client) with open ports. Cron jobs : Cron jobs that run with root privilages can be protected. Web Applications : CGI scripts, Java Applets etc.
7. AppArmor Profiles For each application that we want to protect we can create a separate profile. A profile contains: The full path of the program that is confined. With the #include directive we can pull in components of other profiles. Add POSIX capabilities with the capability statement. A path entry, specifying which part of filesystem the program can access.
10. Key of a Profile Each rule also specifies permissions: r – read w - write ux - unconstrained execute Ux - unconstrained execute -- scrub the environment px - discrete profile execute Px - discrete profile execute -- scrub the environment ix - inherit execute m - allow PROT_EXEC with mmap(2) calls l - link cx- local security profile