The problem of exposed code in Healthcare apps has arisen with the digitalization of healthcare services. This has prompted companies to release Web and mobile platforms that let consumers easily access a wide range of services.
However, as positive as this shift has been for companies and consumers alike, it means that extremely sensitive data, such as Protected Health Information (PHI), is now more exposed to cyberattacks.
In 2019, 33 million patients had their PHI breached or stolen, and many of them faced identity theft and fraud. Companies also incur high costs for attack cleanup, client compensation, and lost revenue from negative press.

Contact Tracing Apps
One very specific case of healthcare applications that has surfaced recently is contact tracing apps. These apps are being developed worldwide in response to the COVID-19 pandemic.
In a nutshell, a contact tracing app notifies people when someone they were in close contact with tests positive for COVID-19 (provided both were using the app).
These apps have been surrounded by fear and controversy, especially because they handle such sensitive information. But beyond this complicated question of data privacy, there’s the matter of security.
With thousands of security vulnerabilities for attackers to exploit, along with integrity-related weaknesses that can be abused, the teams behind contact tracing apps need to implement strict application security.
Although only a few contact tracing apps have been released, we have already seen critical security incidents.
Scam Copycat Apps
In June 2020, security researchers found 12 fake contact tracing apps targeting citizens in Asia, Europe, and South America. These apps copy official government apps, using their branding to trick users into trusting them.
When users install these scam apps, they covertly install malware on the device, including banking trojans that steal user credentials and personal data. Beyond financial fraud, victims can also become targets of ransomware and identity theft.
These so-called low-tech attacks rely on attackers retrieving the legitimate app’s source code and deploying it elsewhere. Attackers then distribute them through unofficial app stores and third-party apps.
Data Exfiltration
While scam copycat apps pose a significant threat, a more serious concern in healthcare applications (including contact tracing apps) is data exfiltration.
By default, once deployed, applications lack integrity-verification controls, and their source code remains completely exposed and unprotected.
As the OWASP Mobile Top 10 project states, this allows attackers to “reveal information about back-end servers; reveal cryptographic constants and ciphers; steal intellectual property; perform attacks against back-end systems; or gain the intelligence needed to perform subsequent code modification”.
By understanding how the application works, attackers get one step closer to planning/automating data exfiltration or scraping attacks.
How to Protect Healthcare Apps
With the stakes this high in healthcare and government-backed apps, security teams must go the extra mile to keep attackers locked out.
With current technology, security teams behind these implementations can (and should) add protective layers to the apps’ source code. One key layer is obfuscation, a technique that transforms the source code into a new version that is extremely hard to reverse-engineer.
Another important security layer is code locks. These tie the source code to a list of allowed environments and Operating Systems and break the app when it is run outside of this list. By locking attackers out, this security layer goes a long way toward preventing low-tech copycats and scam apps.
Finally, runtime defenses must provide an additional layer of security.
These can be set up to break app execution if the app’s integrity has been compromised. So, when attackers try to debug the app or change its source code, the app will intentionally break and make them lose their progress.
Final Thoughts
In a fast-digitizing world, application security can’t lag behind.
Every year, attackers manage to get hold of the protected health information of millions of patients. With contact tracing apps making their debut, we’re already seeing critical security incidents that originate from unprotected source code.
Healthcare organizations must act fast to implement vetted security systems and ensure their app source code won’t serve as a gateway for data exfiltration attacks.
We present several case studies on protecting code, including one showing how a healthcare company used Jscrambler to harden its apps’ source code and improve compliance with data privacy regulations.