• ANarcoSnowPlow [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      6 days ago

      Theoretically speaking… It could be possible for the compiler to recognize certain patterns and inject arbitrary instructions into the compiled code of interest. If it were really smart it would probably be limited to some specific platforms of interest, be some otherwise harmless looking instructions, that might do something to allow consistent exploitation under some specific circumstances. I’m just spit balling here, I’ve not put much thought into this past “I’m sure there could be some nasty shit you could do if you wanted to.”

      Another option might be hiding some information about the author and the system doing the compilation in binaries.

      You’re trusting the compiler to convert human readable code into machine readable code. I suspect you could sneak some “unreachable” code in there or something, and if it doesn’t look scary it’d be easy to write it off as a quirk of optimization or something.

      Edit: I have no evidence this is being done or has ever actually been done. I’m just saying that it’s theoretically possible.