Said It Here

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.

  1. 1
    Running client projects inside isolated, hardened containers or virtual machines
  2. 2
    Using tools like npx npq to precheck dependencies
  3. 3
    Developing on a secondary throwaway laptop or rare operating system
  4. 4
    Refusing to run unfamiliar repositories and walking away
  5. 5
    Disabling the Run hotkey via registry keys or configuration policies
  6. 6
    Restricting user access to PowerShell and command prompt through Group Policy Objects
  7. 7
    Deploying 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 ↗

Jaded-Journalist2470 · r/freelance · 1,006 upvotes

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 ↗

zapdigits_com · r/freelance · 6 upvotes

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 ↗

FarAwaySailor · r/freelance · 3 upvotes

We had this happen at our org a few months ago.source ↗

explosivecaterpillar · r/sysadmin · 1 upvotes

Where this came up

People with this problem also raised