<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fauzan Awanda A on Medium]]></title>
        <description><![CDATA[Stories by Fauzan Awanda A on Medium]]></description>
        <link>https://medium.com/@keburusiang?source=rss-7dc7c0cee8db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dk-jO298Hy7abhLp</url>
            <title>Stories by Fauzan Awanda A on Medium</title>
            <link>https://medium.com/@keburusiang?source=rss-7dc7c0cee8db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:00:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@keburusiang/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Android Penetration Testing using Dynamic Analyzer MobSF]]></title>
            <link>https://medium.com/fmisec/android-penetration-testing-using-dynamic-analyzer-mobsf-465a41197a5f?source=rss-7dc7c0cee8db------2</link>
            <guid isPermaLink="false">https://medium.com/p/465a41197a5f</guid>
            <category><![CDATA[mobile-penetration-test]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[mobile-security]]></category>
            <category><![CDATA[mobsf]]></category>
            <category><![CDATA[offensive-security]]></category>
            <dc:creator><![CDATA[Fauzan Awanda A]]></dc:creator>
            <pubDate>Fri, 05 Mar 2021 07:53:05 GMT</pubDate>
            <atom:updated>2021-03-05T07:53:05.137Z</atom:updated>
            <content:encoded><![CDATA[<p>Android Penetration Testing using Dynamic Analyzer MobSF</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*LB3nZ6MpUwoTJ-s3b_2g7A.png" /><figcaption>Mobile Security Framework</figcaption></figure><p>Hi everyone, in this article, I will explain how to test Android applications using MobSF as Dynamic Application Security Testing or Dynamic Analyzer. I’ll try to explain all things in detail yet more clearly.</p><p>Points on this article.</p><ul><li>Introduction</li><li>Preparation</li><li>Type of Analysis</li><li>Using a Dynamic Analyzer</li><li>Conclusion</li></ul><h3><strong>Introduction</strong></h3><blockquote>“Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.”</blockquote><blockquote>— Ajin Abraham</blockquote><p>High users of the Android operating system cause android applications to often become the main target of crimes. It happens because the security aspects’ implementation does not follow the development of applications and current users. In this article, I’m gonna show you how to test an Android application’s security with the DAST method using MobSF as the testing application.</p><p>What is MobSF ? MobSF is an all-in-one (Android / iOS / Windows) open-source security testing application developed by those capable of performing penetration testing both statically and dynamically. It can be used for effective and fast security analysis of Android, iOS and Windows mobile applications and support both binaries (APK, IPA &amp; APPX ) and zipped source code. The sets of tests are meant to attack the app to identify possible threats and vulnerabilities that would allow external persons or systems to access private information stored on the mobile device.</p><p>In this article, the android application security testing is carried out based on the security holes in the OWASP Top 10 Mobile Risks. The android application that I am using Diva application (Damn Insecure and Vulnerable App).</p><h3><strong>Preparation</strong></h3><p>Then we need a supporting application that is used in implementing MobSF. The required supporting applications that are not complex can be checked on. Please note that I use the Windows 10 operating system to run MobSF. The application requirements required are as follows:</p><ul><li>Git &amp; Python 3.8–3.9</li><li>JDK 8+</li><li>Microsoft Visual C++ Build Tools</li><li>OpenSSL (non-light)</li><li>Wkhtmltopdf</li><li>Genymotion and VirtualBox (For Dynamic Analyzer Testing)</li></ul><pre>For more details, if you are using an operating system other than Windows, such as Linux or macOS, you can access it on this <a href="https://mobsf.github.io/docs/#/requirements">page</a></pre><h4>Setup MobSF</h4><ol><li>Clone from the MobSF Github repository by running the following command.<br># git clone https://github.com/MobSF/Mobile-Security-Framework-MobSF.git</li><li>Enter the folder from Github that has been cloned before.<br># cd Mobile-Security-Framework-MobSF</li><li>Run the setup.bat command.<br># ./setup.bat</li></ol><h4>Run MobSF</h4><p>An easy step in running MobSF is to enter the previous installation folder and run the following command:<br># run.bat 127.0.0.1:8000</p><p>Then, access the IP address and port on the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OPVtgAPYTRIN4hWD6KN_rA.jpeg" /><figcaption>Running MobSF at Windows</figcaption></figure><h3><strong>Type of Analysis</strong></h3><p>MobSF provides functionality to check mobile application security vulnerabilities (APK, IPA &amp; APPX) and zipped source code. It works in two ways <strong>Static Analysis</strong> and <strong>Dynamic Analysis</strong>.</p><h4>Static Analysis</h4><p>In static analysis or static testing, MobSF will perform source code-based analysis without running the application to not depend on the runtime environment. So that static analysis can be used in line with application development. Static testing will be more effectively carried out regularly within a predetermined time so that every time an update or release of code is carried out, at the same time, the test has been done without having to run the application.</p><h4>Dynamic Analysis</h4><p>Dynamic Analysis testing is the process of real-time application testing or when the application software is in operation. Meanwhile, the main purpose of Dynamic Analysis is to analyze and look for security holes in running Android applications. Dynamic analysis can be applied when application development has entered the production phase or after the development phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*ZD4hWweFun1VvBQmzGdnsQ.png" /><figcaption>MobSF Dynamic Analyzer Architecture</figcaption></figure><h3>Using Dynamic Analyzer</h3><p>Dynamic analyzer is performed by executing the application in either a real device or a simulator. Information could include the OWASP Top 10 Mobile Risk findings such as M2: Insecure Data Storage and M5: Insufficient Cryptography. Testing focuses on the two security gaps Insecure Data Storage and Insufficient Cryptography using Diva as a sample application to be tested. Step Dynamic Analysis is as follows:</p><h4>Setup Dynamic Analyzer</h4><p>Run Genymotion Android VM version 4.1 to 10.0 (x86, up to API 29). I use a Samsung Galaxy S6 Device and API 25 for Android Virtual Device because I think it was stable on my laptop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*r3YlDiSpvHDMXDQ2L4awnw.png" /><figcaption>Android Virtual Device Genymotion</figcaption></figure><p>Upload your APK which will be tested at dashboard MobSF. I use the Diva application. After successfully uploading the APK file, then do a Dynamic Analysis by selecting the Start Dynamic Analysis menu on the MobSF dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KliDS1MFWVOLliaegmMqkg.png" /><figcaption>Upload APK Diva</figcaption></figure><p>MobSF will then install the Diva application on the Android Virtual Device that is connected to MobSF. If the application cannot be installed properly, this can happen because the Android API version you are using does not comply with the minimum requirements required by MobSF. Then, after successfully installing the application, you will be directed to the Dynamic Analyzer page. The dashboard page contains a set of menus that can be used in performing Dynamic Analysis testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5so2UwKWOSXhQABpTGkceA.png" /><figcaption>Dynamic Analyzer Page</figcaption></figure><p>The emulator application will automatically run and be displayed on the Dynamic Analyzer Page by pressing the Start Instrumentation button.</p><h4>Example Attack Scenarios</h4><p>Diva has various features that can be used, such as credential input and a simple form that only contains a single field. In general, Android data storage is categorized into two types, namely internal and external. Internal storage gives applications the right to store application data, both cached data and others. On this occasion, I will try to show two features that the diva has designed to have Insecure Data Storage and Insufficient Cryptography vulnerabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xI9QjhTUakoUKYKsK9uH9w.png" /><figcaption>Feature Insecure Data Storage Part 1</figcaption></figure><p>The figure above shows the Insecure Data Storage Part 1 feature. This feature contains input username and password. Username and password will be stored by the application in the storage provided. I tried to enter credentials with the username “Dila Dina” and the password “password123”. As in the explanation initially, every activity carried out by users on the application will be recorded by MobSF. Then, to determine whether the input form on the Insecure Data Storage feature has vulnerabilities, by looking at the report on the Generate Report feature on MobSF. In the application directory, we can see that there is an XML store named jakhar.aseem.diva_preferences.xml.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*2PMiIlvU6W11e7aCn_HuIA.png" /><figcaption>XML File and Credentials</figcaption></figure><p>From the XML file, it can be seen that MobSF gets the Diva application using XML as credential data storage. We can see the contents of the credentials entered in the Insecure Data Storage Part 1 feature without any encryption.</p><p>In Insecure Data Storage Part 2, was found the same thing. I tried to enter the username and password. Then, the results show that this feature stores credentials in the SQLite database with the name ids2 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ge1V94QLDFjbZiUvOsdD-Q.png" /><figcaption>Feature Insecure Data Storage Part 2</figcaption></figure><p>Within the applications directory, we can see a database called ids2 without any encryption at all, so this is a vulnerability in the form of Insufficient Cryptography so that it includes a vulnerability in the form of Insufficient Cryptography. It includes findings due to anyone with physical access to data that has been encrypted improperly or mobile malware acting on an adversary’s behalf.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZHkR2U1T57v4QosfsqJwRQ.png" /><figcaption>Database ids2</figcaption></figure><h3>Conclusion</h3><p>Based on the result of the Diva application, there are sensitive data when using MobSF. It happens because the application still implements internal storage without any special authority. Besides, the data storage is still plain in the text then it can easy to read. MobSF can perform automatic scans on every feature of the application but cannot perform special intercept, so it still needs to be tested manually to ensure vulnerabilities in the application.</p><h3>References</h3><ul><li><a href="https://mobsf.github.io/docs/#/">https%3A%2F%2Fmobsf.github.io%2Fdocs%2F%23%2F</a></li><li><a href="https://medium.com/@hacker7744/mobile-app-security-testing-setting-up-mobsf-dynamic-analyzer-for-security-testing-of-android-ios-173db5cae81e">https://medium.com/@hacker7744/mobile-app-security-testing-setting-up-mobsf-dynamic-analyzer-for-security-testing-of-android-ios-173db5cae81e</a></li><li><a href="https://petruknisme.com/2017/04/07/android-static-analysis-dengan-mobsf/">https%3A%2F%2Fpetruknisme.com%2F2017%2F04%2F07%2Fandroid-static-analysis-dengan-mobsf%2F</a></li><li><a href="https://github.com/MobSF/Mobile-Security-Framework-MobSF">https%3A%2F%2Fgithub.com%2FMobSF%2FMobile-Security-Framework-MobSF</a></li><li><a href="https://owasp.org/www-project-mobile-top-10/2016-risks/m2-insecure-data-storage">https%3A%2F%2Fowasp.org%2Fwww-project-mobile-top-10%2F2016-risks%2Fm2-insecure-data-storage</a></li><li><a href="https://owasp.org/www-project-mobile-top-10/2016-risks/m5-insufficient-cryptography">https%3A%2F%2Fowasp.org%2Fwww-project-mobile-top-10%2F2016-risks%2Fm5-insufficient-cryptography</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=465a41197a5f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fmisec/android-penetration-testing-using-dynamic-analyzer-mobsf-465a41197a5f">Android Penetration Testing using Dynamic Analyzer MobSF</a> was originally published in <a href="https://medium.com/fmisec">FMI Cyber Security Consulting Services</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>