๐Ÿ” Scan React Native APKs for Vulnerable npm Dependencies in 2 Minutes!

--

๐Ÿ“Œ What is This Tool?
React Native Vulnerability Scanner is a Python tool that helps security researchers and developers analyze React Native APKs for vulnerable npm dependencies by scanning modules.json. It checks package versions against Snykโ€™s vulnerability database to find security risks in outdated libraries.

๐Ÿ› ๏ธ How to Use This Tool?

1๏ธโƒฃ Decompile the APK using apktool

To extract modules.json, decompile the APK:

apktool d myapp.apk -o myapp_decompiled

Look for the file inside:

myapp_decompiled/assets/modules.json

2๏ธโƒฃ Scan for Vulnerabilities

Run the scanner to check for outdated dependencies:

python RNScanner.py -f myapp_decompiled/assets/modules.json

To save the results to a file:

python RNScanner.py -f myapp_decompiled/assets/modules.json -o

๐Ÿ”„ Recompile & Repackage the APK

3๏ธโƒฃ Rebuild the APK

After modifications (if any), recompile the APK:

apktool b myapp_decompiled -o new_app.apk

4๏ธโƒฃ Sign the APK

Unsigned APKs wonโ€™t install, so sign it:

jarsigner -keystore my-release-key.keystore -storepass password -keypass password -signedjar signed_app.apk new_app.apk alias_name

5๏ธโƒฃ Install the APK

adb install signed_app.apk

๐Ÿ“œ Example Output

If vulnerabilities are found:

react-native : 0.76.7
lodash : 4.17.21
axios : 0.21.4
Results saved to vulnerable_packages.txt
โœ… Done!

If no vulnerabilities are found:

No vulnerabilities found! ๐ŸŽ‰
โœ… Done!

๐Ÿš€ Why Use This Tool?

โœ… Identify security flaws in React Native apps
โœ… Quickly analyze npm dependencies inside APKs
โœ… Helpful for bug bounty, security audits & pen testing

๐Ÿ“Œ GitHub Repo: BhattJayD/react-native-vulnerability-scanner

๐Ÿ” Try it now and secure your React Native apps! ๐Ÿš€

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

JAY BHATT
JAY BHATT

Written by JAY BHATT

Cyber Security Enthusiast | Top 1% on TryHackMe | CTF Player

Responses (1)

Write a response