In December of last year, Yale environmental researcher Spencer Meyer filed suit against Uber, alleging price fixing by Uber’s drivers and founder in violation of federal antitrust law. Hardly the first person to accuse Uber of corporate malfeasance, Meyer nonetheless became the target of private investigators, working for a security company hired by Uber, who attempted to dig up derogatory information — an act the district judge hearing the case, Jed Rakoff, has now, in a 31-page order, called “blatantly fraudulent and arguably criminal.”

Emails turned over by Uber on the judge’s instructions and summarized in the order show that on the day Meyer filed suit, Uber counsel Salle Yoo contacted the company’s chief security officer, asking, “Could we find out a little more about this plaintiff?”

Uber investigations chief Mat Henley then selected a New York-based private investigative firm called Ergo, also known as Global Precision Research, and began working with one of its executives, Todd Egeland, Henley said in a sworn deposition. Egeland’s online bios state openly that he is a 28-year veteran of the CIA with experience in counterintelligence and cyberthreats.

From the very start, the Uber-Ergo deal was set up to avoid potential scrutiny: Court-obtained documents reveal that both parties used Wickr, a self-deleting messaging app, and encrypted email “to avoid potential discovery issues,” although, as seen in the email message below, from Henley to two Ergo executives, including Egeland, some of the material was eventually discovered.