Guard Dog is an ability introduced in generation 9.
2 Pokémon can have this ability, such as Mabosstiff and Okidogi. For 1 of them it is the hidden ability, usually obtained from events, raids or breeding.
Official effect
Boosts Attack if intimidated, and prevents being forced to switch out.