Hornbill
- Type
- Spyware
- Capabilities
- ExfiltrationDefense evasionReconnaissance
- Platforms
- Android
Hornbill is an Android surveillanceware family associated with the Confucius threat actor, a pro-India espionage group known for targeting Pakistani and other South Asian entities. It has been used against individuals linked to Pakistan’s military and nuclear sectors as well as election-related targets in Kashmir. Hornbill appears to have been active by 2018 and remained in use through at least late 2020.
Hornbill is designed for covert collection and selective exfiltration of victim data rather than overt destructive activity. It can gather device contacts, call logs, phone number, IMEI, device identifiers, model, manufacturer, Android version, storage information, and screen-lock status. It can also check device state such as whether Wi‑Fi is enabled, access images stored on external storage, and monitor location changes. The malware closely monitors WhatsApp-related activity and has been reported to record WhatsApp calls through abuse of Android accessibility services. It also monitors documents on external storage and tracks file activity.
The malware communicates with command-and-control infrastructure over HTTP, including HTTP POST, and exfiltrates collected data to remote servers. Its operational design emphasizes stealth and efficiency: it uploads data initially and then only when monitored information changes, reducing battery and mobile-data usage. Hornbill stores collected data in hidden locations on external storage and deletes locally gathered files after successful upload to reduce suspicion and hinder forensic recovery.
Hornbill has been assessed as derived from the MobileSpy commercial surveillanceware code base. Samples have impersonated chat and system-themed Android applications and were observed outside official app-store distribution. Overall, Hornbill is best characterized as Android spyware used for targeted mobile surveillance, reconnaissance, and data theft in support of espionage operations.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Hornbill can delete locally gathered files after uploading them to the C2 to avoid suspicion.
Techniques & procedures
11 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Considering many of these malware samples are trojanized – as in they contain complete user functionality – social engineering may also play a part in convincing targets to install the malware.
Persistence
1 technique
Persistence
Scrape WhatsApp messages and contacts via accessibility services ... Scrape WhatsApp notifications via accessibility services ... Hornbill records WhatsApp calls by detecting an active call by abusing Android’s accessibility services.
Privilege Escalation
1 technique
Privilege Escalation
Scrape WhatsApp messages and contacts via accessibility services ... Scrape WhatsApp notifications via accessibility services ... Hornbill records WhatsApp calls by detecting an active call by abusing Android’s accessibility services.
Stealth
1 technique
Stealth
SunBird has been disguised as applications that include: Security services, such as the fictional “Google Security Framework” ... Similar to previous Confucius tactics seen with ChatSpy, Hornbill samples often impersonate chat applications
Discovery
1 technique
Discovery
Device metadata including phone number, IMEI/Android ID, Model and Manufacturer and Android version ... Hornbill also collects hardware information.
Collection
4 techniques
Collection
AbstractEmu can collect files from or inspect the device’s filesystem. AhRat can find and exfiltrate files with certain extensions, such as .jpg, .mp4, .html, .docx, and .pdf. BOULDSPY can access browser history and bookmarks, and can list all files and folders on the device.
Both malware are also able to perform the following actions on device: Take screenshots, capturing whatever a victim is currently viewing on their device
Record environment and call audio
Take photos with the device camera
Command and Control
1 technique
Command and Control
AbstractEmu can use HTTP to communicate with the C2 server; AhRat can communicate with the C2 using HTTPS requests; BRATA can use both HTTP and WebSockets to communicate with the C2 server; LightSpy has used both HTTPS and Websockets to communicate with the C2.
Exfiltration
2 techniques
Exfiltration
Hornbill and SunBird have sophisticated capabilities to exfiltrate SMS, encrypted messaging app content, and geolocation, among other types of sensitive information.
BRATA has exfiltrated data to the C2 server using HTTP requests.
Observables
16 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.