Microsoft Corp said on Tuesday it will buy closely held Sybari Software Inc, which makes anti-virus security software for businesses. Terms of the deal were not disclosed.