158 articles
Knowledge Base
Security
158 articles in the Security category · page 2 of 7.
- Sectigo vs Let's Encrypt on cPanel — which AutoSSL provider to run An operator's comparison of cPanel's bundled Sectigo AutoSSL, the Let's Encrypt AutoSSL provider, and a purchased certificate — coverage, wildcards, rate limits, DCV method, and CAA.
- WordPress security headers: HSTS, X-Frame-Options and a CSP that survives the block editor The four set-once security headers you can ship on WordPress in an afternoon, then the Content-Security-Policy rollout that does not break Gutenberg — report-only first, nonces instead of unsafe-inline, and the layer rules that make headers disappear without an error.
- Multiple WordPress sites in one cPanel account, or one account each cPanel addon domains let one account host many WordPress sites, and the boundary you give up is the Unix user. What a shared account actually shares — blast radius, LVE limits, quota, backups, PHP — and the default worth committing to.
- Reading /usr/local/apache/logs/modsec_audit.log on cPanel Find the ModSecurity audit log on a cPanel server, pull one whole transaction out of it by unique ID, read the H section for the rule ID and anomaly score, and turn that into a scoped exclusion in WHM that you can prove took effect.
- Blocking WordPress user enumeration: author archives, REST, and sitemaps Close every vector that hands out WordPress usernames to unauthenticated visitors — author archive redirects, the REST users endpoint, the core author sitemap, oEmbed author fields, and login errors that distinguish a bad username from a bad password.
- nftables NAT and port forwarding on a Linux gateway Configure nftables NAT and port forwarding on a Linux gateway: DNAT a public port to an internal host, masquerade outbound traffic, fix hairpin NAT, and persist it in /etc/nftables.conf.
- Generate an SBOM with Syft and gate CVEs with Grype Build a real SBOM for a container image with Syft, then scan that artifact with Grype instead of re-scanning the image: fail-on thresholds, a .grype.yaml ignore file, a fresh vulnerability DB in CI, and SBOM diffs between two tags.
- Run Semgrep as a SAST gate in CI without failing every pull request Set up a Semgrep SAST gate in GitHub Actions or GitLab CI: install the CLI, choose registry rulesets or write a custom rule, and use --baseline-commit so an existing codebase only fails on new findings.
- Deploy Falco for runtime threat detection and write rules that stay quiet Install Falco from the official repository, pick between the modern eBPF probe, the kernel module and the legacy probe, learn the rules file layout and rule anatomy, write a custom rule and an exception that silences a known-good process, tune the noisy defaults, route output, and prove a detection fires.
- Sandboxing a systemd service — score it, harden it, decode the denials Use systemd-analyze security to score a unit, then harden it in waves through a drop-in override — ProtectSystem, CapabilityBoundingSet, SystemCallFilter — and read the exact sandbox denial out of the journal when the service stops starting.
- Deploy OpenBao as a single-node secrets server with AppRole authentication Install OpenBao under systemd with TLS and raft storage, initialise and unseal it, enable the KV v2 engine, write a least-privilege policy, and give an application renewable AppRole credentials.
- Internal ACME certificate authority with step-ca Run a private ACME certificate authority with step-ca: create an offline root, sign an online intermediate, enable the ACME provisioner, and point certbot and Caddy at it so internal services renew TLS certificates on their own.
- Ship a distroless Docker image — multi-stage build and how to debug it Convert a full base image into a distroless docker image with a multi-stage build, survive the missing shell, CA bundle and timezone data, and debug a running container that has neither shell nor package manager.
- Host key verification failed — diagnose the SSH warning instead of deleting the line What "Host key verification failed" and "REMOTE HOST IDENTIFICATION HAS CHANGED" actually mean, how to verify a new host key out-of-band with ssh-keyscan and ssh-keygen -lf, and the surgical ssh-keygen -R fix.
- POSIX file ACLs on Linux: grant per-user access with setfacl and getfacl Use setfacl and getfacl to give several users and services different access to one directory tree — including POSIX ACL default entries, the mask, and which copy tools preserve ACLs.
- Generate a CSR and a self-signed certificate with OpenSSL A practitioner guide to openssl csr and self-signed certificate workflows: create a private key and CSR with the right subjectAltName, inspect them, self-sign for internal use, and fix the SAN and key-mismatch errors.
- Scan hosts and services with nmap (authorized inventory and verification) A defensive, authorized-use guide to nmap: host discovery, SYN vs connect scans, port selection, service and OS detection, timing templates, output formats for record-keeping, and reading open vs filtered vs closed to verify your own firewall rules.
- Hardening TLS cipher suites and protocol versions on Nginx A practitioner guide to TLS cipher suites Nginx settings — disable TLS 1.0/1.1, apply a vetted Mozilla intermediate ssl_ciphers list, turn on TLS 1.3, add OCSP stapling, and verify the result with openssl and testssl.
- Writing and applying a custom seccomp profile for Docker containers Build a minimal seccomp allowlist for a Docker container: how seccomp-bpf filters syscalls, what the default profile already blocks, discovering the syscalls your app needs, and applying the profile with security_opt, cap-drop and no-new-privileges.
- Hardening a systemd service unit — sandbox a long-running daemon Wrap a long-running Linux daemon in systemd's sandboxing directives — ProtectSystem, PrivateTmp, NoNewPrivileges, SystemCallFilter, DynamicUser — and audit the result with systemd-analyze security.
- OpenSSH server hardening checklist A practical sshd hardening pass on OpenSSH 9.x: key-only auth, no root login, AllowUsers, tuned ciphers, login limits, and validating with sshd -t before reload so you never lock yourself out.
- How to Encrypt Files with age on Linux A practitioner guide to age encryption on Linux — encrypt a file to an X25519 public key, an SSH recipient, or a passphrase, then decrypt safely with the matching identity.
- SELinux "Permission denied" when file permissions look correct A file is 0644, owned by the right user, and the app still gets Permission denied. This is the guide to confirming SELinux is the cause and fixing the AVC denial with restorecon, semanage, booleans and audit2allow.
- Configuring sudoers safely without locking yourself out Grant a deploy user exactly the commands it needs — visudo, /etc/sudoers.d drop-ins, aliases, the Defaults worth setting, and how to prove the grant is what you think it is.