Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicCode

IMG_4055-portrait IMG_4056-portrait IMG_4060-portrait IMG_4059-portrait

MagicCode is an app that mocks parts of the Apple Watch pairing process using Apple's private VisualPairing framework. This project builds on top of https://github.com/insidegui/VisualPairingHack and is part of the artifacts for Watch Your Back: Smartwatch Impersonation Attacks in Apple's iOS Ecosystem to be published at NDSS 2027.

Prerequisites

To build and test the app for yourself, you need:

  • an Apple account
  • a computer running macOS with Xcode installed
  • an iPhone running iOS 15.6 or later

Build

Building using Xcode should be straightforward. Import the project into Xcode and connect your iPhone. In the project settings under signing and capabilities, update the team to your personal team and/or change the app's bundle identifier if prompted. Then run the app on your target iPhone.

If prompted, follow Xcode instructions to set up a personal development team and/or change the app's bundle identifier.

Note

While the app will launch in the iOS Simulator, scanning actual codes only works on real iPhones.

Pre-built binaries

If you have an iPhone running iOS 15.6 or later with TrollStore or TrollStore Lite installed, you can skip the Xcode setup and directly install the magiccode.tipa archive in build.

Test

To test the scanning feature, you may want to run the app on two phones simultaneously or try scanning one of the sample videos. Make sure your display is sufficiently bright when scanning the code. You should see a popup showing Apple Watch version details and Bluetooth pairing information as show in the screenshots above.

If you have a real Apple Watch at hand that you don't mind resetting, you can also scan the code it displays during pairing.

About

An iOS app to generate and scan Magic Codes used during Apple Watch Pairing

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages