Sub topic 11
Privacy and security considerations
This chapter assumes you know how to use Handoff, Universal Clipboard, and AirDrop. It also assumes you have read the chapter on how they use Bluetooth, Wi-Fi, and iCloud. It looks at what each feature exposes, who can see it, and which settings and habits reduce the risk.
What is being protected
Continuity features are convenient because they run in the background and need little setup. That also means they broadcast your presence, share your account identity, and move data between devices without a confirmation step. Three questions cover most of the privacy analysis:
- Who can discover your device? Anyone nearby may see a name or a signal, depending on the feature and its settings.
- Who can receive your data? Only devices that prove they belong to your account, or to someone you chose to accept.
- What does the data contain, and how long does it sit around? The clipboard and Handoff payloads can hold passwords, addresses, or document text.
Handoff and Universal Clipboard: account-bound by design
Handoff and Universal Clipboard are tied to your Apple Account. Another person's iPhone cannot receive your Handoff activity or your clipboard. The devices must be signed in to the same Apple Account, and in practice they must both be nearby with Bluetooth and Wi-Fi on.
Apple's platform security documentation describes the mechanism in these terms:
- Handoff advertisements sent over Bluetooth Low Energy are encrypted with keys that only your own signed-in devices share. A passerby who captures the broadcast cannot read what you are working on.
- The advertised state is small. When the receiving device accepts the handoff, the larger content moves over an encrypted connection, either directly between the devices or through iCloud, depending on the app.
- Universal Clipboard uses the Handoff machinery. The clipboard contents travel over a direct, encrypted connection between your devices, not to a shared server for other users.
The consequence is that the exposure is mostly to yourself. The account boundary is strong, so the realistic risks are these:
- A device you forgot is still signed in to your account.
- Someone else uses an unlocked device of yours.
- Sensitive content ends up on a device you did not mean to put it on.
The clipboard is the riskiest of the three
Handoff transfers a pointer to what you are doing. Universal Clipboard transfers the actual content, and it does so without a prompt. If you copy a password, a one-time code, or a recovery key on the iPhone, it is available to paste on every nearby Mac signed in to your account.
On the Mac, any process running as you can read the clipboard. You can see this in Terminal:
pbpasteTo clear the Mac's clipboard after handling something sensitive, replace its contents with nothing:
pbcopy < /dev/nullThis clears the local pasteboard. It does not recall what already reached another device, and the other device keeps its own copy until it expires or is overwritten.
What apps can do to protect the clipboard
Well-behaved password managers mark what they copy so that clipboard history tools ignore it. A common convention on the Mac is the pasteboard type org.nspasteboard.ConcealedType. That is a community convention, not a guarantee, so a tool has to choose to respect it.
On iOS, an app can keep an item off Universal Clipboard and give it a lifetime. The following function copies a string to the clipboard so that it stays on this device and disappears after 60 seconds:
import UIKit
func copySensitive(_ value: String) {
UIPasteboard.general.setItems(
[["public.utf8-plain-text": value]],
options: [
.localOnly: true,
.expirationDate: Date().addingTimeInterval(60)
]
)
}The localOnly option stops the item from being offered to other devices. The expirationDate option removes it from the clipboard after the given time. If you build apps that handle credentials, set both.
iOS also helps on the receiving side. When an app reads the pasteboard that another app wrote, the system can show an "Allow Paste" prompt. This limits background snooping by apps, and it applies to content that arrived from your Mac too.
Handoff payloads and developers
An app that adopts Handoff (see the chapter on NSUserActivity) decides what goes into userInfo. That dictionary travels to your other devices, so treat it as shared data.
- Store identifiers, not content. A note ID such as
"42"is better than the note body. - Never put tokens, passwords, or personal data in
userInfo. The receiving app can fetch what it needs from its own authenticated storage. - Set
isEligibleForHandofftotrueonly on screens where continuing makes sense. A screen showing a bank balance may not be one of them. - If an activity must stay on the device, leave Handoff off for it, or do not make it current.
Users can also opt out entirely. If you do not want your Mac to advertise what you are doing, turn off Allow Handoff between this Mac and your iCloud devices in System Settings under General, then AirDrop & Handoff. On iPhone, the same switch is under Settings, General, AirPlay & Continuity (the label is Handoff).
AirDrop: a stranger-facing feature
AirDrop is different from the other two, because it is designed to work with people who are not you. This makes the receiving setting the most important privacy control in the whole feature set.
How AirDrop identifies people
AirDrop uses Bluetooth Low Energy to discover nearby devices, then a direct Wi-Fi link to transfer data, with the connection encrypted using TLS. When you choose Contacts Only, the sender's identity is checked rather than trusted. Each device holds an Apple-issued identity, and the receiver compares the sender's signed identity against its address book. The phone numbers and email addresses are compared as hashes rather than as plain text, so a stranger cannot read your contact details during discovery.
The three receiving settings
| Setting | Who can see your device | Privacy trade-off |
|---|---|---|
| Receiving Off | No one | Safest. You cannot receive from anyone, including your own devices. |
| Contacts Only | People whose email or phone number is in your contacts, and who are signed in to iCloud | Good default. Your own devices work, and strangers cannot offer you files. |
| Everyone for 10 Minutes | Anyone nearby | Convenient for one-off sharing. It reverts on its own after ten minutes. |
On iOS 16.2 and later, and on recent macOS releases, the open setting is limited to ten minutes and then switches back to Contacts Only. Older systems offered an "Everyone" option that stayed on until you changed it. If a device you manage still shows that older behavior, update it.
Unwanted content and the device name
Even with the open setting, you always see a preview and must tap Accept. Nothing is written to your device unseen. Two issues remain:
- Unsolicited images. In public places, people have used AirDrop's Everyone setting to send offensive pictures to strangers. The preview itself is the harm. Keeping Contacts Only prevents it. Recent iOS and macOS releases also offer a Sensitive Content Warning setting that blurs images detected as nudity before you see them. Apple states this analysis happens on the device.
- The device name. When someone is discoverable, other people may see the name you gave the device. A name like "Maria's iPhone" can reveal who you are. You can read the Mac's name from Terminal:
scutil --get ComputerNameTo change it, use System Settings, General, About, Name. Do the same on the iPhone under Settings, General, About, Name. A neutral name leaks less in a crowd.
Firewall interaction
AirDrop needs incoming connections to reach your Mac during a transfer. If the macOS firewall has Block all incoming connections enabled, AirDrop will not work. This is a security choice, not a bug. Decide which matters more on that Mac. For a laptop on public Wi-Fi, blocking is reasonable, and you can send files another way.
Account hygiene
All the protections above rest on one assumption: only you control your Apple Account and your devices. Some practices follow from that.
- Turn on two-factor authentication for the Apple Account. Without it, anyone with your password could enroll a device that Continuity then trusts.
- Review the list of devices signed in to your account in Settings on the iPhone, under your name. Remove any device you no longer own or recognize.
- Keep a passcode on the iPhone and a login password on the Mac. Handoff and Universal Clipboard only help the person holding an unlocked device.
- Sign out of your account on shared or loaner computers. A signed-in shared Mac can receive your clipboard.
- Keep systems updated, since fixes for wireless and sharing flaws arrive through OS updates.
Quick decision guide
| Situation | Suggested setting |
|---|---|
| Using a laptop in a café or on a train | AirDrop on Contacts Only or Receiving Off |
| Sending a photo to a new acquaintance | Everyone for 10 Minutes, then confirm it reverted |
| Copying passwords or codes | Use a password manager with clipboard expiry, or turn off Handoff on that Mac |
| Sharing a Mac with others | Turn off Handoff, sign out of the account when you finish |
| Building an app with Handoff | Put only identifiers in `userInfo`, set `localOnly` and expiry for sensitive clipboard use |
Common mistakes
- Assuming Universal Clipboard needs a button press. It does not, so copying is itself the act of sharing.
- Leaving AirDrop on the open setting on an older OS where it never expires.
- Using a real name as the device name.
- Forgetting a signed-in old device that is still within Bluetooth range of the new one.
- Putting content, not identifiers, into
NSUserActivity.userInfo.
Exercise
You copy a one-time login code on your iPhone, and a colleague's Mac nearby is signed in to a different Apple Account. A Mac of yours in the same room is signed in to your own account. Which device can paste the code, and which setting or app option would keep the code off your own Mac too?
Show answer
Only your own Mac can paste it, because Universal Clipboard is bound to the same Apple Account, so the colleague's Mac cannot. To keep it off your Mac as well, the app that copies the code can set localOnly (and an expirationDate) on the pasteboard item, or you can turn off Handoff on the iPhone or the Mac so Universal Clipboard is disabled.
Exercise
A stranger in a train carriage sends you an unwanted image through AirDrop. Name the setting that most likely allowed it, the setting that prevents it, and one more feature that reduces the harm if it happens anyway.
Show answer
The receiving setting was probably Everyone (or Everyone for 10 Minutes). Contacts Only, or Receiving Off, prevents it. The Sensitive Content Warning blurs detected sensitive images before you see them, which reduces the harm.