Unexpected evaluation is never a feature, Emacs should at least warn and prompt before executing code in a file that somebody opens.
A warning and a prompt would largely be useless in this case anyway. As soon as you'd click the prompt, the evil code would run. What you'd need is an option set in your init file to allow code to execute on opening only if a particular piece of information known only to you is included in the file, like #+runcode: a19ihlkn01nf2n9882n4337974biskjf
;; -*- eval: (message "arbitrary code") -*-
any mode associated with a file extension should be at least as secure against code execution.