DockerCleaner: Automatic Repair of Security Smells in Dockerfiles
QC Bui, M Laukötter… - 2023 IEEE International …, 2023 - ieeexplore.ieee.org
QC Bui, M Laukötter, R Scandariato
2023 IEEE International Conference on Software Maintenance and …, 2023•ieeexplore.ieee.orgDocker is a widely adopted platform that enables developers to create lightweight and
isolated containers for deploying applications. These containers can be replicated from a
single blueprint specified by a text file known as a Dockefile. The Dockerfile smells might not
only hinder the performance of containers but also potentially introduce security risks. State-
of-the-art scanning tools, such as Hadolint and KICS, are available to efficiently detect
Dockerfile smells. Still, there is a lack of approaches focusing on resolving these issues …
isolated containers for deploying applications. These containers can be replicated from a
single blueprint specified by a text file known as a Dockefile. The Dockerfile smells might not
only hinder the performance of containers but also potentially introduce security risks. State-
of-the-art scanning tools, such as Hadolint and KICS, are available to efficiently detect
Dockerfile smells. Still, there is a lack of approaches focusing on resolving these issues …
Docker is a widely adopted platform that enables developers to create lightweight and isolated containers for deploying applications. These containers can be replicated from a single blueprint specified by a text file known as a Dockefile. The Dockerfile smells might not only hinder the performance of containers but also potentially introduce security risks. State-of-the-art scanning tools, such as Hadolint and KICS, are available to efficiently detect Dockerfile smells. Still, there is a lack of approaches focusing on resolving these issues. Therefore, we present DockerCleaner, an automated repair tool that suggests fixes for eleven Dockerfile security smell types. Our tool employs the repair actions inspired by the best security practices for writing Dockerfiles. The evaluation results show that DockerCleaner can remove the artificially injected security smells from 92.67% of the Dockerfiles and guarantee the buildability for 99.33% of them. Specifically for security smells in real Dockerfiles, DockerCleaner outperforms the state-of-the-art repair tool by a wide margin. Finally, we leveraged the fixes generated by DockerCleaner to propose improvements to twelve official Docker images. Eight pull requests have been accepted and merged by the developers.
ieeexplore.ieee.org
以上显示的是最相近的搜索结果。 查看全部搜索结果