Skip to content

78 Victims, One Lazy Key, and a Firebase Named After India's... - #2735

Open
carlospolop wants to merge 1 commit into
masterfrom
update_78_Victims_One_Lazy_Key_and_a_Firebase_Named_Aft_2d8a7344352dac23
Open

78 Victims, One Lazy Key, and a Firebase Named After India's...#2735
carlospolop wants to merge 1 commit into
masterfrom
update_78_Victims_One_Lazy_Key_and_a_Firebase_Named_Aft_2d8a7344352dac23

Conversation

@carlospolop

Copy link
Copy Markdown
Collaborator

🤖 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_off to 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.md

Added concise technical guidance for:

  • Hostile APK/DEX metadata repair and safe extraction.
  • JNI indexed string-oracle and encrypted payload recovery.
  • DPT-Shell identification and method-body reconstruction.
  • PNG IDAT payload inspection.
  • DEX checksum/signature regeneration.

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. mdbook was 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.

@carlospolop

Copy link
Copy Markdown
Collaborator Author

🔗 Additional Context

Original 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:

  • MD Files Formatting: 989 files processed

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant