Re: Encrypt a Dll
From: Victor Pereira (taintmode_at_yahoo.com.br)
Date: 05/05/05
- Next message: Valery Pryamikov: "Re: Encrypt a Dll"
- Previous message: Victor Pereira: "Re: Encrypt a Dll"
- In reply to: lelteto: "Re: Encrypt a Dll"
- Next in thread: Victor Pereira: "Re: Encrypt a Dll"
- Reply: Victor Pereira: "Re: Encrypt a Dll"
- Reply: lelteto: "Re: Encrypt a Dll"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 5 May 2005 13:51:55 -0300
Hi lelteto,
My goal is HIDE some algorithm that i want to keep secret. It's very
important to protect it.
When you said something about "do a loadlibrary then dump the memory content
from the load address", how can you do a loadlibrary in a crypted library ?
You don't encrypt DllMain ? I'm thinking to use PE to map the .text section
in my code and decrypt it on the fly. Ok it's not 100% safe but you know
"There's nothing 100% secure and bla bla bla"
Thanks for your help,
Victor
"lelteto" <lelteto@discussions.microsoft.com> wrote in message
news:673C040F-D5EF-4992-92E4-0046D6D14083@microsoft.com...
> 1. I don't think Victor's goal is to copy protect because encryption
itself
> will not help that. There are several software protection products on the
> market (SafeNet's Sentinel and Aladdin's HASP are the market leaders)
which
> can copy protect dlls, too.
> 2. The other reason it doesn't make sense is that if I want to get the dll
I
> can just write a very small program which does LoadLibrary then dump the
> memory content from the load address. (Yes, you may need to make a few
> adjustments but it's not hard to do. And if your goal is to HIDE your code
> than this memory dump will give the attacker all the code in clear text.)
> 3. If your goal is to HIDE / OBFUSCATE your code (eg. you have a
proprietary
> algorithm you want to keep secret) it's much harder. There are tools for
that
> but usually they are expensive (and work on source level obfuscation). By
far
> the best of them is Cloakware - but it's not something you can just go and
> buy as a utility :(
>
> Laszlo Elteto
> SafeNet, Inc.
>
> "Valery Pryamikov" wrote:
>
> > Hi,
> > Encrypting your program for the purpose of copy-protecting is a dead
end. It
> > have been proven many times both practically by software makers and
> > theoretically by scientific works of many very bright scientists.
> > Obfuscation could be helpful for that matter, but not encryption. I've
> > written a couple of blog posts in my blog regarding obfuscation and
Program
> > License Protection, where I've given some pointers that you can read:
> >
http://www.harper.no/valery/PermaLink,guid,24c827f1-50a9-4bd5-82fa-4af09f81e849.aspx
> >
http://www.harper.no/valery/PermaLink,guid,0f90cf89-2689-4b7f-8d50-84c964795f3e.aspx
> > If you interesting in more pointers, I can send you a list of papers
(names
> > and authors) concerning that very subject (totally it would be several
> > thousands pages of reading material if you read everything from that
list
> > :-)
> >
> > -Valery.
> > http://www.harper.no/valery
> >
> >
> > "Victor Pereira" <taintmode@yahoo.com.br> wrote in message
> > news:ul29vHYUFHA.3056@TK2MSFTNGP14.phx.gbl...
> > > Hi, i have a dll and i want to encrypt it.
> > > Well today i'm using a following approach:
> > >
> > > I'm encrypting the dll with a program, then when i want to
loadlibrary()
> > > it,
> > > i decrypt it to a plain-text file, then i loadlibrary the plain-text
file.
> > > So i have my encrypted dll and i have a plain-text version either. To
> > > mitigate this vulnerability, i'm using EFS to protect my plain-text
dll.
> > >
> > > I'm wondering if using the PE format i can do some kind of "on-the-fly
> > > encrypt and decrypt". Is it possible ? There is any example ? Is it a
good
> > > solution ?
> > >
> > > Thanks in advance,
> > >
> > > Victor
> > >
> > >
> >
> >
- Next message: Valery Pryamikov: "Re: Encrypt a Dll"
- Previous message: Victor Pereira: "Re: Encrypt a Dll"
- In reply to: lelteto: "Re: Encrypt a Dll"
- Next in thread: Victor Pereira: "Re: Encrypt a Dll"
- Reply: Victor Pereira: "Re: Encrypt a Dll"
- Reply: lelteto: "Re: Encrypt a Dll"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|