Twitter has taken legal action to remove what it said was a portion of its source code that was posted online.
The code was posted on Microsoft-owned code-sharing site GitHub, according to Twitter, in a repository that has now been taken down.
The incident is the latest challenge for Twitter under Elon Musk’s ownership, which has seen mass layoffs, the flight of major advertisers and an increased frequency of technical outages.
Twitter notified GitHub of the code leak late on Friday in a Digital Millenium Copyright Act (DMCA) takedown notice, and the code was removed the same day.
GitHub said it does not comment on decisions to remove content, but makes all DMCA takedown requests public in the interests of transparency.
The code appeared to have been public for several months.
The user account that posted it, FreeSpeechEnthusiast, shows a single contribution to the site in early January.
Twitter executives said they had only recently been made aware of the leak, according to unnamed sources cited by The New York Times.
The people also speculated that the code might have been stolen by a person who left Twitter last year.
Since Musk bought Twitter last October for $44 billion (£36bn) more than 75 percent of Twitter’s previous 7,500 staff have been laid off or resigned.
Twitter has started an investigation into the matter, and also asked the US District Court for the Northern District of California to order GitHub to identify the person who uploaded the code and any individuals who downloaded it, according to a legal filing.
Access to source code can help potential attackers to identify security vulnerabilities, although in many cases developers make the code freely available so that third-party developers can help locate bugs.
Musk himself said earlier this month he plans to make public the code used to recommend tweets at the end of March.
Separately, Musk told employees in an email on Friday he estimated Twitter is now worth about $20bn, or less than half what he paid for it last year.
The estimate was made in the context of Musk’s offer of stock grants to staff, according to multiple reports.
Musk also reportedly told staff in the email, “I see a clear, but difficult, path to a >$250B valuation,” suggesting a tenfold increase in the firm’s valuation.
Suspended prison sentence for Craig Wright for “flagrant breach” of court order, after his false…
Cash-strapped south American country agrees to sell or discontinue its national Bitcoin wallet after signing…
Google's change will allow advertisers to track customers' digital “fingerprints”, but UK data protection watchdog…
Welcome to Silicon In Focus Podcast: Tech in 2025! Join Steven Webb, UK Chief Technology…
European Commission publishes preliminary instructions to Apple on how to open up iOS to rivals,…
San Francisco jury finds Nima Momeni guilty of second-degree murder of Cash App founder Bob…