Skip to content
Memory corruption Write-up Advanced

DarkSword: iOS Exploit Chain Adopted by Multiple Threat Actors

DarkSword is an iOS full-chain exploit that uses six vulnerabilities to compromise devices running iOS 18.4 through 18.7, allowing attackers to deploy malware that steals data and provides backdoor access. Multiple threat actors, including commercial surveillance vendors and state-sponsored groups, have used it in targeted campaigns.

cloud.google.com

Published on cloud.google.com

Contact Us & Get a Demo

The author, on cloud.google.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely multiple memory corruption vulnerabilities in JavaScriptCore and a pointer authentication bypass in dyld, combined with sandbox escapes and privilege escalation flaws, allowed a full device compromise.

Impact

A successful exploit could fully compromise the device, allowing attackers to exfiltrate sensitive data such as messages, location history, and account information, and to maintain persistent backdoor access.

What the attacker needed

Victim uses iOS 18.4–18.7; victim visits malicious website; no user interaction beyond browsing

The fix

The vulnerabilities were reported to Apple and patched in iOS 26.3 (with most patched earlier); users should update to the latest iOS version or enable Lockdown Mode if updating is not possible.

How it was found

  1. Victim visits a malicious website (e.g., a Snapchat-themed page or a compromised Ukrainian site).
  2. The landing page runs JavaScript that checks a session storage key and creates a hidden iframe to load the next stage.
  3. The iframe loads a script that fetches the main exploit loader, which retrieves an RCE exploit tailored to the iOS version.
  4. The RCE exploit uses memory corruption and a PAC bypass to achieve code execution.
  5. Further stages perform sandbox escape and privilege escalation.
  6. A final payload (e.g., GHOSTKNIFE, GHOSTSABER, or GHOSTBLADE) is deployed to exfiltrate data and provide backdoor access.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes a real-world attack that takes over iPhones by exploiting several security bugs in a row. The attackers trick people into visiting malicious websites, which then use the bugs to install spyware that can read messages, track location, and more. It is like a chain of locked doors where each key opens the next, and the attackers found keys for all of them.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.