The detainees entered Israel with work permits before October 7 and remained in the area after the crossings to the Gaza Strip were closed.