A practical guide to Linux hardening

Summary

Trimstray collects verifiable measures for the boot chain, kernel, file systems, network, SSH, logging and restricting services. The guide is maintained publicly on GitHub.

Ideas

  • Minimal package sets reduce reachable code and maintenance effort.
  • sysctl parameters harden network and kernel behaviour.
  • Mount options restrict execution and device files in selected paths.
  • Audit and system logs provide traces for later investigations.

Insights

  • Hardening is a maintained system state rather than a one-off checklist.
  • Every protective measure needs a verifiable threat and a fallback strategy.
  • Secure default configurations scale better than manual rework.

Facts

  • It covers several Linux distributions.
  • Many steps require administrative rights.

Recommendations

  • Automatically test every change for reachability and service function.
  • Document deviations with a reason and an expiry date.

References

Read the original article

Search the Web Archive

Found a mistake or have something to add? Get in touch.