x


Hacking Unity3 assets

Hi all,

is unity3 security more that unity2.x?is it possible to heck/decode asset files?

So thanks.

more ▼

asked Aug 26 '10 at 04:50 PM

myunity gravatar image

myunity
167 23 25 33

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Anything "readable/downloadable" can be caught and analyzed offline. Once this happends, its just a matter of brain and CPU power.

I develop with this in my mind and place every possible bit of "serious logic/data" within a server and places the data behind a login or some other kinda of authentication + add some "personal data" + "checksum" per session.

So, even if data is copied and tampered, it wont make any use with MY program.

Ofcause if its a matter of protecting interlectual rights (copyright etc) then dont publish the game/program. Nothing is really safe. You can make it harder to copy, but not prevent if they really want it.

You could make it a bit annoying for the lazy of the hackers/crackers.

I havent testet this yet, but back in Flash some protect their applications by this pattern:

  1. HTML loads SWF with querystring parameters (usually a uniq session ID from the server)
  2. SWF parses this querystring and requests new packets from the server with the session id's attached.
  3. the server checks if session ID is valid + checks if the time from the first request to the next is "human" or "machine". If its human, its denys the session ID and throws the user to the "front" with a forced page refresh or similar.

Feel free to expand on this like:

  • The loaded content from the server, could be yet another "decoder"... that loads another module

so that even after decompiling the first module, you need to decompile the next, but you cant download the next easily as its only available while the session is valid.

This might sound messy, but I believe that one of the ways to protect against most "newbies" is to put in some sort of time-validation between requests + dont give away import things before needed. Split your modules/assets/packages into small bits so it gets to be a hell to grab it all.

Lastly, obfuscation is very well known too. Replacing normal variables/filenames with strange "coded" names.

Eg. "EndOfLevelMonster" becomes "A1252435" etc.

more ▼

answered Nov 20 '10 at 02:54 AM

BerggreenDK gravatar image

BerggreenDK
2.4k 54 62 75

(comments are locked)
10|3000 characters needed characters left

AFAIK, there weren't any changes in that area from 2.6 to 3.0. There's two pretty lengthy forum threads:

Generally speaking, decoding the script-code is very easy and getting the art assets (in particular models) is pretty hard because Unity uses a proprietary format for those.

more ▼

answered Aug 26 '10 at 08:43 PM

jashan gravatar image

jashan
10.1k 25 40 116

(comments are locked)
10|3000 characters needed characters left

Just don't forget the one rule that NEVER changes along the line of the entire human race. If enough people want something bad enough...

more ▼

answered Nov 19 '10 at 11:57 PM

Proclyon gravatar image

Proclyon
1.4k 10 13 32

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x72

asked: Aug 26 '10 at 04:50 PM

Seen: 2640 times

Last Updated: Aug 26 '10 at 04:50 PM