Servicios y soporteCarreras profesionalesIniciar sesión
AlgoSec
Volver a la página de inicio
Horizon
Horizon
Horizon Platform
Explore los módulos de nuestra plataforma
Horizon ACE
Transforme la seguridad de su red en la nube
Horizon FireFlow
Gestión automatizada de políticas de seguridad
Horizon ObjectFlow
Automatización inteligente para cambios de políticas
Horizon AppViz
Descubra, visualice y proteja aplicaciones
Horizon Security Analyzer
Visualice y gestione redes híbridas
Algo Assistant
Asistente de IA para tareas de políticas de seguridad
Integraciones
Microsoft Teams
Slack
Check Point
BMC
F5
Microsoft Azure
Google Cloud
HP
AWS
Cisco
Explorar todas las integraciones
Utilidades del producto
Centro de seguridad de AlgoSec

Garantía de devolución de dinero

Alternativas a AlgoSec

Soluciones
Soluciones

Por caso de uso

Automatización de cambios

Gestión de riesgos

Reducción de costes

Cumplimiento normativo

Por sector

Proveedores de servicios de seguridad

Finanzas

Seguros

Atención sanitaria

Gobierno

Telecomunicaciones

Recursos
Recursos

Explorar

Centro de recursos

Centro central para todo el contenido de AlgoSec

Algo-Library

Investigación exhaustiva y perspectivas técnicas

Casos de éxito

Historias y resultados reales de clientes

Blog

Artículos, perspectivas y actualizaciones de productos

Vea y aprenda

Videos

Videos sobre seguridad de red

Demostraciones de productos

Vea la plataforma en acción

Seminarios web

Charlas de expertos sobre desafíos de seguridad

Socios
Socios

Nuestro programa de socios

Conviértase en socio

Únase al programa de socios AlgoSec Elevate

Nuestro ecosistema de socios

Localizar un socio

Encuentre un socio en nuestra red global

Socios tecnológicos

Integraciones con proveedores de tecnología líderes

Socios de servicios

Trabaje con expertos certificados en servicios y consultoría

Empresa
Empresa

Descripción general de la empresa

Acerca de

Quiénes somos y el valor que aportamos

Liderazgo

Los ejecutivos que dirigen AlgoSec

Carreras profesionales

Vacantes y vida en AlgoSec

Contáctenos

Contacte con nuestras oficinas y equipos globales

Eventos

Conferencias y próximos eventos

Centro de medios

Noticias de la empresa y actualizaciones de productos

Utilidades de la empresa

Nuestros clientes

Servicios profesionales de AlgoSec

Ingeniero residente de AlgoSec

Servicios de formación y certificación

Programas de soporte de AlgoSec

Kit de prensa de AlgoSec

Iniciar sesiónServicios y soporteCarreras profesionales
Programar una demostración
Programar una demostración
Abstract network background
Inicio
Blog
Best practices for Docker containers’ security

Best practices for Docker containers’ security

Rony Moshkovich

Rony Moshkovich

July 27, 2020

|

3

minute read

Share
YouTubeLinkedIn

Containers aren’t VMs. They’re a great lightweight deployment solution, but they’re only as secure as you make them. You need to keep them in processes with limited capabilities, granting them only what they need. A process that has unlimited power, or one that can escalate its way there, can do unlimited damage if it’s compromised. Sound security practices will reduce the consequences of security incidents.

Don’t grant absolute power

It may seem too obvious to say, but never run a container as root. If your application must have quasi-root privileges, you can place the account within a user namespace, making it the root for the container but not the host machine. Also, don’t use the –privileged flag unless there’s a compelling reason. It’s one thing if the container does direct I/O on an embedded system, but normal application software should never need it.

Containers should run under an owner that has access to its own resources but not to other accounts. If a third-party image requires the –privileged flag without an obvious reason, there’s a good chance it’s badly designed if not malicious.

Avoid running a Docker socket in a container. It gives the process access to the Docker daemon, which is a useful but dangerous power. It includes the ability to control other containers, images, and volumes. If this kind of capability is necessary, it’s better to go through a proper API.

Grant privileges as needed

Applying the principle of least privilege minimizes container risks. A good approach is to drop all capabilities using –cap-drop=all and then enabling the ones that are needed with –cap-add. Each capability expands the attack surface between the container and its environment. Many workloads don’t need any added capabilities at all.

The no-new-privileges flag under security-opt is another way to protect against privilege escalation. Dropping all capabilities does the same thing, so you don’t need both.

‍Limiting the system resources which a container guards not only against runaway processes but against container-based DoS attacks.

Beware of dubious images

When possible, use official Docker images. They’re well documented and tested for security issues, and images are available for many common situations.

Be wary of backdoored images. Someone put 17 malicious container images on Docker Hub, and they were downloaded over 5 million times before being removed. Some of them engaged in cryptomining on their hosts, wasting many processor cycles while generating $90,000 in Monero for the images’ creator. Other images may leak confidential data to an outside server. Many containerized environments are undoubtedly still running them.

You should treat Docker images with the same caution you’d treat code libraries, CMS plugins, and other supporting software, Use only code that comes from a trustworthy source and is delivered through a reputable channel.

Other considerations

It should go without saying, but you need to rebuild your images regularly. The libraries and dependencies that they use get security patches from time to time, and you need to make sure your containers have them applied.

On Linux, you can gain additional protection from security profiles such as secomp and AppArmor. These modules, used with the security-opt settings, let you set policies that will be automatically enforced.

Container security presents its distinctive challenges. Experience with traditional application security helps in many ways, but Docker requires an additional set of practices. Still, the basics apply as much as ever. Start with trusted code. Don’t give it the power to do more than it needs to do. Use the available OS and Docker features for enhancing security. Monitor your systems for anomalous behavior. If you take all these steps, you’ll ward off the large majority of threats to your Docker environment.

Rony Moshkovich

Rony Moshkovich

Rony Moshkovich, director de producto de AlgoSec, cuenta con décadas de experiencia práctica en investigación e ingeniería en el sector de la seguridad informática. Su trayectoria incluye una amplia experiencia en gestión, con especial énfasis en la investigación y el desarrollo de software, lo que le permite orientar de forma única los requisitos empresariales y los servicios profesionales para soluciones destinadas a grandes empresas, pymes y consumidores.

Table of contents

Table of contents item

¿Está listo para tomar el control de la seguridad de su red?

Descubra cómo la Horizon Platform de AlgoSec puede transformar la gestión de sus políticas de seguridad: ¡del caos al control!

[Marcador de posición: Marketo creará el mensaje de error]
[Marcador de posición: Marketo creará el mensaje de error]
[Marcador de posición: Marketo creará el mensaje de error]
[Marcador de posición: Marketo creará el mensaje de error]
[Marcador de posición: Marketo creará el mensaje de error]
[Marcador de posición: Marketo creará el mensaje de error]
Al enviar este formulario, acepto la de AlgoSecpolítica de privacidad
[Marcador de posición: Marketo creará el mensaje de error]
¡Gracias!
AlgoSec
LinkedInYouTube
Temas de tendencia
AlgoSec y CiscoMicrosegmentaciónSeguridad de red en la nubeCumplimiento de seguridad en la nubeCumplimiento de red HIPAA
Herramientas esenciales
Integraciones
Información útil
ContáctenosAcuerdo de licencia de usuario finalSLA de SaaSEstrategia medioambientalEstrategia ESGCentro de seguridad

© 2004 – 2026 Todos los derechos reservados por AlgoSec

Política de privacidadCondiciones de usoConfiguración de cookies