Open defencore opened 16 hours ago
👋 @defencore 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.
Description:
I propose adding new features to MobSF to improve its flexibility:
1. Split the Analysis Process into Two Steps
The suggested feature splits the analysis process into:
This would allow users to intervene when issues arise during the unpacking stage, such as when MobSF's built-in tools fail to process an APK. Users could manually prepare the APK and then continue with the analysis.
2. API Endpoint to List Analyzed APKs
I propose adding an API endpoint to retrieve a list of APKs that have already been analyzed in MobSF. This endpoint would return:
This feature would streamline MobSF integration with other tools and avoid redundant analysis of previously processed APKs.
Integration with Existing Logic:
urls.py
:static_analyzer_apk_unpack(request, checksum, api=False)
static_analyzer_apk_analyze(request, checksum, api=False)
These methods save the unpacked APK's context (
app_dic
) into a{checksum}.dic
file, allowing users to resume the analysis after manual intervention.api_apk_unpack(request)
: Handles APK unpacking via API.api_apk_analyze(request)
: Handles APK analysis via API.api_apk_list(request)
: Returns a list of MD5 hashes, file names, and package names for all analyzed APKs.Expected Impact:
mobsf_api_static_analysis.patch mobsf_static_analyzer.patch mobsf_urls.patch