Security researchers from Apiiro revealed activity of attackers posting on GitHub modified clones of repositories of various projects, into which small changes are made aimed at committing malicious actions. As a rule, a malicious repository is created with the same name, but attached to a different organization (“github.org/org1/proj” -> “github.org/org2/proj”), or with a name slightly different from the original (typesquatting), with the expectation that the victim will not notice the differences and will use the code with malicious changes. To lure users, links to malicious repositories are actively posted on various social networks, forums and chats.
It is reported that more than 100 thousand such repositories have been identified, but according to researchers, the total number of hosted repositories with malicious changes can be in the millions, since the vast majority of automatically created repositories are deleted by GitHub a few hours after they are posted. Among the masks that can be used to determine the presence of malicious inserts in loaded repositories are:
exec(Fernet exec(requests exec(__import exec(bytes exec(“””\nimport exec(compile __import__(“builtins”).exec(
The attached malicious code is a modified version BlackCap-Grabber, after launch, searches for confidential data, such as account parameters, tokens, passwords and Cookies saved in the browser, and sends them to the attackers’ server. The malicious code also supports spoofing cryptocurrency addresses transmitted via the clipboard, can create screenshots and receive commands from the command and control (C&C) server.
Thanks for reading: