 Allyl cyanide occurs naturally as an antifeedant and is used as a cross-linking agent in some polymers.Allyl cyanide is obtained by the reaction of allyl acetate with hydrogen cyanide.A laboratory route to allyl cyanide involves treating allyl bromide with copper(I) cyanide.