This study explores the effectiveness of machine learning techniques in detecting obfuscated computer viruses, which pose significant threats as they continuously evolve to evade traditional signature-based detection methods. By utilizing text strings extracted from virus program codes as features, the proposed model achieves a high classification accuracy of 99.5% using the SMO classifier. The research highlights the strengths of machine learning approaches in enhancing computer virus defenses against increasingly sophisticated malware.