A simple extension of the standard model (SM) providing transient magnetic moments to right-handed neutrinos is presented. In this model, the decay of the next-to-lightest right-handed heavy neutrino to the lightest one and a photon (N2→N1+γ) can explain the ∼3.5keV x-ray line signal observed by the XMM-Newton X-ray observatory. Beside the SM particles and heavy right-handed Majorana neutrinos, the model contains a singly charged scalar (H±) and an extra Higgs doublet (Σ). Within this minimal set of extra fields the sub-eV masses of left-handed neutrinos are also explained. Moreover, we show that the spin-independent dark matter-nucleon cross section is compatible with the latest LUX data. © 2015 American Physical Society.