The Justice Department has prepared an indictment against the WikiLeaks founder, Julian Assange, marking a drastic escalation of the government’s years long battle with him and his anti-secrecy group.
It was not clear if prosecutors have filed charges against Mr. Assange. The indictment came to light late Thursday through an unrelated court filing in which prosecutors inadvertently mentioned charges against him.
“The court filing was made in error,” said Joshua Stueve, a spokesman for the United States attorney’s office for the Eastern District of Virginia. “That was not the intended name for this filing.”
Mr. Assange has lived for years in the Ecuadorean Embassy in London and would have to be arrested and extradited if he were to face charges in federal court, altogether a multistep diplomatic and legal process.
The disclosure came as the special counsel, Robert S. Mueller III, is investigating links between President Trump’s associates and Russia’s 2016 election interference. WikiLeaks published thousands of emails that year from Democrats during the presidential race that were stolen by Russian intelligence officers. The hackings were a major part of Moscow’s campaign of disruption.
Though the possible charges against Mr. Assange remained a mystery on Thursday, an indictment centering on the publication of information of public interest — even if it was obtained from Russian government hackers — would create a precedent with profound implications for press freedoms.
Mr. Assange has been in prosecutors’ sights for years because of WikiLeaks’s publication of thousands of secret government documents. Mr. Assange and his upstart website rose to prominence when Chelsea Manning, a low-ranking Army intelligence analyst, handed over thousands of classified Pentagon and State Department documents to WikiLeaks, which began publishing them in 2010.
Barry Pollack, an American lawyer representing Mr. Assange, denounced the apparent development.
“The news that criminal charges have apparently been filed against Mr. Assange is even more troubling than the haphazard manner in which that information has been revealed,” Mr. Pollack wrote in an email. “The government bringing criminal charges against someone for publishing truthful information is a dangerous path for a democracy to take.”
Seamus Hughes, a terrorism expert at George Washington University who closely tracks court cases, uncovered the filing and posted it on Twitter.
A Justice Department spokesman declined to say on Thursday what led to the inadvertent disclosure. It was made in a recently unsealed filing in an apparently unrelated sex-crimes case charging a man named Seitu Sulayman Kokayi with coercing and enticing an underage person to engage in unlawful sexual activity. Mr. Kokayi was charged in early August, and on Aug. 22, prosecutors filed a three-page document laying out boilerplate arguments for why his case at that time needed to remain sealed.
While the filing started out referencing Mr. Kokayi, federal prosecutors abruptly switched on its second page to discussing the fact that someone named “Assange” had been secretly indicted, and went on to make clear that this person was the subject of significant publicity, lived abroad and would need to be extradited — suggesting that prosecutors had inadvertently pasted text from a similar court filing into the wrong document and then filed it.
“Another procedure short of sealing will not adequately protect the needs of law enforcement at this time because, due to the sophistication of the defendant and the publicity surrounding the case, no other procedure is likely to keep confidential the fact that Assange has been charged,” prosecutors wrote.
They added, “The complaint, supporting affidavit, and arrest warrant, as well as this motion and the proposed order, would need to remain sealed until Assange is arrested in connection with the charges in the criminal complaint and can therefore no longer evade or avoid arrest and extradition in this matter.”
The Justice Department has been studying whether or how to charge Mr. Assange or WikiLeaks with some kind of criminal offense since the site began publishing its trove of secret military and diplomatic documents. Prosecutors, for example, toyed with the idea of charging Mr. Assange as a conspirator in Ms. Manning’s crime of unauthorized disclosure of secrets related to national defense. And it eventually became public that a grand jury in the Eastern District of Virginia was investigating people with links to WikiLeaks.
But even as the Obama administration brought criminal charges in an unprecedented number of leak-related cases, it apparently held back from charging Mr. Assange. Members of the Obama legal policy team from that era have said that they did not want to establish a precedent that could chill investigative reporting about national security matters by treating it as a crime.
Their dilemma came down to a question they found no clear answer to: any legal difference between what WikiLeaks was doing, at least in that era, from what traditional news media organizations, like The New York Times, do in soliciting and publishing information they obtain that the government wants to keep secret.
And such organizations, including The Times, have published many news articles based on the documents that WikiLeaks published, from its initial tranches of logs of significant combat events in the Afghanistan and Iraq and diplomatic cables in 2010 and 2011, to the contents of the stolen Democratic emails in 2016 — documents that American intelligence and law enforcement officials have said were stolen by Russian intelligence operatives.
The debate over whether to charge Mr. Assange continued under the Trump administration, according to a former government official involved in the discussions about whether Mr. Assange qualified as a journalist.
The possible indictment of Mr. Assange raised the question of whether the Justice Department abandoned concerns about setting a precedent that would chill press freedoms after WikiLeaks’s role in Russia’s 2016 election interference and its publication that year of documents about C.I.A. hacking tools, or whether prosecutors decided that the new circumstances raised by the publication of the stolen emails opened a new legal avenue.
While prosecutors in the Manning era were focused on WikiLeaks’s publication of classified government documents — activity that they analyzed primarily through the lens of the Espionage Act — the Democratic emails were not government documents or national-security secrets.
In July — a month before the erroneous court filing — Mr. Mueller charged 12 Russians with several crimes related to hacking and disseminating the emails as part of a foreign conspiracy to interfere in the election, which that indictment styled in part as a conspiracy to defraud the United States. Part of that indictment referred to WikiLeaks, which it identified as “Organization 1.”
“In order to expand their interference in the 2016 U.S. presidential election, the Conspirators transferred many of the documents they stole from the DNC and the chairman of the Clinton Campaign to Organization 1,” the July indictment said. “The Conspirators, posing as Guccifer 2.0, discussed the release of the stolen documents and the timing of those releases with Organization 1 to heighten their impact on the 2016 U.S. presidential election.”
Mr. Stueve’s explanation about the inadvertent filing left open the possibility that the language in the unrelated court document was lifted from a draft indictment written in preparation for eventual charges, not necessarily one handed up by a grand jury and sealed by a court.
Mr. Assange became something of a cult figure for those advocating for greater transparency in government and the corporate world. The prominence of WikiLeaks also generated a debate about the boundaries of journalism and protections of free expression in the digital age.
At the same time, Mr. Assange was pursued by Swedish prosecutors on charges of sexual abuse — ultimately forcing him to seek refuge in the Ecuadorean embassy in London since the summer of 2012. He has remained there since.
In October, Mr. Assange sued the Ecuadorean government for limiting his visitors and online activity.
In recent years, WikiLeaks has been attacked for its publication of the hacked Democratic emails. In April 2017, the C.I.A. director at the time, Mike Pompeo, called WikiLeaks a “hostile intelligence service” that was aided by Russia and accused Mr. Assange of making “common cause with dictators.”
Mr. Hughes published a screenshot of the court filing on Twitter shortly after The Wall Street Journal reported that the Justice Department was preparing to prosecute Mr. Assange.
“You guys should read EDVA court filings more, cheaper than a Journal subscription,” wrote Mr. Hughes, is the deputy director of the Program on Extremism at George Washington University.