How to configure MikroTik for a small business: a secure baseline step by step
Update RouterOS, replace the admin user, close management services, set up the firewall and a guest network — with ready-to-use commands.
Read articleContainers are not automatically secure. Published ports, root users and old images are the usual problems — here is how to fix them.
Docker makes deploying applications easy, and that is exactly why insecure defaults spread so fast. A container that runs as root with a port open to the whole internet and an image from two years ago is a common sight. These steps fix the most frequent issues.
Bind application ports to 127.0.0.1 and put a reverse proxy (nginx, Traefik) in front with HTTPS. Databases and admin tools should not be published at all.
# docker-compose.yml – publish only on localhost, behind the reverse proxy
services:
app:
image: myapp:1.4.2
ports:
- "127.0.0.1:8080:80"Use a non-root user in the image. Many official images already provide one.
# Dockerfile
FROM node:22-slim
WORKDIR /app
COPY . .
RUN npm ci --omit=dev
USER node
CMD ["node", "server.js"]A read-only filesystem, no Linux capabilities and no privilege escalation limit the damage if the application is compromised. Keep secrets in .env files or secret stores, never in the image, and never mount the Docker socket into containers you do not fully trust.
services:
app:
image: myapp:1.4.2
read_only: true
cap_drop: [ALL]
security_opt: ["no-new-privileges:true"]
env_file: .envUse specific version tags, rebuild and pull updated images on a schedule, and remove old ones. Scan images for known vulnerabilities as part of the build.
docker compose pull
docker compose up -d
docker image prune -fA container is a box, not a safe. What matters is what is inside and who can open it.
Need help with this? Contact CySec for a free consultation.
Update RouterOS, replace the admin user, close management services, set up the firewall and a guest network — with ready-to-use commands.
Read articleGive staff secure access to office files and 1C from home — without opening RDP or Winbox to the internet.
Read articleA practical checklist with commands: personal admin account, SSH keys, firewall, automatic security updates and fail2ban.
Read articleOur engineers can review your current setup and propose concrete improvements.