The research considers the contribution of gases to the surface formation during self-propagating high-temperature synthesis (SHS) of porous titanium nickelide based alloys. The structure of the obtained porous alloys was analyzed using the methods of secondary ion mass spectrometry (SIMS), optical microscopy, scanning electron microscopy (SEM) and transmission electron microscopy (TEM).Nanocrystalline intermetallic oxycarbonitrides of a complicated structure were found on the porous titanium nickelide surface. A dense double gradient layer was found under the outer loose deposits. It is concluded that the dense gradient layer of intermetallic oxycarbonitride provides chemical passivity of the investigated porous alloys. Loose surface deposits of intermetallic oxycarbonitrides ensure successful integration of the alloy into the biological tissue in case of implantation.