Client sent me code to run locally is it malware?
Malicious actors on freelance platforms and LinkedIn trick developers into executing obfuscated code, repos, or installation scripts under the guise of project testing. This exposes local machines to compromise and prevents safe evaluation of client-provided repositories.
What people tried
Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.
- 1Running client projects inside isolated, hardened containers or virtual machines
- 2Using tools like npx npq to precheck dependencies
- 3Developing on a secondary throwaway laptop or rare operating system
- 4Refusing to run unfamiliar repositories and walking away
- 5Disabling the Run hotkey via registry keys or configuration policies
- 6Restricting user access to PowerShell and command prompt through Group Policy Objects
- 7Deploying endpoint detection and response tools to automatically flag and quarantine malicious executions
In their words
Unedited, most upvoted first, each linked to the thread it came from.
“I’m new to Upwork. First “client” I get sends me a Next.js project and says “just run it locally and see if it works.” They sent malware.”source ↗
“It also happened to me. It was a crypto project and I had a call with a guy and he said he is the CTO of the company and he wanted to help me with setting up the project. He asked me to share mu screen and install the project and I found it strange.”source ↗
“I had similar after someone contacted me on linkedin - they sent me a git-repo to clone and run. I just noped right out of there.”source ↗
“We had this happen at our org a few months ago.”source ↗
Where this came up
People with this problem also raised
- 3Why does software installation fail on secure systems?
- 3How to safely test new apps without risking live catalog data
- 5How to use AI for accounting without breaking client confidentiality
- 2Why is rushed custom software so insecure?
- 3Why can't accountants open Apple Numbers files?
- 2How to open old Microsoft Publisher .pub files