I thought when I saw the thread title that youy'd got rats in a hive. It's a common problem, despite not being mentioned in a lot of beekeeping books. Bees in compost heaps are normally bubmbles, unless they're wasps. Either way they do a lot of good, no harm, and die out in autumn. If you don't bother them, they have no interest in bothering you!
Poison or traps should deal with the rats.