Your computer, phone, and other digital devices hold vast amounts of personal information about you and your family. This sensitive data is worth protecting from prying eyes, including those of the government.
The Fourth Amendment to the U.S. Constitution protects you from unreasonable government searches and seizures, and this protection extends to your computer and portable devices. But how does this work in the real world? What should you do if the police or other law enforcement officers show up at your door and want to search your computer?
EFF has designed this guide to help you understand your rights if officers try to search the data stored on your computer or portable electronic device, or seize it for further examination somewhere else. Keep in mind that the Fourth Amendment is the minimum standard, and your specific state may have stronger protections.
Because anything you say can be used against you in a criminal or civil case, before speaking to any law enforcement official, you should consult with an attorney. Remember‚ generally the fact that you assert your rights cannot legally be used against you in court. You can always state: "I do not want to talk to you or answer any questions without my attorney present." If they continue to ask you questions after that point, you can say: "Please don’t ask me any further questions until my attorney is present." And if the police violate your rights and conduct an illegal search, often the evidence they obtain as a result of that search can’t be used against you.
We’ve organized this guide into three sections:
If you consent to a search, the police don’t need a warrant.
The most frequent way police are able to search is by asking you for permission. If you say “yes” and consent to the search, then police don’t need a warrant. You can limit the scope of that consent and even revoke or take it back after the officers begin searching, but by then it may be too late.1 That’s why it’s better not consent to a search--police may drop the matter. If not, then they will generally need to get a search warrant to search.
Law enforcement may show up at your door. Apart from a few exceptions, police need a warrant to enter your home.
The police can’t simply enter your home to search it or any electronic device inside, like a laptop or cell phone, without a warrant.
When the police knock on your door, you do not have to let them in unless they have in their possession and show you a valid search warrant. The safest thing to do is step outside and shut the door behind you. They may or may not indicate right away why they are there. If they have a warrant, ask to see it. If they offer to simply “interview” you, it is better to decline to speak until your attorney can be present. You can do this by telling the officer: “I do not want to talk to you. I do not consent to a search. I want to speak to my attorney.”
There are two major exceptions to the warrant requirement. First, if you consent to a search, then the police can search within the scope of your consent.2 That’s why it is usually better to not consent to a search.
Second, if police have probable cause to believe there is incriminating evidence in the house or on an electronic device that is under immediate threat of destruction, they can immediately search it without a warrant.3
Be aware that the police can ask your roommate/guest/spouse/partner for access to your computer if they don’t have a warrant.
The rules around who can consent to a search are fuzzy. The key is who has control over an item. Anyone can consent to a search as long as the officers reasonably believe the third person has control over the thing to be searched.4 However, the police cannot search if one person with control (for example a spouse) consents, but another individual (the other spouse) with control explicitly refuses.5 It's unclear, however, whether this rule applies to items like a hard drive placed into someone else’s computer.6 And even where two people have control over an item or place, police can remove the non-consenting person and return to get the other's consent to search.7
You may want to share this know your rights guide with everyone in your home and ask them not to consent to a search by law enforcement.
Even if you're arrested, police can only search your phone under limited circumstances.
After a person has been arrested, the police generally may search the items on her person and in her pockets, as well as anything within her immediate control, automatically and without a warrant. But the Supreme Court has ruled that police cannot search the data on a cell phone under this warrant exception.8 Police can, however, search the physical aspects of the phone (like removing the phone from its case or removing the battery) and in situations where they actually believe evidence on the phone is likely to be immediately destroyed, police can search the cell phone without a warrant.
Police can search your computer or portable devices at the border without a warrant.
Fourth Amendment protection is not as strong at the border as it is in your home or office.9 This means that law enforcement can inspect your computer or electronic equipment, even if they have no reason to suspect there is anything illegal on it.10 An international airport, even if many miles from the actual border, is considered the functional equivalent of a border.11 However, border officials in Alaska, Arizona, California, Guam, Hawaii, Idaho, Montana, Northern Mariana Islands, Oregon and Washington can only confiscate an electronic device and conduct a more thorough “forensic” examination of it if they have reasonable suspicion you’ve engaged in criminal behavior.12
Ask to see the warrant.
A warrant is a document signed by a judge giving the police permission to either arrest you or search your property and take certain items from that property. You have the right to see the warrant and should check to make sure it is valid.
A warrant should contain:
The police must take the warrant with them when executing it and give you a copy of it.13 They must also knock and announce their entry before they try to forcefully enter your home,14 and must serve the warrant during the day in most circumstances.15
The warrant limits what the police can do.
The purpose of the warrant is to give the judge, not the police, the discretion to decide what places can be searched and which items can be taken.16 That’s why a warrant is supposed to state exactly what the police can search and seize.17 However, if the warrant authorizes the police to search for evidence of a particular crime, and such evidence is likely to be found on your computer, some courts have allowed the police to search the computer without a warrant.18
And remember, if you consent to a search, it doesn’t matter if the police have a warrant; any search is permissible as long as the search is consistent with the scope of your consent.
Although the warrant limits what the police can look for, if they see something illegal while executing a warrant they can take it.
While the police are searching your home, if they observe something in "plain view" that is suspicious or incriminating, they may take it for further examination and can rely on their observation to later get a search warrant.19 For example, if police see an open laptop with something obviously illegal on the screen, they could seize that laptop.
If the police want to search your computer, it doesn’t matter whether you’re the subject of their investigation.
It typically doesn’t matter whether the police are investigating you, or think there is evidence they want to use against someone else located on your computer. If they have a warrant, if you consent to the search, or they think there is something incriminating on your computer that may be immediately destroyed, the police can search it. But remember, regardless of whether you’re the subject of an investigation, you can always seek the assistance of the lawyer.
You do not have to assist law enforcement when they are conducting their search.
You do not have to help the police conduct the search. But you should not physically interfere with them, obstruct the search or try to destroy evidence, since that can lead to your arrest. This is true even if the police don’t have a warrant and you do not consent to the search, but the police insist on searching anyway. In that instance, do not interfere but write down the names and badge numbers of the officers and immediately call a lawyer.
You do not have to answer questions while law enforcement is searching.
You do not have to answer any questions. In fact, because anything you say can be used against you and other individuals, it is best to say nothing at all other than “I do not want to talk to you. I do not consent to a search. I want to speak to my attorney.” However, if you do decide to answer questions, be sure to tell the truth. In many contexts, it is a crime to lie to a police officer and you may find yourself in more trouble for lying to law enforcement than for whatever it was on your computer they wanted.20
The police can take your computer with them and search it somewhere else.
As long as the police have a warrant, they can seize the computer and take it somewhere else to search it more thoroughly. As part of that inspection, the police may make a copy of media or other files stored on your computer.21
You do not have to hand over your encryption keys or passwords to law enforcement.
The Fifth Amendment protects you from being forced to give the government self-incriminating testimony. Courts have generally accepted that telling the government a password or encryption key is “testimony.” A police officer cannot force or threaten you into giving up your password or unlocking your electronic devices. However, a judge or a grand jury may be able to force you to decrypt your devices in some circumstances. Because this is a legally complicated issue, if you find yourself in a situation where the police, a judge or grand jury are demanding you turn over encryption keys or passwords, you should let EFF know right away and seek legal help.
You may be able to get your computer back if it is taken and searched.
If your computer was illegally taken, then you can file a motion with the court to have it returned.22 If the police believe that evidence of a crime has been found on your computer (such as possessing “digital contraband” like pirated music and movies, or digital images of child pornography), the police can keep the computer as evidence. They may also attempt to keep the computer permanently, a legal process known as forfeiture, but you can challenge forfeiture in court.23
There is less protection against a search at a place of employment.
Generally, you have some Fourth Amendment protection in your office or workspace.24 This means the police need a warrant to search your office and work computer unless one of the exceptions described above apply. But the extent of Fourth Amendment protection depends on the physical details of your work environment, as well as any employer policies. For example, the police will have difficulty justifying a warrantless search of a private office with doors and a lock and a private computer that you have exclusive access to. On the other hand, if you share a computer with other co-workers, you will have a weaker expectation of privacy in that computer, and thus less Fourth Amendment protection.25 However, be aware that your employer can consent to a police request to search an office or workspace in your absence.26 Plus, if you work for a public entity or government agency, no warrant is required to search your computer or office as long as the search is for a non-investigative, work-related matter.27
Protect digital privacy and free expression. EFF's public interest legal work, activism, and software development preserve fundamental rights. DONATE TO EFF