Twisted security upgrade