Comment on Alternative to ClamAV?

jlh@lemmy.jlh.name ⁨9⁩ ⁨months⁩ ago

I’m a senior Linux/Kubernetes sysadmin, so I deal with system security a lot.

If you’re not already running your servers in Docker, you should. Its extremely useful for automating deployment and updates, and also sets a baseline for isolation and security that you should follow. By running all your services in docker containers, you always know that all of your subcomponents are up to date, and you can update them much faster and easier. You also get the piece of mind knowing, that even if one container is compromised by an attacker, it’s very hard for them to compromise the rest of the system.

Owasp has published a top 10 security measures that you can do once you’ve set up Docker.

github.com/OWASP/…/owasp-docker-security.pdf

This list doesn’t seem like it’s been updated in the last few years, but it still holds true.

  1. Don’t run as root, even in containers

  2. Update regularly

  3. Segment your network services from each other and use a firewall.

  4. Don’t run unnecessary components, and make sure everything is configured with security in mind.

  5. Separate services by security level by running them on different hosts

  6. Store passwords and secrets in a secure way. (usually this means not hardcoding them into the docker container)

  7. Set resource limits so that one container can’t starve the entire host.

  8. Make sure that the docker images you use are trustworthy

  9. Setup containers with read-only file systems, only mounting r/w tmpfs dies in specific locations

  10. Log everything to a remote server so that logs cannot be tampered with. (I recommend opentelemetry collector (contrib) and loki)

The list goes into more detail.

source
Sort:hotnewtop