Entanglement Verification in Quantum Networks with Tampered Nodes