From: Tavis Ormandy <taviso@sdf.lonestar.org>
To: Oliver Welter <mail@oliwel.de>
Cc: gdb@sourceware.org
Subject: Re: How to protect a file from debugging
Date: Mon, 11 Jun 2007 09:16:00 -0000 [thread overview]
Message-ID: <20070611091627.GB8386@sdf.lonestar.org> (raw)
In-Reply-To: <466D04E1.4010905@oliwel.de>
On Mon, Jun 11, 2007 at 10:16:33AM +0200, Oliver Welter wrote:
> Hi List,
>
> sorry if this is a stupid question but I am not very familiar with gdb ;)
>
> I am planing a security application and gdb is causing some "troubles".
>
> Can someone point me to some infos or shortly explain me if there is a
> way to protect a program from attaching to it? I must either prevent gdb
> (or similar software) from attaching to a process or at least detect
> the attach and send a terminate signal to the application.
>
The short answer is no, any tricks you attempt to use to prevent
ptrace() can be defeated (some more easily than others), however if you
explain what the "troubles" are there may be a better solution.
Thanks, Tavis.
--
-------------------------------------
taviso@sdf.lonestar.org | finger me for my pgp key.
-------------------------------------------------------
next prev parent reply other threads:[~2007-06-11 9:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 8:17 Oliver Welter
2007-06-11 9:16 ` Tavis Ormandy [this message]
2007-06-11 9:25 ` Oliver Welter
2007-06-11 9:32 ` Andreas Schwab
2007-06-11 9:38 ` Oliver Welter
2007-06-11 10:04 ` Tavis Ormandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070611091627.GB8386@sdf.lonestar.org \
--to=taviso@sdf.lonestar.org \
--cc=gdb@sourceware.org \
--cc=mail@oliwel.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox