Saturday, November 1, 2008

Detection

If you've been following my thread of postings you'll remember that a cracked application needs the following to occur:
  1. Someone buys your application
  2. They decrypt your application binary
  3. They redistribute it
Once the application is decrypted and cracked, the purchaser cannot ask Apple for a refund. This would eliminate the purchaser from receiving free upgrades that you painstakingly put together on a weekly basis.

In other words: once your application is compromised you can expect, right as rain, that any future release will also be compromised.

Enough With Yo Jibba Jabba.. Gimme the Code

Okay, as I mentioned before there are a few approaches to detecting a compromise at runtime. If you downloaded your cracked IPA from somewhere like RapidShare then you'll notice that the timestamps of Info.plist and your application binary are different.

Today, we'll look at Info.plist modifications. There are a few easy checks that you can perform at runtime to see if your Info.plist has been modified after you've built a distribution release:
  1. Check the size of Info.plist. You know the size of the file after it's been built so hardcode a check into your application, rebuild for distribution, and push to the App Store.
  2. Check if Info.plist is plaintext XML. The distribution copy is converted to a binary .plist and most IPA cracks convert this file back to either UTF-8 or ASCII. Again, do this check in your application before pushing it to the App Store.
  3. Why the hell are they modifying Info.plist anyway? Well... the cracker added the key-pair {SignerIdentity, Apple iPhone OS Application Signing} to this file. Check for this modification at runtime -- it shouldn't be there!
The first two points are simple and are left as an exercise for you intrepid and enterprising App Store developers.

The third and last point is what I'll expand on below.

{SignerIdentity, Apple iPhone OS Application Signing}

Well what the hell is that doing in your Info.plist? It's not part of the XCode template and it's definitely not something that you put in there.

This key-value pair basically tells the application loader that the application is decrypted and can be trusted. Consider it to be a skeleton key that lets you run any application on the iPhone.

I'm not sure of the implementation details of the application loader so don't bother asking me.

The one thing for certain is that THIS KEY-VALUE PAIR SHOULD NOT BE IN ANY APP STORE APPLICATION. If you do find it during runtime then you know your application has been compromised.

Below is some rudimentary code that checks if this key-value pair is present in your application bundle's Info.plist.

NSBundle *bundle = [NSBundle mainBundle];
NSDictionary *info = [bundle infoDictionary];
if ([info objectForKey: @"SignerIdentity"] != nil)
{
/* do something */
}
Now you're going to say, how come you're not checking for the value of the key-value pair? Well, I say, you don't need to. If you didn't put that key-value pair into your Info.plist then you definitely didn't put that key in.

Well, you say, what do I do now?

So, I say, wait for my next posting on strategies that App Store developers can employ if they've detected that their application bundle has been compromised.

85 comments:

  1. I for one like this idea and will immediately begin utilizing it....I haven't done any searching but I do intend to see if my apps have been cracked.

    THANK YOU.

    ReplyDelete
  2. Good information.

    Thanks

    ReplyDelete
  3. I packaged these and a couple more checks into a handy package named AntiCrack.

    Real life has shown that it is tedious having to find out the byte size and number of lines in info.plist as they change depending on OS/SDK version and build settings.

    Contact me if you are interested: oliver@drobnik.com

    regards
    Oliver Drobnik

    ReplyDelete
  4. Thanks a bunch for cool post, I'll implement it asap.
    Regards

    ReplyDelete
  5. Does the plist file get modified for apps that are free? What about, for example, an application that is free on the App Store, but requires server billing authentication? Will the cracked iPhone still modify the plist file?

    ReplyDelete
  6. IM is already there and with jabber really well done, why not define several additional personal information meta data and assign external urls/services what not to it, so you can browse your buddys and show all the information lotro gold from several different sources if you like (maybe even in a nice context based Mabinogi Gold plasmoid view). You could even get the relevant information Maple story mesos from other services (local and private ones) hidden from the IM service, but only mapped by the client to your addressbook.

    ReplyDelete
  7. Cool heart, and shot on the mercy Dragonica Gold of, Ling Po crazy way to EVE Isk kill, he began to love the taste of blood, like to see these cowardly FFXI GIL monsters in front of him like the poor, like the thrill of the muscles across the Bing Ren ... ...

    He entered the 49th floor, the Lineage 2 Adena iron front of the room was familiar. The middle of the Last Chaos Gold room there is an old man sitting there, is close their eyes meditatively. It Knight Online Gold seemed that the advent of Ivy Ling Po do not know.

    Ivy Ling Po stood there quietly, he Flyff Penya has felt the old man out of a strong body radiates a gas, he stared at the old man: "When I first arrived someone asked EQ2 Gold me to defeat the forty-nine-story monster, now left This last layer of the, no one thought was a powerful human masters, could I then, he 2Moons Dil takes a fight? "Ivy Ling Po Zi Cun," Although I experienced 48 times the fighting, but also learn many new moves can be With my present strength, but also far behind him, it appears was a World War II had.

    ReplyDelete
  8. cell phonesCheap cell phonesDiscount Handbags On Sale-Beautycasa Online : - Hermes Handbags Miu Miu Handbags Fendi Handbags Prada Handbags Balenciaga Handbags Chloe Handbags Marc Jacobs Handbags Jimmy Choo Handbags Mulberry Luxury Handbags Christian Dior Handbags Hermes Wallet Gucci Handbags FREE GUCCI WALLET Difference the amount Designer Handbags Chanel Handbags Burberry Handbags Louis Vuitton Wallet ecommerce, open source, shop, online shoppingyo

    ReplyDelete
  9. NewStreetFashion
    Ed Hardy
    stylish design
    Ed Hardy Wholesale
    fashion excellent quality
    wholesale Ed Hardy
    ED Hardy clothing bring you a super surprise!
    ed hardy wholesale clothing
    The quality is so good
    christian audigier

    ReplyDelete
  10. These articles are fantastic; the information you show us is interesting for everybody and is really good written. It’s just great!! Do you want to know something more? Read it...: Great Flowers delivery service through flower2world.

    ReplyDelete
  11. Hey great stuff, thank you for sharing this useful information and i will let know my friends as well.
    Send Flowers to Japan

    ReplyDelete
  12. I am a big fan of Harleys so I would love some
    Harley Davidson Handlebars. Manhattan is rather expensive, but Harlem has some
    New York Cheap Hotels.
    silver jewelry is always very popular with women.
    health insurance washington where Washington state and washington DC residents can get insurance.
    Paris Cheap Hotelss for the lowest priced and best valued hotels in Paris. If you like traveling to Montreal, here are some Montreal Cheap Hotels or if you enjoy getting
    Free Samples.

    ReplyDelete
  13. But that's not all bad news for the emperor. Last night he received the chi StraightenersLegion of Honor at the Elysee Palace in Paris.

    Urban Outfittersbest straighteners is expanding its empire by creating a hipster salon in your site. For more than 50 brands and 1000 colors. Queen of thechi flat irons West is about to be more colorful.

    She knows how to do,UGG Coquette Slipper Boots what to do organizers Night Out fashion in Los Angeles to see if single purchase Wild Ride - literally. Big wheels on Rodeo Drive, and all those who can do will

    Spin. Fun!

    ReplyDelete
  14. Real life has shown that Chaussures air max 90 it is tedious having to find out the byte size and number of lines in info.plist as they change depending on OS/SDK version and build settings.

    ReplyDelete
  15. Exactly what i was looking for.i was looking for this informations in various sites but i was not satisfied at all.after reaching this site i found my answers..
    refinance mortgage

    ReplyDelete
  16. Hi thank you very much for this article. I have a question. How do I detect to jailbreak on iphone4. I looking for detect jail break and I find Apple dropped MDM api :( . Has it different way for jailbreak detection

    ReplyDelete
  17. thanks for the information here. i haven't put much thought into whether my apps have been cracked. thank you.

    Paul Horan
    Galway College
    The First Years Wave Stroller

    ReplyDelete
  18. FNL: special Nike Everyday Free color edition of finish line
    B: back, an additional edition with a color UGG Bottes Kid which did not intend to release, but came out at last, sometimes Cheap Supra Bullet Shoes, it is marked with B. Sample: as the word goes, it is a sample of certain pair of Nike shoes Asics Mini Cooper Shoes and reference as well. And only for internal use, to some extent, it is LE.

    ReplyDelete
  19. Stupid blog. Hey buddy, buy my brown p.o.o too. Keep blogging and I'll sell you buy my p.o.o choo train. I am king in Africa send me 10 dollar I send u Kim Jong il in box.

    ReplyDelete
  20. Any sacks were definitely a good adequately inviting solution - beats headphones with grained synthetic leather weekenders together with wash cloth monogram gym floor sacks that will graphic ebony checkered luggage together with russet hued tote handbags the fact that glistened such as the diligently elderly base. Truly, if ever the clearly show have all super star it had become in reality any caps, monster beats an awesome assemblage for feathered cloches the fact that regarded a good deal more cutting edge ın comparison to the dresses.

    ReplyDelete
  21. lol @ the sheer amount of goddam spam in this article's comments...

    ReplyDelete
  22. I found the perfect place for my needs. Contains wonderful and useful messages. I have read most of them and has a lot of them. harga cmp penurun berat badan
    harga cmp klorofil pelangsing
    cmp diet

    ReplyDelete
  23. Thanks for sharing this quality information with us. I really enjoyed reading.
    Signature:
    i like play games friv4 online and play games2girls 2 Download baixar facebook

    ReplyDelete
  24. Hello, guys. Thanks for your such nice post. Here you may want to know more about Windows password recovery. Windows Password Key is a much powerful tool for Windows lost or forgotten password recovery. More details about this tool are below.
    http://www.lostwindowspassword.com

    ReplyDelete
  25. Cool site thanks for Removal Companies in Canary Wharf use this strategies I will definitely use them.

    ReplyDelete
  26. Thank you for your time on commenting! I love all your comments and really appreciate your thoughts.Thanks
    Kızılay Hayat Kadını
    Adana Hayat Kadını
    travesti bulma sitesi
    Antalya Hayat Kadını
    hd pornaları indir

    ReplyDelete
  27. Thanks.

    http://www.straforevi.com/
    http://www.straforevi.com/urunler/maket-pasta/
    http://www.straforevi.com/urunler/maket-pasta/maket-pasta-macaron-strafor-kule/
    http://www.straforevi.com/urunler/maket-pasta/strafor-pasta-altligi/
    http://www.straforevi.com/urunler/maket-pasta/pasta-altligi/

    ReplyDelete
  28. Great Sharing also visit Winrar 32 filehippo website for All Latest and New Softwares.

    ReplyDelete
  29. thanks for sharing.. and very useful
    your website came up, it looks good.
    I’ve bookmarked it in my google bookmarks.

    filepuma

    ReplyDelete
  30. The information and the detail were just perfect. I think that your perspective is deep, it’s just well thought out and really fantastic to see someone who knows how to put these thoughts down so well.
    sendal online
    sandal model terbaru

    ReplyDelete
  31. I’m looking produk sandal kulit asli buatan handmade
    towards that which you ought to share. Pleased to see you blogging once again.
    memilih sandal berkualitas

    ReplyDelete
  32. Son zamanların en popüler sakarya travesti resim, haber ve video paylaşım platformu.

    ReplyDelete
  33. This comment has been removed by the author.

    ReplyDelete
  34. Excellent website, excellent post as well!
    I genuinely love how it is simple on my eyes and the data
    are well written.I’m wondering how I could be notified if a new post has been made.
    I’ve subscribed to your RSS which should do the trick! maket pasta | söve fiyatları | strafor pasta altlığı | beze kulesi | strafor nedir |maket pasta strafor fiyatları | strafor objeler | strafor | strafor top | strafor sahne dekorları | pasta altlığı |

    ReplyDelete
  35. I love your blog on detection, it reminds me of a page i had visited a some time back. You have a very nice way of passing information, and your writing skills and great. You can make use of Blog Content Writing Service, and keep on sharing more great and nice posts. Check the link and you will find the most professional experts ready to help.

    ReplyDelete
  36. istanbul travestileri , marjinal arkadaşlığını bu sitede yapmaktadır. En güncel travesti sitesi marjinal partner.

    ReplyDelete
  37. istanbul travestileri , marjinal arkadaşlığını bu sitede yapmaktadır. En güncel travesti sitesi marjinal partner.

    ReplyDelete
  38. I have been looking for sign up Free samples. It is really good to buy free from online.

    ReplyDelete
  39. en yeni teknolojileri kullanan Doğa Temizlik,
    Ankara Temizlik Şirketleri içerisinde 2015 yılından beri faaliyet göstermektedir.

    ReplyDelete
  40. We are the Dubai movers company that has years of experienced in Movers in Dubai Abu Dhabi and sharjah.

    ReplyDelete
  41. MOVERS PACKERS DUBAI is the Best moving company Dubai and all over UAE. We have years of experience in this industry.

    ReplyDelete
  42. PAINTING SERVICE UAE is the leading and professional company of Painting services in Dubai. We have over 5 years of experience in painting services, wall painting services, villa painting services, house painting services, office painting services, apartment painting services, and many others. We have thousands of painters Dubai teams who are very trained and knowledgeable about any painting services. We give a free estimate as to how much will it cost to get the job done at fair prices.
    Painting services Dubai
    Painter in Dubai

    ReplyDelete


  43. Whaaaaaat a content! So impressive! thanku!
    Check & select Today Smart Offers Mobile Jammer on Rent with free shipping. Mobile Network Jammer use to block all networks like CDMA, GSM, 2G, 3G, 4G, 5G, WiFi, Bluetooth, and other media. For more information: (9999-33-2499, 9999-33-2099).





    ReplyDelete