Cyber Risks · The Hacker News

n8n Supply Chain Attack Abuses Community Nodes to Steal OAuth Tokens

Summary: Threat actors uploaded eight packages to the npm registry disguised as n8n workflow automation integrations, including one named "n8n-nodes-hfgjf-irtuinvcm-lasdqewriit" that mimicked a Google Ads integration and prompted users to link an advertising account before siphoning OAuth credentials to attacker-controlled servers. Once installed as a community node, the package saved Google Ads OAuth tokens to the n8n credential store, then decrypted them using n8n's master key during workflow execution and exfiltrated them to a remote server.

What's compelling: Researchers at Endor Labs and ReversingLabs note there is no sandboxing or isolation between community node code and the n8n runtime, so a single malicious npm package can read environment variables, access the file system, and receive decrypted API keys and OAuth tokens for services like Google Ads, Stripe, and Salesforce - and an updated version of one package was published to npm just three hours before the report.

Read the original at The Hacker News ↗

Topics
Threat Actors & Nation-State
Related