A federal lawsuit filed Friday challenges a Justice Department and Department of Homeland Security investigation into anonymous social media users critical of U.S. immigration enforcement, accusing the Trump administration of misusing the grand jury process to unmask dissenters.

The class-action complaint, brought by the American Civil Liberties Union (ACLU) on behalf of four unnamed social media users, seeks a court injunction to halt what it describes as a “bad-faith investigation” that infringes on First Amendment free speech protections. The plaintiffs argue that government lawyers have issued numerous grand jury subpoenas to social media companies such as Meta, Bluesky, and X, demanding account information related to critics of Immigration and Customs Enforcement (ICE).

Details about the investigation’s full scope remain unclear. However, the ACLU contends that this probe, referred to internally by the U.S. Attorney’s Office as “Investigation 18,” represents an attempt to collect personal information on individuals who have posted content critical of immigration authorities. The lawsuit alleges the effort is part of a broader pattern by federal agencies to intimidate and retaliate against online critics.

Chief Judge James Boasberg of the U.S. District Court for the District of Columbia ordered the case unsealed on Wednesday and has set a hearing for Jan. 6 to consider the ACLU’s request for a preliminary injunction. The federal government is required to respond to the allegations by Dec. 14.

The complaint names U.S. Attorney Jeanine Pirro, Attorney General Todd Blanche, and Homeland Security Secretary Markwayne Mullin as defendants. Representatives for Homeland Security and Pirro’s Washington office did not immediately respond to requests for comment.

According to the lawsuit, the government has sent hundreds of administrative subpoenas over the past year to tech companies seeking information on individuals criticizing ICE. Facing resistance from both social media companies and users to these administrative requests, federal authorities have turned to the more secretive grand jury subpoena process.

The ACLU asserts that this shift signals an escalation in efforts to build a database of dissenters and suppress online political speech. One plaintiff is identified as a Bluesky user who posted comments following a New York ICE-related shooting, stating, “Burn ICE to the ground. Burn DHS to the ground. Salt the earth.”

“The government is weaponizing the grand jury process to retaliate against people for expressing their political views online,” said ACLU attorney Laura Moraff. The organization views the case as the first comprehensive legal challenge to the Trump administration’s tactics of using grand jury subpoenas to identify anonymous social media users in this context.