The first time a commercial C2 framework gets flagged on an engagement, it is almost always because the defender's EDR (Endpoint Detection and Response) tool recognized a known signature.
The second time, it is usually because the traffic pattern looked exactly like every other Cobalt Strike beacon in the vendor's telemetry.
The tools you bought are being fed to the detection models your target already uses.
When you purchase and use these frameworks without modification, you are essentially using tools that the defender's security software already knows how to identify perfectly.
Common, commercial Red Team frameworks are built in.
I've spent a lot of time on the red team side of engagements at Cye. The organizations that take red teaming seriously have invested in XDR, web proxies with SSL inspection, and NDR watching internal traffic patterns.
Plus a security team whose job is to look for what those tools miss.
Testing that kind of environment with off-the-shelf commercial tooling is just not a realistic adversary simulation.
Below is a rundown on what I have learned about building infrastructure (the C2 servers and tools attackers use) that is stealthy enough to evade detection by mature security teams.
TL;DR
Custom red team infrastructure is required to test any mature defender.
Initial access on hardened targets usually comes through misconfigured protocols, not technical exploits.
Defenders who understand how red teams build C2 make better asset prioritization decisions.
Why Commercial Tooling Fails Against Mature Defenders
Commercial red team frameworks fail against mature defenders because their signatures are the first thing EDR vendors tune for.
Tools like Cobalt Strike, Metasploit, and Covenant are well-documented.
Their beacon intervals, default pipe names, staging URIs, and PE headers are catalogued and built into EDR detection rules.
A well-resourced defender's EDR has seen every one of them.
What makes this worse is the traffic layer.
Web proxies with SSL inspection see the domain age, the certificate authority chain, and the TLS fingerprint.
For example: an expired-looking domain registering fresh, with a Let's Encrypt cert and a JA3 fingerprint that matches known C2 tooling. Your defensive infrastructure looks at the connection attempt's metadata and concludes: "This is a known hacking tool, block it." Well before you can send any malicious payload.
This does not mean advanced attackers stop using HTTPS altogether. It means they rebuild the profile from scratch so that the traffic looks like SaaS API traffic, because it is actually routed through SaaS APIs (Slack, Microsoft, Discord).
Choosing Your Communication Channel
Your C2 communication channel determines how long you stay operational. The choice splits into two problems:
What protocol you use to exfiltrate data
How you disguise that traffic as normal organizational noise
On engagements against organizations with SSL inspection, the most reliable channels piggyback on outbound traffic the proxy is already configured to trust.
DNS tunneling and ICMP still work, particularly those without outbound HTTPS, but are noisier than they used to be. That and NDR picks up the volume anomaly.
The approach that holds up best in 2026 is building C2 communication through legitimate chatbot or collaboration service APIs.
WithSecure's C3 framework (open-source) does exactly this.
It routes C2 traffic through Slack, Discord, and similar API endpoints. It also supports Cobalt Strike and Covenant out of the box. With it, teams can define custom channels and execution logic.
The proxy sees authenticated HTTPS traffic going to a domain it already trusts. Precisely the profile defenders struggle to suppress without disrupting normal operations.
DNS over HTTPS also matters as an alternative for segments where web access is locked but encrypted DNS is permitted.
The practical choice on any given engagement depends on what the target's proxy and NDR policy actually blocks.
Scoping that before deployment saves time.
Initial Access: What Still Works and What Gets You Burned
Initial access at mature organizations rarely fails on defender technical controls. It fails on protocol defaults that security teams never changed.
Below is what still produces reliable access on assessments against hardened environments:
Password spraying from distributed IPs: CredMaster against SSO, VPN, or VDI infrastructure still yields results where MFA is absent or where push-notification MFA fatigue is exploitable. Simple accept/deny MFA prompts from the target's home country hit real users.
Evilginx with aged domains: A reverse proxy that intercepts full session tokens including MFA cookies remains viable. Blocking automated defensive scanners extends domain longevity significantly. Paired with SMS phishing (smishing) it produces better hit rates.
Misconfiguration abuse: Remotely exploitable misconfigs (particularly in cloud-adjacent identity infrastructure and on-premises exchange systems) still provide initial access without writing a single exploit.
New CVEs in VPN and perimeter appliances: The window between public disclosure and enterprise patch deployment is wide.
What gets you burned fast on mature targets is staging from fresh infrastructure with low reputation, using unmodified Mimikatz or Impacket, and leaving default pipe names or process names in tooling.
The first tool check on any mature engagement is whether the framework has been modified enough to lose its commercial signature.
Building Interoperable Execution Infrastructure
Interoperability between your tools is not a convenience feature. It is what allows a red team to pivot between capabilities without touching disk again.
The highest risk moment in any engagement is writing a new binary or dropping a new payload. Each additional file becomes a new detection opportunity.
The build principle I apply is to start from open-source C tooling that loads .NET assemblies in-process.
Donut-style loaders execute C# tooling in memory without spawning a new process.
This reduces the behavioral signals an EDR has to act on.
Combined with existing offensive frameworks that support in-process execution, it keeps the footprint low.
Below are three rules for offensive infrastructure that will hold up across a full engagement:
Reduce development time with open-source building blocks. Reinventing what exists is a recipe for lost time and avoidable bugs.
Interoperability with your existing toolchain. A channel that does not talk to your implant is useless when you need it.
Test your infrastructure against the defender's actual toolset, not against a default config. Mature defenders do not run out-of-the-box detection thresholds.
What Red Team Infrastructure Tells Defenders
The reason I build infrastructure this way is also the reason defenders should understand how it works.
An attack simulation that uses techniques an attacker would realistically use is the only reliable way to find out which exposures are real, which detection controls are tuned well enough to catch them, and which attack paths to your most valuable assets are still open.
Cye's platform does the mapping on the defender's side. It models real attack routes to business-critical assets (BCAs), prices what each path costs if exploited, and surfaces which exposures to close first (Cye).
The logic underneath is to begin with what an attacker can actually reach (that maps to a business critical asset), not with what scores the highest on a severity scale.
Build infrastructure the way real attackers do to surface the gaps that a scanner running against default signatures will miss.
Model real attack paths against real assets to close those gaps in an order that makes business sense.
Then the path findings feed into a three-way decision:
(1) Remediate the root cause at the choke point
(2) Mitigate by applying controls to raise the cost of traversal
(3) Accept the residual risk where the asset's breach cost doesn't justify the investment
Before committing budget to any of the three, What-If Analysis models the expected-loss reduction and the residual each option leaves on your own environment.
That decision (made per path, per asset, with a dollar figure behind it) is what turns a red team report into a budget conversation the board can engage with.
The financial aspect is key to push high priority discoveries forward to remediation. To remediate, you will likely require a budget. The issue may be so large, in terms of impact and cost, that it requires board approval.
Count both immediate line items (security, legal, invoices expected to come in) and other costs such as reputational damage, loss of pipeline, customer churn, and more. Do that and your board will understand priority in a way they can allocate resources to. In dollar terms.
Frequently Asked Questions
Questions practitioners and security leads most commonly ask when evaluating red team infrastructure decisions.
Why does commercial C2 tooling fail on mature targets?
Because the signatures are documented and distributed. EDR vendors maintain threat intel feeds that include process names, pipe names, staging URIs, beacon timing, and PE header characteristics from every major commercial framework.
A mature security operation running a tuned EDR will flag commercial tools within hours. Mature adversaries (and professional red teams) build custom tooling or heavily modify existing tools to remove the identifiable profile.
Is Evilginx still viable in 2026?
Yes, with specific conditions. It requires aging your domain before the engagement, blocking automated defensive scanner IPs to preserve domain reputation, and ideally pairing the reverse proxy with smishing rather than email phishing.
Session cookie theft through a reverse proxy defeats most MFA implementations, which is why Conditional Access and hardware tokens that bind sessions to device posture are the relevant countermeasures, not additional MFA push factors.
What is WithSecure C3 and why is it useful?
C3 (Custom Command and Control) is an open-source framework from WithSecure that routes C2 traffic through legitimate third-party APIs (Slack, Discord, and others). The proxy sees an authenticated session headed for a domain on its allow list.
C3 supports Cobalt Strike and Covenant out of the box and allows teams to implement custom channels and execution logic. It is useful specifically because the communication channel looks exactly like the SaaS traffic a mature organization's proxy is already configured to pass.
How do I test infrastructure against mature defenders without tipping them off?
Build a realistic simulation environment first. Mirror the target's known security stack (the EDR vendor, proxy vendor, and NDR solution) and test your tooling against that stack before the engagement begins.
If your beacon gets flagged in the lab, it will get flagged in production. The goal is to surface and fix that before you are in front of a real target with a limited window.
What should defenders take from red team infrastructure choices?
That the relevant threat model is not "which CVEs are highest severity" but "which paths to critical assets are actually walkable by a real adversary with realistic tooling." Red teams build infrastructure that mimics how real attackers operate, including custom C2, aged domains, and protocol-level evasion. Defenders who understand these techniques prioritize exposures based on reachability and asset value, not signature counts.
Further Reading
• Cye, Building a Modern Red Team Infrastructure: initial access methods, C2 channel design, and custom offensive tooling for mature targets: cyesec.com/blog/building-a-modern-red-team-infrastructure
• Cye Platform: attack-path modeling with expected loss per path, for prioritizing which gaps to close first: cyesec.com/about
• WithSecure C3 (GitHub): open-source custom C2 framework with SaaS API channels: github.com/WithSecureLabs/C3/
• Cye, 5 Active Directory Mistakes You Should Avoid: the identity-layer misconfigurations red teams find in almost every engagement: cyesec.com/blog/5-active-directory-mistakes-you-should-avoid
• Cye, Exposure Management: connecting each finding to the business-critical asset it threatens: cyesec.com/blog/exposure-management


