Update security context