Legacy device security