> For the complete documentation index, see [llms.txt](https://cas-cyber.gitbook.io/cas-cybersecurity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cas-cyber.gitbook.io/cas-cybersecurity/android-malware/redalert.md).

# RedAlert

### 01. Introduction

> An Android malware sample called "RedAlert" was found in the wild. The malware is known to collect data from infected phones and turns them to a remote controlled bots. You have to find out the address of the Command & Control (CC) server of the bots.

* Download the APK sample. (PW: **infected**)
* Extract the APK (apktool or jadx-gui)
* Analyze the resources

Your goal is

* to Extract the Android Package,
* Check the Android Permission (Check if it can intercept and write SMS messages)
* Find the CC server address (Protocol,IP, Port) in the resource files

APK File:

{% embed url="<https://www.dropbox.com/s/hi5l559ad1cna2r/red_alert.zip?dl=0>" %}

### 02. Analysis

The permissions are stored in the manifest.xml file of the apk package. I’ll use the aapt tool to dump the permissions.

```
aapt dump permissions RedAlert.apk
```

Just a short check about the permissions looks very dangerous. The package can read and write sms messages:

<div align="left"><img src="/files/lMT8b1AELqAZYTRjTcnU" alt=""></div>

Let's compare with the MobSF framework:

{% embed url="<https://mobsf.live/>" %}

<div align="left"><img src="/files/RJFcjBG4v2EEZXcgwY9j" alt=""></div>

Now we can open the package in jadx-gui and check for strings that looks like an URL.

<div align="left"><img src="/files/9aQloyfH7tWoiTNFbr0P" alt=""></div>

![](/files/WCrWUq9pulr398v1BSLW)

Maybe the CC Server URL will add a string from the list above. I’ll upload the apk file to virus total and get this graph: Note: We can see the string /stbi

![](/files/lseJnlvizcGxPjKGalLP)

Potential CC Server:

IP: 119.28.128.207 (CN)\
Protocol: http\
Port: 7878


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cas-cyber.gitbook.io/cas-cybersecurity/android-malware/redalert.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
