78 Victims, One Lazy Key, and a Firebase Named After India's... - #2735
Open
carlospolop wants to merge 1 commit into
Open
78 Victims, One Lazy Key, and a Firebase Named After India's...#2735carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://medium.com/@singhbkn07/78-victims-one-lazy-key-and-a-firebase-named-after-indias-ruling-party-62cf0ad0380e Content Categories: Based on the analysis, this content was categorized under "Mobile Pentesting > Android Applications Pentesting > Manual DeObfuscation, with cross-references from Basic Forensic Methodology > Malware Analysis and Network Services Pentesting > Web > Buckets > Firebase Database". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview and impact
The post reverse-engineers a fake Indian traffic-challan application distributed as
mParivahan.apk, commonly through WhatsApp or similar messaging platforms. It copies the branding of the legitimate Government of India mParivahan application and uses unpaid-traffic-fine warnings to convince victims to sideload it. The sample is associated with the GhostBat RAT family and implements a two-stage Android dropper that ultimately intercepts...🔧 Technical Details
APK and DEX parser evasion: an Android package can remain executable while breaking static-analysis tools by using ZIP-slip filenames, swapping DEX map-section labels, setting
debug_info_offto junk, appending decoy bytes, and placing invalid references in unreachable methods. Analysts should compare the declared map with actual section signatures, sanitize archive paths, ignore nonessential invalid debugging metadata, and determine whether corrupted methods are reachable before concluding that the DEX is encrypted.Native string-oracle recovery: when Java code resolves every string through a JNI function such as
nativeGetStr(int i), inspect the native library for cryptographic fingerprints. Fixed AES S-box and Rcon tables, a nonce, a 128-bit key schedule, and an incrementing counter indicate AES-CTR. Reimplementing the decryption loop over the indexed string array can recover C2 addresses, permission names, interface...🤖 Agent Actions
Updated:
src/mobile-pentesting/android-app-pentesting/manual-deobfuscation.mdAdded concise technical guidance for:
IDATpayload inspection.Appended numbered references to the original sample research, AOSP DEX specification, DPT-Shell source, and supplied blog.
Validation passed with
git diff --check; only the intended file changed.mdbookwas unavailable, so a full build was not run.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.