What to do if you are sent to secondary inspection or your phone is searched at entrySecondary inspection and device searches at the U.S. border
Everyone who flies into the United States from abroad, or enters through a land port of entry, must undergo entry inspection by U.S. Customs and Border Protection (CBP) (INA 235(a)(3)). Most people answer a few questions at the counter and can leave; some are asked to go to a separate room for further inspection, which is what is commonly called “secondary inspection” or, informally, “the back room.”
This article explains what primary and secondary inspection are, how the rights of U.S. citizens, green card holders and visa-holding visitors differ at the border, CBP’s rules for searching phones and computers (including the new directive that took effect in 2026), and what you can do on the spot and how to seek remedies afterward. This article describes only steps within the legal framework and does not offer any advice on evading inspection.
What primary and secondary inspection are
- Primary inspection: at the entry counter or land port lane, a CBP officer reviews your passport, visa or green card, takes fingerprints and a photo, asks a few questions (purpose of the visit, length of stay, where you will stay, and so on), and decides whether to admit you or refer you to secondary inspection.
- Secondary inspection: when an officer believes further verification is needed, you are taken to a separate area, where you may be questioned again, have databases checked, and have your luggage and electronic devices inspected. Waits range from a few minutes to several hours.
According to CBP’s published data, in fiscal year 2024 CBP processed more than 420 million arriving travelers at ports of entry, of whom 12,660,784 (about 3%) were referred to secondary inspection. In other words, secondary inspection itself is a routine step. Reasons for inspection described by CBP include (but are not limited to): incomplete travel documents, past violations of laws CBP enforces, a name identical or similar to someone in law enforcement databases, and random selection. CBP also states that inspections may not be conducted for discriminatory reasons such as race, gender, religion or ethnic background; while the inspection is underway, officers may not answer specific questions about it, but you may ask to speak with a CBP supervisor at any time.
Your rights depend on your status
The border is a special zone in law: the government’s inspection authority at the border is much broader than inside the United States, and the rights of people with different statuses also differ widely at the border.
| Status | Can you be refused entry? | What may happen |
|---|---|---|
| U.S. citizen | Once citizenship is established, you cannot be refused entry | You may be questioned at length and have luggage and devices inspected; devices may be detained |
| Green card holder (including conditional green card) | Generally a CBP officer cannot strip your status on the spot and turn you away; whether you have lost status should ultimately be decided by an immigration judge | You may be treated as an “applicant for admission” and examined; you may be asked to sign I-407; you may be given deferred inspection or a Notice to Appear (NTA); devices may be detained |
| Nonimmigrants such as visa holders and ESTA visa-waiver travelers | You can be refused entry | You may be allowed to withdraw your application for admission (I-275) and take a flight out; or be subject to expedited removal (with a 5-year bar on entry); or enter the credible fear process if you express fear |
U.S. citizens
U.S. citizens must present proof of identity (usually a U.S. passport) on entry, and once citizenship is established, they have the right to enter. CBP’s website states clearly that U.S. citizens will not be refused entry solely for not cooperating with a device search, but the device may still be detained or otherwise handled. Citizens may also be questioned and inspected at length.
Green card holders
Under INA 101(a)(13)(C) of the Immigration and Nationality Act, a lawful permanent resident returning to the United States is generally not regarded as “seeking admission”, and is examined as an applicant for admission only in certain situations, for example if the person:
- has abandoned or relinquished permanent resident status;
- has been absent from the United States continuously for more than 180 days;
- has engaged in illegal activity after leaving the United States;
- left the United States while under legal process seeking removal or extradition;
- has committed certain offenses listed in INA 212(a)(2) (unless the corresponding waiver or relief has been granted);
- is attempting to enter at a time or place other than as designated by immigration officers, or has not been inspected and admitted.
Even if one of the above applies, you have the following protections:
- You do not have to sign I-407 on the spot. I-407 (Record of Abandonment of Lawful Permanent Resident Status) should be signed voluntarily. The form itself states that by signing you waive your right to a hearing before an immigration judge on the question of your status. If you do not believe you have abandoned your status, you can refuse to sign and ask for an immigration judge to decide. Materials from the American Immigration Lawyers Association (AILA) note that in immigration court the government must prove by “clear, unequivocal, and convincing” evidence that you abandoned your status. See Form I-407 explained.
- You may be referred to an immigration judge. If CBP believes you should not be admitted as a permanent resident, it can issue a Notice to Appear (NTA), and the case will be heard by the immigration court; see Notice to Appear (NTA). By law, a person claiming to be a permanent resident is not subject to direct expedited removal at the port of entry; the status claim must be verified or reviewed (INA 235(b)(1)(C), 8 CFR 235.3(b)(5)).
- You may be given deferred inspection. When an officer believes the issue may be resolved, for example by providing additional evidence, the officer can defer the inspection, let you enter first, and have you complete the inspection later at a designated office (8 CFR 235.2, carried out by way of parole).
- If your green card is taken: AILA materials recommend asking for alternative proof such as a temporary status stamp in your passport; keep all documents the officer gives you.
For status risks from long absences from the United States, see Long absences for green card holders and the Green card travel risk assessment.
Visa holders and visitors
People holding nonimmigrant visas such as B1/B2, F-1 or H-1B, or entering visa-free on ESTA, are “applicants for admission” and must prove that they meet the entry requirements of their visa category. A visa only allows you to come to a port of entry and apply for admission; whether you are admitted is decided by CBP. If you are found inadmissible, there are three common outcomes:
- Withdrawal of application for admission: the officer may, at their discretion, allow you to withdraw your application for admission, usually recorded on Form I-275, and then leave on a flight as soon as possible (8 CFR 235.4). The withdrawal must be voluntary, but it is not your right; whether to allow it is up to the officer. A withdrawal is different from a removal order and generally does not bring a post-removal bar on entry, but it stays in your immigration record and you may be asked about it in future visa applications or entries.
- Expedited removal: if you are found at the port of entry to have committed fraud or misrepresentation (INA 212(a)(6)(C)) or to lack valid entry documents (INA 212(a)(7), for example if you are believed to actually be coming to immigrate), the officer can order your removal directly without an immigration judge (INA 235(b)(1)). A person subject to expedited removal generally cannot reenter the United States for 5 years (INA 212(a)(9)(A)(i)); see Expedited removal.
- Credible fear process: if you fear persecution or torture if returned to your home country, tell the officer clearly; this triggers a credible fear interview rather than immediate removal.
For entry requirements for visitor visas and ESTA, see ESTA, EVUS and visitor entry.
Can you ask for an attorney to be present?
Generally no. Federal regulation 8 CFR 292.5(b) states clearly that an applicant for admission in primary or secondary inspection has no right to representation by an attorney unless the applicant has become the focus of a criminal investigation and has been taken into custody. CBP may keep attorneys out of the inspection area and may not let you make phone calls.
But you can still ask to contact an attorney or family member; even if refused, the request itself creates a record. Carry a card with your attorney’s name and phone number so you can contact them as soon as the inspection ends or you are allowed to make a call. Once you leave the inspection area, you can immediately call an attorney for advice.
Phone and computer searches: CBP’s rules
CBP’s border search authority includes electronic devices; the legal basis is Titles 6, 8 and 19 of the U.S. Code. The specific procedures are governed by an internal CBP directive: the 2018 CBP Directive 3340-049A was superseded by CBP Directive 3340-049B, effective January 1, 2026 (Border Search of Electronic Devices). The new directive keeps the “basic search / advanced search” classification and expands the definition of “electronic device” (for example USB drives, SIM cards, GPS devices, drones, vehicle infotainment systems and smartwatches). The following is compiled from the directive and CBP’s website; the directive is internal CBP policy and does not itself create rights that travelers can assert.
| Item | Basic search | Advanced search |
|---|---|---|
| What it is | The officer directly reviews content stored on the device (looking through photos, chat histories, files and so on) | The device is connected to external equipment to copy, review or analyze its data |
| What justification is required | May be conducted with or without suspicion | Requires reasonable suspicion of a violation of laws CBP enforces; absent individualized reasonable suspicion, there must be a national security concern |
| Approval | No special approval needed | Requires approval by a supervisor at grade 14 (GS-14) or higher; searches based solely on national security require approval by a higher-level official |
Key rules
- Only content stored on the device is searched; the cloud should not be actively accessed. The directive provides that officers may not intentionally use the device to access information stored only remotely (in the cloud), and that you or the officer should disable the device’s network connections (for example by turning on airplane mode); passwords requested may not be used to access information stored only remotely.
- Travelers are obligated to present devices in a condition that allows inspection. Officers may ask you for assistance and passcodes. If a device cannot be inspected because of a passcode or encryption, it may be detained.
- Detention periods and receipts. Device detention generally should not exceed 5 days; extensions require higher-level approval, and extensions beyond 15 days may not exceed 7 days each. If your device is detained, the officer should give you a Form 6051D detention receipt before you leave, listing the items and a CBP point of contact. If the device is seized, you will receive a notice and can contest it through the local CBP Fines, Penalties and Forfeitures office.
- Data retention. If there is probable cause of a violation, or the information relates to immigration, customs or other enforcement matters, CBP may keep copies; otherwise copies should be deleted within 21 days after the search is complete. CBP’s website states that retained information may be stored in the Automated Targeting System (ATS), generally for up to 15 years, and may be shared with other agencies.
- Attorney-client privileged material. When you assert that certain content is protected by attorney-client privilege or attorney work product, the officer should ask you to identify the specific files, folders, and attorney or client names, and should contact the CBP Office of Chief Counsel before searching that content; it is usually segregated and handled by a dedicated Filter Team. Asserting privilege does not prevent the search; it only triggers special handling procedures. Medical records, journalists’ work materials, confidential business information and the like are also subject to corresponding handling requirements.
- You are usually present during the search. The directive generally requires searches to be conducted in the presence of the traveler, but for national security, law enforcement or operational reasons, the officer may not allow you to observe the search.
What happens if you refuse to unlock: it depends on your status
| Status | Possible consequences of refusing to provide a passcode or unlock |
|---|---|
| U.S. citizen | You will not be refused entry for this reason alone; but you may be held longer for questioning, and the device may be detained or even not returned for an extended time |
| Green card holder | You should generally still be admitted, but the device may be detained; you may also face closer examination of status questions |
| Visa holder, visitor | CBP says that for foreign nationals, refusing to cooperate with a search may be considered in deciding whether to admit them (although the inability to search the device does not by itself determine admissibility); in practice you may be refused entry, and the device may also be detained |
Whether to provide your passcode is a decision you make yourself after understanding the consequences. Whichever you choose, do not falsely claim you have no passcode, do not give a wrong passcode, and do not delete or hide data during the search; these actions may be treated as obstruction or false statements.
What the courts say
U.S. courts generally recognize the government’s broad search authority at the border, but the federal circuit courts of appeals do not fully agree on the standard for searching devices such as phones, especially whether a forensic search requires reasonable suspicion. As of October 2026, the U.S. Court of Appeals for the Second Circuit held in United States v. Alisigwe on September 17, 2026 that a manual search of a phone at the border requires neither a warrant nor any suspicion, but did not decide whether a forensic search requires reasonable suspicion. Court precedents are binding only within the relevant circuit, and the law may still change.
Changes in 2025–2026
As of October 2026, changes that can be verified include:
- Device searches reached a record high: according to data published by CBP and cited by law firms and the media, in fiscal year 2025 CBP searched 55,318 electronic devices at ports of entry, about 17.6% more than the 47,047 in fiscal year 2024. Still, relative to more than 419 million arriving travelers, the share of devices searched remains about one in ten thousand, and about three quarters involved non-U.S. citizens.
- New directive in effect: CBP Directive 3340-049B took effect on January 1, 2026, superseding the 2018 049A; it expanded the device definition and clarified the approval requirements for advanced searches on national security grounds and the 21-day deletion deadline.
- Case law: see the Second Circuit’s September 2026 decision above.
Border enforcement policies have changed frequently in recent years; check the latest information again before you travel.
What you can do on the spot
Below are steps, within the legal framework, that help you protect yourself. You can review them before you travel, and also keep a copy somewhere other than your phone (for example, a printout).
Lawful preparation before you travel
- Deciding which devices and materials to bring on a trip is your legitimate choice. Many companies have rules on using dedicated devices for business travel; follow your employer’s policies.
- Carry documents that explain your status and itinerary: passport, green card, re-entry permit (if any), proof of work or study in the United States, and round-trip itinerary.
- Green card holders returning after a long absence, people with criminal records or pending cases, and people with prior visa refusals or immigration violations should have an attorney evaluate their situation before departing.
- Write your attorney’s phone number on paper and carry it with you, and give your family your flight information.
What to do afterward
- Organize your records: write down what happened as soon as possible, and keep it together with copies of all documents.
- Request your CBP records: you can use CBP’s FOIA SecureRelease online system to request your own entry, exit and inspection records under the Freedom of Information Act (FOIA); a request on your own behalf requires your name, address, date of birth and a signed certification of identity, and a request through an attorney includes a G-28. I-94 records can be looked up directly on CBP’s I-94 website. For how to request your immigration file from USCIS, see G-639.
- Repeated referrals to secondary inspection: you can submit an inquiry through the DHS Traveler Redress Inquiry Program (DHS TRIP). DHS TRIP accepts situations including being denied or delayed entry or exit at a port, and being repeatedly referred to secondary inspection. After you submit, you will receive a Redress Control Number, which you can enter when booking tickets later. DHS TRIP does not guarantee results, and any additional materials requested must be submitted within the stated deadline.
- Complaints and feedback: you can raise issues through the CBP INFO Center (help.cbp.gov); some major international airports have CBP Professionalism Service Managers.
- Detained device: follow up with the point of contact on the 6051D receipt; if the device is seized, contest it following the procedures in the notice.
- If you received an NTA, withdrew your application for admission or were subject to expedited removal: contact an attorney as soon as possible to evaluate how to respond in court and whether you can later reapply for a visa or a waiver.
Common misconceptions
- “Being taken to the back room means I’m going to be removed.” Most secondary inspections only verify information and end with admission.
- “A small lie will get me out faster.” Making a material false statement to border officers may result in permanent inadmissibility (INA 212(a)(6)(C)(i)); falsely claiming U.S. citizenship has its own serious consequences, and federal criminal liability may also be involved (18 U.S.C. 1001).
- “The officer said I wouldn’t be let in unless I signed I-407, so I had to sign.” Green card holders have the right to refuse and ask for an immigration judge to decide.
- “I have the right to have an attorney come in with me.” During entry inspection you generally have no such right, but you can contact an attorney immediately afterward.
- “If I delete my chat history, I’ll be fine.” Deleting or hiding data during a search may be treated as obstruction, and the consequences may be more serious.
- “A valid visa guarantees entry.” A visa does not guarantee entry; the admission decision is made by CBP at the port of entry.
How we can help
- Before travel, evaluate your status risks (long absences from the United States, pending applications, past records) and explain which documents to prepare;
- After you are stopped at entry, review the documents you received, such as I-275, NTA and 6051D, and explain your next options;
- Represent you in immigration court proceedings and handle status disputes such as whether a green card has been abandoned;
- Request CBP and USCIS records on your behalf, and help submit DHS TRIP inquiries;
- After a refusal of entry or removal, evaluate the possibility of reapplying for a visa or a waiver in the future.
Frequently asked questions
Does being taken to secondary inspection mean I’m on a blacklist?
Not necessarily. The reasons CBP lists include document problems, a name similar to someone in a database, and random selection. Only if you are repeatedly referred to secondary inspection is it worth considering an inquiry through DHS TRIP.
The officer asked me to unlock my phone. Can I refuse?
You can choose not to, but the consequences depend on your status: U.S. citizens will not be refused entry for this reason, but the device may be detained; green card holders should generally still be admitted, but the device may be detained; visitors may be refused entry as a result. Whichever you choose, do not give a wrong passcode or falsely claim you forgot it.
Can CBP look at my photos and email in the cloud?
Under CBP’s current directive, officers search only content stored on the device itself, should not intentionally use the device to access information stored only in the cloud, and will ask that network connections be disabled. Content already downloaded or cached on the device counts as device content and can be searched.
I’m a green card holder and have been abroad for more than a year. Will my green card be taken when I enter?
If you have been away more than one year without a re-entry permit, the green card generally can no longer serve as an entry document, and CBP will very likely examine whether you have abandoned your status; it may ask you to sign I-407, or may issue an NTA for an immigration judge to decide. You do not have to sign I-407 on the spot. Before traveling, first read Re-entry permits and advance parole and consult an attorney.
If a visitor is allowed to “withdraw the application for admission,” can they come to the United States again?
A withdrawal is not a removal order and generally does not bring a post-removal bar on entry, but the record is kept. When you later apply for a visa or seek entry, disclose it truthfully and resolve the reason you were originally found inadmissible. Whether your visa can still be used depends on the specific circumstances; consult an attorney.
My phone has emails with my attorney. Can I keep the officer from seeing them?
You can assert attorney-client privilege and specify which files and which attorney are involved. The officer must start the special handling procedures under the directive (consulting CBP counsel, segregated handling by a dedicated team), but asserting privilege does not prevent the search itself.
My device was detained. How long until I get it back?
Under the directive, detention generally should not exceed 5 days, and may be extended with approval. Be sure to get a Form 6051D receipt before leaving the port of entry, and follow up with the point of contact listed on it.
Official sources
- CBP: Border Search of Electronic Devices (including annual statistics)
- CBP Directive 3340-049B: Border Search of Electronic Devices (January 2026)
- CBP: Border Search of Electronic Devices tear sheet
- CBP: Pledge to Travelers
- 8 CFR 292.5: representation (exception during inspection)
- 8 CFR Part 235: inspection, deferred inspection (235.2), expedited removal (235.3), withdrawal of application for admission (235.4)
- CBP: FOIA records requests
- DHS TRIP: traveler redress inquiries
- USCIS: I-407
Related reading
- Long absences for green card holders: the 6-month and 1-year risks
- Re-entry permits and advance parole
- ESTA, EVUS and visitor entry
- I-407 Record of Abandonment of Lawful Permanent Resident Status
- Expedited removal and credible fear interviews
Stopped at entry, asked to sign I-407, had your application for admission withdrawn, received a Notice to Appear, or had a device detained? Book an attorney evaluation, or call (312) 519-1115. Attorney David Wang can communicate with you in English, Chinese or French; the office is in downtown Chicago at 203 N. LaSalle St., Suite 2100.
This page is general information, not legal advice. Border inspection and status rules are enforced by CBP, USCIS and the U.S. Department of State and may change at any time; outcomes depend on the specific facts. Consult an attorney before you travel and rely on the official websites.