[Feature] Add option to create unique keychain groups

Aperta
#575 5 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

  • #611 di @devnoname120 — chiusa senza merge

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ios, swift
Ambito
security

Direzione di ricerca

The request concerns Feather’s app-signing entitlements and keychain access groups, but it names no source files, tests, or entry points. First inspect the signing flow and how provisioning-profile entitlements are applied; the requested outcome is a deterministic keychain group derived from each app’s bundle ID. Verify that it remains stable across updates and isolates apps, while respecting the provisioning profile’s allowed groups.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Request

Currently all apps sideloaded with a given .mobileprovision use the same keychain group. This is a major security risk because any sideloaded app can snoop on other apps keychain entries (instagram tokens, telegram tokens, passwords for some apps, etc.).

This means that any malicious app can defeat iOS keychain sandboxing entirely instead of only being able to access its own keychain entries. This also causes conflicts when multiple apps use the same names for keychain entries, e.g. for cloned apps.

Would it be possible to add a feature to Feather so that it can automatically use unique keychain groups?

Ideally, the keychain group name would be deterministically derived from the bundle id of the app to make sure that installing new versions of said app won’t lose the keychain entries (that would be pretty annoying).

Thanks!


In case it helps, I found a tutorial on Telegram that explains how to do that:

Tutorial: Creating Unique Keychain Groups for Better App Duplication

This guide helps you set up unique keychain groups for each app, ensuring better app duplication. To follow this, you need basic provisioning/signing knowledge and a certificate that includes a wildcard keychain group (most certificates already have this).

Step 1: Extract Entitlements from Your Provisioning Profile

  1. Open your mobile provisioning file (.mobileprovision) in a text editor.
  2. Locate the entitlements section in the file and copy its contents.

Step 2: Convert Entitlements to XML Format

  1. Paste the copied entitlements into ChatGPT with the prompt: “Convert the above entitlements to XML text.”
  2. Copy the XML output provided by ChatGPT.

Step 3: Create a Base Entitlements File

  1. Save the XML text as a new file named Choco.xml.
  2. This file will act as your base entitlements file.

Step 4: Customize the Entitlements for Each App

  1. For every app you sign, duplicate the Choco.xml file and rename it (e.g., AppName.xml).
  2. Open the new file in a text editor.

Step 5: Modify the Keychain Group

  1. Find the keychain-access-groups key inside the file.
  2. Replace the value:

From: $YourTeamId.*

To: $YourTeamId.$YourAppBundleId

  • $YourTeamId is your Apple Developer Team ID.
  • $YourAppBundleId is the bundle identifier for the specific app you’re signing.
  1. Save the changes.

Step 6: Sign the App Using the Custom Entitlements

  1. Use eSign (or your preferred signing tool) to sign the app.
  2. During the signing process:
  • Click on the “Select Entitlements File” option.
  • Select the custom entitlements file you created for the app.

Step 7: Install and Test

  1. Install the signed app on your device.
  2. The app will now have a unique keychain group, ensuring smooth duplication without conflicts.

Tips

  • Keep the base Choco.xml file unchanged for easy duplication.
  • Always double-check the modified keychain group value for accuracy.

This method ensures each duplicated app functions independently with unique keychain groups.

Request Agreement
  • I have read the requirements for opening an issue above
Contributor Checks
Lingua principale
Swift
Stelle
4.8k
Fork
430
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di claration/feather

Tutte le issue di claration/feather

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.