Interacting selectively and non-covalently with tumor necrosis factor, a proinflammatory cytokine produced by monocytes and macrophages.