Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Preventing ptrace()

From: Brian Hatch <secprog(at)ifokr.org>
Date: Tue Dec 31 2002 - 13:31:12 EST

> You have to remove the CAP_SYS_PTRACE to all processes running in the

You could easily remove this capability globally using LCAP[1], which modifies /proc/sys/kernel/cap-bound to remove it directly.

Alternatively, you could use an LKM[2] to capture and refuse any use of the ptrace syscall itself.

These have the benifit of being non-kernel specific - no patches are needed. If you have a security-enhanced kernel such as grsecurity, then you should use it's built in capabilities limiting functionality though.

[1] The original page seems to have gone AWOL, but you can find

    it in RPM form or as source here and there, such as from     SecurityFocus. Do a google.

Do you need help?X

[2] For example http://www.hackinglinuxexposed.com/tools/p/noptrace.c.html

--
Brian Hatch                  Never knock on Death's door.
   Systems and                Ring the doorbell and run.
   Security Engineer          He hates that.
http://www.ifokr.org/bri/

Every message PGP signed

  • application/pgp-signature attachment: stored
Received on Tue Dec 31 20:49:42 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:44 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library