topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.87k stars 12.15k forks source link

Banking app detects Magisk Manager/app #3888

Closed ScrambledBrain closed 3 years ago

ScrambledBrain commented 3 years ago

Hi,

Issue:

Consequence:

Setup:

Logs: TAN2go_working_with_Magisk_app_frozen.log TAN2go_not_working_with_Magisk_app_enabled.log

Workaround: => Freeze Magisk app to move it temporarily away while using the TAN2go app. I use "Ice Box" for (de-)freezing. AirFrozen or TitaniumBackup are other possibilities.

Risk: ~~Your device is not controlled by Magisk app when frozen and all started apps can use root permissions without interception! So, don't forget to de-freeze Magisk app directly after using the other app like TAN2go!~~ EDIT: Correction: Magisk proc_monitor is still running and handles hiding and permissions as I could see in logcat logs. So, the Magisk app is good for set and forget settings, but could be frozen without security issues. 😄

References: https://forum.xda-developers.com/t/dkb-tan2go-app-on-rooted-device.3835355/page-18 https://www.android-hilfe.de/forum/finanz-apps.912/dkb-banking-app-erkennt-root-trotz-magisk.901517-page-19.html#post-12465209

Request:

Ideas: (from a user's point of view)

TAN2go app permissions:

Thanks in advance.

Tremolo4 commented 3 years ago
  1. Read this #1152
  2. Try un-hiding and hiding magisk manager again. The icon should be set to the default app icon. (I think this was implemented recently, so it will only apply for you if you un- and re-hide.)
Jon8RFC commented 3 years ago

Sorry to say that I couldn't make it work, either. I figured I could do my usual process when people post these problems, but it didn't work.

But, wow, great find with your workaround of freezing my repackaged magisk app. That absolutely does work for tan2go! Thank you for sharing...one more trick up our sleeves! I'll need to test this trick with a banking app my sister uses which is suddenly detecting magisk.

ScrambledBrain commented 3 years ago
  1. Try un-hiding and hiding magisk manager again. The icon should be set to the default app icon. (I think this was implemented recently, so it will only apply for you if you un- and re-hide.)

I already did this, especially because of the new v22.0. But this didn't help. I believe, there is another detection method, but unfortunately I'm no developer to find this out.

  1. Read this #1152

I read this. But there is the hope, that a developer here is interested to find out a maybe new detection method to circumvent this within MagiskHide.

I know this is a cat and mouse game.

https://medium.com/csg-govtech/diving-down-the-magisk-rabbit-hole-aaf88a8c2de0 was also very interesting to read. I know now some Magisk monitoring history: logcat, inotify, zygote ptrace and its dis-/advantages. But there is also something like isolated android processes and maybe some new detection methods.

Wouldn't it be the self-interest for the Magisk tools to catch these detection methods and fight against these? If some detection methods are found and will be implemented by most app developer, the usefulness of Magisk drops a lot.

The circumstances by using de-/freezing apps or isolated workspaces [island, ...] are too big for most users.

In the end many users would un-root its device, put in some ad-blocker as local VPN tunnel instead of systemless hosts file and Magisk will be used less often day by day.

The hope is there, that some forensic geek finds the needle in the [detection method] haystack ;D