4 ms·
encrypts software code such that it’s only decrypted by the computer’s processor at the last possible moment before the code is executed. I have heard this phr
by userbinator 12y ago
encrypts software code such that it’s only decrypted by the computer’s processor at the last possible moment before the code is executed.
I have heard this phrase repeated so many times in the advertisements for protectors/packers that it's become almost cliche. Such techniques have been around for over 20 years. Using the debug registers to store the decryption key is relatively well-known - and defeatable (this is 5+ years ago):
http://reversinglabs.com/newsroom/blog/lockpicking-telock.html http://reversinglabs.com/newsroom/blog/lockpicking-telock.ht...
On the other hand, I like how the article presents the negative aspect too - that security features can be used to make systems secure against their owners is a point that I definitely believe needs to be more prominent among the public.
- erglkjahlkh 12y agoAlso, does the scheme unencrypt the code to be run into what memory segment? What does this technique mean for current memory protection methods? We do have nowadays non-executable stack, and heap by default. In fact, only the marked read only segments can contain runnable code, unless if you use specific workarounds. What happens if the code you are protecting and running is more complex, requiring calls where you would usually use position independence and stuff like ASLR to full extend? Do you lose these the benefits or those features, or is there necessary information leak (take a look at plt for instance)? To add to this that in the end of the day if you can access both the data and the key it is just highly complex obfuscation, I am hardly impressed.
- deleted 12y ago[deleted]
- reacweb 12y agoYes, they are making systems secure against their owners. Decrypting binaries just before executing means writable memory pages that becomes executable. For my security, I would like that only a couple of "blessed JIT VM" (io.js, jre) were allowed to perform this kind of change to memory pages.