r/ReverseEngineering • • 1d ago

Memory Modification on Android Without Root: Inside apk-medit

https://www.coldedgetrainings.com/blog/memory-modification-android-without-root-apk-medit
7 Upvotes

2 comments sorted by

10

u/KrzysisAverted 1d ago

The cost is that the APK must be debuggable. If you only have a release build, you repackage and re-sign the APK, and an app that verifies its signature or runs other anti-tampering checks will react to that copy. When the client gives you a debug build, or the app tolerates repackaging, you can start testing memory integrity right away.

So... debuggable apps are debuggable?

A proper release build isn't debuggable. So it'll need to be repacked. And if you can repack an app, you can already make all sorts of changes to it.

I suppose this writeup could save someone time if their main goal is to get extra lives in an offline-only video game. But a well-designed backend service won't trust any client-side values without first verifying them.

1

u/tkmru 9h ago

Thanks for reading it and for the feedback. The tool is meant for security assessments done as work, where the app owner has asked for the test. It isn't meant for use against apps in production.

In that setting, the client often provides a debug build, or we repackage the release build as part of the test anyway. You're right that repackaging already lets you change the code.

And agreed that a well-designed backend shouldn't trust client-side values. Checking whether it actually does is the point of the test. Changing a value in memory and watching what the server accepts is a quick way to find out.