How to avoid reverse engineering of an APK file?

后端 未结 30 2267
醉梦人生
醉梦人生 2020-11-21 22:27

I am developing a payment processing app for Android, and I want to prevent a hacker from accessing any resources, assets or source code from the APK file.<

相关标签:
30条回答
  • 2020-11-21 22:57

    I suggest you to look at Protect Software Applications from Attacks. It's a commercial service, but my friend's company used this and they are glad to use it.

    0 讨论(0)
  • 2020-11-21 22:59

    100% avoidance of reverse engineering of the Android APK is not possible, but you can use these ways to avoid extracting more data, like source code, assets form your APK, and resources:

    1. Use ProGuard to obfuscate application code

    2. Use NDK using C and C++ to put your application core and secure part of code in .so files

    3. To secure resources, don't include all important resources in the assets folder with APK. Download these resources at the time of application first start up.

    0 讨论(0)
  • 2020-11-21 23:00

    Your client should hire someone that knows what they are doing, who can make the right decisions and can mentor you.

    Talk above about you having some ability to change the transaction processing system on the backend is absurd - you shouldn't be allowed to make such architectural changes, so don't expect to be able to.

    My rationale on this:

    Since your domain is payment processing, its safe to assume that PCI DSS and/or PA DSS (and potential state/federal law) will be significant to your business - to be compliant you must show you are secure. To be insecure then find out (via testing) that you aren't secure, then fixing, retesting, etcetera until security can be verified at a suitable level = expensive, slow, high-risk way to success. To do the right thing, think hard up front, commit experienced talent to the job, develop in a secure manner, then test, fix (less), etcetera (less) until security can be verified at a suitable level = inexpensive, fast, low-risk way to success.

    0 讨论(0)
  • 2020-11-21 23:00

    I can see that good answer in this thread . In addition to you can use facebook redex to optimize the code. Redex works on .dex level where proguard work as .class level.

    0 讨论(0)
  • 2020-11-21 23:01

    Tool: Using Proguard in your application it can be restricted to reverse engineering your application

    0 讨论(0)
  • 2020-11-21 23:03

    The main question here is that can the dex files be decompiled and the answer is they can be "sort of". There are disassemblers like dedexer and smali.

    ProGuard, properly configured, will obfuscate your code. DexGuard which is a commercial extended version of ProGuard, may help a bit more. However, your code can still be converted into smali and developers with reverse-engineering experience will be able to figure out what you are doing from the smali.

    Maybe choose a good license and enforce it by the law in best possible way.

    0 讨论(0)
提交回复
热议问题