This article explores the stochastic stability of a three nanobeam system connected by Kerr type elastic layer, subjected to the magnetic effects and compressive axial forces. While considering nano beams rotary inertia is taken into account and differential equations of nanobeams are given according to Eringen's nonlocal elasticity theory. The impact of a longitudinal magnetic field on the behavior of the nanobeam system is described using Lorentz magnetic forces. The objective of this research paper is to investigate the moment and almost sure stability of the system. It analyzes the system's stability under white noise excitation by employing the contact transformation method and perturbation approach. Notably, we consider the case where the system exhibits low damping. The study focuses on examining the system's dynamic behavior and stability characteristics under these conditions. The stochastic stability of this system is investigated through moment Lyapunov exponents and Lyapunov exponents for the first time and interesting conclusions regarding the stability region of this system were obtained by varying various system parameters. These conclusions are presented in a visual manner and discussed.