That recommendation of punishing all the family members is like opening a Pandora's box. How can we assume that in all such cases the family members who may include aged parents, children and siblings were aware of the treachery and complicit in the act.High time to name and shame these traitors. The family should bear the shame of their activities against the country.
Do we want to crucify innocent people. Especially if after detailed investigations it is found that they did not suspect or know anything about the anti national activities of the accused family member.
Here unfortunately some distinctions have to be made. The Hindu community members are usually not enticed by religion or ideological reasons to spy for Pakistan. They usually fall prey to monetary inducement. Sex or love is probably another reason why they get subverted. Maybe sometimes because they feel that the Indian system has failed to deliver justice to them.
Whereas the Muslim community is more likely to to turn traitor for reasons of religion and falling to Pakistani propaganda of religious discrimination in India.
Grand visions of global jihad and Muslim supremacy also may act as a trigger.
There may be cases where the entire family of the traitor was aware of and supported the subversive activities of the accused family member. In such cases your suggestion may seem warranted.
So it is a dicey situation and decisions must be taken after due consideration.
We need to make more use of technology to ferret out the black sheep in organisations. Probably lie detector tests can be made mandatory every one or two years for people working in sensitive organisations. The employees can be asked some questions which will be framed by security agencies. Though not 100% reliable it would be useful. Increased CCTV surveillance of the workplace and regulations on use of personal mobile phones in the workplace etc can be considered.
It will be humanely impossible to catch every traitor or potential traitor but by having good security SOP's the threat can be minimised.
Lastly espionage is two way game. If they can do it we can also do it and we should do it more effectively in Porkiland.
.