Apple has patched iOS 18 to protect users from the DarkSword malware, even if they have an older device.