40 illegal workers arrested at military bases