Back to Mobile Security Framework Mobsf

Windows App Analysis

mobsf/install/windows/readme.md

4.4.62.4 KB
Original Source

Windows App Analysis

If you are running MobSF in Windows host, you do not have to configure anything, apart from interacting with the automated installation script for the first time when you run MobSF. However, if you are using a different host OS, you need to configure a Windows VM. Sadly binskim is only available on Windows. So even for static analysis, a Windows VM is required.

Steps on the Windows-VM

  1. Install the following requirements on the VM
  • Python 3
  • rsa (via python -m pip install rsa)
  1. Download the setup.py script and run it
  2. There is some manual interaction, but if there are no errors, everything is good and the RPC-Server should be running
  3. Do the steps of the next section for MobSF

Video: Configuring Windows VM and MobSF for Windows App Static Analysis

Caution

Use separate Windows-VM for MobSF and don't expose it to a network range where an attack might be coming from. The best solution is to set it to host-only mode.

Steps for MobSF

To integrate a Windows-VM into MobSF, please follow these steps.

  • Get the IP of your Windows VM and set WINDOWS_VM_IP in <user_home_dir>/.MobSF/config.py.
  • (If not yet done:) Copy the private rsa key from the VM to MobSF

NOTE: These steps are not required, if you are running MobSF in a Windows Host.

FAQ

  • If you see errors like this
Unhandled Exception: System.NotSupportedException: The requested security protocol is not supported.
   at System.Net.ServicePointManager.set_SecurityProtocol(SecurityProtocolType value)
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)
   at NuGet.CommandLine.Program.Main(String[] args)

Install .NET Framework 4.6

  • Error: AttributeError: ConfigParser instance has no attribute 'getitem'

MobSF setup script assume that your VM or host Windows box have a C Drive and you have all the permissions to perform read/write operations in C:\MobSF. This error occurs if you don't have proper read/write permissions.