Commit Graph
80 Commits
Author SHA1 Message Date
Ajin Abraham 0d3b1ec3b9 Fix x86_64 Android AVD in Windows (#2471) 2024-12-02 21:43:53 -08:00
Ajin Abraham a5c30c077b Helper script for migration 2024-11-28 18:04:26 -08:00
Ajin Abraham 5ce7e237af [4.2.8] Multiple APK Analysis improvements, general Code QA & bug fixes (#2470)
* Dockerfile QA
* Add sdk-build-tools to Docker image
* Replace biplist with plistlib std lib
* Fixed a bug in iOS pbxproj parsing
* Added support for APK parsing with aapt2/aapt
* Use aapt/aapt2 as a fallback for APK parsing, files listing and string extraction
* Added "started at" to Scan task queue model #2463
* Tasks List API to return string status #2464
* Replaced all minidom calls with defusedxml.minidom
* Code QA on android manifest data extraction and parsing
* Improved android file analysis
* Improved android manifest data extraction
* Improved android icon file extraction
* Improved android app name extraction
* Improved android appstore package details extraction
* Android string extraction to fallback on aapt2 strings
* APK analysis arguments refactor
* Handle packed APKs, refactor unzip to handle malformed APK files
* Handle reserved filename conflict during ZIP extraction
* Explicit Zipslip handling during ZIP extraction
* Graceful files extraction on unzip failure
* Removed bail out and continue analysis
* Moved androguard parsing to the start of static analysis
* AndroidManifest.xml fallback from apktool to androguard during extraction and parsing
* Updated Tasks UI to show started at
2024-11-28 17:26:50 -08:00
Ajin Abraham d1c9cb1f4f DjangoQ2 config 2024-11-19 22:36:07 -08:00
Ajin Abraham b5da756615 4.2.0 (#2450)
- Added malware lookup using SHA2 with VirusTotal, Triage, Hybrid Analysis, and MetaDefender.
- Fixed permissions of extracted files to counter anti-analysis techniques.
- Resolved APK parsing errors in `androguard`.
- Handled exceptions in `string_on_binary`.
- Optimized APK ZIP analysis for improved performance.
- Fixed untar permission errors in dynamic analysis.
- Added bypass for SSL pinning in Boye's `AbstractVerifier`.
- Updated bypass for SSL pinning in Appmattus's `CertificateTransparencyInterceptor`.
- Introduced SSL pinning detector script.
- Improved Frida intent dumper script.
- Added Frida intent tracer script.
- Introduced timeouts for all HTTP calls.
- Added `django-q2`-based asynchronous scans for Android and iOS binaries and source code.
- Fixed bug in certificate analysis.
- Enabled asynchronous scans in Docker Compose setup.
- Performed QA for Android and iOS SAST modules.
- Added Frida script for `audit-webview`.
- Introduced Frida script for `trace-javascript-interface`.
- Upgraded `libsast` for improved file reading, multiprocessing, and multithreading.
- Fixed PNG crush issues on Darwin systems.
- Performed QA on the home screen UI.
- Updated `httptools` and `libsast` dependencies.
2024-11-17 22:26:06 -08:00
Ajin Abraham 70e243d661 4.1.8 (#2448)
* APKID QA.
* Bash and Batch file script QA.
* Android Report template optimizations on how exported components are displayed.
* Clickable Android Activities, Services, Providers and Recievers.
* Updated Android version support to 11.0 for Android Studio AVD.
* Created helper scripts for AVDs `scripts/start_avd.sh` and `scripts/start_avd.ps1`.
2024-11-10 00:44:20 -08:00
Ajin Abraham 76596e33ed docker compose QA, explict requests timeout (#2447)
* Dependency update
* Explicit timeout for all requests
* Support proxy for all http(s) calls
* Optimize jadx download, support system proxy
2024-11-08 17:05:49 -08:00
Ajin Abraham d817c0bf18 HOTFIX: Update wkhtmltopdf and dependencies 2024-10-28 03:35:56 -07:00
Ajin Abraham 9b2a3c8552 [HOTFIX] Dockerfile and dependency upgrade, Bug Fixes (#2439)
* Dockerfile: migrate from Ubuntu to Debian Bookworm
* Update and MachO and ELF Analysis
* Update docker compose with postgres
* JDK bump to 22.0.2
* Python bump to 3.12
* Bump jadx, apktool, vd2svg, bundletool
* Remove jadx from repo and download it dynamically during setup
* Install jadx during docker build
* Replace deprecated dependencies
* Bump httptools
* Postgres Support by default
* Bump LIEF to latest, reintroduce PIE checks for ELF
* Fixes #2430 #2432 #2395
* Bug Fixes
2024-10-28 02:36:51 -07:00
Ajin Abraham 5b7c5c0075 [EFR][HOTFIX] Realtime Scan status and logs (#2416)
* Realtime Scan Status in UI and PDF reports
* Scan Status REST API & tests
* Fixes #2414
* Address #2413
* Code QA
* Dependency and version bump
2024-08-04 12:07:38 -07:00
Ajin Abraham 39ba3e64be [HOTFIX] Code QA (#2393)
* QA
* Add new android rule setAllow*FromFileURLs
* android root bypass and debugger bypass scripts improvements
* Dockerfile qa
* prevent entrypoint exit if username already exists
2024-06-02 16:37:00 -07:00
Ajin Abraham 76187b805f [EFR] AuthZ and AuthN for MobSF + Bug Fixes (#2366)
Authentication and Authorization (`Maintainer` , Viewer`) support in MobSF
* Basic User Management
* Bug Fixes in Runtime Executable Tampering
* Ratelimiting support for login endpoint
* Disable AuthZ/AuthN for REST API and also via ENV VAR `MOBSF_DISABLE_AUTHENTICATION=1`
* Bug Fix #2285 
* Bug Fix Icon Analysis Nonetype
* Update SSRF Filter
* Dependency Bump
* Beta to Stable release from V4
* Runs with DEBUG=False
* New home screen UI
2024-05-21 10:08:01 -07:00
Ajin Abraham c6f037103d Bug Fixes + Improvements (#2307)
* Replace Android test APK
* Added tests for Library analysis from binary (scan_library route)
* iOS merge findings from swift and objective c rules with same rule identifier. Fixes #2287 
* iOS Binary analysis, sort regex matches. Fixes #2252
* Framework dylibs with no extensions to skip PIE checks. Fixes #2307
* Select correct network_security config. Fixes #2049
* Android Manifest Analysis added support for detecting task hijacking (StrandHogg 1.0 and StrandHogg 2.0) . Fixes #2124
* Added new manifest analysis rule to warn on apps targeting older Android OS
* Updated severity of findings
* UI improvement for AppSec dashboard to show a loader
* UI changes in Static Analysis to collapse large no of files in API and Code Analysis for better real estate
* Improved certificate file analysis for android, jar, aar, and ios
* MobSF version Bump
2023-12-16 22:19:09 -08:00
Ajin Abraham 6e329c0d3f [HOTFIX] bs4 malformed xml parsing + xml namespace detection (#2248)
* Use BeautifulSoup4 to prettify malformed XML
* Detect non standard XML namespace in AndroidManifest.xml (Fixes : https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/2198) 
* Updated android permissions list
* Updated android permission update check script
2023-08-26 18:32:07 -07:00
Ajin Abraham 8e29cb06a6 Pip to Poetry, Ubuntu Base image Bump, Dockerfile QA, Python 3.11 support (#2244)
* Docker base image update
* Docker file QA
* Github Actions version update
* Removed unwanted pinned repository
* Pip to Poetry migration
* Bump httptools
* Jump yara-python-dex
* Python 3.11 support
2023-08-25 21:15:28 -07:00
Ajin Abraham 76cd47d851 HOTFIX: Setup improvement (#2078)
* Improve setup scripts.
* Python support to 3.8 - 3.10
* Delete MobSF data directory on running setup.
* Bump applicable dependencies.
2022-11-22 16:01:34 -08:00
th3-d4v1d-c0de dd18c9619e Installation script error: Solving spelling error (#2067)
changed "installtion" to "installation"
2022-11-02 09:10:30 -07:00
Amin Vakil 5d45143f45 Add --no-cache-dir to pip install (#1844)
* Add --no-cache-dir to pip install

* Add --no-cache-dir to pip install in install_java_wkhtmltopdf.sh
2021-11-18 05:11:24 -08:00
Srikanth L ae3e5bd070 Modify PWD stack to support health check (#1832)
Add extra_hosts to support resolution of host.docker.internal for healthcheck
https://medium.com/@TimvanBaarsen/how-to-connect-to-the-docker-host-from-inside-a-docker-container-112b4c71bc66
2021-10-27 09:30:38 -07:00
Ajin Abraham 7c0ba62625 July 21 QA (#1768)
* Fixes:#1745, iOS permissions as dict

* Fixes #1753, Fix all typos from codespell

* add codespell to lint check
2021-07-17 15:47:55 -07:00
0f167452c3 fixing issue settings.py not found from postgress_support.sh script (#1738)
* fixing issue settings.py not found from postgress_support.sh script

Co-authored-by: axelle <[email protected]>
Co-authored-by: Ajin Abraham <[email protected]>
2021-06-02 19:20:27 -07:00
Ajin Abraham 3aa18db627 install git 2021-05-22 14:55:06 -07:00
Ajin Abraham 4aa45faba3 fix typo: 2021-05-22 14:45:34 -07:00
Ajin Abraham 7914172b79 build for arm 2021-05-22 14:45:14 -07:00
Ajin Abraham 6baa006fb0 Dockerfile QA 2021-05-22 13:29:05 -07:00
Ajin Abraham 2d614059d4 arm only support 2021-05-22 12:01:52 -07:00
Ajin Abraham bb745fad3e Dockerfile QA 2021-05-22 11:41:39 -07:00
Ajin Abraham c660ca099b HOTFIX: Code QA, Move Version String, USE_HOME by default + Others (see desc) (#1712)
* Move Version to init.py
* Default to Use HOME from MobSF v3.4
* Update Checking improvement
* New Android Rule AES ECB Default
* Update all code locations to dynamically detect config/settings location.
* Rescan Code QA Re: #1670
2021-03-27 16:49:32 -07:00
Ajin Abraham 18f4a483d3 HOTFIX: Update APKiD, http-tools, MobSF CA bug fix, Recent Scan Bug Fix, MD5 Search Fix, Removed yara wheels (#1661)
Remove yara-python wheels, updated apkid with prebuilt wheels
Frida Bump
http-tools 2.1.0
Fixes #1666
Fixes #1664
Fixes #1667
2021-02-06 21:19:32 -08:00
Ajin Abraham 1262a02f83 Python3.9 support (#1651)
Python 3.9 support
Prebuilt DEX enabled yara-python wheels
2021-01-19 19:09:27 -05:00
Ajin Abraham bb9a3201b8 Update clean.bat 2021-01-18 04:06:51 +05:30
Ajin Abraham e976bdca21 Reduce Repo Size, download frida-server dynamically (#1648)
Reduce Repo Size, download frida-server dynamically (#1648)
2021-01-18 03:33:59 +05:30
Ajin Abraham cf59941081 HOTFIX: setup.py and directory refactoring
Python setup.py #1585
directory refactoring
2021-01-17 01:47:49 -05:00
Ajin Abraham d1f8f87d2d Multiple Feature Improvements around Binary Analysis and NIAP support (#1558)
* NIAP Analysis for Android based on https://www.niap-ccevs.org/MMO/PP/394.R/pp_app_v1.2_table-reqs.htm
* Improved Android Code Analysis Rules
* Code QA
* Android App Compare QA
* Improved Android SO binary analysis. (Thanks to https://lief.quarkslab.com/ and https://gist.github.com/apogiatzis/fb617cd118a9882749b5cb167dae0c5d)
* Android Strings now includes strings from shared objects.
* URLs and emails are now extracted from shared objects as well.
* Refactor iOS Binary Analysis with LIEF (Thanks to https://gist.github.com/ChiChou/15f0772db25343be0bb7072f15992a4e)
* Fixes Bugs #621, #1242 #1516
* Remove Otool Requirements and jtool2
2020-10-08 09:28:26 -04:00
Ajin Abraham a020e9ea9e post install check (#1541)
A check to verify that python requirements are installed after install.
Exodus Tracker DB update
2020-09-14 17:27:10 -04:00
06f34f613d PostgreSQL support for Docker + Adding entrypoint to isolate build and run phases in Docker (#1490)
* Add Postgresql support

Co-authored-by: Ajin Abraham <[email protected]>
Co-authored-by: superpoussin22 <[email protected]>
2020-08-04 01:25:49 -04:00
idhytandAjin Abraham 36c1440b80 bugfix: incorrect quotes (#1419)
after run below command, will delete all content MobSF/settings.py after '# Postgres DB - Install psycopg2'

sed -i "/# Postgres DB - Install psycopg2/,/'''/d" ../MobSF/settings.py

Co-authored-by: Ajin Abraham <[email protected]>
2020-07-11 10:44:55 -04:00
Ajin Abrahamandvitalybalashov bf6e919c5a Hotfix: Genymotion Cloud Support (#1389)
* Fixes to support AWS Genymotion Android AMI

* Genymotion Cloud Support

* move large files to git lfs

Co-authored-by: vitalybalashov <[email protected]>
2020-05-10 13:48:20 -04:00
Ajin Abrahamandsuperpoussin22 990eeae38b Prebuilt dex-enabled yara-python, improved setup script, Dockerfile, travis etc. (#1377)
* prebuilt dex enabled yara-python and improved setup,tox,tests.

* Update Dockerfile to Ubuntu 12.04 LTS and Python 3.8

Co-authored-by: superpoussin22 <[email protected]>
2020-04-27 11:30:12 -04:00
Ajin Abraham 9ba79892e5 HOTFIX: win setup fail fast. Fixes #1352 2020-04-12 13:14:15 -04:00
pyup.io bot d5fb76ae24 Update frida, deps, add a frida update script, update android permissions
* update frida, deps, add a frida update script, update android permissions
2020-04-02 16:03:12 -04:00
Ajin Abraham f9949decd4 windows cleanup script & optimizations 2019-12-09 21:40:52 -05:00
Ajin Abraham a8e6fbc5bd files update 2019-12-07 16:53:45 -05:00
Ajin Abraham 648bbb45a5 Add Play With Docker button on README
Update README.md
2019-11-11 11:43:50 -05:00
Srikanth L 0258f50e17 Added stack to scripts folder. 2019-11-11 10:22:10 +00:00
Ajin Abraham 45ac19de4f update permissions and exodus_db 2019-11-09 23:47:50 -05:00
Ajin Abraham 7f3c853a00 Delete kali_fix.sh 2019-09-26 16:32:31 -04:00
Ajin Abraham 595c534576 Dynamic Analysis with Genymotion. Supports Android 4.1 -9.0 (#1067)
Dynamic Analysis with Genymotion. Supports Android 4.1 -9.0
Static Analyzer
  Threaded baksmali
  Improved Recent Scan
  Browser PDF Generation
Dynamic Analyzer
  Restructuring Dynamic Analyzer
  Code QA and Modularization
  Automatic MobSFy with Xposed and Frida
  Full pass on all versions of android with basic features
  Streaming logcat
  Live API Monitor
  Better SQlite DB View
  In line frida scripting + loading from frida code share
  basic frida env, ssl unpin, root check, debugger detection bypass.
  Custom Frida Scripts and integration
  Frida Log Viewer
  Frida scripts loader
  Frida custom user script loader
2019-09-22 06:53:08 +05:30
superpoussin22 f819fa728f use os.chmod 2019-07-21 10:14:21 +02:00
superpoussin22 b983330bd6 correct quoting 2019-07-21 10:06:02 +02:00