On the Security of Linear Consensus Networks