{"id":21662430,"url":"https://github.com/white-devil09/miniproject","last_synced_at":"2026-04-13T02:03:26.532Z","repository":{"id":264444583,"uuid":"893395333","full_name":"White-Devil09/MiniProject","owner":"White-Devil09","description":"This project investigates the security and privacy risks of mobile applications that automatically read SMS messages, focusing on OTP interception. The framework simulates real-world vulnerabilities using a broadcaster app, Flask server, and rooted Android emulator with Frida-server to analyze and test application behaviors.","archived":false,"fork":false,"pushed_at":"2024-11-30T16:17:42.000Z","size":36254,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T05:47:27.557Z","etag":null,"topics":["application-security","flask","frida","javascript","otp-intercept","python"],"latest_commit_sha":null,"homepage":"","language":"TeX","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/White-Devil09.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-24T10:37:17.000Z","updated_at":"2024-11-30T16:17:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc5680e3-bb31-44a9-905b-b8833f168698","html_url":"https://github.com/White-Devil09/MiniProject","commit_stats":null,"previous_names":["white-devil09/miniproject"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Devil09%2FMiniProject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Devil09%2FMiniProject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Devil09%2FMiniProject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/White-Devil09%2FMiniProject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/White-Devil09","download_url":"https://codeload.github.com/White-Devil09/MiniProject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560373,"owners_count":20472219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application-security","flask","frida","javascript","otp-intercept","python"],"created_at":"2024-11-25T10:16:09.117Z","updated_at":"2026-04-13T02:03:21.475Z","avatar_url":"https://github.com/White-Devil09.png","language":"TeX","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Automatic SMS Reader Vulnerability Framework**  \n\n## **Overview**  \nThis project investigates the security and privacy risks of mobile applications that automatically read SMS messages, focusing on OTP interception. The framework simulates real-world vulnerabilities using a broadcaster app, Flask server, and rooted Android emulator with Frida-server to analyze and test application behaviors. \n\n![Architecture diagram](./images/architecture.png)\n\n## **Features**  \n- **Broadcaster Application:** Captures incoming SMS and forwards it to a designated server.  \n- **Flask Server:** Forwards intercepted SMS to a rooted Android emulator via Telnet.  \n- **Rooted Emulator:** Uses Frida-server for API hooking and monitoring application behaviors.  \n- **Frida Integration:** Allows real-time interception and analysis of APIs and activities handling SMS.  \n\n## **Setup**  \n\n### **Prerequisites**  \n- Android Studio (with AVD Manager)  \n- Python 3.x  \n- Flutter SDK  \n- Frida Tools (`frida`, `frida-server`)  \n- Flask (`pip install flask`)  \n\n---\n\n### **Broadcaster App Setup**  \n1. Clone the repository and navigate to the broadcaster app folder.  \n2. Run the app using the Flutter CLI:  \n   ```bash\n   flutter run\n   ```  \n3. Configure the server IP and port within the app interface.  \n\n---\n\n### **Flask Server Setup**  \n1. Install Flask:  \n   ```bash\n   pip install flask\n   ```  \n2. Run the server:  \n   ```bash\n   python flask_server.py\n   ```  \n3. Ensure the server runs on port 5000 or the port specified in the broadcaster app.  \n\n---\n\n### **Rooted Emulator Setup**  \n1. Clone and install the `rootAVD` tool:  \n   ```bash\n   git clone https://github.com/newbit1/rootAVD.git  \n   cd rootAVD  \n   ./rootAVD.sh  \n   ```  \n2. Root the emulator using:  \n   ```bash\n   ./rootAVD.sh system-images/android-\u003capi-level\u003e/google_apis_playstore/\u003carch\u003e/ramdisk.img  \n   ```  \n\n---\n\n### **Frida-Server Setup**  \n1. Push `frida-server` to the emulator:  \n   ```bash\n   adb push frida-server /data/local/tmp  \n   adb shell \"su -c chmod 755 /data/local/tmp/frida-server\"  \n   ```  \n2. Start Frida-server:  \n   ```bash\n   adb shell 'su -c \"/data/local/tmp/frida-server\" \u0026'  \n   ```  \n\n---\n\n## **How to Use**  \n1. **Run Broadcaster App:** Start the app on a device or emulator and input server details.  \n2. **Start Flask Server:** Ensure the Flask server is running and ready to receive requests.  \n3. **Hook APIs Using Frida:** Use Frida scripts to intercept API calls related to SMS reading.  \n   Example command:  \n   ```bash\n   frida -U -f \u003cpackage-name\u003e -l activity_monitor.js  \n   ```  \n4. **Analyze Results:** Monitor logs to observe which APIs and activities handle SMS data.  \n\n---\n\n## **Key Results**  \n- Identified specific APIs and broadcasters responsible for SMS interception in applications.  \n- Highlighted vulnerabilities in handling SMS unrelated to OTPs.  \n- Proposed stricter security measures to mitigate misuse of automatic SMS reading.  \n\n---\n\n## **Future Work**  \n- Expand testing to more applications and services.  \n- Automate Frida script execution for SMS interception analysis.  \n- Collaborate with developers to improve SMS security practices.  \n\n---\n\n## **Contributors**  \n- **Jarpula Bhanu Prasad**  \n  - Email: [ai21btech11015@iith.ac.in](mailto:ai21btech11015@iith.ac.in)  \n  - Under the guidance of: **Dr. Saurabh Kumar**  \n\n---\n\n## **Acknowledgments**  \nSpecial thanks to my advisor and the community for providing tools and resources to make this project successful.   \n\n## **Demo**\n![Drive link access with IITH email id](https://drive.google.com/drive/folders/1PyGqz-f3Bp-9Ebn_3u1Dab8XSIeAbPz_?usp=sharing)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhite-devil09%2Fminiproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhite-devil09%2Fminiproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhite-devil09%2Fminiproject/lists"}