Glossary

Short definitions for terms that come up a lot in my teardowns.

These are written for people who don’t work in malware analysis, so they skip some nuance. or .

APK#

An Android app package, the file Android apps are installed from. It’s a ZIP archive that holds the app’s compiled code, its manifest, resources, native libraries, and signing information.

Blackhole#

To blackhole traffic is to send it somewhere it gets silently dropped. Nothing answers, so connections hang until they time out instead of failing with a clear error. Malware can use this to cut security apps off from the internet without uninstalling them.

Broadcast receiver#

An Android component that listens for broadcasts, the messages the system and apps send to announce an event or pass along data. If a receiver is exported and isn’t protected by a permission, any app on the phone can send it messages.

C2 (command and control)#

The servers malware talks to after it infects a device. The operator sends commands through them, and the malware sends stolen data back. You’ll also see it written as C&C.

Defanged indicators#

Domains, IP addresses, and URLs written so they can’t be clicked or opened by accident, like example[.]com or hxxps://. To get the real value, change [.] back to . and hxxp back to http.

DEX (Dalvik Executable)#

The format Android uses for an app’s compiled Java or Kotlin code. An APK’s code usually lives in classes.dex, with classes2.dex and up for bigger apps. Malware often carries extra DEX code in encrypted form and only decrypts and loads it at runtime, so it doesn’t show up when you look at the APK’s normal code.

DNS TXT record#

DNS is the system that turns names like example.com into IP addresses. A TXT record is a DNS entry that holds free-form text instead of an address. Malware can look up a TXT record to get its config, so the operator can change C2 addresses without shipping a new app. DNS over HTTPS (DoH) does the same lookups inside encrypted HTTPS traffic.

Dropper#

Malware whose main job is to install other malware. Strictly speaking, a dropper carries the next stage inside itself, often encrypted, while a downloader fetches it from the internet. In practice, people use the two words loosely.

Frida#

An open-source toolkit for instrumenting apps while they run. Analysts use it to intercept function calls and see or change what an app does. A lot of Android malware looks for signs of Frida, like its default port 27042 or its process names, and hides its real behavior if it finds them.

Ghidra#

A free, open-source reverse engineering suite released by the NSA. It disassembles compiled native code and decompiles it into C-like pseudocode that’s much easier to read.

Hash#

A fixed-length fingerprint calculated from a file’s bytes with a cryptographic hash function. Security writing mostly uses SHA-256. Change a single byte and the hash comes out completely different. That makes hashes great for identifying one exact file, and much less useful when malware is modified for each victim. Fuzzy hashes like ssdeep and TLSH work the other way, so similar files get similar hashes.

IOC (indicator of compromise)#

A piece of evidence that a device or network may be infected, like a file hash, a domain, an IP address, or a file name. Defenders use IOCs to block known-bad things and to search their own systems for the same malware.

jadx#

An open-source decompiler for Android. It turns DEX bytecode back into readable Java-like code. The output is a reconstruction, and jadx sometimes gets a method wrong or can’t decompile it at all, so it’s worth checking tricky spots against the bytecode.

Loader#

Malware whose job is to get the next stage running, often by decrypting or unpacking it and loading it straight into memory. “Loader,” “dropper,” and “downloader” overlap a lot, and different writers draw the lines in different places.

Malware-as-a-service (MaaS)#

Malware that a developer sells or rents to other criminals, often by subscription. The customers who run the campaigns are usually called operators. Since many operators can buy the same kit, matching code in two samples doesn’t prove the same people are behind both.

MalwareBazaar#

A malware sample sharing platform run by abuse.ch at bazaar.abuse.ch. Researchers upload tagged samples there, listed by hash, so others can find and analyze them.

Manifest#

AndroidManifest.xml, the file in every APK that declares the app’s package name, the permissions it wants, and its components, like activities, services, and broadcast receivers. Scanners read it for a quick picture of what an app can do, so malware sometimes tries to make its manifest look harmless.

Native library#

Compiled machine code, usually written in C, C++, or Rust, that ships inside an APK as a .so file. Java or Kotlin code calls into it through JNI, the Java Native Interface. Native code takes more work to read than DEX, so malware often keeps its keys and config there.

Obfuscation#

Anything that makes code harder to read without changing what it does. Common tricks include renaming classes to random words and encrypting strings so they only show up at runtime. On Android, StringFog is a popular string-encryption library, and simple XOR or Caesar shifts are common too.

Packing#

Hiding a program’s real code inside an encrypted or compressed wrapper that unpacks it at runtime. Scanners that only look at the file may see nothing but the wrapper. Unpacking is recovering the hidden code, either by reimplementing the decryption or by grabbing it from memory while the program runs.

Payload#

The part of an attack that does the actual malicious work, like a RAT that steals data. Droppers and loaders exist to get it onto the device and running.

Persistence#

The ways malware keeps itself running, or brings itself back after a reboot, after the user closes it, or after the system kills it to save battery. On Android that usually means things like boot receivers, alarms, scheduled jobs, and foreground services.

Play Protect#

Google’s malware protection, built into Android phones that come with Google Play. It scans apps from Google Play and also checks apps installed from other sources. Some of those checks rely on Google’s servers.

RAT (remote access trojan)#

Malware that gives an attacker remote control of an infected device. Depending on the RAT, that can mean reading texts and notifications, stealing files, running commands, or watching the screen.

REALITY#

A security layer from the Xray project that takes the place of normal TLS on a proxy connection, usually paired with VLESS. It’s designed to make the handshake look like a connection to a real, unrelated website, so a casual observer sees what looks like a normal visit to that site.

Sandbox#

An isolated system that runs a sample automatically and records what it does, like the files it writes and the network connections it makes. Android sandboxes usually run apps in an emulator, a virtual phone. Malware often checks for signs of an emulator or analysis tools and stays quiet if it finds them. That’s called sandbox evasion.

Sideloading#

Installing an app from outside an official app store, usually by downloading an APK and opening it. A lot of Android malware spreads this way, since sideloaded apps skip the store’s review.

Signing certificate#

Every Android app has to be signed, and its certificate identifies the key it was signed with. Android doesn’t rely on certificate authorities for this, so almost every app certificate, legitimate or not, is self-signed. Malware builders often make a new certificate for each build, and odd details in it, like repeated fields or impossible dates, can link samples made with the same tools.

SNI (Server Name Indication)#

The hostname a client sends at the start of a TLS connection so the server knows which site it wants. It’s usually sent unencrypted, so network monitors can read it even when the rest of the connection is encrypted. An SNI for a well-known site going to an IP address that site doesn’t use is worth a closer look.

Stage#

One step in a multi-step infection. Each stage unpacks, installs, or loads the next, so analysts number them Stage 1, Stage 2, and so on. Splitting malware into stages hides the final payload from anyone who only looks at the first file.

Static analysis#

Studying malware without running it, by reading its code, strings, and files. Dynamic analysis is the opposite, where you run the sample, usually in a sandbox or on a test device, and watch what it does. Static analysis can reach code that never runs in a sandbox, but runtime behavior has to be inferred from the code.

TLS#

The encryption protocol behind HTTPS. Every TLS connection starts with a handshake, and the client’s first message, the ClientHello, lists the options it supports. Different browsers and libraries send different ClientHellos, so tools like JA4 turn them into fingerprints that can expose software pretending to be a browser.

Triage#

A malware sandbox run by Recorded Future at tria.ge. Its public reports are searchable, so it’s a good place to find related samples and see how a sample behaved for someone else.

USSD#

Short codes, usually starting with * and ending with #, that you dial to send a request to your carrier, like checking your balance. Not every code in that format is USSD. *31#, for example, is the GSM code that turns on caller ID hiding when dialed on its own. Android apps with the phone permission can send these codes in the background, so malware can use them to pull account info or change some settings.

VLESS#

A lightweight proxy protocol from the V2Ray and Xray projects, mostly used to get around internet censorship. It’s usually run without its own encryption, relying on the layer under it, like TLS or REALITY.

VPN (Android VpnService)#

On Android, any app can set up a local VPN through the VpnService API once the user approves a prompt. The app then controls what happens to other apps’ traffic, either for the whole phone or only for apps it picks. It doesn’t need a remote server, so malware can use one just to blackhole traffic on the phone.

WebSocket#

A protocol for a long-lived, two-way connection between a client and a server. It starts as an HTTP request and then stays open, so the server can push messages at any time. That makes it a good fit for C2, since commands arrive as soon as the operator sends them. ws:// is unencrypted and wss:// runs over TLS.

XOR#

A bitwise operation that malware often uses as a simple cipher. XORing data with a key scrambles it, and XORing the result with the same key gives back the original. It’s quick to write, but anyone who finds the key, or can guess part of the original data, can undo it.

YARA#

A rule language for matching files by patterns, like strings and byte sequences, combined with conditions. Analysts write YARA rules to flag known malware and to hunt for new samples of the same family.