This is a strong argument for doing software installations using superuser privileges and denying exec from user-writable locations.
Which is, in fact a relatively common posture.