N4D Mesh Controller New Infrastructure, a UPX-Packed Agent L... - #2844
Open
carlospolop wants to merge 1 commit into
Open
N4D Mesh Controller New Infrastructure, a UPX-Packed Agent L...#2844carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://securitylabs.datadoghq.com/articles/n4d-mesh-controller-go-titan-new-infrastructure-hunting Content Categories: Based on the analysis, this content was categorized under "AI > AI Security > AI MCP Security, with cross-references to Linux Post-Exploitation and Tunneling and Port Forwarding". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Campaign overview and severity
N4D Mesh Controller is an active Linux malware and exploitation framework that turns exposed Model Context Protocol (MCP) servers and numerous conventional internet-facing services into entry points for remote command execution, credential and cloud-token theft, lateral movement, persistence, scanning, and command and control (C2). Datadog analyzed a newer statically linked Go loader and its UPX-packed, garble-obfuscated second stage, identified in debug...
🔧 Technical Details
Abusing intended MCP functionality as RCE: A publicly reachable MCP server can be compromised without a conventional software flaw when it exposes dangerous tools without authentication. Initialize the MCP session, request
tools/list, inspect names and schemas for command execution, file access or writing, database operations, or cloud administration, and invoke a selected capability throughtools/call. N4D selectedexecute_commandand supplied{"command":"id"}. On a real vulnerable deployment, the command executes with the MCP process's OS privileges, secrets, cloud identity, filesystem access, and network reachability.Converting one service foothold into a multi-service beachhead: After obtaining execution through MCP or another exposed service, run an implant that expands CIDR seeds and scans adjacent or public ranges without waiting for controller tasks. Enumerate SSH...
🤖 Agent Actions
Plan:
Repository review is complete: the core technique fits the existing
src/AI/AI-MCP-Servers.mdpage. The Linux persistence and Cloudflare Quick Tunnel techniques are already covered elsewhere, so I will avoid duplicating them and add only concise internal cross-references from the MCP section. Next I’m validating the original N4D research before editing.The delta is narrowly scoped: one new MCP subsection distinguishing “intended but unauthenticated capability” abuse from prompt injection, BOLA, and implementation CVEs. Existing Linux and tunneling pages already document the downstream techniques, so only links to those pages will be added.
The MCP section and two references are now written. I’m validating that only one file changed, all links resolve, reference numbering is consistent, no forbidden source was introduced, and the mdBook can still build if the local toolchain is available.
Updated
src/AI/AI-MCP-Servers.mdwith:tools/callinvocation.initialize,tools/list, andtools/call.Validation passed: one file modified, internal links resolve, and
git diff --checkis clean.mdbookwas not installed, so a full build was unavailable.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.