In this paper, a stabilization strategy based on sliding mode control method is proposed to solve the problem of bus voltage fluctuation in DC microgrid system under attack of control communication channel. Firstly, the battery energy storage system is introduced into the DC microgrid and the mathematical model of the system is constructed. Then, an integral sliding mode control strategy is designed to control the energy storage system to inject stabilizing current to stabilize the DC bus voltage, so as to suppress the influence of nonlinear disturbance and false data injection attack on the system performance. By an appropriate Lyapunov functional, sufficient conditions are obtained to ensure the asymptotic stability of sliding mode dynamics and the reachability of sliding surface, so that the DC microgrid system can realize the rapid response to load demand and stable operation. Finally, the effectiveness of the proposed sliding mode control strategy is verified by MATLAB numerical simulation.