It depends on the IT guys, I have occasionally sshed into boxes where that wasn't the case and compiling wasn't an option.
- base64encode it
- paste the encoded text over ssh to a file
- base64decode it
- chmod +x the decoded file
- …
- profit
- Disable execution bit for all directories for home
- If the UNIX variant allows it, jail/contain home for each user session
- Punish users or their employer if a consulting firm severely that bypass IT regulations
/usr/bin/env $your_binary
So I wanted to ask: where such a level of security would be required? And also, what attacks does it defend from?
You'll probably go insane doing it
(Linux x86 compiling to Linux ARM/PPC/etc is doable and done quite frequently)