Automatic protocol reverse engineering for industrial control systems with dynamic taint analysis