Twitter says parts of its source code were leaked online

close video Biden administration was successful in censoring speech on Twitter: Rep. Greg Steube

House Judiciary Committee member Rep. Greg Steube slams Democrats for trying to discredit journalists Matt Taibbi and Michael Shellenberger during the ‘Twitter files’ hearing on ‘The Big Money Show.’

Parts of Twitter's source code used to run the social media platform were leaked online, the company said in a court filing.

In the legal document filed Friday with the U.S. District Court of the Northern District of California, Twitter requested that Github, a Microsoft-owned internet hosting service for software development, remove the code from the site on which it was posted, The New York Times first reported.

Github indicated on its website that it has since complied with Twitter's request to take down the post.

ELON MUSK VALUES TWITTER AT LESS THAN HALF OF $44B PRICE TAG IN OFFER TO EMPLOYEES

Parts of Twitter’s source used to run the social media platform were leaked online. (AP Photo/Jeff Chiu, File / AP Newsroom)

Twitter said the leak included the "[p]roprietary source code for Twitter's platform and internal tools." The platform also revealed that the code was shared without permission by a user called "FreeSpeechEnthusiast," and requested that the court identify this person.

The social media giant has requested a subpoena for Github to disclose information pertaining to the leak.

Github has complied with Twitter’s request to remove the post leaking the social media company’s source code. (David Odisho/Getty Images / Getty Images)

The source code posting violates copyrights held by Twitter, the San Francisco-based company said in the filing.

The leak comes after CEO Elon Musk purchased Twitter last year for $44 billion, although he now estimates the platform is worth less than half of that as the company has dealt with advertisers leaving. 

ELON MUSK SAYS TWITTER WILL OPEN SOURCE THE CODE IT USES TO RECOMMEND TWEETS

Twitter has requested a subpoena for Github to disclose information pertaining to the leak. (Getty Images/iStock / Getty Images)

CLICK HERE TO GET THE FOX BUSINESS APP

Twitter has made massive layoffs since Musk took over, which the Federal Trade Commission is investigating as part of oversight of the company’s privacy and cybersecurity practices, according to documents detailed in a congressional report.

The Associated Press contributed to this report.