Chinese Cyber Espionage Shadow Exposed: How UNC5221 Lurked Inside Microsoft 365 Networks for 18 Months Undetected + Video

Listen to this Post

Featured ImageIntroduction: A Silent Intrusion That Redefined Modern Cyber Espionage

Cybersecurity incidents are often measured in days or weeks, but some of the most dangerous attacks remain hidden for years. A newly uncovered campaign linked to the Chinese state-aligned threat group UNC5221 demonstrates exactly how sophisticated modern cyber espionage has become. Researchers discovered that the group maintained access to a victim organization’s infrastructure for at least 18 months before detection, leveraging advanced malware, stolen credentials, trusted network pathways, and compromised service providers.

The operation highlights a growing reality in cybersecurity: attackers are no longer simply breaching networks. They are embedding themselves deeply within business ecosystems, carefully blending with legitimate traffic while avoiding traditional security controls. The campaign involved the notorious Brickstorm backdoor alongside two additional malware families, Plenet and AgentPSD, revealing an increasingly complex arsenal designed for long-term persistence and intelligence gathering.

Summary: A Multi-Year Espionage Campaign Hidden in Plain Sight

Security researchers investigating a breach discovered that the Chinese espionage group UNC5221, also known as VerdantBamboo, had infiltrated a victim organization and remained undetected for more than a year and a half. The attackers initially compromised an Egnyte Storage Sync appliance and used it as a launching point to move deeper into the environment.

Using Brickstorm malware and stolen credentials, the attackers successfully gained access to Microsoft 365 resources while disguising their activities as legitimate network traffic. Even after remediation efforts removed them from the environment, the threat actors returned through alternative access points, demonstrating remarkable persistence.

Further investigation uncovered that the victim’s managed services provider (MSP) had also been compromised, providing another potential pathway into the victim’s infrastructure. During the second intrusion, the attackers deployed previously undocumented malware called Plenet and AgentPSD, expanding their toolkit for maintaining access and executing commands remotely.

The findings reinforce concerns that highly advanced cyber espionage groups are increasingly targeting overlooked infrastructure, legacy systems, storage appliances, and network devices that often lack modern endpoint security monitoring.

The Evolution of UNC5221 and Its Growing Arsenal

UNC5221 has become one of the most closely watched cyber espionage groups in recent years. Since at least 2023, the organization has been linked to attacks exploiting zero-day vulnerabilities in internet-facing edge devices. Rather than relying solely on phishing campaigns or traditional malware delivery methods, the group specializes in compromising systems that organizations frequently overlook.

Researchers previously documented the use of Brickstorm in attacks against legal firms, technology companies, software providers, and business process outsourcing organizations. Its repeated appearance across multiple campaigns suggests it has become a core component of the group’s operational strategy.

The malware itself evolved significantly over time. Early versions were written in Golang, while newer variants adopted Rust, a language increasingly favored by advanced threat actors because of its performance, portability, and resistance to analysis.

Brickstorm: The Backdoor Built for Stealth

Brickstorm is far more than a conventional backdoor. Security researchers describe it as an advanced malware implant designed specifically for stealth and persistence.

One of its most dangerous characteristics is its ability to blend into normal network communications. By routing activity through trusted systems and leveraging proxy capabilities, Brickstorm helps attackers evade security monitoring systems and conditional access controls.

This capability allowed UNC5221 to operate within Microsoft 365 environments without immediately triggering alerts. The malware acted as a bridge between compromised infrastructure and cloud-based services, giving attackers sustained visibility into sensitive business operations.

The long period between compromise and discovery demonstrates how effective the malware can be when deployed against organizations lacking comprehensive visibility into their environments.

The Managed Services Provider Connection

Perhaps the most concerning discovery was the compromise of the victim’s managed services provider.

MSPs are attractive targets because they often possess privileged access to multiple client environments. By infiltrating a single provider, attackers may gain opportunities to move laterally into numerous organizations.

Investigators discovered a BSD variant of Brickstorm operating on a pfSense firewall belonging to the MSP. Evidence suggested that this system had also been compromised approximately 18 months before detection.

This finding illustrates a growing trend in cyber espionage where attackers focus on trusted third-party relationships rather than directly targeting individual organizations. Supply chain compromise continues to provide threat actors with scalability and operational efficiency.

Plenet: A New Generation Cross-Platform Backdoor

After re-establishing access following remediation efforts, UNC5221 introduced a previously undocumented malware family known as Plenet, referred to by some researchers as Grimbolt.

Plenet is a sophisticated .NET-based backdoor capable of functioning across multiple operating systems. The malware provides interactive shell access, remote command execution, file manipulation capabilities, and command-and-control server switching functionality.

Researchers observed architectural similarities between Plenet and Brickstorm. Both utilize WebSocket communications and support multiple simultaneous data streams, enabling efficient command execution and information exfiltration.

Its deployment on a Synology NAS device demonstrates the group’s preference for targeting systems that often receive less security scrutiny than conventional endpoints.

AgentPSD: The Backup Plan for Persistence

While Plenet represented a sophisticated addition to the attackers’ toolkit, AgentPSD served a different purpose.

This lightweight Python-based reverse shell was designed as a fallback mechanism. Should primary malware implants be discovered or removed, AgentPSD could potentially provide an alternative method for regaining access.

Interestingly, investigators found evidence that AgentPSD was configured but never actively used. Since Brickstorm remained operational, the attackers apparently had no need to activate their contingency channel.

The existence of AgentPSD nevertheless reveals the meticulous planning behind the operation. Advanced threat actors increasingly build multiple layers of persistence into campaigns, ensuring that a single defensive success does not completely remove their access.

Why Legacy Infrastructure Remains a Security Blind Spot

One recurring theme throughout the investigation was the attackers’ focus on infrastructure that often lacks Endpoint Detection and Response (EDR) coverage.

Storage synchronization appliances, NAS systems, retired email archive servers, firewalls, and edge devices frequently operate outside traditional security monitoring frameworks. While organizations invest heavily in protecting employee workstations and servers, these specialized systems can become attractive entry points.

UNC5221 appears particularly skilled at identifying such blind spots. By targeting devices that administrators rarely inspect and security tools often ignore, the group significantly reduces the likelihood of detection.

This strategy reflects a broader shift among advanced persistent threat groups toward infrastructure-centric attacks rather than endpoint-centric operations.

What Undercode Say:

Strategic Analysis of the UNC5221 Campaign

The most alarming aspect of this operation is not the malware itself but the patience demonstrated by the attackers.

Many organizations still measure cybersecurity effectiveness through alert volumes and blocked attacks. However, UNC5221’s success highlights a different challenge entirely: silent persistence.

The attackers remained active for approximately 18 months.

That means routine audits failed.

Security controls failed.

Detection systems failed.

Visibility failed.

The compromise of an MSP significantly increased operational flexibility.

This was not a smash-and-grab attack.

It was a long-term intelligence collection mission.

Brickstorm’s evolution from Golang to Rust indicates continued investment and development.

Threat actors rarely rewrite malware unless the operation is strategically important.

The use of Microsoft 365 access shows cloud platforms are now primary espionage targets.

Identity has become the new perimeter.

Stolen credentials often provide more value than malware.

The attackers understood network architecture exceptionally well.

They repeatedly selected systems lacking EDR protection.

That demonstrates extensive reconnaissance.

The deployment of multiple malware families suggests operational maturity.

Brickstorm served as the primary access mechanism.

Plenet expanded functionality.

AgentPSD provided redundancy.

This layered approach mirrors military contingency planning.

Another notable observation is infrastructure discipline.

When researchers began tracking command-and-control infrastructure, associated servers disappeared rapidly.

This indicates active operational monitoring by the threat actors.

Many cybercriminal groups react slowly.

Nation-state operators react quickly.

The shutdown of infrastructure suggests the attackers recognized growing scrutiny.

Organizations should pay attention to the MSP compromise angle.

Third-party trust relationships remain among the weakest links in enterprise security.

Vendor security reviews often focus on compliance paperwork.

Attackers focus on actual access paths.

Those are not always the same thing.

Future attacks will likely continue targeting storage appliances and edge devices.

Legacy systems remain valuable intelligence collection points.

Defenders need visibility beyond endpoints.

Network telemetry must become a higher priority.

Identity monitoring must improve.

Cloud audit logging must become standard practice.

Threat hunting programs should specifically investigate unmanaged infrastructure.

Organizations relying solely on EDR are defending only part of the battlefield.

The UNC5221 campaign serves as a warning that sophisticated adversaries increasingly operate where security teams are not looking.

Deep Analysis: Technical Indicators and Defensive Commands

Investigating Suspicious Authentication Activity

grep "Failed password" /var/log/auth.log
journalctl -u ssh --since "30 days ago"
last -a
lastlog

Auditing Active Network Connections

ss -tulpn
netstat -antp
lsof -i

Detecting Hidden Persistence Mechanisms

crontab -l
systemctl list-unit-files --state=enabled
find /etc/systemd -type f

Hunting for Suspicious Processes

ps auxf
top
htop
pstree -p

Monitoring File Integrity

find / -mtime -30 2>/dev/null
auditctl -l
ausearch -ts recent

Reviewing Firewall Activity

iptables -L -n -v

nft list ruleset

pfctl -sr

Checking Network Traffic for C2 Behavior

tcpdump -i any
wireshark
zeek
suricata

Microsoft 365 Security Review

Get-MailboxAuditLog
Search-UnifiedAuditLog
Get-AzureADAuditSignInLogs

These commands represent baseline investigative actions security teams can use to identify suspicious persistence, unusual authentication patterns, and potential command-and-control communications similar to those observed in the UNC5221 campaign.

✅ Multiple security investigations have linked UNC5221 (VerdantBamboo) to advanced cyber espionage campaigns targeting enterprise infrastructure and cloud environments.

✅ Brickstorm has been documented as a sophisticated backdoor used against edge infrastructure and virtualization-related environments, supporting reports of long-term persistence.

✅ The discovery of Plenet and AgentPSD alongside Brickstorm demonstrates a layered malware ecosystem designed for redundancy, stealth, and sustained access.

❌ There is currently no publicly available evidence proving that every victim compromised by UNC5221 was accessed through MSP infrastructure. The MSP connection appears specific to the investigated case.

❌ No public evidence confirms the total number of organizations affected by this exact campaign, meaning the broader impact remains partially unknown.

Prediction

Future Outlook for Advanced Espionage Operations

(+1) Nation-state cyber operators will increasingly target cloud identities, storage appliances, NAS devices, and MSP ecosystems because these assets provide broad access while remaining less monitored than traditional endpoints. 🔍📈

(+1) Security vendors will expand EDR and XDR capabilities to support infrastructure devices, storage platforms, and network appliances that historically operated outside visibility frameworks. 🛡️🚀

(-1) Organizations that continue relying primarily on endpoint protection while neglecting identity monitoring and network visibility will face higher risks of multi-year undetected compromises similar to UNC5221. ⚠️📉

(-1) Legacy systems, retired servers, and overlooked edge infrastructure will remain among the most exploited assets by sophisticated threat actors over the next several years. 🔥🕵️

▶️ Related Video (76% Match):

🕵️‍📝Let’s dive deep and fact‑check.

🎓 Live Courses & Certifications:

Join Undercode Academy for Verified Certifications

🚀 Request a Custom Project:

Secure, high-velocity infrastructure and disruptive technological engineering. Contact our engineering team for high-tier development and proprietary systems:
[email protected]
💎 Smart Architecture | 🛡️ Secure by Design | ⭐ Trusted by Thousands

References:

Reported By: www.bleepingcomputer.com
Extra Source Hub (Possible Sources for article):
https://www.medium.com
Wikipedia
OpenAi & Undercode AI

Image Source:

Unsplash
Undercode AI DI v2

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow UndercodeNews & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin | 🦋BlueSky | 🐘Mastodon | 📺Youtube