Mobile-Security-Framework-MobSF
Mobile-Security-Framework-MobSF copied to clipboard
Frida didn't execute correctly while doing dynamic analysis.
ENVIRONMENT
OS and Version: MacOS 13.7
Python Version: 3.11.9
MobSF Version: 4.3.3
EXPLANATION OF THE ISSUE
This happens while running MobSF dynamic analysis on a rooted Android emulator (version 9, x86_64, api 28). The error occurred immediately after MobSF started the Frida server and attached to the app process. I was expecting to use Live API monitor or any other dynamic analysis functions after Frida injecting success.
STEPS TO REPRODUCE THE ISSUE
1. Start MobSF dynamic analysis on a rooted Android emulator
2. APK is installed and Frida is started
3. Press "spawn & inject" button
4. Frida throws `'Java is not defined'` error
LOG FILE
[ERROR] 12/Jun/2025 12:38:56 - [Frida] {'type': 'error', 'description': "ReferenceError: 'Java' is not defined",
'stack': "ReferenceError: 'Java' is not defined\n
at <anonymous> (/script1.js:117)\n
at apply (native)\n
at <anonymous> (/frida/runtime/core.js:55)",
'fileName': '/script1.js',
'lineNumber': 117,
'columnNumber': 1}
👋 @ZhuoTY Issues is only for reporting a bug/feature request. For limited support, questions, and discussions, please join MobSF Slack channel Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.
Frida has breaking changes from v17 onwards. This should be addressed in https://github.com/MobSF/Mobile-Security-Framework-MobSF/pull/2530