Attorney speaks English, Chinese & French | Chicago office (312) 519-1115
Home › Travel & status › Secondary inspection and device searches

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

Wang Law Firm, LLC · David Wang, Managing Attorney · Attorney-reviewed · Updated October 2026

Start here: (1) Being taken to secondary inspection does not mean something is wrong; many cases involve document checks, database matches or random selection. (2) Answer truthfully and do not lie; the consequences of making false statements to border officers are often far more serious than the original problem. (3) Do not sign documents you do not understand or do not agree with. Green card holders do not have to sign I-407 on the spot; if a visitor is asked whether they want to “withdraw the application for admission,” first make sure you understand what you are signing. (4) During entry inspection you generally have no right to have an attorney present, but you can contact an attorney immediately afterward. (5) Phones and computers can be searched; do not delete, hide or destroy data during the inspection.

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

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.

StatusCan you be refused entry?What may happen
U.S. citizenOnce citizenship is established, you cannot be refused entryYou 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 judgeYou 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 travelersYou can be refused entryYou 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:

Even if one of the above applies, you have the following protections:

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:

  1. 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.
  2. 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.
  3. 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.

ItemBasic searchAdvanced search
What it isThe 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 requiredMay be conducted with or without suspicionRequires reasonable suspicion of a violation of laws CBP enforces; absent individualized reasonable suspicion, there must be a national security concern
ApprovalNo special approval neededRequires 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

What happens if you refuse to unlock: it depends on your status

StatusPossible consequences of refusing to provide a passcode or unlock
U.S. citizenYou 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 holderYou should generally still be admitted, but the device may be detained; you may also face closer examination of status questions
Visa holder, visitorCBP 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:

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

What to do afterward

Common misconceptions

  1. “Being taken to the back room means I’m going to be removed.” Most secondary inspections only verify information and end with admission.
  2. “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).
  3. “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.
  4. “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.
  5. “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.
  6. “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

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

Related reading

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.