Free Delivery on orders over $200. Don’t miss discount.
AI Updates Updates

Cloudflare Tests Anthropic’s Mythos AI on Real Code Repos: The Future of Offensive Security

image

AI can now chain small bugs into full exploits. Cloudflare tested this in the open. Tohju’s take: this marks a shift from patching fast to building systems that can survive attacks.

In May 2026, Cloudflare shared results from a bold experiment. They pointed Anthropic’s unreleased Mythos Preview model at more than 50 of their own production repositories. The findings were not just accurate. They showed how AI can connect minor issues into working attack paths with ready-to-run proof-of-concept code.

The test did not happen in a lab with mock apps. It used real code that helps protect a large share of internet traffic. The lessons apply to any team building and operating modern software.

Mythos Arrives: A Frontier Model Built for Offense

Mythos Preview is Anthropic’s specialized cybersecurity model. Unlike general coding assistants, it is tuned to think like an attacker. It is a core part of Project Glasswing, launched in April 2026. The program partners with major tech firms and infrastructure providers, including Cloudflare, to deploy offensive AI defensively before similar tools spread to attackers.

The aim is simple: give defenders a head start.

Partners get early access to Mythos Preview, compute credits, and support to uncover weaknesses in critical systems and open-source software. The difference from past models is clear. Earlier AIs often flagged “possible” issues. Security teams still had to ask: Can this be exploited in practice? Mythos reduces that gap by showing exploitation paths.

Inside the Test: 50+ Production Repos Under Fire

Cloudflare used more than 50 live repositories. They first tried general-purpose coding models. Those tools found some issues and suggested quality fixes. But they missed subtle problems in complex codebases. They also struggled to see how small bugs can interact across services.

Mythos worked more like an experienced penetration tester. It mapped components, trust boundaries, and data flows. It looked for ways to pivot. It then combined issues into attack paths. Efficiency was strong, but the real breakthrough was what happened after discovery: Mythos produced working proof-of-concept exploits.

From Discovery to Exploitation: Why Chains Matter

Traditional tools output lists: critical, high, medium, low. Teams must triage and validate risk. That is slow and demands expertise. A “low” issue can be key to a chain, while a “medium” one may be harmless in context.

Mythos accelerates validation with runnable proofs-of-concept. It also excels at exploit chaining:

– Use information disclosure to learn system details
– Combine with a privilege escalation weakness
– Leverage an input validation gap to reach remote code execution

On their own, each bug looks manageable. Together, they are critical. Cloudflare found that many severe results were not single dramatic flaws. They were chains of smaller issues that Mythos connected.

Cloudflare’s 8-Stage Harness: Structure for Complex Testing

To test at scale, Cloudflare built an eight-stage discovery harness. While not all details are public, the approach addressed key steps:

– Repository mapping and attack-surface analysis
– Generating vulnerability hypotheses
– Targeted deep dives on risky code paths
– Exploit development with proof-of-concept code
– Chain discovery across components
– Validation and verification of results
– Real-world impact assessment
– Reporting with remediation guidance

This structure kept the focus on security-relevant findings while handling large, interdependent codebases. It also provided external safeguards around a powerful research model.

The Safety Paradox: Probabilistic Refusals

As a research model, Mythos Preview lacks the hard safety layers of public models. Cloudflare observed that safety refusals were probabilistic. The same request could be refused in one session and accepted in another. This inconsistency means model-level training is not enough on its own.

Cloudflare recommends stronger external controls before any public release. That includes access restrictions, monitoring, and operating Mythos only in controlled environments. Project Glasswing follows this pattern by limiting access to trusted organizations.

Why Patching Alone No Longer Works

Security has long relied on a race: discover, patch, deploy—before attackers act. AI changes the pace. Automated discovery and exploit generation compress timelines in favor of attackers.

Attackers can now:

– Scan many repositories in parallel
– Identify chains across entire codebases in hours
– Produce working exploits quickly
– Scale attacks before patches land

Cloudflare’s test shows these capabilities are real today. The response cannot be only “patch faster.” It must be “architect for resilience.”

Architectural Resilience: Defense That Assumes Imperfect Code

Architectural resilience means a single exploited bug should not lead to serious impact. Core principles:

– Isolation and compartmentalization: limit lateral movement across services and networks
– Least privilege: keep permissions minimal for users, services, and components
– Defense in depth: layer controls so one failure does not grant broad access
– Zero trust: verify every request instead of relying on network location
– Immutable infrastructure: rebuild from known-good images to remove persistence
– Runtime protection: detect and block exploitation attempts, even for unknown bugs

These ideas are not new. AI-driven exploitation makes them urgent. Assume attackers find issues. Design so that exploitation does not cascade.

Tohju helps organizations assess and strengthen these properties with architectural resilience reviews and implementation support.

Project Glasswing: Scaling Defensive AI

Glasswing bets that AI defense must arrive before AI offense becomes ubiquitous. Goals include:

– Proactive protection of critical infrastructure
– Support for open-source security with donated resources
– Development of new defensive patterns based on real attack simulations
– Controlled, responsible deployment frameworks
– Shared norms for handling powerful offensive capabilities

Cloudflare’s results support this thesis. If Mythos can chain issues in Cloudflare’s mature environment, less mature programs face even greater risk.

Practical Challenges You Should Expect

AI-driven discovery brings operational work:

– Validation and triage: confirm findings quickly and rank real risk
– False positive handling: separate signal from noise
– Remediation capacity: balance discovery with what teams can fix
– Workflow integration: connect results to issue trackers and CI/CD
– Skills: ensure staff can validate findings and understand architecture
– Continuous scanning: rescan as code changes

A strong program plans for these realities before turning on large-scale scanning.

How Mythos Compares to Other Approaches

– General-purpose code models: helpful for style and obvious bugs, weaker on multi-step attack reasoning
– Static analysis (e.g., CodeQL, Semgrep): fast and pattern-based, but limited on complex, context-heavy issues
– Dynamic analysis and fuzzing: finds real bugs, but heavy setup and compute
– Human penetration testing: creative and deep, but not continuous

Mythos blends these strengths: pattern recognition, exploit validation, creative chaining, and broad codebase context.

Guidance for Development Teams

– Assume discovery: plan for vulnerabilities to be found
– Prioritize architecture: isolation, least privilege, and layered controls
– Automate testing: integrate into CI/CD and reviews
– Fix chains first: target changes that break attack paths
– Prepare rapid response: faster disclosure windows demand fast detection and response
– Invest in monitoring and logging: detect and contain early

Ethics and Responsible Use

Specialized offensive AI raises hard questions:

– Dual use: defensive intent vs. potential misuse
– Access inequality: keeping smaller teams and OSS from falling behind
– Responsible disclosure: timelines when zero-days affect broad ecosystems
– Accountability: who owns decisions when AI finds issues?
– Proliferation risk: preventing easy weaponization by malicious actors

Controlled access and strong governance are essential as capabilities advance.

What’s Next in AI Security

– Continuous autonomous testing across repos
– Defensive AI copilots for validation and triage
– AI-vs-AI detection and adaptation
– Automated remediation suggestions and safe fixes
– Architectural risk scoring and design reviews by AI
– Predictive security based on code and process patterns

These trends are emerging now, not in the distant future.

Key Takeaways for Security Leaders

– AI exploit automation is here now
– Patch-racing is no longer enough
– Chaining turns small bugs into critical risk
– Safety refusals vary; use external guardrails
– Early access helps only if you act quickly
– Specialized models outperform generalists for offense
– Structured testing frameworks matter at scale

Next Steps With Tohju

Tohju helps teams shift from patch-racing to resilience.

– Assess architectural resilience: identify chain risks and containment gaps
– Implement defense in depth and least privilege: reduce blast radius
– Automate security testing: integrate into your CI/CD pipelines
– Prioritize chain-breaking fixes: focus on high-leverage changes
– Build response capabilities: monitoring, logging, and incident playbooks

Contact Tohju to discuss an architectural resilience audit and a practical roadmap tailored to your environment.

Conclusion

Cloudflare’s Mythos test marks an inflection point. AI can now discover, chain, and weaponize vulnerabilities at scale. The answer is not to outrun discovery with patches. The answer is to build systems where exploitation does not lead to failure.

Tohju’s view is pragmatic: assume compromise, design for containment, automate verification, and practice response. With architectural resilience, your organization can operate safely—even when attackers move fast.

Ready to future-proof your security strategy? Reach out to Tohju for an architectural resilience review and implementation plan.

Tohju.com AI.