Moxie

Raises Attack one stage upon KOing a Pokémon.

Full effect

This Pokémon's Attack rises one stage upon knocking out another Pokémon, even a friendly Pokémon. This ability does not take effect when the Pokémon indirectly causes another Pokémon to faint, e.g. through poison or Spikes. If this Pokémon knocks out a Pokémon with Mummy, the former's ability will change without taking effect.

In game description

When the Pokémon knocks out a target, it shows moxie, which boosts its Attack stat.

Pokemon with Moxie

Using Moxie in Cobblemon

Abilities are passive and always active, so Moxie costs you nothing to run. If it is marked hidden on a species above, expect it to be harder to obtain: servers differ in whether hidden abilities come from breeding, an Ability Patch, or events.

See the Pokedex for which abilities each species can have, and IVs, EVs and breeding for how to actually pass one down.