Docker脆弱性分析与安全增强

2016-05-14 11:05:19杨文林谭曦郭俊廷王硕
网络空间安全 2016年4期

杨文林 谭曦 郭俊廷 王硕

【 摘 要 】 容器虚拟化技术并没有虚拟任何硬件,它使用宿主机的系统内核,通过Namespace技术来隔离不同的容器隔离应用程序来实现虚拟化。因此它是工作在操作系统级的虚拟化技术。然而共享内核的方式也带来了许多安全问题。因此我们着手分析Docker主要部件Docker容器、Docker配置和Docker共享内核的技术原理,并且尝试寻找其脆弱点,从而针对存在的威胁提出解决方案,使得Docker的安全性足以适应生产环境。

【 关键词 】 计算机应用;Docker安全;脆弱性分析;虚拟化

【 中图分类号 】 TP309 【 文献标识码 】 A

【 Abstract 】 Linux Container technology does not virtualize any hardware, it just uses the hosts system kernel with namespace technology to isolate different containers and applications to achieve virtualization. Therefore, it is a virtualization technology that works on the operating system level. However, the way of sharing the kernel also brings many security problems. So in this paper, we had focused on analyze the major components of Docker: Docker Engine, Docker Repositories and the technology principles of Docker sharing kernel, and tried to find its vulnerability. Moreover, we had strengthened the most fragile places, so that we can finally propose solutions to resolve the risks of the existence now.

【 Keywords 】 computer application; docker security; vulnerability analysis; virtualization

1 引言

虚拟化技术是一种区别于传统的资源管理技术,它将计算机的计算能力、网络、存储等各类物理资源抽象化,打破了各物理结构间原本不可切割的障碍,使得用户可以按照需求更加经济、合理地去分配使用这些资源。虚拟化技术能够实现在一个平台上独立地运行多个既可以互不干扰而又可以协同工作的运算单元。Docker容器将用户程序、运行时库、系统工具、系统库等所有你会在服务器上需要的东西打包到一个完备的文件系统中。虚拟机通过模拟计算机硬件,每个虚拟机使用相互独立的硬件模拟器,都像拥有独立的硬件平台一样。对于虚拟机而言,每一个虚拟机都包含应用程序、运行库和相互独立的操作系统。

容器技术的虚拟化则是依托于Linux内核的LXC技术,辅以Namespace技术隔离不同的容器。容器内仅包含应用程序和必要的运行库,容器内运行的系统内核则使用与宿主机共享的系统内核。……

登录APP查看全文