cybersecurity Request an audit

Research / first-hand sighting / 1 December 2026

The Hagaseca Android worm, caught while it spreads over ADB

On 30 November 2026 a device on a home fibre line in Japan connected to the Android debug port of one of our decoys and pushed an app into it. The app is Hagaseca, an Android remote-access loader that Dark Atlas took apart in September 2026. Their analysis is the reference for what the app does. This note adds what a decoy can see and a lab cannot: the worm arriving from a live infected device, the three steps it takes, the place it writes the app, and where its control name points today.

Three visits in 26 minutes: a silent connection, a debug hello, then the app is pushed 08:25 08:40 08:51 stop connects, says nothing 30-byte debug hello pushes 41,681 bytes our decoy gave the wrong answer
Times are UTC on 30 November 2026, all from one address, all to port 5555.

The short version

  • An Android device with its debug port (ADB, TCP 5555) open to the internet can be taken over without a password. Hagaseca uses that to copy itself from device to device.
  • We recorded one infected device doing it: a silent connection, then a debug hello, then a full session that pushed the app.
  • The app was written to /data/data/com.android.shell/.hg_apk. We have not seen that path in a public write-up.
  • The worm's control name, test.hagaseca.com, pointed at 194.59.31.82 when we looked it up on 1 December 2026. Dark Atlas recorded 79.110.49.156 in September, so it has moved.
  • Our decoy kept only the first 1,500 bytes of the app. That was enough to recover its whole manifest, and not enough to confirm the file's fingerprint. We say below exactly what that does and does not prove.

What we recorded

All three visits came from the same address, a home fibre connection in Japan. A public scan database listed that address with its own port 5555 open. Our reading, which we cannot prove from outside: it is itself an infected Android device, doing to us what was done to it. We do not publish the address of a likely victim.

  • 08:25:09. It connects to port 5555 and sends nothing. This is a check that the port is open.
  • 08:40:34. It sends a 30-byte Android debug hello and leaves. The bytes are identical to the probe Dark Atlas published from the worm's scanner: 434e584e01000001000010000600000032020000bcb1a7b1686f73743a3a.
  • 08:51:20. It comes back as a full debug client, opens a file transfer and sends 41,681 bytes to /data/data/com.android.shell/.hg_apk with file mode 0644. The session lasted 16.6 seconds.

It then stopped. The next step would be the install command, and it never came. The fault was ours: the decoy acknowledged the transfer in a way a real phone does not, so the worm had no confirmation that the file was written. We have fixed that. The decoy now keeps every pushed file whole and answers install and start commands the way an Android 10 phone does.

What the app says about itself

An Android app is a zip archive, and its first entry is the manifest: the file that tells Android what the app is called and what it may do. The manifest of this app is 1,427 bytes compressed, so it sat entirely inside the part we kept. We unpacked it, and its checksum matches the one stored in the archive, so the manifest below is complete and unaltered.

FieldValue
Packagecom.hagaseca.thost9
Starts ascom.hagaseca.loader.Main
Visible namea single space, so it shows no name in the app list
Parts.Main (hidden from recent apps), .Fore (a permanent foreground service), .AS (an accessibility service), .Boot (starts after every restart)
Built forAndroid 16 (SDK 36), runs from Android 5 (SDK 21)
Asks forinternet, start at boot, change secure system settings, change settings, read system dumps, list every installed app, app usage statistics, notifications
A note left insidethanks for decoding my garbage apk, sorry if its annoying, followed by a Gmail address

Two of those permissions explain why the debug port matters. "Change secure system settings" cannot be granted by tapping a button: it is granted from a debug shell. With it, an app can switch its own accessibility service on, and an accessibility service can read the screen and press buttons for the user. Dark Atlas describes the rest: the loader fetches a second stage from https://test.hagaseca.com/ws, which can run shell commands, move files, relay traffic and look for more devices with an open debug port.

The note and the address in the manifest are text the author chose to put there. They are not evidence of who the author is.

What is new, and what is not

  • Not new: the app, its packing, its second stage and its control protocol. That is Dark Atlas's work, and their page has the file fingerprints and a detection rule.
  • New, observed by us: the worm spreading from a live infected device in the wild, with the timing of its three steps. Their report is built from samples and contained testing.
  • New, observed by us: the path /data/data/com.android.shell/.hg_apk. It is the debug shell's own private folder, which a debug session can write to without extra rights.
  • New, looked up by us: test.hagaseca.com resolving to 194.59.31.82 on 1 December 2026.
  • Not confirmed: that the file is byte for byte one of the published samples. Its size, 41,681 bytes, equals the size Dark Atlas gives for one of theirs, and the package name matches. We did not keep the whole file, so we cannot compare fingerprints.

How to check your own devices

  • Who is exposed: Android TV boxes, set-top boxes, tablets used as displays, phones left in developer mode, and Android emulators running on servers. Anything that answers on TCP 5555 or 5554 from the internet.
  • From outside: check whether your public address answers on port 5555. It should not.
  • On the device: look for a package named com.hagaseca.thost9 (pm list packages | grep hagaseca), an app with an empty name, an accessibility service you did not switch on, and a file named .hg_apk in /data/data/com.android.shell/.
  • On the network: lookups of test.hagaseca.com, and a device scanning its neighbours on ports 5555 and 5554.
  • The fix: switch off debugging over the network (Developer options, "Wireless debugging" and "ADB over network"), remove the package, and restart. If the device has no such setting, keep port 5555 closed at the router.

Indicators

Free to use, with or without credit. File fingerprints and a detection rule are in the Dark Atlas report.

WhatValueSource
Packagecom.hagaseca.thost9our record
Path the worm writes/data/data/com.android.shell/.hg_apkour record
Size of the pushed app41,681 bytesour record
Scanner hello (hex)434e584e01000001000010000600000032020000bcb1a7b1686f73743a3aour record, same as Dark Atlas
Control nametest.hagaseca.comDark Atlas
Where it pointed on 1 December 2026194.59.31.82our lookup
Where it pointed in September 202679.110.49.156Dark Atlas

How we know

The connection times, the bytes and the path come from our own decoy's records. The manifest was unpacked from those records on our side, and its checksum matches. The address behind the control name is a plain DNS lookup; we did not connect to that server. Everything about what the app does after it is installed is Dark Atlas's analysis, which we have not repeated. Where something is our reading and not observed, the text says so. The analysis of our records was done with Claude Mythos, Anthropic's AI model, inside our own tooling.