Prevent Memory Injection

Started by
2 comments, last by GameDev.net 18 years, 10 months ago
Hey guys... I am not sure if this is possible... but is there any way to prevent a process from injecting its own memory into another process's? Is there a way to give strict access to this memory? Thanks. - Eric
Advertisement
Try using the VirtualProtect function; theres also many libraries that deal with this problem. Usually, they are only used for online games though. This is a technique used by piracy protection software as well.
No, there is absolutely no technique which can protect you from in-memory modifications.

You might assume that under a multitasking OS (Windows, Linux etc), you might be able to block or detect other processes attempting to map your process's memory. This may be true.

But this will do absolutely nothing to defeat virtualisers (Vmware, MSVPC, Qemu etc), which can modify memory invisibly to the OS.

Look at another method of cheat-protection - it will be better.

Mark
You might be able to make it a bit more tricky for the newbie hacker, but for anyone who is good at using a debugger there's no way you can protect memory. If you put in some protection in your code, it's "simple" (everything is relative) to step over that code in the debugger. Consider markr's suggestion to look at other solutions.

This topic is closed to new replies.

Advertisement