Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

EDIT: Here is some more background. I am basically trying to reproduce this the method outlined here I have been able to hit everything up until the paragraph regarding the decrypting of the data file in the raw folder. That site pretty much outlines everything.

The file was encrypted using a random number via the java random number generator. The random number was generated via a seed (located in the manifest file). I tracked down the seed and built a random number generator. I fed it the seed which supplied me with the key for the encrypted file in the raw folder.

Now I am left with they key to an encrypted file, however I am unfamiliar with decrypting a file in this fashion. That is my question. In what way would one go about decrypting a file that was encrypted in this manner.

Is it done with a software tool, or can it be done via the linux terminal?

@Gilles

Unfortunately I am not that advanced in computer forensics (but you can tell I'm attempting to learn)

Here is the output of hexdump from the terminal.

0000000 5194 1748 f896 bd6c fdf9 0d72 617e 7714
0000010 2221 4b77 a96b d327 1e2a 67d7 6e91 1720
0000020

Here is what shows up when I open the file with a text editor.

QHølœùýr
~aw!"wKk©'Ó*×gn 
share|improve this question

migrated from crypto.stackexchange.com Mar 20 '12 at 22:06

This question came from our site for software developers, mathematicians and others interested in cryptography.

3  
Your link describes how to generate the key (in broad terms), but it doesn't say what the encryption algorithm is. Without this crucial piece of information, we can't tell you how to decrypt it. –  Gilles Mar 20 '12 at 21:51
1  
Note that due to a bug in Android, it used to be the case that the seed given to the RNG was the only source of entropy. This has been fixed in later versions of Anroid. So if this code is using the Java API, it might be the case that it generated undecryptable cipher text on newer Android versions. –  owlstead Mar 20 '12 at 23:29
    
@owlstead The min sdk is 3 and the target sdk is version 8 for this application. –  KDEx Mar 21 '12 at 13:51

1 Answer 1

up vote 2 down vote accepted

This should answer your question and how to reverse engineer it:

http://resources.infosecinstitute.com/rootsmart-android-malware/

Basically; it was encrypted with AES 128 and points to a Chinese URL (go.docrui.com).

share|improve this answer
    
That's a really great analysis there. Thanks a lot for that direction. –  KDEx Mar 21 '12 at 15:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.