Holzwurms primarily target softwoods, such as pine and spruce, as their preferred food source. However, under specific conditions, they can infest hardwoods as well. While hardwoods are generally more resilient, it's essential to remain vigilant and take preventive measures to protect them from potential infestations.