Re: core file obfuscation

<[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <C75A84166056C94F84D238A44AF9F6AD06E41BCD@AUSX10MPC103.AMER.DELL.COM>
On Dec 3, 2013, at 4:16 AM, vijay nag <[email protected]> wrote:

> Hello GDB,
> 
> I have a requirement to obfuscate parts of core dump file containing
> certain variables.
> 
> The exact requirement here is to mask off/encrypt certain sensitive
> information such as passwords, lawfully intercepted data, etc stored
> in global data structure of the task since customers intend not to
> disclose or retrieve any sensitive information during post-mortem
> analysis of core file.
> 
> Is there any standard way of doing this or are there any libraries
> which suits my requirement ?

I think you're looking in the wrong place.  GDB analyzes core dumps, it doesn't (usually) create them.  You need to create your core file with sensitive data blanked out.  That will/may require work in the core file writing machinery of your OS.

Possibly the application itself could help with this, by catching the signal for the fault that created the core file.

	paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.