Commit Graph
2040 Commits
Author SHA1 Message Date
Ajin Abraham 78e9563f90 [EFR][HOTFIX] QA Request (#2306)
* Scan independent library file (.so, .dylib, Framework dylib) from APK/IPA Static Analysis Report
* Library analysis refactored relative path helper for Django template.
* Re-introduced RELRO checks for Android, added Dart binary check to avoid Flutter false positives.
* Improved stripped debug symbol check for ELF and MachO using native OS tools such as nm and objdump when available.
* Merge iOS Framework and Dylib Analysis.
2023-12-16 13:37:34 -08:00
superpoussin22 4d81e09ee7 update pktool to 2.9.1 (#2304) 2023-12-11 00:09:44 -08:00
Ajin.Abraham 045fa6a1be version bump 2023-12-09 19:16:42 -08:00
Ajin.Abraham dc4c6eda6e HOTFIX: Add missing RPC script, Frida Logs font size 2023-12-09 19:15:41 -08:00
Ajin Abraham d3b02143fe [HOTFIX] RPC hook suggestions + Bug Fix (#2301)
* String compare script improvements
* Fix iOS Frida script bugs
* Added RPC helpers for hook suggestion (TODO:Expose to UI)
* Code QA
2023-12-06 18:14:45 -08:00
cpuu b668ee89c0 Enhancements to ARC and Stack Canary Checks in Mach-O Parsing (#2284)
* Extend 'has_arc' check to include '_swift_release'

Updated the has_arc method to detect the usage of ARC not only by the presence of the _objc_release symbol but also by the _swift_release symbol. This change broadens the scope of ARC detection to cover both Objective-C and Swift implementations.

* Optimize has_canary function without using a set

Refactored the has_canary method to directly check the presence of ___stack_chk_fail and ___stack_chk_guard symbols in imported_functions. Removed the unnecessary conversion to a set, streamlining the function and enhancing readability. Now, has_canary uses any() for efficient symbol existence checks.
2023-12-05 21:38:34 -08:00
Ajin Abraham 361e76a390 [HOTFIX] Android script loading, frida injected code view, paramiko SSH issues (#2300)
* Android script loading bug fix
* Frida injected code view
* Paramiko SSH reactor to address some host key issues, revert from warning to autoadd.
* Frida Injection refactoring
2023-12-05 21:22:26 -08:00
Ajin Abraham 87c054b79d [HOTFIX] More Android & iOS Frida Scripts (#2299)
Improved existing frida scripts
More Android & iOS frida Scripts
Code QA
2023-12-05 15:45:17 -08:00
Ajin Abraham ae929dc92d Hotfix QA (#2297)
* REST API update for android frida instrument
* Code QA
2023-12-04 14:06:44 -08:00
Ajin Abraham 2e6c6c59d7 HOTFIX: Dynamic Analysis Improvements Android & iOS (#2295)
iOS Screencast, better swipe
Android Screencast to support touch, swipe and text input events
Android Frida Logs update
Android Improved Screencast
Android Frida spawn, inject and attach support
Added new Android Frida scripts
Replaced Clipdump with Frida script for clipboard monitoring
2023-12-04 01:53:50 -08:00
Ajin.Abraham 88904e8b32 Relaxed bundleid regex 2023-12-03 02:22:29 -08:00
Ajin Abraham 2aecb905b3 iOS Dynamic Analysis with Corellium (#2194)
* iOS Dynamic Analysis Support with Corellium Jailbroken iOS devices
* Corellium API layer for complete device and project management
* Frida instrumentation (attach, spawn and inject) over SSH local port forward
* Shell access over SSH
* MobSF httptools proxy integration over SSH remote port forward
* Device File upload and download over SSH
* Frida scripts for core defense bypass, monitoring, and tracing
* Helper iOS Frida scripts for pentesting and malware analysis
* Screen cast with touch, swipe and text input support from web UI
* Dynamic Analysis device data dump and  report Generation
* Android Certificate analysis, replaced oscrypto with cryptography for public key parsing
* Python minimum support is 3.10
* Bumped httptools to latest, fixes httptools repeat bug
* Added unzip to docker to fix a bug
2023-12-03 02:01:10 -08:00
Ajin Abraham 4685d8e73d Hotfix: Support viewing kotlin files #2283 2023-11-13 21:33:07 -08:00
dependabot[bot] 231709fa2b Build(deps): Bump django from 4.1.12 to 4.1.13 (#2282)
Bumps [django](https://github.com/django/django) from 4.1.12 to 4.1.13.
- [Commits](https://github.com/django/django/compare/4.1.12...4.1.13)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 13:32:39 -07:00
superpoussin22andAjin Abraham 15e0f6c974 update apktool to 2.9.0 (#2278)
Co-authored-by: Ajin Abraham <[email protected]>
2023-11-03 13:31:50 -07:00
Ajin.Abraham 9d9be71809 Hotfix: Bump deps 2023-10-31 11:23:03 -07:00
Ajin Abraham 98296f5c39 [HOTFIX][EFR] Priority Bug Fixes (#2275)
* P1.1 AAR Permissions not properly listed 
* P1.2 Local variable table not listed in proper section
* P1.3 static library strings are not listed
* P1.5 Stripping of dynamic and static libraries are not correctly reported
* Dependency bump
* MobSF version bump
2023-10-06 23:34:59 -07:00
Ajin Abraham abb47659a1 [HOTFIX] Fix jadx and apktool failure due to JDK changes (#2269)
* Fix jadx and apktool failure due to JDK zip64 changes
2023-09-16 23:18:15 -07:00
Ajin Abraham 9a7182fdec Allow jpeg icons (#2268) 2023-09-13 23:39:41 -07:00
ohyeah521 9e92980f6a [HOTFIX] Fixed that the icon cannot be found (#2265)
fixed that the icon cannot be found when the suffix name is uppercase
2023-09-13 00:06:21 -07:00
Ajin Abraham 80639f42f4 [HOTFIX] Support webp for icon (#2267) 2023-09-13 00:05:18 -07:00
Ajin Abraham 941f7c5dd4 [HOTFIX] iOS Framework Analysis + Multiple Feature QA (#2260)
* iOS Framework Analysis
* Static Analysis URL simplification
* Replace hardcoded urls in template with `{% url %}`
* Code QA
* Remove unwanted template file
* Remove `rescan` query param from url
* Android icon SVG guessing improvements
* Icon analysis refactoring, change icon storage location
* Remove SVG to PNG converter. Support PNG and SVG icon.
* Github docker release action update
2023-09-06 23:55:06 -07:00
Ajin Abraham 3c2a2f1ee6 [HOTFIX] simplify scan api (#2259)
* Simplify Scan API
* Need only scan hash to trigger a scan
* Updated API Docs
2023-09-04 15:12:36 -07:00
Ajin AbrahamandMark Sowell c5967615f1 [HOTFIX] Bump Frida to address crash on M1 Mac (#2258)
* Update frida to 16.1.4 to resolve segmentation faults on Docker arm image
---------

Co-authored-by: Mark Sowell <[email protected]>
2023-09-04 13:11:11 -07:00
Ajin Abraham cc4a59ee76 [HOTFIX] add jar (#2255)
* Add apksigner jar
2023-08-31 21:59:09 -07:00
Ajin Abraham bba141d2fd [HOTFIX] add apksigner.jar for reading signatures (#2254)
* Add `apksigner.jar`
* Use apksigner to extract signature versions (v1, v2, v3, v4)
* Fix: #2120
2023-08-31 21:52:48 -07:00
Ajin Abraham e6cee553d6 Performance Improvements on SAST (#2251)
* Performance improvements in SAST scans (Code Analysis, API Analysis, NIAP etc.) with libsast bump
* Android API rule QA
* Manifest analysis continuation on apktool failure
* Linux setup script fix
* Disable NIAP by default
2023-08-30 00:03:07 -07:00
Ajin Abraham bb700fa071 [HOTFIX] Migrate from setup.py to poetry, tox QA (#2249)
* Migrate from setup.py to use poetry build and publish
* Tox QA
* Version is now configured only at pyproject.toml
* Added poetry build test
* Updated mobsf PyPI publishing workflow 
* Update local DBs
v3.7.6
2023-08-27 21:08:29 -07: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 74f100de90 [HOTFIX] Docker Buildx test (#2247)
* Docker image build test for PRs
2023-08-26 11:45:39 -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 f965183a0e [HOTFIX][EFR10] Independent Static Library(.a) ELF/MachO Analysis + Graceful Analysis (#2242)
* Independent Static Library(.a) ELF/MachO Analysis
   * Mac FAT binary only supported on Mac
* Static and Dynamic Binary Analysis QA
* Refactor Dex permissions
* Fallback certificate analysis using apksigtool
* Refactor Androguard `apk.APK()` usage
2023-08-24 18:39:56 -07:00
Ajin Abraham c2993d1944 [HOTFIX][EFR09] AAR/JAR obfuscation and debug check + Exception Handed strings and symbols extraction (#2240)
* AAR/JAR obfuscation and debug check
* Exception handling symbols and strings from so/dylib
2023-08-19 00:19:55 -07:00
Abb4d0nandAjin Abraham d681353aaa Fix missing exported components (#2176)
Components which are exported and have no permission were not listed in the results because of a wrong template description key.
Also added a warning if this happens again.

Co-authored-by: Ajin Abraham <[email protected]>
2023-08-18 18:50:58 -07:00
Ajin Abraham e08524fe81 [HOTFIX][EFR-08] Dylib + Symbols + Other Features (#2239)
* Dylib analysis support + PDF for iOS Binary
* Dylib string extraction
* Improved iOS Plist secret extraction
* iOS/Android Form Validation QA
* Independent Dylib scan
* Symbols view for dylib and so
* Trackers support for so
2023-08-18 17:53:45 -07:00
Ajin.Abraham b1be6f54da HOTFIX: fix IPA download support 2023-08-16 14:42:30 -07:00
KarmazandAjin Abraham 2b7156c7cc Update macho_analysis.py - SYMBOLS STRIPPED False Negative (#2234)
* Update macho_analysis.py

PR for this issue: 
https://github.com/MobSF/Mobile-Security-Framework-MobSF/issues/2233

* Update macho_analysis.py


Co-authored-by: Ajin Abraham <[email protected]>
2023-08-15 09:47:26 -07:00
Ajin Abraham 19e0963162 HOTFIX: Improve code string extraction 2023-08-14 17:10:15 -07:00
Ajin Abraham 2854114b28 [HOTFIX][EFR06] Independent Shared Object (.so) Scan and Improved String search (#2228)
* String extraction from APK, Source, AAR, JAR, SO
* Strings sections to show source of strings extracted
* Strings Refactor
* Support for independent .SO scan
* Android SCA rules update
* Entropies scan support for strings
* URLs/Email extraction refactor
* Bug Fixes
  * iOS Source Report Fix
  * Frida APK Patcher (WIP)
  * Dynamic Analyzer identifier not available
  * Settings env var not working fix for enabled by default features
  * AppSec Score fix
  * Recent `scan not completed` fix for iOS zip
2023-08-14 11:47:55 -07:00
Ajin Abraham 28b7fdeca5 [HOTFIX] Regex + Rule Update (#2232)
* IOS Swift Rules updates
  *  Updated or added rules `ios_biometric_bool`, `ios_biometric_acl`, `ios_keychain_weak_acl_device_passcode`, `ios_keychain_weak_accessibility_value`, `ios_insecure_random_no_generator`, `ios_biometry_hardened`
 * Regex Hardening: Fixes possible Regex DoS in rules and MobSF code base
2023-08-10 01:16:12 -07:00
Ajin Abraham 9e57c5767d Dynamic Analysis support alert (#2227) 2023-08-02 00:46:01 -07:00
Ajin Abraham 9ae65e682a HOTFIX: translate upstream proxy ip for docker 2023-08-01 16:46:51 -07:00
superpoussin22andAjin Abraham 14e9382668 update apktool (#2225)
Co-authored-by: Ajin Abraham <[email protected]>
2023-07-31 00:58:21 -07:00
superpoussin22 808cacba9a update apktool to 2.8.1 (#2220) 2023-07-31 00:55:38 -07:00
Ajin Abraham 218954d3e7 Hotfix: Handle Docker <-> ADB connectivity internally (#2219)
* host.docker.internal transilation for localhost

* Replace urlparse with re

* version bump

* update ascii art
2023-07-25 13:19:06 -07:00
Ajin Abraham 1fde1cfa6d Update dynamic_analysis.html (#2218) 2023-07-24 23:49:41 -07:00
Ajin Abraham b1d4abcab4 Hotfix: Broken donate link fix 2023-07-24 18:32:37 -07:00
Ajin Abraham 8c25cb21aa Hotfix: Add Corellium support message 2023-07-24 18:02:19 -07:00
Ajin Abraham a54faf8dec Hotfix: Docker error fixes 2023-07-24 17:52:54 -07:00
Ajin Abraham 3c7c9afecd Update setup.py 2023-07-23 12:48:17 -07:00