network-security
Secure network paths and exposure — segmentation, TLS everywhere, DNS/email auth, WAF/tunnels, egress control.
SKILL.mdskills/network-security/SKILL.md
GitHubNetwork Security
The network is an attack surface: shrink what's reachable, encrypt what moves, and know exactly what's exposed — always.
When to use
- New service going live; new domain/tunnel/port.
- Hardening home-lab, box, or cloud setups.
- Reviewing "why can anyone reach this?" incidents.
Method
- Exposure inventory: maintain the list of public endpoints (domains, ports, tunnels) and what serves each. If it's not on the list, it's not allowed public.
- Default-deny posture: everything listens on loopback unless a list entry justifies exposure; prefer tunnels (cloudflared/SSH, authenticated) over open ports.
- Segmentation: separate services into trust zones (public edge / app / data / admin); admin planes never share the public path.
- TLS everywhere: valid certs (auto-renew + monitor expiry), HSTS on web, no plaintext protocols (HTTP/FTP/telnet) on any path; modern TLS config only.
- DNS + email auth: registrar lock + 2FA; DNSSEC where possible; SPF, DKIM, DMARC on every sending domain; monitor DMARC reports.
- Edge protection: CDN/WAF in front of web (rate limits, bot rules); DDoS posture on the provider; don't roll your own edge.
- Egress control: outbound allowlists for servers that don't need the internet; log unexpected egress.
- Evidence: network events logged (denied + accepted), reviewed on change and on incident.
Quality gates
- Exposure inventory current; every public entry has an owner.
- No plaintext protocol paths; cert expiry monitored.
- SPF/DKIM/DMARC present on sending domains.
- Admin access only via authenticated path (tunnel/VPN/SSO), never open ports.
Red lines
- No admin/DB panels exposed to the internet ("temporarily").
- No default credentials anywhere; no unauthenticated tunnels.
Related
firewall-engineering · zero-trust-architecture · authentication-authorization.