Re: a good start to do hardening

From: Marcus (talos@algonet.se)
Date: 12/28/01


From: Marcus <talos@algonet.se>
Date: Fri, 28 Dec 2001 11:40:05 +0100


Thomas wrote:

> Hi!
> Can anyone tell me a good way to start to do hardening on my Linux
> machine.
>
> Thanks a lot!
>
>
>

To simplify what countless of books, whitepapers and personal experience
on security says

6 Simple steps to make you system somewhat ultrasecure:

1) echo "" > /etc/inetd.conf; killall -HUP inetd
2) for f in `find / -perm +4000` ; do chmod u-s $f ; done
3) for f in `find / -perm +2000` ; do chmod g-s $f ; done
4) Download the Openwall kernel patch: http://www.openwall.com/linux/
5) Recompile kernel with no loadable module support, and kernel patch
6) chroot all non-inetd services

That should do it :)

Note that line (2) and (3) might break some things... You should
customize them, especially (2) :)



Relevant Pages

  • Re: What kernel am i running?
    ... Müller Thomas wrote: ... >> It seems to me that you have installed the kernel patch, ... Mark B. ... Linux 2.6.5-7.95-default ...
    (alt.os.linux.suse)
  • Re: Need help with ELF program segment question
    ... Write the code you want (the actual kernel patch), follow the instructions ... on the Linux kernel mailing list. ... before your change propagates so as to be usable by applications running ...
    (comp.os.linux.development.system)
  • Re: a good start to do hardening
    ... ]> Can anyone tell me a good way to start to do hardening on my Linux ... ]4) Download the Openwall kernel patch: http://www.openwall.com/linux/ ... ]6) chroot all non-inetd services ... Security is not some little formula, it is trying to see what you can do ...
    (comp.security.unix)