Installing applications from unknown sources is one of the main threats to Android security. Even if the APK file is downloaded from a popular forum or torrent tracker, it may contain spyware, Trojans or advertising virusesthat will steal your data or block your smartphone. According to statistics Kaspersky, in 2023, every fifth mobile virus was spread through fake APK files of popular games and utilities.

In this article you will find current ways to check APK for viruses directly on your phone or via PCincluding free online services, virus scanners and manual analysis methods. We will look at what signs should alert you even before downloading a file, and why even legal applications sometimes end up on antivirus โ€œblacklistsโ€. No fluff - only specific instructions with explanations for users of any level.

Why APK files are more dangerous than installing from Google Play

Files with the extension .apk (Android Application Package) are archives containing all application code. Unlike installation from Google Play, where applications are automatically verified Google Play Protect, APKs from third-party sources are not controlled by anyone. Here are the main risks:

  • ๐Ÿ” Modified code: Attackers can introduce malicious scripts into a legitimate application (for example, to steal passwords from banking applications).
  • ๐Ÿ“ฑ Hidden permissions: A virus can request access to SMS, geolocation or camera without your knowledge.
  • ๐Ÿ’ฐ Subscriptions and payments: Some APKs automatically send paid SMS or subscribe to unnecessary services.
  • ๐Ÿ”„ Rootkits: Kernel level viruses (root) can take full control of the device, even after a reset settings.

Practical example: in 2023, hackers distributed a fake APK of an application WhatsApp through advertising on social networks. After installation, the virus encrypted the userโ€™s files and demanded a ransom in bitcoins. At the same time, the icon and interface were completely copied from the original application.

โš ๏ธ Attention: Even if the APK was downloaded from a trusted site (for example, APKMirror), it could be replaced on the server or replaced when downloaded through an insecure connection. Always check hash sum the file (more on this below).

Signs of an infected APK file (check before downloading)

Some red flags can be noticed even before the file is loaded. Please note:

  • ๐Ÿšฉ Size mismatch: The original APK Telegram weighs ~50 MB, and the one you proposed weighs 120 MB. It probably has additional code embedded in it.
  • ๐Ÿ“… Modification date: If the file was updated 3 days ago, and the official version was released a month ago, this is suspicious.
  • ๐Ÿ”— Download link: Domains like app-name-free-download[.]xyz or shortened links (bit.ly, tinyurl) often lead to phishing.
  • ๐Ÿ’ฌ Reviews on forum: If all comments were written on the same day or contain the same phrases (โ€œDownloaded - everything works!โ€), this is a sign of cheating.

Simple test: try to find the same APK on APKMirror or APKPure and compare the hash sums (read how to do this in the next section). If they do not match, the file has definitely been changed.

๐Ÿ“Š Where do you most often download APKs?
Official developer sites
Forums (4PDA, XDA)
Torrents
Telegram channels
Other

Method 1: Checking the hash sum (MD5/SHA-1)

Hash sum is a unique โ€œfingerprintโ€ of the file. If at least one byte in the APK is changed, the hash will be different. By comparing it with the official one, you will understand whether the file is modified.

How to check:

  1. Download the utility Hash Droid (free in Google Play) or use PowerShell on PC:
  2. Get-FileHash -Algorithm SHA256 "path_to_file.apk"
  3. Find the official hash on the developer's website or APKMirror (section File Information).
  4. Compare the resulting hash with the reference one. If they differ, the file has been changed.
Service Where to look for the hash Hash example (SHA-256)
APKMirror Download page โ†’ File Information a1b2c3... (64 characters)
VirusTotal Section Details after downloading the file d4e5f6... (64 characters)
Official site Section Downloads or Release Notes 789abc... (64 characters)
โš ๏ธ Attention: The hash sum does not guarantee the absence of viruses! Attackers can publish their hash, passing it off as official. data-i="111">with antivirus scanning. together with antivirus scanning.

Method 2: Online services for checking APK

If you do not want to install an antivirus on your phone, use online scanners. analyze the file for known viruses and suspicious permissions. The best services:

  • ๐Ÿ›ก๏ธ VirusTotal (virustotal.com) - scans the file against 70+ anti-virus databases. Shows a detailed report with detected threats and permissions.
  • ๐Ÿ” MetaDefender (metadefender.opswat.com) - scans for viruses, vulnerabilities and malicious URLs inside APKs.
  • ๐Ÿ“Š APKScan (apkscan.nviso.be) - specializes in analyzing APK code for backdoors and spyware.

How to use VirusTotal:

  1. Go to the site and click Choose File.
  2. Download APK (maximum 650 MB).
  3. Wait for analysis (1-3 minutes). Pay attention to the tabs:
    • Detection โ€” list of antiviruses that found threats.
    • Details โ€” permissions, certificates and hash sums.
    • Relations โ€” connections with other malicious files.

โ˜‘๏ธ What to check in the report VirusTotal

Done: 0 / 4

Caution: some legitimate applications (for example, Lucky Patcher or GBWhatsApp) may be flagged by antivirus software as โ€œpotentially dangerousโ€ due to code modification. In this case, read the description of the threat - often it is a false positive..

Method 3: Antiviruses for Android with APK scanning

Install a specialized antivirus that scans APK Before installation. The best options:

Antivirus Features Cons
Malwarebytes Fast scanning, detection of adware and spyware No real-time protection in the free version
Bitdefender Cloud analysis, minimal load on the battery Paid functions (auto-scan new files)
Dr.Web Deep scanning of archives, checking permissions Sometimes blocks legal modified APK
Kaspersky Protection against phishing and banking Trojans Requires many rights during installation

How to check APK through an antivirus:

  1. Open the antivirus and select Scan file (or Check APK).
  2. Specify the path to the downloaded file.
  3. Wait for the result. Pay attention to:
    • Name of the threat (for example, Android.Trojan.Spy).
    • Recommendations (remove/disinfect/ignore).
โš ๏ธ Attention: Some antiviruses (for example, Avast) themselves collect user data. Before installation, check the antivirus permissions in Google Play โ€”if it requests access to SMS or geolocation for no reason, itโ€™s better to choose another.
๐Ÿ’ก

Before scanning, turn off the Internet on your phone. Some viruses are activated only when connected to the network and may go undetected.

Method 4: Manually checking permissions. APK

Even if the antivirus did not find any viruses, study what permissions the application requests. To do this:

  1. Install APK Analyzer (free in Google Play).
  2. Open the downloaded APK in it and go to the tab Permissions.
  3. Pay attention to suspicious permissions:
    • ๐Ÿ“ž READ_SMS / SEND_SMS โ€” can send paid messages.
    • ๐Ÿ“ ACCESS_FINE_LOCATION โ€” tracks your location.
    • ๐Ÿ’ณ BIND_ACCESSIBILITY_SERVICE โ€” can intercept password entries.
    • ๐Ÿ“ท CAMERA + RECORD_AUDIO โ€” record video/audio without knowledge.

Example: if the APK of a simple flashlight asks access to CONTACTS or CALL_LOG, this is a clear sign of spyware. Compare the permissions with the original application in Google Play (section About this app โ†’ App permissions).

How do they cheat with permissions?

Some APKs hide real permissions, showing the user fake manifest. To see the real list, use the ADB command:

adb shell dumpsys package your.package | grep "permissions"

This command will display all permissions, including hidden ones.

Method 5: Checking the APK through the Android emulator (for experienced ones)

If you are not sure about the security of the file, test it in an isolated environment - Android emulatorThis will protect your main phone from infection.

Instructions:

  1. Install BlueStacks or Genymotion on PC.
  2. Create a new virtual machine (without synchronizing with your Google account!).
  3. Drag the APK to the emulator window and install it.
  4. Launch the application and watch behavior:
    • ๐Ÿ”„ Does it open a browser or advertisement on its own?
    • ๐Ÿ“ค Sends data to the Internet (check via Wireshark)?
    • ๐Ÿ”‹ Quickly drains the battery (in the emulator this can be seen by the load on the CPU)?
  • After test, delete the virtual machine.
  • The advantage of the method: the virus will not gain access to your real data. Disadvantage: it requires time and skills in working with emulators.

    Method 6: Analyzing the APK code (for developers)

    If you are familiar with programming, you can decompile the APK and study its code. this:

    1. Use JADX or Apktool for decompilation:
    2. apktool d your_file.apk
    3. Examine the files in the folder smali (low-level code) or res (resources).
    4. Pay attention to:
      • ๐Ÿ”— Suspicious URLs (for example, sending data to hxxps://some-random-site[.]ru).
      • ๐Ÿ“ฆ Unknown libraries (for example, libsec.so no description).
      • ๐Ÿ”‘ Hard-coded API keys or passwords (may indicate a botnet).

    An example of dangerous code (from a real virus Anubis):

    // Sending an SMS to premium number
    

    SmsManager sms = SmsManager.getDefault();

    sms.sendTextMessage("5556", null, "START 123", null, null);

    If you are not a developer, it is better to skip this method - there is a high risk of missing a threat or misinterpreting the code.

    What to do if the virus is already installed

    If you have installed an infected APK, act quickly:

    1. Disconnect the Internet (airplane mode) is will stop the transfer of data to attackers.
    2. Uninstall the application via Settings โ†’ Applications.
    3. Scan your device with an antivirus (for example, Malwarebytes).
    4. Reset permissions for all applications:
      • Go to Settings โ†’ Applications โ†’ โ‹ฎ โ†’ Special access.
      • Disable access to SMS, contacts, geolocation for unknown applications.
  • Change passwords from important accounts (bank, social networks, mail).
  • If a virus has blocked the phone or requests a ransom:

    • ๐Ÿ”„ Reboot into Safe Mode (hold the power button โ†’ โ€œReboot in Safe Modeโ€).
    • ๐Ÿ“ฑ Reset the settings to factory settings (Settings โ†’ System โ†’ Reset).
    • ๐Ÿ’ป Connect your phone to your PC and scan via Dr.Web CureIt!.
    โš ๏ธ Attention: Do not pay the ransom! Even after payment, the files may remain encrypted, and your data will end up in the scammersโ€™ database for new attacks.
    ๐Ÿ’ก

    If the virus has acquired superuser (root) rights, resetting the settings will not work. will help. In this case, you need to flash the device.

    FAQ: Frequently asked questions about APK verification

    Can you trust an APK from the developer's website?

    Attackers can not always hack a site and replace files. launcher Nova Launcher on its official website. Always check the hash amounts and use an HTTPS connection.

    Why does the antivirus complain about modified APKs (for example, GBWhatsApp)?

    Modified applications change the original code, which can often violate the security policy of Antiviruses. mark them as โ€œpotentially dangerousโ€ even if they do not contain viruses. However, such APKs may:

    • Break rules Google Play (for example, bypass restrictions on downloading music).
    • Contain hidden functions (for example, sending statistics to the developer).

    If you trust the source (for example 4PDA), you can ignore the warning, but disable unnecessary permissions.

    How to check an APK for viruses without the Internet?

    Use offline antiviruses:

    • Dr.Web Light - scans without connecting to network.
    • ClamAV - open antivirus, works locally (requires manual configuration).

    Also check the file hash amount and permissions via APK Analyzer - these methods do not require the Internet.

    Can a virus in an APK damage the phone at the physical level?

    No, viruses cannot burn out the processor or damage the screen. However, they can:

    • Overheat the device due to high CPU load.
    • Drain the battery quickly (for example, cryptocurrency mining).
    • Block access to the system (require a reset) settings).

    Physical harm is only possible if incorrect firmware (for example, installing software for another phone model).

    How to protect yourself from viruses in APK in the future?

    Follow rules:

    • ๐Ÿ”’ Download APK only from trusted sources (APKMirror, official sites).
    • ๐Ÿ›ก๏ธ Use an antivirus with real-time protection (Bitdefender, Kaspersky).
    • ๐Ÿ”„ Update Android regularly - new versions are closed vulnerabilities.
    • ๐Ÿšซ Do not install APKs if they ask for unnecessary permissions (for example, a flashlight with access to contacts).
    • ๐Ÿ“ฑ Disable installation from unknown sources (Settings โ†’ Security โ†’ Unknown sources).