Developing Resilient Defense Strategies Against Pheromone-Based Attacks in Foraging Robot Swarms