  In this paper, we propose that the accelerated electrons in the quiet Sun could collide with the solar atmosphere to emit Hard X-rays (HXRs) via non-thermal bremsstrahlung, while some of these electrons would move upwards and escape into the interplanetary medium, to form a superhalo electron population measured in the solar wind. After considering the electron energy loss due to Coulomb collisions and the ambipolar electrostatic potential, we find that the sources of the superhalo could only occur high in the corona (at a heliocentric altitude 