Back to Mobile Security Framework Mobsf

API Docs

mobsf/templates/general/apidocs.html

4.4.634.2 KB
Original Source

{% extends "base/base_layout.html" %} {% block sidebar_option %} sidebar-collapse {% endblock %} {% block content %}

API Docs

API Key: {{ api_key}}

Static Analysis

  1. api/v1/upload - Upload a File
  2. api/v1/scan - Scan a File
  3. api/v1/scan_logs - Display Live Scan Logs
  4. api/v1/search - Search a Scan
  5. api/v1/scans - Display Recent Scans
  6. api/v1/tasks - Display Scan Tasks
  7. api/v1/delete_scan - Delete a Scan
  8. api/v1/scorecard - App Scorecard
  9. api/v1/download_pdf - Download PDF Report
  10. api/v1/report_json - Generate JSON Report
  11. api/v1/view_source - View Source Files
  12. api/v1/compare - Compare Apps
  13. api/v1/suppress_by_rule - Suppress by Rule
  14. api/v1/suppress_by_files - Suppress by Files
  15. api/v1/list_suppressions - List Suppressions
  16. api/v1/delete_suppression - Delete Suppressions

Dynamic Analysis Android

  1. api/v1/dynamic/get_apps - Get Apps for Dynamic Analysis
  2. api/v1/dynamic/start_analysis - Start Dynamic Analysis
  3. api/v1/android/logcat - View Logcat
  4. api/v1/android/mobsfy - MobSFy VM/Emulator/Device
  5. api/v1/android/adb_command - Execute ADB Commands
  6. api/v1/android/root_ca - Install or Remove MobSF Root CA
  7. api/v1/android/global_proxy - Set or Unset MobSF HTTP(S) Proxy
  8. api/v1/android/activity - Activity or Exported Activity Tester
  9. api/v1/android/start_activity - Start an Activity or Exported Activity
  10. api/v1/android/tls_tests - TLS/SSL Security Tester
  11. api/v1/frida/instrument - Frida Instrument App
  12. api/v1/frida/api_monitor - Frida API Monitor
  13. api/v1/frida/get_dependencies - Frida Get Dependencies
  14. api/v1/frida/logs - Frida View Logs
  15. api/v1/frida/list_scripts - Frida List Scripts
  16. api/v1/frida/get_script - Frida Get Script
  17. api/v1/dynamic/stop_analysis - Stop Dynamic Analysis
  18. api/v1/dynamic/report_json - Dynamic Analysis JSON report
  19. api/v1/dynamic/view_source - Dynamic Analysis View Source

Dynamic Analysis iOS

  1. api/v1/ios/corellium_supported_models - Supported Corellium iOS Models
  2. api/v1/ios/corellium_ios_versions - Supported Corellium iOS Versions
  3. api/v1/ios/corellium_create_ios_instance - Create an iOS VM in Corellium
  4. api/v1/ios/dynamic_analysis - iOS Dynamic Analysis
  5. api/v1/ios/corellium_start_instance - Start iOS VM in Corellium
  6. api/v1/ios/corellium_stop_instance - Stop iOS VM in Corellium
  7. api/v1/ios/corellium_unpause_instance - Unpause iOS VM in Corellium
  8. api/v1/ios/corellium_reboot_instance - Reboot iOS VM in Corellium
  9. api/v1/ios/corellium_destroy_instance - Destroy iOS VM in Corellium
  10. api/v1/ios/corellium_list_apps - List Apps in Corellium iOS VM
  11. api/v1/ios/setup_environment - Setup iOS Dynamic Analysis Environment
  12. api/v1/ios/dynamic_analyzer - iOS Dynamic Analyzer
  13. api/v1/ios/run_app - Run App
  14. api/v1/ios/stop_app - Stop App
  15. api/v1/ios/remove_app - Remove App
  16. api/v1/ios/take_screenshot - Take Screenshot
  17. api/v1/ios/get_app_container_path - Get App Container Path
  18. api/v1/ios/network_capture - Network Capture
  19. api/v1/ios/live_pcap_download - Live PCAP Download
  20. api/v1/ios/ssh_execute - SSH Execute
  21. api/v1/ios/download_app_data - Download App Data
  22. api/v1/ios/instance_input - Instance Input
  23. api/v1/ios/system_logs - System Logs
  24. api/v1/ios/file_upload - File Upload
  25. api/v1/ios/file_download - File Download
  26. api/v1/frida/ios_instrument - Frida Instrument App
  27. api/v1/dynamic/ios_report_json - iOS Dynamic Analysis Report

Upload File API

API to upload a file. Supported file types are apk, zip, ipa and appx.

  • URL: /api/v1/upload

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
filemultipart/form-dataYes
  • Success Response:

  • Error Response:

  • Sample Call:


Scan File API

API to scan a file that is already uploaded. Supports scanning apk, xapk, apks, jar, aar, zip, ipa, so, dylib, a, and appx extensions.

  • URL: /api/v1/scan

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
re_scan0 or 1, default is 0No
  • Success Response:

  • Error Response:

  • Sample Call:


Scan Logs API

API that provides live and latest scan logs.

  • URL: /api/v1/scan_logs

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Search API

API for querying scan results. You can search using an MD5 checksum, app name, package name, or file name. The API returns the closest match based on your search term.

  • URL: /api/v1/search

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
queryhash of the scan or textYes
  • Success Response:

  • Error Response:

  • Sample Call:


Delete Scan API

API to delete scan results.

  • URL: /api/v1/delete_scan

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


App Scorecrd API

Get MobSF Application Security Scorecard

  • URL: /api/v1/scorecard

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Generate PDF Report API

API to generate PDF Report.

  • URL: /api/v1/download_pdf

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Generate JSON Report API

API to generate JSON Report.

  • URL: /api/v1/report_json

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


View Source Files API

API to view source files.

  • URL: /api/v1/view_source

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
filerelative file pathYes
typeapk/ipa/studio/eclipse/iosYes
  • Success Response:

  • Error Response:

  • Sample Call:


Display Recent Scans API

API to Display Recent Scans.

  • URL: /api/v1/scans

  • Method: GET

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
pagethe number of pageYes
page_sizeper page sizeYes
  • Success Response:

  • Error Response:

  • Sample Call:


Scan Tasks API

Displays the scan tasks queue, accessible only when the asynchronous scan queue is enabled.

  • URL: /api/v1/tasks

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Success Response:

  • Error Response:

  • Sample Call:


Compare Apps API

API to Compare scan results.

  • URL: /api/v1/compare

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hash1first scan hashYes
hash2second scan hash to compare withYes
  • Success Response:

  • Error Response:

  • Sample Call:


Suppress by Rule

Suppress findings by rule id.

  • URL: /api/v1/suppress_by_rule

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
typecode or manifestYes
rulerule idYes
  • Success Response:

  • Error Response:

  • Sample Call:


Suppress by Files

Suppress findings by files.

  • URL: /api/v1/suppress_by_files

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
typecodeYes
rulerule idYes
  • Success Response:

  • Error Response:

  • Sample Call:


View Suppressions

View suppressions associated with a scan.

  • URL: /api/v1/list_suppressions

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Delete Suppressions

Delete suppressions.

  • URL: /api/v1/delete_suppression

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
typecode or manifestYes
rulerule idYes
kindrule or fileYes
  • Success Response:

  • Error Response:

  • Sample Call:


Get Apps API

Get Apps available for Dynamic Analysis. You must perform static analysis before attempting dynamic analysis.

  • URL: /api/v1/dynamic/get_apps

  • Method: GET

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Success Response:

  • Error Response:

  • Sample Call:


Start Dynamic Analysis API

Start MobSF Dynamic Analyzer. Ensure that dynamic analysis environment (Android VM/Emulator/Device) is configured and running before calling this API.

  • URL: /api/v1/dynamic/start_analysis

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
re_install0 or 1, default is 1No
install0 or 1, default is 1No
  • Success Response:

  • Error Response:

  • Sample Call:


View Logcat API

API view Logcat logs.

  • URL: /api/v1/android/logcat

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
packagepackage name of the appYes
  • Success Response:

  • Error Response:

  • Sample Call:


MobSFy API

API to MobSFY android runtime environment.

  • URL: /api/v1/android/mobsfy

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
identifierADB identifier of Android VM/Emulator/DeviceYes
  • Success Response:

  • Error Response:

  • Sample Call:


Execute ADB Commands API

Execute ADB commands inside VM/Emulator/Device.

  • URL: /api/v1/android/adb_command

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
cmdnon blocking adb commandsYes
  • Success Response:

  • Error Response:

  • Sample Call:


Install or Remove Root CA API

API to install or remove MobSF Root CA to or from the Android VM/Emulator/Device.

  • URL: /api/v1/android/root_ca

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
actioninstall/removeYes
  • Success Response:

  • Error Response:

  • Sample Call:


Set or Unset MobSF Global HTTP(S) Proxy API

API to apply or remove global HTTP(S) proxy configuration to Android VM/Emulator/Device.

  • URL: /api/v1/android/global_proxy

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
actionset/unsetYes
  • Success Response:

  • Error Response:

  • Sample Call:


Activity or Exported Activity Tester API

API to run Activity or Exported Activity Tester.

  • URL: /api/v1/android/activity

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
testexported/activityYes
  • Success Response:

  • Error Response:

  • Sample Call:


Start Activity or Exported Activity API

API to manually launch an Activity or Exported Activity.

  • URL: /api/v1/android/start_activity

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
activityFully qualified name of the activity or exported activityYes
  • Success Response:

  • Error Response:

  • Sample Call:


TLS/SSL Security Tester API

API to run TLS/SSL Security Tester.

  • URL: /api/v1/android/tls_tests

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Frida Instrument App API

API to start Frida Instrumentation.

  • URL: /api/v1/frida/instrument

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
default_hookscomma separated default hooks to loadYes
auxiliary_hookscomma separated auxiliary hooks to loadYes
frida_codeuser defined frida code to loadYes
class_nameclass name to perform method enumeration when enum_methods auxiliary_hook is specifiedNo
class_searchpattern to search when search_class auxiliary_hook is specifiedNo
class_traceclass name to trace when trace_class auxiliary_hook is specifiedNo
frida_actionspawn/session/ps. The default action is spawnNo
new_packageNew package name to attachNo
pidProcess id of the new package to attachNo
  • Success Response:

  • Error Response:

  • Sample Call:


Frida API Monitor API

API to view Frida API monitor output.

  • URL: /api/v1/frida/api_monitor

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Frida Get Runtime Dependencies API

API to collect runtime dependencies.

  • URL: /api/v1/frida/get_dependencies

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Frida View Logs API

API to view Frida log output.

  • URL: /api/v1/frida/logs

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Frida List Scripts API

API to list available frida scripts.

  • URL: /api/v1/frida/list_scripts

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
deviceandroid/iosYes
  • Success Response:

  • Error Response:

  • Sample Call:


Frida Get Script API

API to generate frida script based on selection.

  • URL: /api/v1/frida/get_script

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
scripts[]name of the script from the output of Frida List Scripts (/api/v1/frida/list_scripts) API.Yes
deviceandroid/iosYes
  • Success Response:

  • Error Response:

  • Sample Call:


Stop Dynamic Analysis API

Stop MobSF Dynamic Analyzer. This API must be called to stop dynamic analysis and prior to report generation.

  • URL: /api/v1/dynamic/stop_analysis

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Dynamic Analysis JSON Report API

Generate JSON Report of Dynamic Analysis. Stop Dynamic Analysis (/api/v1/dynamic/stop_analysis) API must be called before calling this API.

  • URL: /api/v1/dynamic/report_json

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Dynamic Analysis View Source API

API to view source of files dumped from device after dynamic analysis. Stop Dynamic Analysis (/api/v1/dynamic/stop_analysis) API must be called before calling this API.

  • URL: /api/v1/dynamic/view_source

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
filerelative path of the fileYes
typexml/db/othersYes
hashhash of the scanYes
  • Success Response:

  • Error Response:

  • Sample Call:


Supported Corellium iOS Models API

List out supported iOS Corellium VMs.

  • URL: /api/v1/ios/corellium_supported_models

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Success Response:

  • Error Response:

  • Sample Call:


Supported Corellium iOS Versions API

List out supported iOS versions for a device.

  • URL: /api/v1/ios/corellium_ios_versions

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
modeliOS modelYes
  • Success Response:

  • Error Response:

  • Sample Call:


Corellium Create iOS Instance API

Create a jailbroken iOS instance in Corellium with desired flavor and iOS version.

  • URL: /api/v1/ios/corellium_create_ios_instance

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
project_idCorellium Project IDYes
nameName of the VMYes
flavoriOS FlavorYes
versioniOS VersionYes
  • Success Response:

  • Error Response:

  • Sample Call:


iOS Dynamic Analysis API

List iOS Instance & Apps Available for Dynamic Analysis.

  • URL: /api/v1/ios/dynamic_analysis

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

  • Success Response:

  • Error Response:

  • Sample Call:


Corellium Start iOS Instance API

Start iOS VM in previously created in Corellium by instance identifier.

  • URL: /api/v1/ios/corellium_start_instance

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
instance_idiOS VM instance identifierYes
  • Success Response:

  • Error Response:

  • Sample Call:


Corellium Stop iOS Instance API

Stop iOS VM in Corellium by instance identifier.

  • URL: /api/v1/ios/corellium_stop_instance

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
instance_idiOS VM instance identifierYes
  • Success Response:

  • Error Response:

  • Sample Call:


Corellium Unpause iOS Instance API

Unpause iOS VM in Corellium by instance identifier.

  • URL: /api/v1/ios/corellium_unpause_instance

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
instance_idiOS VM instance identifierYes
  • Success Response:

  • Error Response:

  • Sample Call:


Corellium Reboot iOS Instance API

Reboot iOS VM in Corellium by instance identifier.

  • URL: /api/v1/ios/corellium_reboot_instance

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
instance_idiOS VM instance identifierYes
  • Success Response:

  • Error Response:

  • Sample Call:


Corellium Destroy iOS Instance API

Destroy iOS VM in Corellium by instance identifier.

  • URL: /api/v1/ios/corellium_destroy_instance

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
instance_idiOS VM instance identifierYes
  • Success Response:

  • Error Response:

  • Sample Call:


Corellium List Apps in Instance API

List all apps present in the Corellium iOS VM.

  • URL: /api/v1/ios/corellium_list_apps

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

  • Data Params

Param NameParam ValueRequired
instance_idiOS VM instance identifierYes
  • Success Response:

  • Error Response:

  • Sample Call:


Setup iOS Dynamic Analysis Environment API

Setup iOS Dynamic Analysis Environment for an IPA. This API call is required for apps not installed in the Corellium iOS VM.

  • URL: /api/v1/ios/setup_environment

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance idYes
hashMD5 hash of the IPA fileYes
  • Success Response:

  • Error Response:

  • Sample Call:


iOS Dynamic Analyzer API

Start iOS Dynamic Analyzer with an app. Setup environment (api/v1/ios/setup_environment) API should be called before running dynamic analyzer for IPAs not installed in the Corellium VM.

  • URL: /api/v1/ios/dynamic_analyzer

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


Run App API

Run the app in the Corellium VM.

  • URL: /api/v1/ios/run_app

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


Stop App API

Kill the app in the Corellium VM.

  • URL: /api/v1/ios/stop_app

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


Remove App API

Remove an app from the Corellium VM.

  • URL: /api/v1/ios/remove_app

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


Take Screenshot API

Take a screenshot.

  • URL: /api/v1/ios/take_screenshot

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


Get App Container Path API

Get App container path. App must be instrumented before calling this API.

  • URL: /api/v1/ios/get_app_container_path

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


Network Capture API

Enable/Disable Network Capture.

  • URL: /api/v1/ios/network_capture

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
stateon/offYes
  • Success Response:

  • Error Response:

  • Sample Call:


Live PCAP Download API

Download live packet capture.

  • URL: /api/v1/ios/live_pcap_download

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


SSH Execute API

Execute OS Commands inside the VM over SSH.

  • URL: /api/v1/ios/ssh_execute

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
cmdOS CommandYes
  • Success Response:

  • Error Response:

  • Sample Call:


Download App Data API

Download app data from the VM.

  • URL: /api/v1/ios/download_app_data

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


Instance Input API

Provide text, swipe and touch events to the VM

  • URL: /api/v1/ios/instance_input

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
xx-axis integer / Text input text when event parameter is set to textNo
yy-axis integerNo
eventtext/home/enter/backspace/left/right/swipe_up/swipe_down/swipe_left/swipe_right/touch.No
max_xMax Screen size x-axisNo
max_yMax Screen size y-axisNo
  • Success Response:

  • Error Response:

  • Sample Call:


System Logs API

Get VM system logs.

  • URL: /api/v1/ios/system_logs

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:


File Upload API

Upload a file to the the VM.

  • URL: /api/v1/ios/file_upload

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
filemultipart/form-dataYes
  • Success Response:

  • Error Response:

  • Sample Call:


File Download API

Download a file from the VM.

  • URL: /api/v1/ios/file_download

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
filePath to the file in VMYes
  • Success Response:

  • Error Response:

  • Sample Call:


Frida Instrument API

Instrument iOS App.

  • URL: /api/v1/frida/ios_instrument

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
hashMD5 hash of the IPA fileYes
default_hookscomma separated default hooks to loadYes
dump_hookscomma separated dump hooks to load (network,crypto,cookies,file-access,json,sqlite,data-dir,keychain,nslog,text-inputs,nsurlcredentialstorage,nsuserdefaults,pasteboard)Yes
auxiliary_hookscomma separated auxiliary hooks to loadYes
frida_codeuser defined frida code to loadYes
class_nameclass name to perform method enumeration when enum_methods auxiliary_hook is specifiedNo
class_searchpattern to search when search_class auxiliary_hook is specifiedNo
class_traceclass name to trace when trace_class auxiliary_hook is specifiedNo
method_searchlook for classes with this methodNo
frida_actionspawn/session/ps. The default action is spawnNo
new_packageNew package name to attachNo
pidProcess id of the new package to attachNo
  • Success Response:

  • Error Response:

  • Sample Call:


iOS Dynamic Analysis Report API

Get iOS Dynamic Analysis Report.

  • URL: /api/v1/dynamic/ios_report_json

  • Method: POST

  • Header: Authorization: <api_key> Or X-Mobsf-Api-Key: <api_key>

Param NameParam ValueRequired
instance_idiOS instance id (Available from /api/v1/ios/dynamic_analysis)Yes
bundle_idiOS app bundle id (Available from /api/v1/ios/dynamic_analysis)Yes
  • Success Response:

  • Error Response:

  • Sample Call:

{% endblock %}