Protective oxygen-containing layer was found in corrosion by crude oil fractions. Oxygen-containing layer was formed underneath iron sulfide layer. Oxygen-containing layer was formed due decomposition of iron naphthenates. Low content of chromium enhanced layer protectiveness.