An iPhone anti-theft shortcut built inside the native Shortcuts app can automatically photograph whoever picks up your phone, then text that photo along with your live GPS location to a trusted contact. No third-party app required. It runs on iOS 14 and every version since, and it takes under ten minutes to configure.
This automation went viral on X in early 2024, pulling 28,000 likes and 3.5 million views. People were stunned that something this capable had been sitting inside iOS all along. If your phone is stolen, lost, or even grabbed off a cafe table while you step away, this shortcut acts as a silent tripwire.
Below you get the complete setup guide, how to test it without embarrassing yourself, and four additional security-focused shortcuts worth building alongside it.
What the iPhone Anti-Theft Shortcut Actually Does
The shortcut is a Personal Automation inside the Shortcuts app. Automations are different from regular shortcuts: they run on triggers without you manually tapping anything. This one uses a specific incoming SMS as its trigger.
When your trusted contact (or you from another device) sends a pre-agreed text to your iPhone, the automation fires in sequence: it switches the phone to Low Power Mode to conserve battery, captures a photo using the front-facing camera, and immediately sends that photo plus your real-time location back via iMessage or SMS. The whole sequence completes in a few seconds and happens silently, with no notification visible on the stolen device if the screen is off.
The genius of using SMS as a trigger is reliability. SMS works even when your phone has limited data, when the thief has turned off Wi-Fi, or when the device is in a bag. As long as cell service exists and the phone has battery, the shortcut fires.
Complete Setup Guide: Building the Anti-Theft Shortcut
Step 1: Enable Shortcuts Automations
Open the Shortcuts app on your iPhone. If you have never used it before, find it in your App Library. Tap the Automation tab at the bottom of the screen. If you see a prompt asking whether to allow automations to run without confirmation, choose to allow them. That setting matters: if iOS asks you to confirm each time, the shortcut will not fire automatically when your phone is stolen.
Step 2: Create a New Personal Automation
Tap the + button in the top-right corner, then select New Automation. On the trigger screen, scroll down to the Messaging section and choose Message. Set the trigger to fire when a message is received from a specific contact, or from any sender containing a specific phrase. Using a phrase trigger is more flexible: pick something unique and unlikely to appear in normal texts, such as “WHEREAREYA9” or a random combination you will remember.
Set the filter to match the message Contains your chosen phrase. Leave the sender field open unless you want to restrict it to one contact only. Tap Next.
Step 3: Add the Actions
Now you build the action chain. Tap Add Action and search for each of the following, adding them in order:
Action 1: Set Low Power Mode. Search for “Low Power Mode” and add the action. Set it to Turn On. This preserves battery in case the phone was already running low.
Action 2: Take Photo. Search for “Take Photo” and add it. In the action settings, set the camera to Front. Disable the option to show a camera preview if it appears, and make sure the number of photos is set to 1. Some iOS versions offer a “Show Camera Preview” toggle that you should turn off.
Action 3: Send Message. Search for “Send Message” and add it. In the message body, tap the variable picker (the icon that looks like a box with an x) and select Photo from the previous action. Then add location context text. Tap the variable picker again and search for Current Location to embed your live coordinates. Set the recipient to your trusted contact’s phone number or iMessage address.
Tap Next, then review the summary screen. The critical setting: make sure Ask Before Running is toggled off. If this is on, iOS will show a banner on the stolen phone asking whether to run the shortcut, which gives the thief a chance to dismiss it.
Step 4: Save and Name the Automation
Tap Done. Your automation now appears in the Automation tab. The name will reflect the trigger phrase. You can rename it to something neutral if you prefer, though the name is only visible in the Shortcuts app itself.
For more detail on how automations handle message triggers, the official Apple Shortcuts documentation covers every action parameter and variable type available.
How to Test the Shortcut Without Triggering Panic
Testing is the step most people skip, and skipping it means discovering a misconfiguration after the phone is already gone. Do this before you need it.
Have a second phone, a friend, or a spare SIM send your trigger phrase to your iPhone. Watch what happens. You should receive an iMessage or SMS on your trusted contact’s device containing a selfie photo and a location pin. If the message arrives but has no photo, revisit Step 3 and confirm the Photo variable is correctly linked in the Send Message action. If nothing happens at all, check that “Ask Before Running” is disabled.
One edge case worth knowing: if your iPhone is locked and the screen is dark, iOS may queue the automation rather than firing it immediately on some older versions. On iOS 16 and later, personal automations that require no user confirmation run reliably from a locked screen. If you are on an older build, updating iOS is the cleanest fix.
Also verify the photo is usable. Front camera photos taken programmatically capture at full resolution in decent lighting but can be dark in low-light conditions. That is a hardware limitation, not a shortcut issue. The location data is always accurate regardless of lighting.
4 Additional Security Shortcuts Worth Building
Find My Quick-Enable Check
Find My is only useful if it was enabled before the theft. Build an automation that runs daily at midnight to confirm Find My is on: trigger it on a time schedule, add a “Get State of Find My” check, and if it returns off, send yourself a notification. Simple, silent, and it prevents the scenario where a software glitch or beta update quietly disables Find My without your knowledge.
Emergency Lockdown Trigger
iOS has a Lockdown Mode buried under Settings, then Privacy and Security, then Lockdown Mode. This mode is designed for high-risk users and activating it instantly restricts most incoming connections and message previews. Build a shortcut that opens that settings screen and add it to your home screen as a one-tap action. If you ever sense you are being targeted, you can activate lockdown before handing over or losing the device.
Stolen Device Wi-Fi Change Alert
Build an automation triggered by a Wi-Fi network change. When your phone disconnects from your home or most-used networks and connects to an unknown one, send yourself an email with the current location and timestamp. A thief who knows iPhones will often try to connect to open Wi-Fi to use the device. This catches that moment.
This pairs well with understanding how fast charging and battery health interact, since a stolen phone being charged aggressively by an unknown owner can degrade the battery you may eventually recover.
Emergency SOS Information Card
Create a shortcut that generates a plain-text card containing your name, blood type, emergency contacts, and any critical medical information, then saves it as an image to your lock screen wallpaper. This is separate from the built-in Medical ID but visible without unlocking. If you are incapacitated and someone finds your phone, they can read your emergency details immediately. Add it to the home screen for quick access.
The Emergency SOS feature built into iOS (hold side button plus volume) already calls emergency services and shares your location with your emergency contacts. These shortcuts extend that baseline rather than duplicate it.
iPhone Security Practices That Actually Make a Difference
Shortcuts amplify your security posture, but they do not replace the fundamentals. A few things that make a measurable difference:
Set a six-digit PIN minimum, not a four-digit one. Four-digit PINs have 10,000 possible combinations; six-digit PINs have one million. If you care about security and want to schedule a text message on iPhone as part of a broader automation workflow, you are already spending time in Shortcuts, so the habit of building protective automations comes naturally.
Enable Stolen Device Protection, available from iOS 17.3 onward under Settings, then Face ID and Passcode. This feature requires biometric authentication before allowing changes to your Apple ID password or turning off Find My when the phone is away from familiar locations. It directly neutralizes the most common attack: a thief who watched you enter your PIN, then uses that PIN to lock you out of your own Apple account.
Turn off message and notification previews on the lock screen. Go to Settings, then Notifications, then Show Previews, then Never When Locked. This prevents the anti-theft shortcut’s trigger phrase from being visible on the lock screen, which would tip off a technically aware thief to delete the Shortcuts app before the automation fires.
If you are considering a hardware upgrade, the iPhone 17 vs 17 Pro differences include Secure Enclave improvements in the Pro models that protect biometric data even if the device is physically disassembled.
Frequently Asked Questions
Does the iPhone anti-theft shortcut work when the phone is locked?
Yes, on iOS 16 and later. Personal automations set to run without confirmation will execute from a locked screen when triggered by an incoming SMS. The automation fires silently, and no confirmation banner appears if “Ask Before Running” was disabled during setup. On iOS 15 and earlier, results can vary depending on the device state.
Can a thief delete the shortcut to stop it from running?
Only if they unlock the phone first. A thief who does not know your PIN or cannot bypass Face ID cannot access the Shortcuts app to delete the automation. If they do unlock the phone, your larger problem is full account access, which is why Stolen Device Protection (iOS 17.3+) matters as the first line of defense.
Will the iPhone anti-theft shortcut drain my battery faster?
The automation uses negligible battery when idle. It only runs when the trigger SMS arrives. The Low Power Mode action is included in the sequence precisely to extend battery life the moment the shortcut activates, giving your phone more time to remain locatable via Find My after it has been stolen.
Does this shortcut work on older iPhones running iOS 14 or 15?
The core actions, SMS trigger, Take Photo, and Send Message, are available from iOS 14 onward. The reliability of automations running from a locked screen improved significantly in iOS 16. If you are on iOS 14 or 15, the shortcut may occasionally show a confirmation banner before firing, which reduces its effectiveness. Updating to iOS 17 or later is the recommended path for full functionality.







