The Mobile Threat Landscape in Pakistan
Pakistan has over 180 million mobile internet users, with the majority accessing banking, shopping, and government services through mobile applications. From JazzCash and easypaisa to Daraz and Foodpanda, Pakistani consumers trust mobile apps with sensitive financial and personal data. For Pakistani SOC analysts and security professionals, mobile application security assessment is an essential skill.
This lesson covers practical mobile security testing using MobSF (Mobile Security Framework) and objection, two open-source tools that form the foundation of mobile app assessment.
Setting Up Your Mobile Testing Lab
A proper mobile testing environment requires:
Hardware Requirements:
- Android device (rooted) or emulator (Android Studio)
- Minimum 8GB RAM workstation for MobSF
- Wireless access point isolated from production networks
Software Stack:
- MobSF: Install via Docker (
docker pull opensecurity/mobile-security-framework-mobsf:latest) - Android SDK: For APK analysis and emulator management
- objection:
pip install objection - jadx: For Java decompilation of Android apps
Static Analysis with MobSF
MobSF automates initial security assessment of Android APKs:
Lab Steps:
- APK Acquisition: Obtain your organization's APK (never analyze third-party apps without authorization)
- Dynamic Analysis Preparation: Configure MobSF's malware check against known malicious apps circulating in Pakistan
- Report Generation: Review findings categorized by OWASP Mobile Top 10
Critical Checks for Pakistani Apps:
- Hardcoded API endpoints β verify they point to production or staging environments
- Embedded credentials for easypaisa/JazzCash sandbox testing
- Insecure local storage of transaction histories
- SSL pinning implementation (or lack thereof)
Dynamic Analysis with objection
Static analysis alone misses runtime vulnerabilities. Use objection to assess live app behavior:
Practical Commands:
objection explore
android sslpinning disable
android root detect disable
memory dump all
What to Look For:
- Can you bypass root detection? This indicates jailbroken devices accessing banking apps
- Are API calls visible in cleartext when SSL pinning is disabled?
- Does the app store sensitive data in world-readable directories?
Common Vulnerabilities in Pakistani Mobile Apps
Based on assessments of local fintech and e-commerce applications:
- Insecure Data Storage: Transaction receipts stored with predictable filenames in shared storage
- Weak Cryptography: Use of MD5 for password hashing or hardcoded encryption keys
- Deep Link Abuse: Exploiting custom URL schemes to trigger unauthorized payments
- Certificate Validation Bypass: Allowing connections through untrusted certs
Reporting and Remediation
Document findings using the CVSS scoring system and map to OWASP Mobile Top 10:
- Critical Findings: Escalate immediately; involve PTA compliance team if user data exposure is involved
- Report Distribution: Share with development team, product owners, and NCCIA 1799 if breach is suspected
Do / Don't
Do: Analyze your own organization's apps with written authorization; use sandboxed environments; report vulnerabilities through responsible disclosure.
Don't: Analyze apps from Daraz, JazzCash, or other third parties without authorization; upload APKs to public MobSF instances containing sensitive data; bypass SSL pinning on production systems.
Key Takeaway
Install MobSF and analyze your organization's mobile app this week. Even if you're not a mobile developer, understanding what data your app exposes β and how β makes you a more effective SOC analyst.
