Exploitation of dynamic communication patterns through static analysis