1. A computer-implemented method, comprising: executing a first piece of code in a sandboxed application that is written to a secured memory; dynamically writing a new piece of code into code of the sandboxed application during runtime to a portion of the secured memory that cannot be executed by the sandboxed application; validating the new piece of code; and in response to a successful validation, writing the validated piece of code to a portion of the secured memory that can be executed by the sandboxed application.