---
title: "The malware threat landscape: NodeStealer, DuckTail, and more"
description: "NodeStealer is a custom JavaScript malware bundled with Node.js via pkg into 46-51 MB Windows executables disguised as PDF/XLSX files, which gave it near-zero antivirus detection."
url: "https://swe.quest/articles/the-malware-threat-landscape-nodestealer-ducktail-and-more-342e7596fcdf9d5d"
canonical: "https://engineering.fb.com/2023/05/03/security/malware-nodestealer-ducktail/"
source: "Meta Engineering"
published: "2023-05-03"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 11
tags: ["threat-detection","security","identity-auth"]
---

# The malware threat landscape: NodeStealer, DuckTail, and more

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2023-05-03, 11 min read, Deep dive. Original: [https://engineering.fb.com/2023/05/03/security/malware-nodestealer-ducktail/](https://engineering.fb.com/2023/05/03/security/malware-nodestealer-ducktail/)

## Summary

NodeStealer is a custom JavaScript malware bundled with Node.js via pkg into 46-51 MB Windows executables disguised as PDF/XLSX files, which gave it near-zero antivirus detection. It persists through a Run registry key, decrypts Chromium browser cookies and saved logins (Base64-decoded encrypted\_key from Local State, then AES), and proceeds only when it finds a Facebook session cookie. From the victim's own machine it enumerates ad accounts, then exfiltrates Base64-encoded JSON in the Authorization header of a GET request to its C2. Meta also tracks how Ducktail and ChatGPT-themed lures adapt to takedowns, for example by spreading across file hosts, cloaking ads and auto-granting business admin permissions.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- browser cookies and sessions
- Windows registry basics
- malware analysis concepts ([easy posts on Threat detection](https://swe.quest/tags/threat-detection.md?difficulty=easy))

## Keywords

NodeStealer, Ducktail, Node.js, pkg, Chromium, ChatGPT, VirusTotal

## Related posts

- [Protecting user data through source code analysis at scale](https://swe.quest/articles/protecting-user-data-through-source-code-analysis-at-scale-357585a0d96f83c8.md): Meta Engineering · 2025-02-18 · Medium · 4 min read · Static analysis, Threat detection, Application security, Python
  Meta's Anti-Scraping team encodes known scraping attack vectors as taint-analysis rules in its in-house static analyzers, Zoncolan for Hack and Pysa for Python, so potential vectors are flagged before code ships.
- [Exploiting vulnerabilities in Cellebrite UFED and Physical Analyzer from an app's perspective](https://swe.quest/articles/exploiting-vulnerabilities-in-cellebrite-ufed-and-physical-analyzer-from-an-app-3c77e1bc69516f8f.md): Signal · 2021-04-21 · Easy · 6 min read · Vulnerability research, Application security, Mobile, Security
  Cellebrite's UFED and Physical Analyzer, whose main job is parsing untrusted app data pulled from seized phones, lack standard exploit mitigations and bundle FFmpeg DLLs from 2012 that miss over a hundred security fixes.
- [From single pull requests to full software packages: Detecting malicious code at scale](https://swe.quest/articles/from-single-pull-requests-to-full-software-packages-detecting-malicious-code-at-717a58a001a046a1.md): Datadog Engineering · 2026-06-02 · Medium · 12 min read · Supply chain security, Threat detection, AI agents, LLMs, Cost optimization
  Datadog extended BewAIre, its LLM-based malicious code detector, from pull requests to full dependency packages by stacking a cheap filter model in front of an agentic investigation model.
- [MemLab: An open source framework for finding JavaScript memory leaks](https://swe.quest/articles/memlab-an-open-source-framework-for-finding-javascript-memory-leaks-d413135b7aeb2d8e.md): Meta Engineering · 2022-09-12 · Medium · 11 min read · Memory management, JavaScript, Frontend, React, Debugging
  MemLab finds JavaScript memory leaks by driving a headless browser with Puppeteer through a navigate-away/target/return sequence, then diffing heap snapshots as (SB \\ SA) ∩ SA' to find objects that should have been freed.
- [MCP Horror Stories: The Drive-By Localhost Breach](https://swe.quest/articles/mcp-horror-stories-the-drive-by-localhost-breach-5adbe194ac2f44eb.md): Docker · 2025-09-23 · Medium · 16 min read · Vulnerability research, Application security, AI agents, Browsers
  CVE-2025-49596 (CVSS 9.4) let any website achieve remote code execution on developer machines running MCP Inspector below 0.14.1.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
