security options for container implementations
play

Security options for container implementations Jay Coles doger.io - PowerPoint PPT Presentation

Security options for container implementations Jay Coles doger.io LCA2015 @container_doge Who am I http://doger.io @container_doge Jay Coles doger.io LCA2015 @container_doge Triangle of Effort NSA Decreasing Skill Hacker Level


  1. Security options for container implementations Jay Coles doger.io LCA2015 @container_doge

  2. Who am I http://doger.io @container_doge Jay Coles doger.io LCA2015 @container_doge

  3. Triangle of Effort NSA Decreasing Skill Hacker Level Organized Crime Drive By/Botnet Script Kiddie Increasing Effort Jay Coles doger.io LCA2015 @container_doge

  4. What they want ● Do not want to be detected ● Access to other customers information ● Access to other customers environments ● Adequate Storage/CPU/Mem/Network capacity ● Further ingress/infiltration on the network Jay Coles doger.io LCA2015 @container_doge

  5. How they do it ● Exploit an exposed service (does not need to have network access, eg in batch/queue processing) ● Pull down their toolset ● Start attacking the kernels ● Cement hold on system (command and control, process hiding) Jay Coles doger.io LCA2015 @container_doge

  6. What is security? ● Restrict access to other containers ● Prevent knowledge of other containers from leaking ● Ability to account for memory/cpu/network/disk usage ● Ability to control memory/cpu/network/disk resources ● Ability to detect and remove rouge processes Jay Coles doger.io LCA2015 @container_doge

  7. Usual Suspects ● Unix permissions ● Capabilities ● Chroot ● Quotas ● Rlimit ● Cgroups ● App Armor ● Seccomp ● Selinux ● ACLs Jay Coles doger.io LCA2015 @container_doge

  8. What does not work ● rlimits ● Quotas ● Blacklisting via ACLs Jay Coles doger.io LCA2015 @container_doge

  9. Capabilities ● CAP_SYS_MODULE ● CAP_MAC_OVERRIDE ● CAP_SYS_RAWIO ● CAP_MAC_ADMIN ● CAP_NET_BROADCAST ● CAP_NET_RAW ● CAP_MKNOD ● CAP_SETPCAP ● CAP_SYS_TTY_CONFIG ● CAP_SYSLOG ● CAP_AUDIT_WRITE ● CAP_WAKE_ALARM ● CAP_AUDIT_CONTROL ● CAP_BLOCK_SUSPEND ● CAP_AUDIT_READ ● CAP_SYS_BOOT ● CAP_SYS_TIME Jay Coles doger.io LCA2015 @container_doge

  10. Capabilities ● 'capsh' to drop capabilities ● Call instead of /sbin/init or entry point ● Have it invoke the init/entrypoint ● CAP_SETPCAP allows you to turn capabilties back on Jay Coles doger.io LCA2015 @container_doge

  11. cgroups ● Multiple protections in one – Accounting of resource usage – Limiting resource usage (cpu/mem) – Tracking of processes – Preventing/allowing device access Jay Coles doger.io LCA2015 @container_doge

  12. cgroups Jay Coles doger.io LCA2015 @container_doge

  13. App Armor vs selinux Jay Coles doger.io LCA2015 @container_doge

  14. selinux NSA ASIO CIA Secret Multi Confidential Level Security Unclassified Multi Category Security Jay Coles doger.io LCA2015 @container_doge

  15. selinux ● 'runcon' is your friend ● 'chcon' to tag the files as belonging to a container ● Mainly going to be changing the security level – s0:c1,c4 ● Will need appropriate policies/rules in place – This means a working selinux setup Jay Coles doger.io LCA2015 @container_doge

  16. seccomp ● Mount ● Quotactl ● finit_module ● Acct ● Setns ● Umount2 ● clock_adjtime ● Sethostname ● kexec_load ● Swapon ● Nfsservct ● swapoff ● pivot_root ● Reboot ● pciconfig_iobase ● Adjtimeex ● pciconfig_read ● Setdomainname ● pciconfig_write ● init_module ● clock_settime ● delete_module ● Personality Jay Coles doger.io LCA2015 @container_doge

  17. Adding things in ● Can be patched in: – App Armor – Selinux – Capabilities – Cgroups ● Requires app support: – seccomp Jay Coles doger.io LCA2015 @container_doge

  18. Questions Jay Coles doger.io LCA2015 @container_doge

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend