Re: Protecting assemblies from being used outside a company/group/team

From: William Stacey [MVP] (staceywREMOVE_at_mvps.org)
Date: 02/11/05


Date: Fri, 11 Feb 2005 11:32:19 -0500

If we trust the obfuscation does not allow reverse (which is not stone), and
the encryption of the public token string then we may be able to just use
our embedded public key. However, there are a whole host of other strings
and resources we want to verify too just to prove we are using the same
assembly we shipped. The double check proves the signed version matches the
embedded key. We could probably also check that the signature is not zeros
to prevent that simple hack . This tries to protect the easy hack where we
can find a resource or string we want to change with a hex editor. You
don't need to decompile to do this hack. However the check would help
prevent that. To get around that, you would actually need to make a logic
change to the code to remove or jump around all test-and-branch instructions
where we test that. But as you can't easily read the code, this is harder
to find all spots that may check. So you could sprinkle other tests in the
code. Basically, this would force you into using a debugger to find the hex
locations of what you want to change in the file. If they can do that, then
the check code or the SN does not matter as they can get around both. Just
raises the bar. In the end, you can use or not use. Just another defense
layer to add to your assem.

-- 
William Stacey, MVP
http://mvp.support.microsoft.com


Relevant Pages

  • Re: GOSUB, the larger picture (was Worldwide known Excellence of GOSUB)
    ... > does not mean that was not a hack. ... Yep, a Byte datatype was indeed needed, and welcome! ... No need to break String, ... It aint bigger Karl, ...
    (microsoft.public.vb.general.discussion)
  • Re: Hack of the Week - 25 May 2010
    ... The string hack is impressive, ... a much better game than I would have ever guessed. ... Nice free play Frankenstein dual-redundant knife switch! ...
    (rec.games.pinball)
  • Re: writing binaries in a file
    ... I'd wager it's not a hex editor. ... console, you may find that what you're seeing is the tendency of your editor ... for unknown characters. ... use a on the string, and see if it's what you wrote. ...
    (comp.lang.tcl)
  • Re: Regular Expression, to use or not to use...
    ... So I have something that will search the string 10x ... Yea thats true, like I said I still use them occasionally, as a hack, ... Also this is an extremly simple re, no |'s or complex expressions. ... >> simple string operations where I can come up with the expression in a ...
    (microsoft.public.dotnet.general)
  • Re: Hack of the Week - 25 May 2010
    ... The string hack is impressive, ... a much better game than I would have ever guessed. ... Nice free play Frankenstein dual-redundant knife switch! ...
    (rec.games.pinball)