Apple asked a federal court Thursday to withdraw an order compelling it to write software that would help the Federal Bureau of Investigation test passcodes on an iPhone used by one of the San Bernardino attackers, turning a dispute over one locked device into a national test of government power over digital security.

The phone is an iPhone 5C issued by San Bernardino County to Syed Rizwan Farook, who with his wife killed 14 people and wounded 22 on Dec. 2. Investigators have a warrant to search it, but they cannot get past its passcode protections without risking the destruction of stored data. Magistrate Judge Sheri Pym ordered Apple to create a signed version of its operating system that would disable automatic erasure, eliminate delays between guesses and permit electronic passcode testing.

Apple argues that the 227-year-old All Writs Act does not authorize a court to conscript a private company into designing a new forensic tool. The Justice Department says it seeks limited assistance for a single government-owned phone in a terrorism investigation. Beneath that narrow request lies a wider question: whether software makers can be ordered to weaken protections they deliberately built so even the companies themselves cannot bypass them.

A court order aimed at three safeguards

The government is not asking Apple to decipher the phone’s encryption directly or surrender a master password. Instead, the order targets the mechanisms that make a brute-force attack impractical. Apple would have to bypass any setting that erases cryptographic keys after 10 failed attempts, allow the FBI to submit guesses electronically and remove the programmed delay between attempts.

The proposed software would be signed with Apple’s digital credentials and coded to run only on Farook’s device, according to the order summarized in the court record. Investigators could then try combinations far faster than entering them by hand. Apple could retain custody of the phone and conduct the passcode testing at its own facility, an arrangement the government says would keep the tool under corporate control.

That architecture explains why both sides reject the other’s vocabulary. FBI Director James Comey says the bureau is not asking for an encryption backdoor or a universal key. Apple says the functional distinction is misleading because the compelled software would be designed precisely to defeat security safeguards and could be requested again in other investigations.

The immediate technical burden appears manageable for a company that develops the operating system, but Apple says burden cannot be measured only in engineering hours. The company would have to assemble a specialized team, create and validate code meant to undermine its own product, preserve that code against theft and answer similar demands from courts and governments around the world.

Apple frames software as security—and speech

In its original customer letter, Chief Executive Tim Cook said Apple had provided data in its possession, complied with warrants and offered technical advice to investigators. What the company refuses to provide is software that does not presently exist. Cook called the requested system the equivalent of a master key whose technique could be reused on other devices once created.

Apple’s motion makes statutory and constitutional arguments. The company contends that Congress established specific obligations for telecommunications providers but stopped short of requiring manufacturers to build decryption capabilities into products. It says using the All Writs Act to impose an obligation Congress declined to enact would move policymaking from the legislature to a single court.

The filing also asserts that computer code is protected expression and that forcing Apple engineers to write and authenticate government-directed software would amount to compelled speech. A due-process claim argues that the demand is arbitrary and unusually burdensome because Apple is not connected to the crime and designed its security features for legitimate consumer protection.

Cook defended the decision in a nationally televised interview, saying the company must weigh the possibility that the phone contains useful evidence against the known danger of creating a method to bypass security. Apple’s position is that privacy and safety are not opposing goals: strong encryption protects bank records, health information, photographs, commercial secrets and access to other services stored on or reached through a smartphone.

Comey answered that the bureau has a duty to exhaust a lead connected to a terrorist attack. In a public letter, he described the request as limited to preventing the phone from effectively destroying its contents or taking a decade to test. Investigators do not know whether the device contains useful evidence, he wrote, but cannot explain to survivors that they declined to pursue it.

The government’s legal theory rests on the All Writs Act, which permits federal courts to issue orders necessary to carry out their jurisdiction when those orders are consistent with law. Prosecutors say courts have long required third parties to provide reasonable technical assistance in executing warrants and that Apple’s relationship to the phone is not remote because it created, licensed and digitally signs the operating system.

Apple replies that the act is a residual authority, not a license to create new regulatory regimes. The company says an order to produce novel code differs materially from directing a telephone company to activate an existing feature or provide records already maintained in the ordinary course of business.

The disagreement is sharpened by other pending cases. Apple has received at least 15 additional federal requests to assist with locked devices in recent months, according to court records cited in its filing. Those matters involve different models and versions of the operating system, but their existence undercuts any simple assurance that the San Bernardino order will remain unique.

Public opinion reveals an unsettled mandate

Americans have absorbed the dispute quickly but have not reached a stable consensus. A Pew survey conducted Feb. 18 through 21 found that 51 percent believed Apple should unlock the phone, while 38 percent supported refusal and 11 percent offered no view. Three-quarters had heard at least something about the case.

A separate Reuters/Ipsos poll produced a different balance after phrasing the issue around whether Apple was right to oppose the order: 46 percent backed the company, 35 percent sided with the FBI and 20 percent were undecided. The contrasting results show how judgments turn on whether people hear “unlock a terrorist’s phone” or “create software that weakens security.”

The debate has also divided prominent technology figures and security specialists. Some argue that Apple can build a device-specific tool, guard it inside a secure laboratory and prevent broader exposure. Others respond that the precedent, rather than the file itself, is the scalable risk: if one court can require signed bypass software, many courts and foreign authorities can demand comparable assistance.

Protests outside Apple stores this week cast the fight as a defense of encryption, while families of San Bernardino victims prepared to support the government. Neither constituency treats the dispute as a routine warrant execution. The phone has become a proxy for a policy decision Congress has debated but not resolved.

The court will now consider whether its authority reaches the act of software creation and whether the requested assistance is unreasonably burdensome. Whatever the ruling, appeals are likely. Technology is moving faster than the statutes invoked by both sides, and the central conflict will outlast this device: how to preserve the government’s ability to conduct lawful searches without requiring the construction of weaknesses that digital systems were designed to eliminate.