r/Android • aka jcase • Aug 18 '15

Ask Us Almost Anything about Android Security, Privacy or Malware with beaups, Tim "diff" Strazzere, Joshua "jduck" Drake, and Jon "jcase" Sawyer

Tim "diff" Strazzere, Joshua "jduck" Drake, beaups (maybe) and Jon "jcase" Sawyer are here to discuss Android Security, Privacy and malware with /r/android today from 3-5pm EST.

jcase and beaups are from TheRoot.ninja, members of the team behind SunShine. Both have also been authors of numerous Android roots and unlocks. jcase has done talks with Tim at Defcon, GSMA and Qualcomm's own security summit.

Tim Strazzere is a lead research and response engineer at Lookout Mobile Security. Along with writing security software, he specializes in reverse engineering and malware analysis. Some interesting past projects include reversing the Android Market protocol, Dalvik decompilers, and memory manipulation on mobile devices. Past speaking engagements have included DEFCON, BlackHat, SyScan, HiTCON, and EICAR.

Joshua J. Drake is the Sr. Director of Platform Research and Exploitation at Zimperium Enterprise Mobile Security and lead author of the Android Hacker's Handbook. He also found numerous vulnerabilities in Android's stagefright, and completely changed the Android update ecosystem by doing so.

If we can't answer something, or we are wrong on something, please answer it for us with citations!

diff = /u/diff-t

jcase = /u/cunninglogic

jduck = /u/jduck1337

beaups = /u/HTC_Beaups

Discussions off limits:

ETAs

Requesting exploits

Requesting details about unreleased things

Requesting help developing malware

We are scheduled for questions between 3-5EST, and between 5-7EST for answers. We will probably answer questions as we see them.

336 Upvotes

256 comments sorted by

20

u/[deleted] Aug 18 '15

Which OEM's do best job patching disclosed vulns?

18

u/CunningLogic aka jcase Aug 18 '15

They all have their weaknesses, and strengths but from the ones I watch, these three (in no particular order) seem fastest at patching vulns (talking non carrier devices).

BlackPhone Samsung Motorola

9

u/[deleted] Aug 18 '15

Samsung and Blackphone I expected Motorola is a surprise. IIRC HTC has "patched" some vulns in that past while not actually fixing the problem and hence leaving the exploit open...

13

u/CunningLogic aka jcase Aug 18 '15

I believe you are speaking possibly of my WeakSauce line of exploits. Yes their first attempt at patching was "improper" and did not address the problem appropriately. They checked to "ensure" we were not targetting a symlink and that the target was within the /data/data, however left it open to a path transversal that beaups pointed out to me while we were investigating their fix. We changed one line of code, and it worked again. They responded by entirely removing the function we were exploiting, as well as another vulnerable one.

→ More replies (1)

25

u/diff-t Lookout Aug 18 '15

BlackPhone is easily the fastest.

Though I have to give some props to Amazon as they respond very fast to things I've chatted with them about believe they handle things relatively well.

I can't speak to many other vendors as I rarely get responses, or if I do, ever see patches make it out to devices.

→ More replies (3)
→ More replies (2)

16

u/Zathu Aug 18 '15

What was the fastest discovery of a stupid root vulnerability you've ever come across and what was it?

29

u/CunningLogic aka jcase Aug 18 '15

My case, considering no background research, probably the HP medfield devices. It kicked me into a shell with a debuggable ramdisk when I plugged it in when powered off. "adb root" and i had root.

→ More replies (1)

15

u/diff-t Lookout Aug 18 '15

Was digging into some devices I bought off Amazon and was excited when I found a really strange one that had interesting specs. I plugged in the usb cable and was getting ready to dive head first into the device... Adb dropped directly to root without asking for device authorization... :sigh:

→ More replies (2)

13

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

grep -r boobz /proc -- OOPS?

30

u/death2all110 Aug 18 '15

As its now officially 3:00PM on the east coast...

How did you get your start with finding root exploits in Android? Any resources you guys found particularly helpful?

Edit: If this is off limits I apologize. I'm not asking for an exploit or requesting help or even interested in developing malware.

43

u/CunningLogic aka jcase Aug 18 '15

I was frustrated with a factory installed app that was behaving poorly, at the time no root solution was available for my phone. I looked at every open source exploit for Android I could fine, learned smali, and read every available disclosure I could find. I also bugged Dan Rosenberg often once I met him.

As a resource, I can recommend doing the same. Look at past works, and read what you can find. I can recommend two books on the subject, that both sit on book shelf:

http://www.amazon.com/Android-Security-Internals--Depth-Architecture/dp/1593275811/ref=sr_1_1?ie=UTF8&qid=1439924705&sr=8-1&keywords=android+security

http://www.amazon.com/Android-Hackers-Handbook-Joshua-Drake/dp/111860864X/ref=sr_1_2?ie=UTF8&qid=1439924705&sr=8-2&keywords=android+security

12

u/death2all110 Aug 18 '15

Great thanks! What helped you learn Smali?

→ More replies (3)

4

u/theixrs HTC One / bootlooped (dead) LG G4 Aug 19 '15

how much do you get from donations and bounties per phone?

11

u/CunningLogic aka jcase Aug 19 '15

Rather what is promised, so I don't even pay attention to bounties anymore.

Example, now i know a bounty existed, i dont know how much. I was one of a 3 that contributed to the LGG4 root. I ended up having to buy 3 phones, bricked one off the bat, by nuking the partition table. So $2200 there in phones. I received $237 in donations from my count. So u guess about -$1800something.

Sometimes it is better, rarely it is. Wasn't after money for the LGG4, was after some fun.

8

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I started by reading and dissecting exploits that were out there at the time. These were things like GingerBreak and ZergRush... Other than that, just researching and reading all the papers/presentations I could find. There are a lot of them listed here: http://droidsec.org/wiki/

14

u/_infiniteh_ Aug 18 '15

This one is for /u/HTC_Beaups

How do you pronounce your handle?

Is it bee-ups, or Bopes?

27

u/CunningLogic aka jcase Aug 18 '15

Please answer this, I've met the guy in person more than once and I still don't know the answer.

→ More replies (5)
→ More replies (3)

24

u/iWizardB Wizard Work Aug 18 '15

I've got two questions -

  1. Now that Google is pushing for Android at workplaces, I'm sure they will try to lock it down more n more. That is, make it more difficult to unlock/root. Is that something you guys are expecting too? What's your take on it?
  2. How secure do you think fingerprint scanners are? After the HTC fiasco, do you think people should show some faith or should we wait for the tech to mature?

14

u/CunningLogic aka jcase Aug 18 '15
  1. Maybe, but this isnt going to be the only driving factor. More and more people are doing banking, and sensitive non work functions on their mobile devices as well. Securing an OS is just plain smart, and good for consumers. We should have secure phones.
  2. I love the one on my Galaxy S6 edge, I won't be using a phone without one again. The HTC fiasco is bad, but it also depends on local malware. Be responsible in what you install on your phone.
→ More replies (4)

44

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15
  1. Definitely expecting increased security. It's a good thing IMHO. Especially when it comes to devices like Nexus where you can root it if you want by design.
  2. I'm personally not a fan of fingerprint scanners because you simply cannot change your biometrics in the event that they get compromised. Once stolen, forever lost.
→ More replies (7)

9

u/Shabaaab Aug 18 '15

Do you think having an anti-theft software is necessary on modern Android devices? Do they really make a difference? If so, which one would you objectively recommend?

14

u/CunningLogic aka jcase Aug 18 '15

We located my son's Nexus 4 that was lost via one, I showed up at a trailer across town to a very surprised person to retrieve the phone. Necessary? dunno depends on you. Helpful? was for me.

→ More replies (7)

6

u/naco_taco OnePlus 3T, Nexus 5, Moto E, GSII, Shield Aug 18 '15

I would think it is. Device Manager is pretty useful when you have internet. But what if the phone has no internet connectivity? That's why I have Cerberus, with it I can get the phone's location via SMS in case it gets stolen, and in the worst of cases, erase it.

→ More replies (4)

9

u/Caspid Pixel² Aug 18 '15

What's next for Team Ninja?

24

u/CunningLogic aka jcase Aug 18 '15

I have a rack of ribs in the smoker, so probably eating ribs for me.

9

u/[deleted] Aug 18 '15

It might be good for everyone to know: Which Android devices do you find the most secure?

20

u/CunningLogic aka jcase Aug 18 '15

Android 5.x and up is particularly annoying for me to try and root, my go to tactics are often dead due to the strengthened SELinux policies. Historically, Samsung devices have been complained about by other researchers for being "hard'.

2

u/tylerlawhon Quite Black Google Pixel XL 128GB | Black Samsung Galaxy S8+ Aug 19 '15

So essentially a Samsung device on 5.x is gonna be awful to work on?

→ More replies (2)

10

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

The latest devices with the latest updates are almost always harder to attack.

9

u/WeaponizedMeerkat Aug 18 '15

/u/jduck1337 what made you start looking at the stagefright libraries for possible exploits? Were you running static analysis tools on the code?

For all:
Google has mitigated webview vulnerabilities with the creation of the Android System WebView app. Do you think they should also do the same for the media playback frameworks?

9

u/CunningLogic aka jcase Aug 18 '15

I don't think it is possible to do so for the media playback frameworks, without major push back from the OEMs. For example (as jduck pointed out to me) look at CM's implementation, these OEMs make massive and major modifications to the media playback frameworks.

11

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I ended up in stagefright because of the name. I found it when looking around in frameworks/* of AOSP. There is a ton of code there and I don't think anyone really every reviewed any of it.

The issues I found were found by a combination of fuzzing and manual code review. I didn't use any SCA tools. Actually, I've not had a lot of luck with those in the paste either. Maybe they have improved since though!

I heard a rumor that they are strongly considering moving more components into the app-store-updatedable model in the future. Time will tell. From the time that the idea of making that change to WebView to the time it was implemented was over a year. I think I first started complaining about it in ICS and it wasn't until Lollipop that it happened (so not Jellybean, nor KitKat).

I'm a big fan of being able to update more things faster!! Update speed has a huge impact on bad guys. When's the last time you saw some Chrome exploit being exploited in the wild?!

→ More replies (2)

7

u/The_Sexy_Cookie Aug 18 '15

As a CS student concentrating in Information Assurance and hoping to work on android security someday, what advice could you give that you wish you had when you were starting out doing this ?

10

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Read everything you can get your hands on and experiment often! I'm a firm believer in applying what you learn to solidify your knowledge.

→ More replies (1)

6

u/_rs Aug 18 '15

What would you rather reverse, a binary with many small functions or one with just one function?

8

u/CunningLogic aka jcase Aug 18 '15

Small, clearly defined functions.

7

u/diff-t Lookout Aug 18 '15

I love looking at heavily obfuscated things that make my brain want to melt. It's like an old school MUD game where I need to map out things and understand (hopefully) new problems I've never come across.

With that said, it is nice when you see people leave symbol and debug code inside code which lets you completely understand the code and find issues in just a few minutes...

12

u/bobdle Nexus 6P Aug 18 '15 edited Aug 18 '15

Are you excited for the upcoming permission handling that will be available in Android Marshmallow? Do you think that's going to cause more problems if users, who are not very savvy, start screwing with app permissions?

8

u/HTC_beaups Aug 18 '15

It sounds like a major inconvenience to users, and thus I see people working to bypass it. But I'll reserve final judgement until official release.

2

u/CunningLogic aka jcase Aug 18 '15

target a lower api, and its bypassed, is it not?

6

u/vectorzulu Aug 18 '15

On devices running the M Developer Preview, a user can turn off permissions for any app (including legacy apps) from the app's Settings screen. If a user turns off permissions for a legacy app, the system silently disables the appropriate functionality. When the app attempts to perform an operation that requires that permission, the operation will not necessarily cause an exception. Instead, it might return an empty data set, signal an error, or otherwise exhibit unexpected behavior. For example, if you query a calendar without permission, the method returns an empty data set.

-- Source

→ More replies (1)

26

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I'm really excited about the upcoming changes. I think they are really onto something with prompts that make sense in the context that they are needed. This is how permissions should have worked on Android since the beginning IMHO.

→ More replies (3)

11

u/Shabaaab Aug 18 '15

What's the toughest privacy/security challenge that you guys have had to overcome?

17

u/CunningLogic aka jcase Aug 18 '15

Ensuring that I feel my kids are safe with their mobile devices. I give them devices from OEMs (not carrier branded) that I believe will get quick updates, I also have Lookout installed on their devices, as they do download and install a lot of crap.

→ More replies (3)

12

u/diff-t Lookout Aug 18 '15

Personally, treading the line of privacy/security while working for a defensive company is the hardest thing.

Most people tend to think security is (almost) never an issue. Whenever we discover or find something, it's genuinely a battle with press to keep them from overhyping it but still being interested in it. It's also a battle to make some things understandable to general audiences and still make it an approachable subject.

Just for an slight example - I can write a whitepaper on the most interesting malware I've ever seen and how complex it is. Though unless I have a TLDR with a tag line of "your nudes are stolen" or "phones blow up" it would likely never get traction. On the flip side, if I find one piece of malware that steals photos but it isn't widely distributed (because we got all the C&Cs taken down) we would be labeled as FUD and drumming up hype.

Media is weird and it's tough to be a sane voice when everyone around you wants hype. (This seems to ring true for all things that deal with media... security just has it real hard sometimes)

edit: doh, I spell well

→ More replies (1)

5

u/WeaponizedMeerkat Aug 18 '15

Is there anything Google can do, from a system architecture perspective, to directly push security updates or are they forever beholden to the OEM's since they like to roll their own OS's?

7

u/CunningLogic aka jcase Aug 18 '15

Google does not (should not?) have the keys needed to actually accomplish that. This is why we are seeing things like WebView being moved to an external APK, that google can update.

10

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

What Jon said. Also, there are carriers and more in play here. There's more to the problem than just who signs the update. OEMs typically are the only ones with the source code to build binaries for devices! Then, who runs the OTA infrastructure? See what we are up against?

→ More replies (3)

5

u/jerdog76 HAL, 9000 Aug 18 '15

No question - just a comment. Great work guys and thanks for supporting the community like you do, and doing more than the community could even dream of.

Also - jcase - what's the ETA on your next bottle of wine?

3

u/CunningLogic aka jcase Aug 18 '15

Probably some time next week

→ More replies (1)
→ More replies (1)

8

u/Shabaaab Aug 18 '15

You're given a new android device. What are some of the must-have apps that you would install on it?

16

u/CunningLogic aka jcase Aug 18 '15

Google Authenticator

Reddit Is Fun

A custom password manager

Twitter

Timely

Google Voice

→ More replies (8)
→ More replies (1)

4

u/pyler2 Aug 18 '15

What is your workstations? I mean.. PC/laptop. Brand, specs, etc. Win/Linux/OSX. If Linux, which distro? And of course.. current phone :)

Thanks for this AMA! :)

5

u/CunningLogic aka jcase Aug 18 '15 edited Aug 18 '15

Workstation: Mac Pro (Late 2013) • CPU: Intel Xeon E5-1650 v2 (12 Threads, 6 Cores) @ 3.50 GHz • Memory: 32.00 GB • Uptime: 5 days • Disk Space: 999.38 GB • Graphics: AMD FirePro D500, AMD FirePro D500 • Screen Resolution: 3440 x 1440 hrmph thought i had 64gb, i need to fix that

I use a macbook pro retina for travel, forgot the specs, maxed out except the drive

Linux box for a headless unit, its needed some times. Ubuntu something, not important.

Phone Galaxy S6 edge, love it, esp fingerprint reader!

5

u/diff-t Lookout Aug 18 '15 edited Aug 18 '15

Mac Book Pro (2013?) Lots of junk in some cloud services running ubuntu server... or some similar for heavy lifting :)

→ More replies (1)

4

u/Codename13 Nexus 6P - Aluminum 32GB Aug 18 '15
  1. Do you guys use custom ROMs?
  2. If so, do you use ones from the internet or do you compile your own from source?
  3. Which custom ROMs have the best security features?

Bonus question: Is security actually that much of an issue for Android? What percent of users are actually affected by or get viruses on their phones? And for experienced users, couldn't they just reboot to recovery and remove the viruses manually or does it not work that way? Thank you.

6

u/CunningLogic aka jcase Aug 18 '15
  1. I do not, i find most custom roms to have their own security challenges, plus personally I don't strive to get the "most out of my phone", my usage is fairly boring and I just have no such need.
  2. see 1)
  3. I know some hardened roms are out or coming, but I haven't looked. TheGrugq has a hardened one coming (i think a CM fork), and CopperheadOS looks to have some potential. I haven't used either.
→ More replies (1)

7

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15
  1. Usually not. I didn't even use CM until it shipped on the One Plus.
  2. I think most sources are trustworthy, but be careful. ROMS with backdoors pre-baked in them are not unheard of.
  3. I'm really excited about http://copperhead.co/ ! There have been a few others that got me excited too, but they never released :-/ I admire Blackphone's dedication to fast patching!

That's like a bonus three questions!

Security is an issue for everyone. The sheer number of users/devices in play in the Android ecosystem brings extra risk IMHO.

I couldn't give a good number for a percentage of users that get infected.

I think rebooting into safe mode or recovery is definitely one way to remove them. However, usually it's as simple as uninstalling some app.

3

u/UberLaggyDarwin CyanogenMod (community dev) - uberlaggydarwin Aug 19 '15

Use of AOSP test-keys is a serious problem in security terms. They are public and very exploitable. Other problems like random unaudited crappy hacks just added because they make something appear faster.

4

u/HangingOutHere Pixel 2 Aug 18 '15

/u/cumminglogic Any plans on updating the TimePIN app to work with 5.1 or 6.0 or releasing the source code like you've previously mentioned you would do at one point?

3

u/CunningLogic aka jcase Aug 18 '15

As you mentioned, I've already stated I would release source when time allowed me to. It needs a massive clean up, I am far from a clean coder, probably 80% of the files are commented out code code, and notes to myself, much unrelated to timepin.

I won't be updating it for 5.x+, I don't think it is safe to do (without root) on an encrypted device. I have no drive to build root only apps.

→ More replies (2)

3

u/Codename13 Nexus 6P - Aluminum 32GB Aug 18 '15

What are your positions on the openness of phones? For example, do you think all phones should have unlocked bootloaders and be easily rootable? Do you agree with ideas like Samsung's KNOX security software that burns out a physical fuse in the device when the firmware is tampered with?

3

u/CunningLogic aka jcase Aug 18 '15

I think consumer devices need to be as secure as possibly, without loosing their primary functions. The average consumer does not root their phone. Yes I think blowing a fuse upon tamper, and making it apparent to the user is a good idea. You should easily be able to tell if your device has ever been tampered with.

If I expected my phone to be un tampered with, and notice it wasnt one day, I would immediately stop using it, and investigate why it was so.

5

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I like as much security as I can get as long as I can still control my device.

3

u/[deleted] Aug 18 '15

Carriers modify software on devices. What is the best way for a user with very little knowledge of executing code to find out what an app does on their device. On a system level?

6

u/CunningLogic aka jcase Aug 18 '15

google it, or get down and dirty and learn to reverse

→ More replies (1)

3

u/SiGNAL748 Galaxy Nexus 7.1 Aug 19 '15

How many different/which phones do you currently have in your possession? Which one do you use the most?

3

u/CunningLogic aka jcase Aug 19 '15

Well over 200, used primarily for research, or were in the past. I use a Galaxy S6 Edge as my phone

4

u/HTC_beaups Aug 19 '15

I probably have the fewest, at somewhere around 40 (would need to count). I was loving my 14x until I shattered the screen a few months ago. Then switched back to my m8, which I shattered two days later. My damn m9 that I'm using now won't shatter :/

4

u/diff-t Lookout Aug 19 '15

We all have tons... Last count I had ~75 - though I love buying odd phones and knock offs. Currently sporting a lg g4 and had a one plusone not to long ago.

2

u/[deleted] Aug 18 '15

What are the best way to protect yourself from some of these vulnerabilities and apps?

2

u/CunningLogic aka jcase Aug 18 '15

Be smart at what you download, what you install and what you connect your phone to.

Buy a device from a OEM known to take security seriously, and to update often.

→ More replies (1)

14

u/dr0id3ka Aug 18 '15

Josh (and co), thanks for doing the AMA! Really cool presentation at Black Hat, I didn't get a chance to meet you unfortunately.

After all of the media hype about Android's security being poor, how do you feel about the patches you provided to Google being shown as incorrect, or incomplete, leaving users open to further exploitation?

Thanks!

9

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Thanks for the kind words. It's a tiny bit of a sore subject, but I'm not terribly bothered by it.

Regardless of what people might think, I'm human and thus am prone to making mistakes. Also, I never once said that the patches I submitted fixed all the bugs in Android, let alone Stagefright. I've always been very open about how I believe there to be many more issues and have since been proven correct in that belief. All in all, I'm thankful that the community responded so strongly. Future versions of Android will be much more secure because of the efforts of everyone involved.

4

u/Shabaaab Aug 18 '15

How would you say your mobile security suites compare to those of other companies, e.g. Bitdefender, avast etc.?

7

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

This is a strange question, but I'll bite. I'm primarily an offense guy so let me know if I get something wrong.

To my knowledge, most mobile security suites are very limited in what they can provide. They simply scan apps installed on the device or provide a rudimentary firewall.

Zimperium's zIPS product, to my knowledge, is completely different than the other tools out there. We use behavioral analysis and machine learning to differentiate between good and bad things going on. This allows us to do things such as detect previously unknown privilege escalation exploits without modifying our engine.

5

u/diff-t Lookout Aug 18 '15

Adding onto what jduck said --

Companies like zImperium and Lookout have a solid advantage, in my mind since we're "nimble start ups" (maybe I should add cloud and other buzz words here). Though, really, it's an advantage to have people who are researching and not weighed down with years of legacy tech debt or trying to fit new problems into older systems. This gives us a chance to separate from what some people might consider the "pack", though from my perspective - it makes the "incumbents" have to strive that much harder to catch up to us.

Similar to what jduck said, though specifically for Lookout, we rely on using data at scale to automate lots of interesting tasks for us - allowing the man power to focus on the next hard problem, opposed to scaling with people.

→ More replies (1)

1

u/DarthShadowPL Aug 18 '15

Can you recomend some best setup for different mobile OS-es application testing? (iOS/Android/WP) ?

3

u/CunningLogic aka jcase Aug 18 '15

I can only for android:

I use a macpro (Cause vR00m)

I use Jeb/IDA for individual binary/app assessments.

For mass processing, I use a custom tool that pretty much just automatically disassembles/decodes files, and does pattern matching. I think look at them closely with Jeb or IDA to see what is going on.

I keep nexus devices of each release on hand, so I can compare OEM versions of androids with "clean" versions when needed.

I use a tack of notepads (yes paper) as well as a dry erase board for notes. Paper for long term notes, dry erase for short term notes.

3

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

This is a really difficult question. I think everyone develops a taste for which tools they enjoy using over time. Probably start with some Linux (maybe one of those distros made for app-pentesting) and layer on some additional stuff as needed. If you want to peer into the Android OS itself, there's no substitute for using a Nexus device and AOSP.

As for iOS and WP, I'm a bit out of my depth there.

→ More replies (3)

1

u/shawnwhite Aug 18 '15

Do you guys still enjoy what you do? Keep having fun!!

3

u/CunningLogic aka jcase Aug 18 '15

The research and fruit of it? Yes. Interacting with some people, not always.

6

u/HTC_beaups Aug 18 '15

When it works.

3

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I love it every day. Even when it doesn't work =) Definitely much more on days of success though =)

3

u/diff-t Lookout Aug 18 '15

I'm still shocked I get paid to have fun, break stuff and chat with awesome people on a daily basis.

1

u/shiruken Google Pixel 7 Aug 18 '15

I find that I'm less and less inclined towards rooting my phone as Android develops as a platform. This is mostly the result of features previously only accessible/possible through rooting being incorporated into the Android OS. Have you guys noticed any decline in rooting over time?

3

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I will likely always root because I am a control phreak. Also sometimes I just need to get low into things to fix them. For example I once had to disable SELinux (set it in permissive) in order to watch a movie on a United Airlines flight...

→ More replies (1)

1

u/tylerlawhon Quite Black Google Pixel XL 128GB | Black Samsung Galaxy S8+ Aug 18 '15

Jcase, when can we expect a root for note 5 along with lots of ROMs? Jk just wanted to thanks for everything you've done for the community.

What has been the most difficult device you've ever exploited?

2

u/CunningLogic aka jcase Aug 18 '15

A currently unreleased phone :)

→ More replies (2)

1

u/MrRiski Aug 19 '15

This probably won't get noticed but I was wondering if /u/CunningLogic still remembers the jcase sucks root app that was released, I believe, for the Asus Transformer Prime. It was released the night of or the night before k case released his root method that I was helping test.

2

u/CunningLogic aka jcase Aug 19 '15

I do, someone was upset that I released a root that could potentially be abused by an application. A mod deleted their rant, then posted an even more abusable exploit in response. Mature crowd.

2

u/SolarAquarion Mod | OnePlus One : OmniRom Aug 19 '15

A mod of XDA?

→ More replies (1)
→ More replies (1)

1

u/StarHorder Black Aug 19 '15

Could you maybe get somebody to investigate the Top Gear apps? Many people have raised major concerns about the apps. They seem fishy.

→ More replies (3)

1

u/ecmdome OnePlus 2 Aug 20 '15

Not sure if you guys ate still answering questions or if this is off-topic.

Android M is bringing USB Type-C support... How secure is this standard and androids implementation(or will this depend on manufacturers?) Vs something like the thunderbolt exploit that can brick a Mac?

→ More replies (1)

6

u/goodnewsjimdotcom Aug 18 '15

Is it possible to download a virus from Google Play store if the app doesn't require root? What permissions should I look out for?

12

u/HTC_beaups Aug 18 '15

Yes, of course. Apps in the store could contain exploits to obtain root. Depending on the nature of the exploit, it may not need any "odd" permissions. Once it's escalated to root, the permission model is irrelevant.

7

u/diff-t Lookout Aug 18 '15

Adding to what beaups said, I think most users might be shocked what "malware" tends to do on peoples devices. Some might send SMS, however some will just silently sit in the background and use the internet to perform fraudulent clicks.

Somethings might be really obvious to users that it would be bad (stole all your passwords or contacts) while some might not be obvious (proxying some internet traffic). Depending on what type of billing rates you have, you might never notice something on your device that is bad.

Though most "crappy" malware will just asking for all the permissions all the time.

Another interesting example which might not have stuck out would be some bitcoin mining (yes... bitcoin mining) malware which was embedded in games. No extra permissions where ever added to the games, however at night when plugged into a charge it would mine bitcoins and send them off to a remote server.

→ More replies (2)

3

u/fuzzyn00b Aug 18 '15

What's the current scenario of vulns being discovered in Android which could be used to exploit users at a large scale, not just in say targeted attacks? How serious is it for a normal user who may be left behind due to OEM's not providing updates for his device on time?

5

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

In my opinion it's very serious -- downright urgent -- for users of versions older than 4.1 to upgrade immediately. Users of 4.1 and later get some added protection from ASLR, but I wouldn't be a proper security expert if I didn't strongly urge everyone to do their best to stay on the latest versions. People should look to the past and decide which devices to buy based on update track records IMHO. The latest flashy device is great but if it never gets updated, you're still getting screwed -- especially if you're on a contract.

→ More replies (2)

3

u/fuzzycuffs Aug 19 '15

My biggest issue with Android security is fragmentation because of manufacturers and carriers not releasing security updates in a timely manner (or at all). Google giving away Android to manufacturers and carriers to customize how they please (ie inserting revenue streams) has lead to them becoming software companies when they are woefully prepared to do so.

I understand Google for Work's great concepts, but can Google really pull back control of Android from these parties?

Case in point: I live in Japan. Still no Stagefright update from NTT DoCoMo for their phones. They barely update their phones to begin with. They want you to buy a new phone (and thus a new contract), not update old handsets that they don't want to support.

As someone who has to make decisions about mobile device security for my firm, I simply can't say that Android is ready to be used for work unless it's an entirely corporate controlled installation.

1

u/fuzzyn00b Aug 18 '15

Some define Android like this : "Google worked hard and brought malware to Linux" Thoughts ?

17

u/CunningLogic aka jcase Aug 18 '15

Ignorant statement

9

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Any time a user base for a particular OS or software reaches a critical mass (let's say > 40% user base), attackers start paying attention to it much more. There are many motivations for malware authors, but making money is probably among the most common. Without lots of users, there simply isn't a good ROI for them.

So with Android's success, comes increasing bad guy attention. It's just the way things work.

4

u/diff-t Lookout Aug 18 '15

Completely agree, it's all about ROI for malware authors.

If you track the families that have stayed around, they're making money :) If you see the ones that die out real fast, they didn't have the potential to get a userbase or the business model was failed!

→ More replies (2)
→ More replies (1)

1

u/_R2-D2_ Pixel XL || Nexus 7 (2013) Aug 18 '15

How many devices would you say that you have hardbricked in attempting to root/bootloader unlock them?

5

u/HTC_beaups Aug 18 '15

However many fit in the drawer of a fairly large end table. My favorite was a month or so ago, was working on "something", made a couple tweaks, and it bricked the device (htc e9+ if you care). So I sent the binary I was working on to jcase - "hey, this bricked my e9+ but I don't see how/why. Can you try it on your e9+?". You can only imagine how this story ended.

6

u/CunningLogic aka jcase Aug 18 '15

Spoiler, we burned through two fresh from the box HTC One e9+s in minutes.

2

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I've been lucky and not hard-bricked any so far. That said, I usually don't do S-OFF or tinker around in the bootloader. The closest I came were some soft bricks and once I bricked a baseband during an engagement. If they are not my devices, I am more willing to do potential permanent harm to them =)

2

u/_rs Aug 18 '15

Hey /u/jduck1337, how did you find the libstagefright bugs? Was is through source code auditing or fuzzing?

2

u/Wikzo Aug 18 '15

Should I get a virus, malware or similar on my phone, will it be removed when I update my ROM? I am on CyanogenMod 12.1 Nightly and update a few times a month.

2

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

That depends. If it's an OTA, maybe not. If you're strongly concerned then flash everything from clean images.

1

u/dudeofdur Aug 19 '15

If I buy Chinese knockoffs of Android phones, how do I tell if there is Spyware installed on it?

3

u/diff-t Lookout Aug 19 '15

(I work for Lookout, so I might be biased)

You can either disassemble most of the things on the device, or you could install Lookout. I personally buy lots of knockoffs looking for weird things, most have really odd binaries on the device. We detect lots of "odd" applications on them which are... Let's say, quasi legal in certain regions, however it is odd and potentially unexpected/wanted for people. Sadly, some of these things are literally baked into the ROMs shipped on devices. Also, it doesn't appear to be from the factory all the time, oftened they are reflashed/added prior to shipping. We've seen lots of not so awesome applications hiding on knock offs that are not removable without rooting devices... Sometimes hiding under the alias "Tiwtter" or something similar.

0

u/nvincent Pixel 6 - Goodbye forever, OnePlus Aug 18 '15 edited Jun 27 '23

Reddit has killed off third party apps and most bots along with their moderation tools, functionality, and accessibility features that allowed people with blindness and other disabilities to take part in discussions on the platform.

All so they could show more ads in their non-functional app.

Consider moving to Lemmy. It is like Reddit, but open source, and part of a great community of apps that all talk to each other!

Reddit Sync’s dev has turned the app into Sync for Lemmy (Android) instead, and Memmy for Lemmy (iOS) is heavily inspired by Apollo.

You only need one account on any Lemmy or kbin server/instance to access everything; doesn’t matter which because they’re all connected. Lemmy.world, Lemm.ee, vlemmy.net, kbin.social, fedia.io are all great.

I've been here for 11 years. It was my internet-home, but I feel pushed away. Goodbye Reddit.

3

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Most anti-virus apps provide little to no actual value on Mobile. This is because they simply don't have the same level of permission that they are used to from the PC/Desktop arena.

If you're a savvy user and you make wise choices, I think this is an easy NO -- even for Desktop machines.

2

u/CunningLogic aka jcase Aug 18 '15

The last sentence is the reason I disagree that they add no value. Sadly, the average consumer does not make wise choices when, from whom and from where they install applications.

1

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Yeah I definitely agree most people are easily tricked/duped into installing the latest hot chick/dude wallpaper app laced with god knows what. Be safe out there!

4

u/CunningLogic aka jcase Aug 18 '15

Had a question in our defcon work shop "How do people get others to install malware?" My response was "how many of you plugged in the usb drives we gave you, just because we asked you to". Some people were a tad upset with my example lol.

→ More replies (1)

0

u/[deleted] Aug 18 '15

[deleted] — view deleted comment

34

u/CunningLogic aka jcase Aug 18 '15

In my opinion, this depends entirely on the user's behavior. I don't personally, however I do for my kids, as they install lots of apps.

If you download outside the play store, apps from non major publishers, or are a (eww) pirate, you MAY need one.

6

u/zeabagsfull MotoG5+, 7.0 Aug 18 '15

What anti-virus softwares do you recommend? (All this time I'd gone and assumed Android wouldn't need one)

17

u/CunningLogic aka jcase Aug 18 '15

I dont need one, I don't use one, many (most? some? alot? i dont know) dont need one.

I put one on my kids' phones, they install whatever crap they see. I know it has caught things for them, I believe it was a SMS fraud app. Its a personal choice, I use lookout on their phones because I know people there that I can bitch at if need be :P

12

u/ken27238 Orange Aug 18 '15

Follow up. What's the most common cause of non app malware?

14

u/CunningLogic aka jcase Aug 18 '15

what do you mean non app malware?

10

u/ken27238 Orange Aug 18 '15

Sites, Rouge links. And the recent stagefright exploit.

6

u/CunningLogic aka jcase Aug 18 '15

cant really answer that, probably better for jduck

→ More replies (1)
→ More replies (1)

0

u/[deleted] Aug 18 '15

[deleted] — view deleted comment

5

u/CunningLogic aka jcase Aug 18 '15

I use Android Device Manager, however in the past I have used Cerberus, but it became a bother when switching devices, and installing apps into the system partition became less and less appealing to me. Yes a legitimate service for some.

1

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I think they have proven their utility time and time again.

0

u/[deleted] Aug 19 '15

[deleted] — view deleted comment

3

u/CunningLogic aka jcase Aug 19 '15

I like it all, good and bad. Except wine that taste like fruity sugar water, that stuff is just fermented koolaid as far as im concerned.

2

u/Cabagekiller OnePlus 12 Android 14 Aug 19 '15

Don't talk bad about mad dog.

0

u/[deleted] Aug 19 '15

[deleted] — view deleted comment

4

u/CunningLogic aka jcase Aug 19 '15

np

I think producing devices in two variants is the way to go. Consumer, and "developer".

4

u/diff-t Lookout Aug 19 '15

Agreed - having developer models which let "experienced" users muck around with things is a nice thing to do. This also lets users who want to become experienced use a different device (and potentially pay [vote with money] for it) and allows people subsidizing phones to not lose money as well... If that is still their (failing) business model.

0

u/[deleted] Aug 18 '15

[deleted] — view deleted comment

4

u/CunningLogic aka jcase Aug 18 '15

I have no academic experience in CS or programming, well rather I didn't at the time I started. I'm slowly working through a degree now, but difficult with work and having four kids.

I got into it to root a phone that I needed to remove an app on and found the experience fun.

2

u/[deleted] Aug 18 '15

Leads to another question. Do any of you root your personal daily drivers?

1

u/CunningLogic aka jcase Aug 18 '15

Not typically

2

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Definitely...

8

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

I've been interested in security as long as I can remember. I've always been into learning more and trying weird things out to see what happens -- an undying curiosity.

I started on Bulletin Board Systems (BBS) back in the day. I once sent a message to "@USER@" on a TriBBS system. The contents of the message was "Hello @USER@, Your name is @NAME@. Your phone number is @PHONE@. You live at @ADDRESS@". Little did I know that the BBS software would deliver it to everyone with the values substituted with their personal information!! The call from the Sysop was ... very interesting.

I learned programming (Apple BASIC) at a young age (13) and went from there. I took CS classes in college but by then had already learned Turbo Pascal, C, and some x86 assembly. I did two years of C++ at my school and then dropped out to pursue a professional career with computers. I haven't really looked back since but I do sometimes wish I had a degree. If anyone wants to sponsor me for an honorary doctorate, let me know =)

As for tips... Being great at security requires curiosity, passion, drive, and most of all perseverance/persistence. You need to have a high tolerance for failure and keep an open mind. Never assume, always test.

0

u/[deleted] Aug 18 '15

[deleted] — view deleted comment

2

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Crypto/upper maths are a whole different world to the type of work I do on a regular basis. I try to stay in touch with the formal side of things (SAT, SMT, program analysis, etc) but often fail to see the utility. My intuition and experience tend to be what I lean on anymore...

2

u/orrc Aug 18 '15

Yeah, it's a good question.

I've been a mobile developer for 10 years now, and while I have a fair interest in security, it's not something I do professionally (aside from when I get to point out really stupid vulnerabilities to clients).

Using apktool and Charles and stuff like that I've reported some obvious XSS holes, APIs with lack of auth checks, stuff being sent in cleartext etc., but that's the sort of level I'm at, and I don't know how/whether I could move up to a job doing this type of stuff.

So hearing the OPs' experience would be interesting.

3

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Pick something you want to know more about and dive in! The only way to know if you can do it is to try! Sometimes it might take more than one try too!

2

u/diff-t Lookout Aug 18 '15

I actually graduated with a business degree, however I'd been doing reverse engineering since... Elementary school I believe? Most of the coding I learned was through reverse engineering other solutions and seeing the concept applied in practice. When I was young I read as much as I could and always found the cat and mouse game of reverse engineering to be fun. You're often going against devs who know you're attacking the code and actively attempt to prevent it. There is almost no challenge greater than this. This was a natural progression to me when I was diving into malware as well - since malware devs are attempting to be evasive and know you are looking for them.

Tips for anyone looking to get an engineering job - regardless of education (these are my personal opinions and what I tell lots of students I've given classes too). Open source and blog (or something similar)! Nothing is better to me than to see a resume come across my desk and see a github/etc link. Go to the github and be able to see someones thought process in their code. No, I'm not expecting perfection, I'm looking for progression. It's excellent to see people learn from there mistakes in their code, adding tests and collaborate.

If I where trying to hire one position and had two candidates - I'll gladly fight for the candidate who has proven they're doing work outside of what is on their resume and not from their course work.

0

u/[deleted] Aug 18 '15

[deleted] — view deleted comment

1

u/CunningLogic aka jcase Aug 18 '15

Very often, but not normally in something that matters. OEMs often buy the cheapest parts they can get, they will source memory, flash, camera, screens from whomever can cut them the best deal and supply the agreed upon stock in time.

RE: stock firmware, sometimes the stock firmware will include firmware for multiple hardware, best example I can recall was the HTC Evo line, with multiple touch screen drives in the RUU zip.

0

u/[deleted] Aug 19 '15

[removed] — view removed comment

2

u/CunningLogic aka jcase Aug 19 '15

None of us are part of the android team, so we don't have any input on this

0

u/[deleted] Aug 18 '15

[removed] — view removed comment

2

u/HTC_beaups Aug 18 '15

In current form, probably not. Maybe we'll take another look at the 13. There's just too many devices and not enough time :/

1

u/[deleted] Aug 18 '15

I'm assuming something changed with the 5.1 release that allowed you to do this. I'm sure there are 100+ people ready and willing to pay 25$ to unlock their 1st gens

1

u/HTC_beaups Aug 18 '15

we support 4.4.4 and 5.x on the '14x. It's a very different device vs the '13x.

-2

u/[deleted] Aug 18 '15

[removed] — view removed comment

3

u/CunningLogic aka jcase Aug 18 '15

havent seen anything like that

4

u/jduck1337 50+ Devices, Security Researcher Aug 18 '15

Not AFAIK.

2

u/[deleted] Aug 18 '15

Cool. I heard from a friend that they take a screencap of your vids/pics to see if you are doing something illegal. Doesn't really concern me and it sounded like bullshit, but I was curious and figured I might as well ask.