Devtantra Blog

Tutorials about Android, Angular, ReactJS, PHP, MySQL and Web Development

Mobile App Security

Security is one of the most interesting parts, while you are developing any application. Many factors will affect your app such as secure API, hash algo and many more. I am sharing all the factors and how we can overcome them.

Risk Factors

  1. Unsecured API communication : We are using many API’s to make application to provide good user experience. Unfortunately, we are sending all data in open phase and not using any data secure algo for that.
  2. Not Using resources Properly: Hacker or any developer decompile any app then they can easily get our API url . Just because we are not using resources properly.
  3. Code Security: On bases of code we are not using any guard or safety layer which can block decompiler to make same state of code.
  4. Not Using Google/Apple Security Sets:  Each platform has its own security state and we are not using these features in our app. Like Sandbox, Safety, Google play security/ Apple byte desk and some others.
  5. Not Using Gradle/KeyChain properties: Sometimes such we are using gradle in android only to add more lib/gradle. But gradle can hold many things as per security level. Also, in IPA development we need to use keychain to secure data.
  6. Unstable Memory Management: Many times we are not checking app memory. It is a very big factor, as if our app hold large data in memory then hacker can crack it easily.

Reduce Risk Factors

  1. Google SafetyNet API/App Transport Security:  To make the connection secure, we can use Google SafetyNet API . When you safeguard the data that you exchange between your app and other apps, or between your app and a website, you improve your app’s stability and protect the data that you send and receive. Also, same for ios App transport security
  2. Hashing Algo: Compile all data with Cipher type hashing algo. to make all data secure and same for server level.
  3. Resource Management: Instead of placing any key or passcode in constant file use resource files or keychain/gradle files.
  4. Guard of Code:  In Android,  we have to use proguard/dexguard to add a safeguard for code.
  5. Memory Management: Add proper login and session management to clear out all data from app memory. Also, it will increase user data security.
  6. SSL Pinning: To make a secure connection SSL connection is important so after GSI/ATS use SSL pinning to make app server communication more secure.

References

  1. https://medium.com/wolox-driving-innovation/how-to-increase-my-ios-application-security-17681f068d11
  2. https://www.raywenderlich.com/129-basic-ios-security-keychain-and-hashing
  3. https://www.linkedin.com/learning/securing-android-apps
  4. https://techbeacon.com/app-dev-testing/16-tools-bulletproof-android-app-security
0
0

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: