Mobile App

7 Tips for Securing an App

Let’s compare hackers with pirates: everyone is at risk, and no one seems to be safe in the waters they sail. However, it is possible to enjoy a good level of security if you arm yourself well against attackers. We share our knowledge about securing apps with you.

What follows is useful information for (future) app owners and for users. It helps keep privacy-sensitive data in calmer waters. In the first part, we look at common weaknesses in apps. Next, we share practical measures that consumers and employees can take on their own devices. Finally, we explain what companies should keep in mind when they build or commission an app.

Common Weaknesses in Apps

Anyone who is aware of the common security risks in apps will naturally take them into account during development. The OWASP Mobile Top 10, a widely used list maintained by the Open Worldwide Application Security Project, describes the most important risks. Here are some of the weaknesses we see most often:

  • Insecure data storage: sensitive information, such as passwords, tokens or personal data, is stored on the device without proper protection.
  • Insecure communication: data travelling between the app and the server is not properly encrypted, or the app doesn’t check that it is really talking to the right server.
  • Weak authentication and authorization: users can log in too easily, sessions never expire, or the server trusts the app to decide what a user is allowed to see.
  • Hard-coded secrets: API keys or passwords are built into the app, where attackers can extract them.
  • Weak protection of the binary code: the app can easily be decompiled, analysed or modified.
  • Outdated third-party components: libraries and software development kits (SDKs) with known vulnerabilities.
  • Collecting more data than needed: every piece of data you store is something that can leak.

So what is the problem, and what is the solution? An example: mobile malware exploits weaknesses or bugs in the code of apps. Apps can also be attacked in other ways, and customers’ privacy-sensitive data can be stolen, for example through a compromised device or a malicious “rogue” app that imitates a legitimate one.

To make it harder for attackers to find and abuse weaknesses, developers use several techniques. Obfuscation makes the code very difficult to read, which forces attackers to put in a lot more effort to interpret and crack it. Sensitive data is encrypted, and important checks are done on the server, not in the app. No single measure is enough. Security comes from combining several layers.

Measures for Consumers and Businesses

Employees and consumers can take the following precautions:

1. Is an antivirus app recommended?

Control is the mother of certainty. iPhones and iPads normally install apps only through Apple’s App Store, which makes these devices relatively well protected. (In the European Union, Apple now also allows alternative app marketplaces, which come with their own checks.) Android phones come with Google Play Protect, which scans apps on the device and in the Play Store for harmful behaviour.

For most people, these built-in protections are enough when combined with good habits. An extra security app can add features such as protection against dangerous websites or scam messages, but choose a well-known provider. Be careful with “cleaner” and “booster” apps that promise to speed up your phone, as some of these collect lots of data themselves.

2. The problem with old phones

Personal data on modern smartphones and tablets is encrypted by default when you set a screen lock. That is good news. The bigger problem with old phones is updates. Manufacturers support devices with security updates for a limited number of years. After that, newly discovered vulnerabilities are no longer fixed, and the phone becomes an easier target.

We strongly recommend updating your phone, your apps and your operating system as soon as updates are available. Check how long your device will receive security updates. You can usually find this on the manufacturer’s website. If your phone no longer receives updates, it is wise to replace it, especially if you use it for banking, work email or other sensitive tasks.

3. Unknown sources setting (Android only)

On Android, you can install apps from outside the Play Store. On newer versions of Android, this is controlled per app with the “Install unknown apps” permission, which lets you allow, for example, a specific browser or file manager to install apps. Malware is much more common outside the official app stores. It is therefore best to leave this permission switched off for all apps unless you have a very good reason and trust the source completely.

Be especially careful with APK files sent through messaging apps or offered on websites as a “special version” of a popular app. This is a common method used by scammers to install malware that can read text messages or take over banking apps.

4. Beware of apps that do not contain malware

Of course, not all apps contain malware. Even so, apps can still collect much more of your data than they need. Both iPhones and Android phones ask for permission before an app can access things like your location, camera, microphone, contacts or photos. When a decibel meter app asks for access to your contacts, camera, location and social media accounts, alarm bells should start ringing.

Check the permissions of your apps from time to time in your phone’s settings, and remove permissions that aren’t needed. Many phones also let you share only an approximate location or give access to selected photos rather than your whole library. Delete apps you no longer use, since they may still collect data in the background.

5. The super user setting

“Rooting” an Android phone, or “jailbreaking” an iPhone, gives you access to the entire operating system. That is handy if you want to adjust everything to your own taste. In essence, it can be done safely if you really know what you are doing. But the security risk is real: malware that gains full access can do much more damage, and some of the phone’s built-in protections no longer work as intended.

Many banking, payment and business apps also refuse to run on rooted or jailbroken devices for exactly this reason. For most users, especially on a phone used for work or money, we recommend leaving the system as the manufacturer intended.

6. Set up your smartphone and tablet as safely as possible

You know the drill: update your apps. In addition:

  • Use a strong PIN, password or biometric lock, and set the screen to lock automatically.
  • Turn on two-factor authentication for important accounts such as email, banking and your app store account.
  • Turn on “Find My” or “Find My Device” so you can locate or wipe a lost phone.
  • Avoid automatically connecting to open Wi-Fi hotspots, and switch off Bluetooth and NFC when you don’t need them.
  • Make regular backups, so you don’t lose everything if your phone is stolen or broken.
  • Be cautious with links in text messages and messaging apps, even if they appear to come from a bank, a delivery company or a government agency.

7. Always update your phone or mobile device to the latest OS version.

This tip is so important that it deserves its own place on the list. Most successful attacks exploit known vulnerabilities that have already been fixed in an update. Turn on automatic updates for both the operating system and your apps, and install them promptly when your phone asks. Companies can use mobile device management (MDM) to make sure work devices stay up to date.

For companies

Smartphones and tablets are now used for just about everything, from customer apps to business processes, so the security of apps should never be an afterthought. If you are developing an app, or having one developed, keep these principles in mind:

  • Security by design: think about security from the first sketch, not only at the end.
  • Collect only the data you need, and keep it only as long as necessary. This also helps with privacy laws such as the GDPR.
  • Encrypt data in transit and at rest. Use HTTPS with current TLS for all communication, and store sensitive data using the platform’s secure storage, such as the iOS Keychain or the Android Keystore.
  • Never trust the app alone. Check permissions and validate input on the server, because attackers can modify the app or create their own requests.
  • Keep secrets out of the app. Don’t build API keys or passwords into the code.
  • Use strong authentication, with options such as biometrics, passkeys or two-factor authentication where appropriate.
  • Keep libraries up to date and remove ones you no longer use.
  • Test regularly, with code reviews, automated security scans and, for apps handling sensitive data, a penetration test by specialists.
  • Plan for incidents. Know what you will do if something goes wrong, including how to inform users and the authorities if required.

Security after launch

An app is never “finished” from a security point of view. New vulnerabilities are discovered in operating systems and libraries all the time, and attackers keep changing their methods. Plan for regular maintenance releases, monitor your servers for unusual activity, and keep logs that help you investigate if something goes wrong. Make it easy for security researchers and users to report problems to you, for example through a published contact address, and respond to reports quickly.

Keep an eye on app store requirements as well. Apple and Google regularly update their rules for privacy labels, data deletion, permissions and minimum supported versions. Staying on top of these changes prevents your app from being removed from the store and shows users that you take their data seriously.

Finally, don’t forget the human side. Many security incidents start with a phishing email or a stolen password rather than a technical flaw in the app itself. Train your team, use two-factor authentication on developer and cloud accounts, and limit access to production systems to the people who really need it.

Customization

Security is a customized product. Not every app needs the same type or level of security. A simple but clear example: most bags and suitcases don’t have a lock. When do they? For example, when they contain highly confidential documents, or when they are full of diamonds. The same applies to apps. A simple information app needs a solid baseline, while a banking, health or business app that handles sensitive data needs much stronger measures. A risk assessment at the start of a project helps you decide what level of protection is appropriate.

Outreach Way is happy to think along with you about solutions for securing an app. Interested? Then contact us! Over a cup of coffee, we discuss the options and answer your questions. Of course without obligation.

Frequently asked questions about securing an app

What are the most common security risks in mobile apps?

Common risks include insecure data storage, unencrypted communication, weak authentication, hard-coded secrets in the code and outdated third-party libraries. The OWASP Mobile Top 10 is a good overview.

Do I need an antivirus app on my phone?

For most people, the built-in protection on iPhone and Android (Google Play Protect) is sufficient, combined with updates and installing apps only from official stores. An extra security app can add protection against scams and dangerous websites.

Is it safe to install apps from outside the app store?

It is riskier. Malware is far more common outside official stores. On Android, keep the “Install unknown apps” permission switched off unless you fully trust the source.

Why are updates so important for security?

Updates fix known vulnerabilities. Attackers often target weaknesses that have already been patched, so devices and apps that aren’t updated are much easier to attack.

What should a company check before launching an app?

Check how data is stored and transmitted, how users are authenticated, whether the server validates every request, whether libraries are up to date and whether the app has been security tested.

Is rooting or jailbreaking my phone dangerous?

It increases the risk, because malware that gains full access can do much more damage and some built-in protections stop working. Many banking and business apps won’t run on rooted devices.

Show More
Back to top button