Redirecting to Security capability as a side effect of code training