Giter VIP home page Giter VIP logo

mafia's Introduction

MAFIA - Mobile security Automated Framework for Intelligent Analisys.

Mobile applications are really critical when it comes to vulnerabilities in production environment. The only option to remove a product issue is to force update the app, which is not at all a good user experience specially when the app download size is high. With this project, we aim to automate the manual security testing and leverage developers with a tool which helps them identify bugs well in advance.

Goals

  • Perform end to end Security testing for a given mobile app.
  • Create a self serve tool for developers and security engineers.

How to install Mafia:

  • https://github.com/Flipkart-Incubator/Mafia.git or download the zip
  • pip install -r requirements.txt

Running Mafia:

  • python run.py -> http://server_ip:5000
Things to do before running:
  • in config.py

    • update values for GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET, SECRET_KEY etc
  • in config.py

    • edit the port of the app (Default: 5000)

For HTTPS Support:

  • Generate or procure an SSL certificate and keyfile
  • move the certificate and key file to mafia server.
  • update the Domain settings in config.py file (HTTPS port, certificate path, key file path etc)
  • uncomment the HTTPS section in run.py file and make sure to comment out the HTTP section.
TROUBLESHOOTS :
  • READ FIRST : About Python 2 and 3 compatibility

    Some scripts and modules versions required here are written in python 2 and not ready yet for python 3 so it is recommended to download and install both interpreters python 2 and also python 3 (for windows users don't forget to add their folder paths also in your environment variables) Then when calling python scripts in version 2 or 3 anyway (example with the package manager script PIP)

    you can run default python command like :

    "python -m pip install ..." or "pip install ..."

    To call only python 3 scripts choose this instead :

    "py -m pip install ..." or "pip3 install ..."

Milestones

  • Version 1.0

    1. Static Android Applications Testing (Apk files)
    2. Vulnerability coverage
      • Tapjacking
      • Manifest Analysis
      • SSL issues
      • SQL injection
      • Logging based vulnerabilities
      • Content Providers access permissions
      • Web View Security
      • Sensitive data on the shared storage
      • External Storage
      • Cryptographic based vulnerabilities
      • Exposing external JavaScript Interfaces in webviews
    3. Self Serve Portal for Developers
  • Version 1.1

    1. Comparision between scan results
  • Version 1.2

    1. Dashboard for scan results
    2. Report downloads in JSON and XML format
    3. UI look-n-feel Enhancements

Screenshots

Login Page

Home Page

New scan

New Scan

Scan in Progress

Scan Report

Report Page

Analysis Summary

Detailed Report

Detailed Report

Scans Dashboard

Scans Dashboard

Scan Comparison

Scans Comparison

Scan Comparison

Roadmap

  • Version 2.0

    1. Dynamic Android Application Testing.
      • Test the api calls
      • Third-party Data Transit on Unencrypted Channel
      • Sensitive information sent as a querystring parameter
      • Cleartext password in Response
      • Other Api/ Server related security test cases.
    2. Static Analysis Improvements
      • Look for Debug Logs
      • Check for file creations
      • Sensitive information in Application Log Files
      • Application is Accessible on Rooted Device
      • Unencrypted Credentials in Databases (sqlite db)
      • Store sensitive information outside App Sandbox (on SDCard)
      • Allow Global File Permission on App Data
      • Store Encryption Key Locally/Store Sensitive Data in ClearText
      • Bypass Certificate Pinning
      • App/Web Caches Sensitive Data Leak
      • Leaking Content Provider
  • Version 3.0

    1. IOS App Testing

Core Softwares :

- Python 2.7

Lead Developer

  • Mohan Kallepalli (@mohankallepalli)

Credits

  • Ankur Bhargava
  • Flipkart security team
License: Apache 2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

mafia's People

Contributors

mohangcsm avatar

Watchers

Rohan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.