Snapchat Detection on iOS (2019)
aeonlucid.com
aeonlucid.com
Otherwise a great read for the security research folks interested in reversing iOS apps.
> I need to be honest, this is a very annoying way how they check for injection because it is annoying to fix. Instead of using getenv they use the environ variable. Since it is a variable, you can not “hook” it.
Once you have code execution I don't see why you can't just go change it back to how it should look…
One more interesting fact is that the checks mentioned here often catch people who are jailbreaking…and people who look like they are jailbreaking, like Apple employees with internal devices. They're indiscriminate, so if you're thinking of implementing these in your app and the many other reasons to not do so aren't enough for you, consider that you may end up annoying a number of engineers at the company that you're solely dependent on to distribute your application.
That being said, snapchat I'm sure makes an absolutely ludicrous amount of money for Apple given that Apple would be dipping into snapchat premium subscriptions. I bet they're special cased, can annoy all the Apple engineers, and not have any repercussions from it.
I can't imagine why snapchat is so militant, probably just some ego or personality on their dev team that doesn't want a subset of power users to emerge. It reminds me of twitter going to war with alternative clients. I tend to hold on to my phone for pretty long, and snapchat is always the first app that forces me to update my phone to the latest OS or even buy a new one entirely if I've reached the final OS for that phone.
this doesn't really do jack
You can't actually fix a people problem with a technology solution, but maybe you can get rich selling technology solutions all the same.
He was horrified to learn what the Print Screen button on his keyboard did.
Although if you’re talking about printing photos, you would need a very high resolution monitor to capture a decent quality photo using the print screen function. Doesn’t seem viable to use print screen in order to save a photo you intend to print, especially in the 90s when screens were rarely better than 1024x768.
Obviously there are better ways to save the high-quality original images, but I’m not sure I would really worry about print screen.
Or maybe I'm just annoying.
However, the daily active users on Snap is a more interesting metric than the total number of users signed up.
Users hate spam, not bots per-se. Snapchat should be focusing on fighting spam, through a karma system, rate limits, etc instead of purely focusing on bots and preventing good bots (or users that appear to be bots, with alternative clients, etc) from existing.
Even Apple acknowledges this:
> No single policy can eliminate all fraud. For example, App Attest can’t definitively pinpoint a device with a compromised operating system. Instead, the DeviceCheck services provide information that you can integrate into an overall risk assessment for a given device.
I wonder if Snapchat would also flag a user if their iPhone was jail broken or otherwise hooked by NSO groups Pegasus spyware?
Advanced users get root on their phones, and use linux on their computers. And as a consequence, they must fight uphill battles or outright give up their access to some tools/networks/games, effectively censoring them there for unrelated choices.
This is the modern equivalent of being silenced by email spam filters false-positives, but today, nobody gives this a thought.
Just to be clear, I don't consider Snapchat's decision as evil or good. "Alienating techies" vs "enabling revenge porn" isn't like your everyday dilemma.