This paper investigates the antivirus market from the perspective of social welfare and market efficiency. It analyzes the uncertainty characteristic of virus attacks and the moral hazard problem from the antivirus software vendor. It also proposes one potential solution, that is, antivirus contracting between IT users and the antivirus software vendor, to reduces the transaction cost and alleviate the moral hazard problem in the antivirus market.