I wonder what the legal basis is for arresting relatives or neighbours of a criminal? 

Martial law is martial law (2017 marks year 50 of Israel's martial law and armed settlement in the Occupied Territories), so I guess the Israeli military authorities can do whatever they want whenever they want to the non-citizens the rule in the OT.