News for hackers. Stuff that matters.
Re:Droppers Is How Android Malware Keeps Sneaking into the P... by isolli on Friday July 20, 2018 @08:02AM (#17574278)
Naive question: why is Apple iOS not affected by this?
Re:Droppers Is How Android Malware Keeps Sneaking into the P... by gnomewascool on Friday July 20, 2018 @08:36AM (#17574458)
iOS bans loading external executable code.

> 2.5.2 Apps should be self-contained in their bundles, and may not read or write data outside the designated container area, nor may they download, install, or execute code which introduces or changes features or functionality of the app, including other apps. Educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code provided that such code is not used for other purposes. Such apps must make the source code provided by the Application completely viewable and editable by the user.

https://developer.apple.com/app-store/review/guidelines/#sof...

(Edit: obviously the ban is via reviewing apps in the store, not on the software level.)

Re:Droppers Is How Android Malware Keeps Sneaking into the P... by pilif on Friday July 20, 2018 @09:06AM (#17574627)
> obviously the ban is via reviewing apps in the store, not on the software level

it's also on the software level. If you are an app and want to mark parts of your memory as executable, you need a special entitlement that requires a signature from Apple. Only a very small amount of OS-bundled apps (Safari for example) and no third-party app have this entitlement.

This is a reason why for a long time web-views embedded into apps couldn't make use of JIT compiled JavaScript: Because the web view was loaded in-process with your app, there was no way to execute any of the compiled code.

Only with WKWebView this was fixed by running the webview in a secondary process that has the necessary entitlements and then rendering the view inside of your process. Getting there took Apple quite some time though.

Only static code loaded from disk is marked executable, but that's not writable in memory and it's only loaded into memory when it has a valid code signature signed by Apple.

So unless you manage to get Apple to sign your dynamically loaded payload, even if you sneak the functionality past app-review, there's no way to execute it.

Re:Droppers Is How Android Malware Keeps Sneaking into the P... by pilif on Friday July 20, 2018 @08:43AM (#17574495)
Even if you could sneak loading external code by app review, there's no way to have the OS execute code that hasn't been signed by Apple.

You can't mark memory as executable and you can't have the OS load code not signed by Apple

Re:Droppers Is How Android Malware Keeps Sneaking into the P... by ocdtrekkie on Friday July 20, 2018 @08:29AM (#17574425)
Humans review iOS apps and their permitted functionality is fairly stringently limited, Android apps are approved and scanned by automated processes which are fairly easy to fool. (Play Protect does not rank well as an antivirus scanner according to AV-TEST.)

That being said, malware does make it into the iOS store, it just requires a fair bit more effort since an actual person is going to sit there and fiddle with the app before it can be listed.

Re:Droppers Is How Android Malware Keeps Sneaking into the P... by highesttide on Friday July 20, 2018 @08:33AM (#17574444)
There was a straight up jailbreak app that got through the process with a single button and all it did was apply the exploit to your phone. So I guess I wouldn't put too much faith in their reviews.
Re:Droppers Is How Android Malware Keeps Sneaking into the P... by ocdtrekkie on Friday July 20, 2018 @12:06PM (#17576206)
A one-off error is certainly not shocking in the scale of what an app store processes and the fact that humans make mistakes. I would argue that on average, Apple's review process is far superior to weeding out malicious apps than Google's.