Two former Twitter employees have been charged by federal prosecutors who claim the pair used Twitter’s internal platform to spy on Saudi Arabian activists for the Saudi Arabian government.

U.S. Attorney David L. Anderson released a statement, saying, “The criminal complaint unsealed today alleges that Saudi agents mined Twitter’s internal systems for personal information about known Saudi critics and thousands of other Twitter users. We will not allow U.S. companies or U.S. technology to become tools of foreign repression in violation of U.S. law.”

The two former Twitter employees, U.S. citizen Ahmad Abouammo and Saudi citizen Ali Alzabarah, collected information on thousands of individuals on behalf of the Saudi government.

One of the people spied on was Omar Abdulaziz, who had ties to the late Washington Post columnist Jamal Khashoggi.

In addition to Abouammo and Alzabarah, a middleman named Ahmed Almutairi who relayed their messages to the Saudi government was also charged with acting as an agent of a foreign government.

An anonymous Twitter employee defended the company in a statement provided to the Post, insisting, “We understand the incredible risks faced by many who use Twitter to share their perspectives with the world and to hold those in power accountable. We have tools in place to protect their privacy and their ability to do their vital work.”

Below is the full complaint filed by the U.S. attorney’s office in the Northern District of California.

The Emergency Election Sale is now live! Get 30% to 60% off our most popular products today!