Can Border Agents Search Your Electronic Devices? It’s Complicated.

This post was updated on January 9, 2018. 

We’ve been getting a lot of questions about when border agents can legally conduct searches of travelers’ electronic devices at international airports and other ports of entry. Unfortunately, the answer isn’t simple.

Read this post in Spanish or in Arabic.

The government has long claimed that Fourth Amendment protections prohibiting warrantless searches don’t apply at the border. The ACLU takes issue with this position generally, especially when it comes to electronic devices like smartphones and laptops. Our smartphones store detailed accounts of our conversations, professional lives, whereabouts, and web-browsing habits. They paint a far more detailed picture of our private lives than, say, a piece of luggage.

The Supreme Court recognized this reality when it ruled in 2014 that the Constitution requires the police to obtain a warrant to search the smartphone of someone under arrest. As the ACLU has argued in various court filings, there’s no reason the Constitution’s safeguards against unwarranted searches shouldn’t also apply when we travel internationally given the ubiquity of these devices, and their ever-growing capacity to track the minutiae of our private lives.

Unfortunately, the government doesn’t agree, and the law on the matter is far from settled. Because of the high-stakes implications of these kinds of searches, and amidst evidence suggesting they’re on the rise, it’s important to understand the landscape so that you can make decisions that are right for you ahead of your travels.

This resource offers a basic snapshot of possible scenarios relating specifically to electronic device searches. For a fuller picture of the many other civil liberties issues that often arise at the border, click here. And if you think your constitutional rights have been violated, tell us what happened by filling out this form

What happens if border agents demand I turn over my device?

The government claims the authority to search all electronic devices at the border, no matter your legal status in the country or whether they have any reason to suspect that you’ve committed a crime. You can state that you don’t consent to such a search, but unfortunately this likely won’t prevent CBP from taking your phone.

If you’ve given Customs and Border Protection agents the password to your device (or if you don’t have one), they might conduct what’s often called a “cursory search” on the spot. They might also download the full contents of your device and save a copy of your data. According to CBP policy from 2009, they are not required to return your device before you leave the airport or other port of entry, and they might choose to send it off for a more thorough “forensic” search. Barring “extenuating circumstances,” they claim the authority to hold onto your device for five days — though “extenuating circumstances” is an undefined term in this context, and this period can be extended by seven-day increments. We’ve received reports of phones being held for weeks or even months.

As a result of this policy, even the most universally recognized private information — like communications with your lawyers — are insufficiently protected at the border. If you possess information that is protected by attorney-client privilege, you should tell the CBP agent you’re interacting with. Unfortunately, all he or she will need to do under agency policy is “seek advice” from a superior prior to the search.

Journalists carrying sensitive information about their work or sources are also insufficiently protected. The CBP directive states that “work related information carried by journalists shall be handled in accordance with any applicable federal law and CBP policy” — but it’s unclear what this means. Journalists who feel their rights have been violated at the border should let us know, and those who have upcoming travel should consult with their organizations’ general counsel offices or press associations.

If you leave the airport or other border checkpoint without your device, make sure you get a receipt, which should include information about your device and contact information allowing you to follow up. If, after the forensic search is conducted, there is no probable cause to believe the device contains evidence of a crime, the government says it will destroy any information it copied within 21 days. Yet there’s a caveat here, too. CBP might retain the notes it took during the search of your device or any questioning while you were at the border.

Do I have to enter a password to unlock my device?

Your legal status in the country may inform what you decide to do if you’re asked for a password to unlock your device.

If you’re a citizen, you can’t be denied entry into the country if you refuse to comply with a request to unlock your device or to provide a password. But you might be detained for longer or have your device seized and not returned to you for weeks or months. The same should be true for those who have previously been admitted to the United States as lawful permanent residents and have maintained their status — their green cards can’t be revoked without a hearing before an immigration judge. If you are not a citizen and are concerned about having your devices searched, you should consult with an immigration lawyer about your particular circumstances before traveling.

Visa holders and tourists from visa waiver countries, however, run the risk of being denied entry if they refuse to provide a password, and they should consider that risk before deciding how to proceed. The Department of Homeland Security is presently considering instituting a policy requiring visitors from certain countries to provide social media passwords in order to secure a visa to travel to the U.S. (The ACLU opposes the proposal.)

Whether you’re a citizen or not, though, we always recommend that you enter the password yourself rather than divulging it to a CBP agent. They still might demand that you share it, but it’s a precaution worth trying to take. If you do hand over your password, it’s likely to end up in a government database, so change it as soon as you have the chance and make sure you no longer use that password for any other account.

What can I do to prepare?

Here are a few precautions you can take in preparation for your trip to ensure things go as smoothly as possible:

  • Travel with as little data and as few devices as possible. The less you’re carrying, the less there is to search. Consider using a travel-only smartphone or laptop that doesn’t contain private or sensitive information. You could also ship your devices to yourself in advance. (Be aware that CBP claims the authority to search international packages so it is best to encrypt any devices that you ship.) Keep in mind that a forensic search of your device will unearth deleted items, metadata, and other files.
  • Encrypt devices with strong and unique passwords and shut them down when crossing the border. A good resource on how to do so can be found here.
  • Store sensitive data in a secure cloud-storage account. Disable any apps that connect to cloud-based accounts where you store sensitive communications or files, and don’t keep a copy of cloud-stored data in your physical possession. In July 2017, Customs and Border Protection publicly stated it is against policy for border agents to search cloud-stored data on electronic devices. This means that any search of an electronic device at the border should not extend to data that is only accessible via the internet — such as email or social media messages and posts that are stored on remote servers.
  • Upload sensitive photos on your camera to your password-protected laptop or a cloud-storage account. Digital cameras don’t offer encrypted storage, so you should consider backing up your photos and deleting them from your camera and reformatting the camera's memory card.
  • Turn on airplane mode for all of your electronic devices before crossing a border checkpoint. CBP stated in July 2017 that its policy does not permit searches of cloud-stored data that is accessible from electronic devices through the internet. Keeping your devices in airplane mode will help ensure compliance with this policy.  
  • Let officers know if you have privileged material on your device. The 2018 CBP Directive on border device searches requires certain procedures to be followed before border officers can search attorney-client or attorney work product materials. If you have any privileged or sensitive material on your device, tell the border officers before they begin any search.

Until the Supreme Court weighs in on the constitutional limits of the government’s powers at the border, questions about the government’s authority to conduct these kinds of searches aren’t likely to be settled. Lower courts have issued conflicting rulings on whether individualized suspicion should be a condition for such a search. The Ninth Circuit, which covers several western states, for example, requires at least reasonable suspicion for a “forensic” search of a seized device, but has not imposed limits on “cursory” on-the-spot searches.

It is crucial that more courts weigh in, given that device searches at the border seem to be on the rise. News reports indicate that in 2016, almost 24,000 electronic devices were searched, a huge jump from the nearly 5,000 devices that were searched in 2015. The pace of searches continues to accelerate, with the Department of Homeland Security reportedly conducting 5,000 device searches in February 2017 alone.

With border officials increasingly exercising authorities that haven’t been sufficiently considered by the courts, the urgency for clear protections mounts. In the meantime, travelers should take the precautions they feel are right for them.

View comments (157)
Read the Terms of Use


You don't have to be a registered "sex offender" or have any record whatsoever to get the "terrorist interrogation" at the Border these days. Just. have brown skin like me and be carrying, you know, ANYTHING. Laptop, cell phone, a month worth of clothes and toiletries, things that brown-skinned people are "not supposed to be making enough money to have" ... I'm with Teachers Without Borders; they heard "unemployed" because they'd "never heard of it." I had no criminal record whatsoever in 12 states, 1 territory, and 6 countries (back then) and when they ran my fingerprints "nothing" came up, which made them even MORE suspicious because they're racist and were obviously assuming something should come up because I'm a minority, and when I came up "clean" they dug even deeper!! You don't have to be an actual criminal. All you have to be is brown-skinned. And "breaking the law" by going somewhere other than where you were born and raised. (We have a 5th Amendment right to international travel but CBP hasn't read any part of the Constitution or maybe, when I said that they assumed that I "looked too stupid and uneducated" to have read it myself, like in LAW SCHOOL...)


My phone does not work overseas. The times I've traveled to Europe, I've gone without any electronics. Does that mean that CBP will ass rape me and throw me in jail?


Interesting, but I have not seen anyone look at it from a different perspective. Devil's advocate... how many people are using this information to hide criminal activity: drug smuggling, child porn, terrorism? How many terrorists should we allow in to protect the small possibility my phone might be searched?
The vast majority of travelers are never searched, an even smaller number have their electronics looked at. It is my understanding this only occurs when there is suspicion of criminal activity.
These are partially philosophical and moral questions...I don't claim to have answers. If ten people died would one phone search that could have stopped it been worth it? Twenty?
I'm simply surprised at how many comments people are worried about how to hide their devices. I've traveled a lot, but never had electronics searched, despite having been stopped a couple of times. Are most people here stopped frequently?

Canadian Hunk

I wish I had read this before trying to cross the border from Canada to the US using the Port Huron border
On that fateful day, i was stopped by a crazy US border agent who detained me for 8 hours for no reason at all other than to teach me a lesson because i was using my camcorder as a dashcam when crossing the bridge
The imbeciles went ahead and seized my computer and 2 phones and spent the next 5 hours combing through EVERYTHING and I mean EVERYTHING.The would ask me about sent emails from 10 years ago and asked me about family pics on my phone that I took more than 5 years ago.The forcefully accessed my phone and went through more than 2000 pictures mainly of vacations, perused my messages and chats and still found nothing.They then forcefully took my laptop and went through everything including downloading my files.All in all, it was the worst data breach i have ever seen in my life, and after the ordeal they found nothing, wasted my time and I was let go.The border agents are worse than thieves and criminals.At least a phone thief will steal your phone and mostly discard the info, these agents forcefully steal all your info, read it all and make copies for further abuse and access


This has to be the most unconstitutional act I have EVER heard of -- this coming from a law enforcement office. There is no way that CBP officers should be able to violate someone's constitutional rights without probable cause or reasonable suspicion. Searches continue to increase, which means the courts must made a decision.


Hi there,
Officials in the Brisbane international airport demanded my passcode for my iPhone. They said that I'm coming from a high risk country (Iran) on the suspicion of terrorism. As I was sure about myself not being a terrorist, I fully cooperated and gave them the passcode.
After few hours, they came back and said "we have to seize your mobile because it contains a video of bestiality." I told them that it was automatically saved on my phone photo gallery because an idiot sent it to me on What'sApp and I forgot to delete it. But, they seized my expensive iPhone and they're not going to give it back. Can I do anything at all to get it back?


The USA couldn't make it more clear that they don't want visitors coming to their country. That's fine. There are a lot of countries in the world which are happy to take my tourism $$$. I just pity those in jobs which require travel there.

Which makes me wonder. If I have to go there what if I don't bring any electronics? Maybe with the exception of a digital camera? Are luddites allowed to enter? I could see myself buying a cheap laptop for my business trip at a Best Buy or something and download everything necessary from a protected employer cloud outside of the USA. Will this work?


"Airplane mode" does NOT turn off wifi, therefore does NOT necessarily cut off access to the cloud.
For example, I connect my phone to the internet through a portable hotspot, which connects to the phone over wifi. (I get cheap data on the hotspot.) If I forget to turn off the hotspot, my phone is still connected to the cloud.
So I would advise turning off wifi, in addition to setting the phone to airplane mode.

Abelia Herry

I am glad to read this blog post and will like to say that the admin had done a great job for readers.


I was recently denied entry into US with my visa cancelled. I am ready to take the issue up as the CBP wrote the code on my other passport which have my travel history with another country.

The CBP Officer saw some whatsapp chat with friends trying to find out how i can study in the US and my intimate discussion with another friend.
But the only issue i suspect is that these conversations might have been saved.

My question now is, do they have such right as to copy my data


Stay Informed