Symantec Corp. SYMC +0.30% invented commercial antivirus software to protect computers from hackers a quarter-century ago. Now the company says such tactics are doomed to failure.

Antivirus “is dead,” says Brian Dye, Symantec’s senior vice president for information security. "We don’t think o…