<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/malicious-next-js-repositories-in-fake-job-assessments-targeting-developers-915zxr7ge" -->

---
title: Malicious Next.js Repositories in Fake Job Assessments...
description: Microsoft Defender Experts have identified a targeted attack campaign against developers using malicious Next.js repositories disguised as job assessment...
canonical: https://daily.dev/posts/malicious-next-js-repositories-in-fake-job-assessments-targeting-developers-915zxr7ge
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Malicious Next.js Repositories in Fake Job Assessments Targeting Developers | daily.dev
og:description: Microsoft Defender Experts have identified a targeted attack campaign against developers using malicious Next.js repositories disguised as job assessment...
og:url: https://daily.dev/posts/malicious-next-js-repositories-in-fake-job-assessments-targeting-developers-915zxr7ge
og:image: https://api.daily.dev/og/posts/915zxR7gE.png
og:image:alt: Malicious Next.js Repositories in Fake Job Assessments Targeting Developers
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Malicious Next.js Repositories in Fake Job Assessments Targeting Developers

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 0 upvotes · 0 comments

## Summary

Microsoft Defender Experts have identified a targeted attack campaign against developers using malicious Next.js repositories disguised as job assessment projects. The attack uses three execution paths: VS Code workspace automation via `.vscode/tasks.json`, trojanized build-time assets like `jquery.min.js`, and backend module imports that exfiltrate environment variables. All paths feed into a two-stage C2 architecture enabling credential theft, session hijacking, and exfiltration of secrets like AWS keys and GitHub tokens. Vercel-hosted staging domains are used for C2 communication. Developers are advised to use VS Code Restricted Mode, review config files before trusting repos, run assessments in VMs, and monitor for unusual Node.js outbound connections.

## Content

Microsoft Defender Experts have uncovered a sophisticated and coordinated attack campaign aimed at developers through malicious Next.js repositories. These repositories are disguised as legitimate job assessment projects and leverage various methods to execute backdoors and access sensitive information from the developer's systems. 

The campaign employs three primary execution paths: 

1. **VS Code Workspace Automation**: By manipulating the `.vscode/tasks.json` file to run automatically when a folder is opened, attackers can initiate malicious scripts without noticeable triggers.

2. **Trojanized Build-Time Assets**: Assets like `jquery.min.js` are modified to execute malicious code during the build process, specifically triggered when developers run `npm run dev`.

3. **Backend Module Imports**: These imports are designed to exfiltrate environment variables and execute attacker-supplied JavaScript through dynamic compilation, often utilizing base64-encoded `.env` endpoints.

All these paths converge on a sophisticated two-stage Command and Control (C2) architecture. The first stage is responsible for registering the victim machine and bootstrapping additional malicious code in-memory. The second stage provides persistent control over the victim's machine, allowing for operator-directed tasks, directory enumeration, and staged file exfiltration.

Post-compromise actions observed include credential theft, session hijacking, and the exfiltration of `.env` secrets such as AWS keys and GitHub tokens. The campaign has been spotted using Vercel-hosted staging domains and specific IP addresses for C2 communication.

Mitigation strategies are crucial to protect against such threats. Developers are advised to use VS Code Restricted Mode, carefully review configuration files before trusting repositories, conduct assessments within virtual machines rather than on host systems, and monitor for unusual Node.js outbound connections.

For security researchers and IT professionals, Microsoft Defender offers extensive detection coverage with its XDR capabilities and provides KQL hunting queries to identify compromised systems and detect indicators of compromise.

## Similar posts on daily.dev

- [Your IDE is an Attack Vector](https://daily.dev/posts/your-ide-is-an-attack-vector-6mrqzzvv0) · DEV · 1 upvotes · 0 comments
- [runjak.codes: An adversarial coding test](https://daily.dev/posts/runjak-codes-an-adversarial-coding-test-eraejxrgw) · Lobsters · 0 upvotes · 0 comments
- [Can Malware Still Hide Inside Images? What Happened in REF9403](https://daily.dev/posts/can-malware-still-hide-inside-images-what-happened-in-ref9403-ecsqhxika) · Medium · 1 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#cyber](https://daily.dev/tags/cyber), [#nextjs](https://daily.dev/tags/nextjs), [#malware](https://daily.dev/tags/malware)

[View this post on daily.dev](https://daily.dev/posts/malicious-next-js-repositories-in-fake-job-assessments-targeting-developers-915zxr7ge)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Malicious Next.js Repositories in Fake Job Assessments Targeting Developers","url":"https://daily.dev/posts/malicious-next-js-repositories-in-fake-job-assessments-targeting-developers-915zxr7ge","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/malicious-next-js-repositories-in-fake-job-assessments-targeting-developers-915zxr7ge"},"datePublished":"2026-02-26T20:55:35.396Z","dateModified":"2026-02-26T20:55:53.874Z","description":"Microsoft Defender Experts have identified a targeted attack campaign against developers using malicious Next.js repositories disguised as job assessment...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/15ad38e7a76c4cb43354ee05fd437b37?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/15ad38e7a76c4cb43354ee05fd437b37?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/malicious-next-js-repositories-in-fake-job-assessments-targeting-developers-915zxr7ge","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,cyber,nextjs,malware","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Malicious Next.js Repositories in Fake Job Assessments Targeting Developers"}]}
```

