Hacker News new | ask | show | jobs
by Bender 3 days ago
Apply all updates and all hardening in the assorted government guides such as NIST. [1][2] Disable any services not needed. Firewall all inbound and outbound traffic to only permit was is required. seccomp+landlock+namespace everything. Auditd logging of everything. Tamperproof remote logging. File tampering alerts. Use the same tools as attackers are using. Abuse, harden, rinse, repeat.

Many on-site and off-site tested verified backups. Knowledge of at least 9 sea shanties.

Bonus points: Challenge your pen-testing friends to get shell access in exchange for a case of their favorite alcoholic beverage. Add stipulations as this can get very expensive.

Extra bonus points: Download, validate, pen-test all 3rd party CDN resources. Fork to remove bloat and insecure features. Name/URL version after legal reviews and approves, deploy to your own CDN account. Remove all 3rd party dependencies where feasible to do so. Create and validate Subresource Integrity files [3].

[1] - https://ncp.nist.gov/checklist/1072

[2] - https://ncp.nist.gov/repository

[3] - https://developer.mozilla.org/en-US/docs/Web/Security/Defens...