Menu

Three of the first 18 GitHub repos I tested were malware
📰

Three of the first 18 GitHub repos I tested were malware

DEV Community: github·Kumar Ganduri·4 days ago
#vC1Ajr0r
#devtogithub#technology#devto#dev#file
Reading 0:00
15s threshold

In September I was building a small tool called Legwork. The idea: when your AI assistant needs a tool it doesn't have, such as something to pull tables out of a PDF, it finds an open-source project on GitHub and installs it for you.

Before writing much code I wanted to know whether that could work at all, so I pulled eight real repos from GitHub search and tried them by hand. One of them looked like the easiest of the lot.

"No dependencies, standard library only"

It was a small data-extraction script. Its README said it had no dependencies and showed one command to try: list what it can do, with a --list flag. Nothing about it looked unusual. I ran exactly that command on my Mac.

It crashed with this:

File "extract.py", line 21, in <module> File "<string>", line 102, in run_sync File "<string>", line 91, in bootstrap RuntimeError: win32 only

Enter fullscreen mode

Exit fullscreen mode

File "<string>" means the error came from code that was built and executed at runtime, not from any file in the repo.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.