First - figure out how the rat got into the compost container and close all ports of entry.
Second - evict the rat!
Third - turn that pile and moisten it to get it hot and really cooking - it will kill those pathogens. Add the finished compost to teh garden at the end of the gardening season...