The Dung Beetle is a passive Mob exclusive to the Hamlet DLC. It is a bug riding a Dung Ball. Chasing it into a Tree, Boulder or Structure will cause it to fall on its back and become unable to move for a short period. Dung Beetles will come to the nearest Dung Pile and form a new Dung Ball if they lost their previous Dung Ball.
Dung Beetles will generally move away from the player when approached by Day, but will sleep on top of their Dung Balls at Night, making them easy to hunt at this time. They are considered innocent creatures and killing one adds to the player's Naughtiness, which can cause Krampus to appear.