How do third party iOS AppStores (tongbu,sibche, etc.) sign & install Apps?
Asked Answered
C

1

7

I've recently evidenced a set of third party illegal appstores that re-distibute iOS apps. These online stores are able to install free Appstore apps (i.e. Facebook, Google Map, etc.) or their own apps on non-jailbroken devices. Regarding the fact that Apple forbids third-party stores, I just want to know how these apps are signed to be installed on Apple devices? Does these Apps first jailbreak the device?

Does apple allow changing/updating the Signature of an app?

Update: It seems that these Apps are installed on the device by a certificate generated by an enterprise developer license, so it can be installed on any device without any limitations. But I cannot understand how these AppStores install those Apps that are available on Apple AppStore, like Facebook !!!

Update 2: Is it possible to get the .ipa file of an application hosted on AppStore? i.e. Facebook? If possible, can it be resigned?

Update 3: These are the certificates installed. Obviously one of them is fake, unverified but at the same time can install apps without the need to jailbreak. The profile to be installed The certificate & challenge

Update 4 I think the Q/A at this link on SO does not reply to my Q as well. If the tongbu signs the apps using an enterprise license, is it really possible to get an enterprise license for each app?

Confederacy answered 11/1, 2014 at 6:33 Comment(1)
discussions.apple.com/thread/5678335?tstart=0Confederacy
A
5

The apps are most likely re-signed with the developers (person creating these so called "cracked apps" own distribution certificate. They will purchase the real app, extract the IPA file, and then re-sign it. These legally signed apps are then uploaded to a website and then downloaded by the user or distributed by some other means. iOS treats these like regular signed apps and doesn't check with the App Store because they were never uploaded. This allows downloading of cracked apps on a non-jailbroken iDevice. Jailbreaking eliminates the need for code-signing. The distribution certificate is normally used for companies wanting to distribute an app designed specifically for their working environment with no need to upload to the App Store. Distributing and using a developer's certificate in this way of making cracked apps of course violates Apple's policies and those certificates will be voided as soon as Apple finds out but that can take a very long time.

EDIT: There seems to be some confusion as to how App Store apps are being installed for free on devices. This process requires jailbreaking but only to create the ipa, installing it is done automatically on the device by iOS. Whoever is uploading the apps goes through this process:

  1. They first download the target app from the app store and install it on their device.
  2. They then copy over the .app from their iDevice to their computer through various file explorers or other means.
  3. They create a folder called Payload and put the .app inside.
  4. They zip up the Payload folder
  5. They rename the zipped file with a .ipa extension.
  6. This .ipa file is then resigned with a distribution certificate through iResign or terminal and then uploaded to the internet.
  7. When a user downloads a .ipa file, iOS automatically installs it if it was signed correctly.

I hope this clears up any confusion. Also, if they are uploading their own app they made in xcode, they can simply use xcode to do it by archiving it first (Product>Archive) with their distribution certificate and Ad-hoc provisioning profile selected to code-sign then opening organizer, going to archives and clicking distribute. Finally they choose Save for enterprise or Ad-Hoc Deployment which automatically makes an ipa ready for upload.

Ataghan answered 11/1, 2014 at 10:12 Comment(6)
Thanks. But how this third-party App is installed in the first step? It does not exist on AppStore and is installed through their website. How does the certificate of this App is installed then?Confederacy
item 6: "This .ipa file is then resigned with a distribution certificate through ..." ---> How do they create different certificates for signing their Apps? Using an enterprise license? Or something else?Confederacy
An enterprise license yes.Ataghan
So, this means that for any app, an enterprise license (299$) should be enrolled? Am I right?Confederacy
Yes, unless they have figured out how to code sign it some other way.Ataghan
But as you know, getting an enterprise license is not an easy job. It needs the apple to approve the company as a valid one (its DUNS number, its board members, etc. ) to issue an enterprise license. Having said that, do you think it is possible to enroll an enterprise license for any issued App?Confederacy

© 2022 - 2024 — McMap. All rights reserved.