The security codes are hardwired through the encryption circuitry.
Altered his circuitry so as to overcome his prime directive.