yeah, a malicious user can do whatever they want using window.parent. It's not for security, as far as I know there's not much that can protect against that.
Calling this Sandbox.js is pretty irresponsible. The term is well defined and well understood. You can't just use the name because it sounds nice.