Quick summary
In California, police generally need a search warrant to search the files on your computer, hard drive, tablet or flash drive. California’s Electronic Communications Privacy Act (CalECPA) adds protections beyond the U.S. Constitution, such as stricter rules on warrants and on who can consent.
- Exceptions: Consent from the device’s owner or authorized user, a real emergency threatening someone’s life or safety, and searches at the international border.
- Seizing vs. searching: Police may hold a device while they get a warrant if they fear evidence will be deleted, but they can’t look through it yet.
- Your remedy: Evidence from an illegal computer search can be suppressed with a motion under Penal Code 1538.5 or 1546.4.
- Example: Officers arrest Dana and take her laptop. Without a warrant, her consent or an emergency, they can’t open her files.
When can cops search my computer? In these 4 scenarios
In California, police may search the files and data on your computer only in one of these situations:
- when they have a valid search warrant authorizing it;1
- when the owner or another authorized user of the computer gives them consent;2
- when you carry the computer across an international border (including at international airports);3 or
- when there is an emergency that justifies a search without a warrant (for example, a search will help them prevent someone’s death or serious injury).4
In addition, police may seize your computer (but not search its contents) without a warrant if they have reason to believe this is necessary to prevent the destruction of evidence.5
These rules apply to any device that stores electronic data, including:
- desktop computers and their hard drives,
- laptop computers and their hard drives,
- external drives, such as flash drives (also called “thumb drives”), and
- tablet computers.6
The law on police searches of computers is very similar to the law on police searches of cell phones. In Riley v. California (2014), the U.S. Supreme Court held that police generally need a warrant to search the data on a phone, even after an arrest.7
California’s extra protection: CalECPA
Since 2016, California’s Electronic Communications Privacy Act (CalECPA) has limited how state and local police can get information from electronic devices. Under CalECPA, police may access information on your device by physically handling it or connecting to it only in listed situations, including:8
- with a warrant,
- with the “specific consent” of the device’s authorized possessor (its owner, or someone the owner allowed to have it), given directly to police,
- in a good-faith emergency involving danger of death or serious physical injury, or
- in a few other narrow cases, such as a lost or stolen device, or a device taken from someone on parole or postrelease community supervision.
CalECPA also requires computer warrants to describe the information with particularity (for example, by time period, accounts, apps and types of information), and requires information unrelated to the warrant’s purpose to be sealed.9
Examples
Here are some examples of situations where police may lawfully search your computer under California’s search and seizure laws:
Example: After gathering reliable evidence that you violated California’s embezzlement laws by taking money from a charity you help run, police get a search warrant. It authorizes them to search the computer files stored in a folder labeled with the charity’s name.
Example: Your employer gives police permission to search the company-owned computers it provides to all employees, which run through a company network the employer monitors.
Example: An informant tells police that you are involved in human trafficking and that your laptop holds information that will help them find and rescue victims who are in danger right now.
Remedies for an illegal police search of your computer
Under the Fourth Amendment to the U.S. Constitution, you have the right to be free from unreasonable “searches and seizures” by law enforcement.10
If police search your computer or hard drive without a warrant or a valid exception, the evidence they find generally can’t be used against you at your criminal jury trial. This is called the “exclusionary rule.”
To keep evidence from an illegal search of your computer out of your case, your criminal defense attorney can file a Penal Code 1538.5 motion to suppress evidence as part of the pretrial process.11 CalECPA also lets you move to suppress electronic information obtained in violation of that law.12
To help you understand when police can legally search your computer or hard drive in California, our California criminal defense attorneys address the following:
- 1. When can police search my computer in California?
- 2. When can police search my work computer?
- 3. What are my rights if police search my computer illegally?
1. When can police search my computer in California?
In California, police may search your computer, tablet or other device that stores electronic data in the following circumstances.
1.1. Search warrants for computer searches
Most police searches of computers and hard drives require a valid search warrant.13
Police must apply to a judge for a search warrant. A judge will issue a warrant for a computer only if there is probable cause, supported by a sworn statement, that the computer holds evidence of a crime that the law allows a warrant for (most often, evidence that a felony was committed or who committed it).14
Example: Police discover that Joseph has shared a child pornography video on a peer-to-peer file-sharing network. They apply for a search warrant, arguing that this gives them probable cause to believe he has other such files. The judge agrees and issues a warrant to search the photo and video files on the computers and storage devices Joseph owns or regularly uses.15
A valid search warrant for a computer must describe in specific terms both:
- the devices and files to be searched, and
- the evidence being searched for.16
If police search devices or files not described in the warrant, or seize evidence other than what the warrant describes, that part of the search may be found invalid, and the evidence may be suppressed.17
1.1.1. The “plain view” exception and computer searches
The rule that police may search only the files described in the warrant creates special problems with computers.
Normally, the warrant requirement is subject to the “plain view” exception. It lets an officer seize evidence not described in the warrant if:
- the officer is lawfully in a position to see it while conducting the search, and
- its incriminating nature is immediately apparent.18
The problem is that police often try to use the plain view exception to justify opening and looking through every file on a computer, even when the warrant covers only a particular kind of file or evidence.19
According to Palm Springs criminal defense lawyer Michael Scafiddi, a former police sergeant:
“The specificity requirement for search warrants still applies to searches of hard drives and other computer storage. Judges should make it clear that warrants apply only to certain types of files likely to yield evidence about a crime—and police should know that this is not a free pass to open every file on a computer.”
In California state cases, CalECPA adds another limit: information found that is unrelated to the warrant’s purpose must be sealed and can’t be reviewed further without a court order, except in limited circumstances.20
On the other hand, if a file has an obviously incriminating name, the plain view exception may let police open it even if it’s outside the scope of the warrant.
Example: Police search Tony’s computer with a warrant for evidence of a real estate scam that could lead to mortgage fraud charges. While looking through files about the scam, an officer sees a subfolder named “Underage XXX” and finds child pornography inside. Because of the folder’s name, those images may be admissible under plain view. But if the officer then searches every file on the computer, plus a flash drive the warrant didn’t cover, and finds images supporting a PC 261.5 statutory rape charge, those images likely can’t be used. They were outside the warrant and not in plain view.
1.2. Consent to computer searches
Even without a warrant, police may search your computer files if you consent. (This “consent exception” applies to all police searches, including police searches of homes and police searches of cars.)21
Under the Fourth Amendment, the consent doesn’t always have to come from you. It can come from someone who shares use of and control over the computer with you, such as:22
- your spouse or partner,
- your roommate,
- a co-worker or boss, or
- a family member,
if they also use and have access to the computer (for example, they know the password).
In California state investigations, CalECPA is stricter. Police may access the device’s information based on consent only if it is the “specific consent” of the device’s authorized possessor: its owner, or someone the owner authorized to have it.23
Example: Police show up at Elmer’s house without a warrant, based on an anonymous tip that he is trading child pornography online. Elmer isn’t home, but his wife is. She co-owns the computer they both use for email and games, and she agrees to a search. Because she is an authorized possessor of the shared computer, police can likely rely on her consent.
Your (or someone else’s) consent is valid only if it is given freely and voluntarily.24 So consent does not justify a warrantless search of your computer if, for example:
- police drew their guns or otherwise threatened force if you didn’t agree,25 or
- police told you they had a warrant to search your computer, and that turned out to be false.26
1.3. Border searches
Customs and immigration officers may search the files on your laptop or tablet at an international border, including at international airports, without a warrant. This applies to U.S. citizens as well as noncitizens.27
In California and the rest of the Ninth Circuit, though, there are limits:
- A quick manual look through your device (opening files and photos by hand) needs no suspicion at all.
- A forensic examination (copying the drive and analyzing it with software) requires reasonable suspicion of criminal activity.28
- Border searches of digital devices are limited to looking for digital contraband (such as child pornography), not general evidence of a crime.29
Example: Michael, a U.S. citizen, is flying home from the Philippines. At customs, an officer opens his laptop and looks through his photo folder by hand. That quick manual search is legal even though the officer had no reason to suspect him. But if officers wanted to copy his entire hard drive for forensic analysis, they would first need reasonable suspicion.
1.4. “Exigent circumstances”
Certain emergencies also let police search the data on your computer without a warrant.30
For example, police may be able to search your computer files if they need to act immediately to:
- pursue a fleeing suspect,
- help someone who is seriously injured or threatened with imminent injury, or
- prevent the imminent destruction of evidence in a particular case.
For an emergency search to be valid, police must be able to point to specific facts that led them to believe an emergency existed. Under CalECPA, police must believe in good faith that an emergency involving danger of death or serious physical injury requires access to the device.31
Example: Two undercover detectives, Andrea and José, are exposed by a criminal street gang. José escapes, but Andrea goes missing. José knows a gang member’s computer lists the houses the gang uses. There’s no time to get a warrant, so police search the computer for clues to where Andrea was taken. Because they acted to prevent serious injury to Andrea, the search is likely legal.
1.5. Computer seizures to prevent the destruction of evidence
Finally, police may seize your computer, tablet or external drive without a warrant if they have reason to believe it holds criminal evidence that may otherwise be destroyed.32
This does not mean they can search through the files and data on the device. It only means they can hold onto it while they apply for a warrant to search it.
Example: Back at Elmer’s house, police also notice a flash drive on his desk. His wife has never used it and doesn’t know what’s on it, so she can’t consent to a search of it. Worried that Elmer will erase it once he hears about their visit, police take the flash drive to the station and hold it while they apply for a warrant to search it.
2. When can police search my work computer?
In California, the rules for work computers are the same as for computers you use personally. Police may search them:
- with a warrant,
- with consent, or
- in an emergency.
But in many cases police search workplace computers with only the employer’s consent, not the consent of the employee who actually uses the computer.33
Whether your employer can consent to a search of your work computer depends on the circumstances. In general, if the employer owns the computer and controls how it is used, it can consent.34
Example: Jeffrey’s company gives him a computer in his private office, and he logs in with his own password. But his internet use runs through a company firewall that lets the IT department monitor it, and IT staff can access his computer without his password. Under these facts, his employer likely can consent to a police search of that computer.
On the other hand, if you bring your own laptop or tablet to work and leave it in your office, your employer probably can’t consent to a police search of it, even if you sometimes use it for work.35
3. What are my rights if police search my computer illegally?
In California, evidence from an illegal police search of your computer or other electronic storage device can be excluded from your case.
If police searched your computer unlawfully, you and your criminal defense attorney can file a Penal Code 1538.5 motion to suppress that evidence before trial.36
If that evidence is key to the prosecutor’s case, the charges may be reduced or even dismissed.
To hire an attorney…
If police searched your computer or hard drive in California, or you want to discuss your case confidentially, contact us at Shouse Law Group for a free consultation.
We have local criminal law offices in and around Los Angeles, San Diego, Orange County, Riverside, San Bernardino, Ventura, San Jose, Oakland, the San Francisco Bay area, and several nearby cities.
For information on Nevada search and seizure laws, please see our Las Vegas Defense Group page on Nevada search and seizure laws.
Other resources: Electronic Frontier Foundation, information about people’s rights, including criminal defendants’ rights, regarding electronic data and devices.
Legal references:
- Riley v. California (2014) 573 U.S. 373, 403 (“Our answer to the question of what police must do before searching a cell phone seized incident to an arrest is accordingly simple—get a warrant.”); California Penal Code 1546.1(c)(1).
- Schneckloth v. Bustamonte (1973) 412 U.S. 218, 219; California Penal Code 1546.1(c)(4) (see note 1 above).
- United States v. Arnold (9th Cir. 2008) 533 F.3d 1003 (amended opinion).
- Riley v. California, 573 U.S. at 402 (see note 1 above) (exigencies “could include the need to prevent the imminent destruction of evidence in individual cases, to pursue a fleeing suspect, and to assist persons who are seriously injured or are threatened with imminent injury”); California Penal Code 1546.1(c)(6) (see note 1 above).
- Riley v. California, 573 U.S. at 388 (see note 1 above) (officers may seize and secure a phone to prevent destruction of evidence while seeking a warrant).
- See California Penal Code 1546 PC (“‘Electronic device’ means a device that stores, generates, or transmits information in electronic form.”).
- Riley v. California (see note 1 above).
- California Penal Code 1546.1(c) (see note 1 above); California Penal Code 1546 (see note 6 above) (defining “authorized possessor” and “specific consent”).
- California Penal Code 1546.1(d) (see note 1 above).
- U.S. Constitution, Fourth Amendment: “The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated …”
- California Penal Code 1538.5(a)(1) PC (a defendant may move to suppress “any tangible or intangible thing obtained as a result of a search or seizure” that was unreasonable).
- California Penal Code 1546.4(a) PC.
- Riley v. California (see note 1 above); California Penal Code 1546.1(c) (see note 1 above).
- California Penal Code 1525 PC (“A search warrant cannot be issued but upon probable cause, supported by affidavit …”); California Penal Code 1524(a) PC (grounds for a warrant, including evidence that “tends to show a felony has been committed”).
- Based on United States v. Schesso (9th Cir. 2013) 730 F.3d 1040.
- California Penal Code 1525 (see note 14 above); California Penal Code 1546.1(d)(1) (see note 1 above).
- United States v. Tamura (9th Cir. 1982) 694 F.2d 591, 595 (“As a general rule, in searches made pursuant to warrants only the specifically enumerated items may be seized.”); California Penal Code 1538.5(a)(1)(B) (see note 11 above).
- Horton v. California (1990) 496 U.S. 128, 136-137.
- United States v. Comprehensive Drug Testing, Inc. (9th Cir. 2010) 621 F.3d 1162, 1176 (en banc) (warning of “a serious risk that every warrant for electronic information will become, in effect, a general warrant”).
- California Penal Code 1546.1(d)(2) (see note 1 above).
- Schneckloth v. Bustamonte (see note 2 above).
- United States v. Matlock (1974) 415 U.S. 164, 171 (consent may come from “a third party who possessed common authority over or other sufficient relationship to the premises or effects sought to be inspected”).
- California Penal Code 1546.1(c)(4) (see note 1 above); California Penal Code 1546 (see note 6 above) (“‘Authorized possessor’ means the possessor of an electronic device when that person is the owner of the device or has been authorized to possess the device by the owner of the device.”).
- Bumper v. North Carolina (1968) 391 U.S. 543, 548 (the prosecution “has the burden of proving that the consent was, in fact, freely and voluntarily given”).
- People v. McKelvy (1972) 23 Cal.App.3d 1027, 1034.
- Bumper v. North Carolina, 391 U.S. at 548-550 (see note 24 above).
- United States v. Arnold (see note 3 above).
- United States v. Cotterman (9th Cir. 2013) 709 F.3d 952 (en banc) (forensic examination of a laptop at the border requires reasonable suspicion).
- United States v. Cano (9th Cir. 2019) 934 F.3d 1002 (manual cell phone searches at the border need no suspicion; forensic searches need reasonable suspicion; both are limited to searching for digital contraband).
- Riley v. California, 573 U.S. at 402 (see note 4 above).
- California Penal Code 1546.1(c)(6) (see note 1 above).
- Riley v. California, 573 U.S. at 388 (see note 5 above).
- United States v. Ziegler (9th Cir. 2007) 474 F.3d 1184.
- United States v. Ziegler, 474 F.3d at 1191 (see note 33 above) (employer could consent because the computer was “the type of workplace property that remains within the control of the employer”).
- United States v. Ziegler, 474 F.3d at 1189 (see note 33 above) (employees “retain at least some expectation of privacy in their offices”).
- California Penal Code 1538.5 (see note 11 above); California Penal Code 1546.4 (see note 12 above).