Offensive Security

Assume Someone Has Read the Source

Tomas FerreiraTomas FerreiraHead of Offensive Security28 Oct 20255 min read725 views
Editorial cover for “Assume Someone Has Read the Source”

On October 15, F5 disclosed that a nation-state actor had maintained long-term access to parts of its network and taken files containing some BIG-IP source code and information about vulnerabilities the company had not yet published. The same day, CISA issued Emergency Directive 26-01, describing the actor as an imminent threat to federal networks running F5 devices, and F5 shipped updates across BIG-IP, F5OS, BIG-IQ and its APM clients.

I run our offensive security team. This post is about what that combination — source code plus notes on known-but-unfixed bugs — does to an attacker's economics, and why defenders should stop asking "is there a working exploit yet?" and assume the answer is yes.

What has actually been said

  • F5 says it learned of the intrusion on August 9, and that the Justice Department allowed it to delay public disclosure. The affected systems included its BIG-IP product development environment and an engineering knowledge management platform. Some files from that platform held configuration or implementation information for a small percentage of customers, whom F5 said it would contact directly.
  • F5 says it has seen no exploitation so far. In its disclosure, and again in an October 22 update from its CISO, it said it was not aware of active exploitation of any undisclosed F5 vulnerability. The update added that F5 knew of no undisclosed critical or remote code execution flaws and had found no evidence of tampering with its source code or build and release pipelines, an assessment it says NCC Group and IOActive validated.
  • CISA's directive gave federal agencies until October 22 to update the core BIG-IP, F5OS and BIG-IQ software and October 31 for the rest. It required them to determine whether the management interfaces of public-facing devices are reachable from the internet, and told them to disconnect public-facing devices that have reached end of support. Its reasoning is worth reading: the stolen material could give the actor a technical advantage in exploiting F5 devices, and successful exploitation could expose embedded credentials and API keys.

The directive binds federal agencies. Its logic binds everyone else.

What source code does for an attacker

When my team tests an appliance from the outside, most of the work is reconstruction: inferring how the software handles a request, where authentication happens, which functions can be reached before anyone logs in. That slowness is a large part of why appliance zero-days are expensive.

Source removes most of that cost. Someone reading the code can go straight to the request handling and authentication logic — the places where logic bugs live — and read it the way the developers did. Internal notes on known-but-unfixed bugs are better still. They are a worklist, written by the people who know the product best.

Then there is the patch itself. Every security update is, for anyone willing to compare versions, a description of what used to be wrong. Attackers who already hold the source and the bug notes are not starting from the patch; they may be starting months ahead of it. The gap between an advisory and reliable exploitation, already short for edge devices, should be treated as zero for this product line.

None of this is a criticism of F5's response, which has been unusually specific. It is a description of the asymmetry its customers now inherit.

The management interface should not be reachable. Full stop.

If attackers have an edge in finding flaws, the first question is which surfaces they can reach at all. The management plane carries the most privilege and has the least reason to be public. F5's CISO wrote that management interfaces should never be exposed to the public internet, and CISA made checking for exactly that exposure one of agencies' first tasks.

We made the same argument after Citrix Bleed two years ago, and an internet-reachable management page on a load balancer, firewall or VPN is still one of the most frequent findings in our external scans of new clients. Close it. Management goes through a jump host on a management network, behind MFA, and nowhere else. CISA lets agencies that already work that way keep their normal update schedule, which says a lot about how much risk that one control removes.

Assume the box can be owned, and limit what that buys

Devices like BIG-IP sit in the middle of your traffic, terminate TLS, and often hold credentials for directory lookups and backend services. Google's September report on the BRICKSTORM backdoor — a separate campaign, which we are not connecting to F5 here — described an average dwell time of 393 days, much of it on appliances that cannot run the tools defenders normally rely on.

We wrote after the Barracuda gateway compromise in 2023 that a box you cannot see inside is one you should at least be able to see around. Plan as though this one will be compromised:

  • Restrict its egress. An appliance needs to reach very few destinations. Outbound connections from its management address to anywhere unexpected should page someone.
  • Know and rotate the secrets it holds. Directory bind accounts, API keys, service passwords in the configuration. If you cannot list them, that is the first task.
  • Ship its logs off the box, as F5 itself recommends, to a destination an attacker on the appliance cannot edit.
  • Alert when the appliance logs in to other systems. A load balancer authenticating to a Windows server or a hypervisor is not normal behavior.

The end-of-life box in the rack

CISA's instruction to disconnect end-of-support public-facing devices is the one mid-market organizations should take most literally. We still find BIG-IP and similar appliances on versions that no longer receive fixes, inherited from an old project and left alone because nobody wanted to touch them. After this month, an unsupported edge device is not technical debt. It is an open question you have decided not to answer.

What to do this quarter

  1. Inventory every F5 device and instance — hardware, virtual and cloud marketplace images — and the version each one runs.
  2. Update to the fixed releases F5 lists for each branch in its October quarterly security notification, checking image checksums against F5's published values first.
  3. Confirm from outside your network that no management interface is reachable from the internet.
  4. Rotate the credentials in appliance configurations, including any configuration ever shared with vendor support.
  5. Work through F5's threat hunting guide and the new iHealth checks if you run BIG-IP, and actually hunt.
  6. Replace or disconnect anything end-of-support, with a date rather than an intention.
  7. Pre-approve the next update. CISA now expects agencies to apply new F5 updates within a week of release. Hold yourself to the same bar.

You cannot un-read the source. You can make sure that whatever they find in it has nothing to reach.

Sources

#edge devices#F5#BIG-IP#patching#CISA#appliances
Tomas Ferreira

About the author

Tomas FerreiraHead of Offensive Security

Tomas cut his teeth doing penetration testing for banks across Brazil and the US, and has a wall of CVE credits from responsibly disclosed findings in enterprise software. OSCP, OSEP, and a stubborn belief that a pentest report nobody acts on is just expensive fiction. He runs our Analysis arm engagements from scoping through the readout call.

Penetration testingApplication securityVulnerability researchPurple team exercises

Discussion(0)

No comments yet — the floor is yours.

Join the discussion

Your email stays private; we only use it to distinguish real readers from bots.

open a channel

The best time to harden your defenses was yesterday.

The second-best time is right now. Tell us what keeps you up at night — we answer within one business day.