In practice, deception attacks, uncertainties, and randomly occurring nonlinearities (RONs) in multi-agent systems (MASs) are ubiquitous. Consequently, this paper settles the problem of secure consensus tracking control for uncertain MASs with randomly occurring nonlinearities under sensor attacks by adopting adaptive impulsive control methods. Compared with the previous works, a class of state-dependent sensor attack is firstly considered in the impulsive control. Meanwhile, a novel adaptive algorithm is introduced to deal with unknown system matrices, randomly occurring nonlinearities and uncertain parameters caused by sensor attacks. Sufficient conditions are derived to achieve leader-following consensus for the MASs by adaptive impulsive control under sensor attacks. Lastly, two simulation examples illustrate the validity of theorems in this paper.