Jump to content
  • Advertisement
Sign in to follow this  
pDK

Prevent Memory Injection

This topic is 4928 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!