Just as I was contemplating this, L.Dutch posted an answer saying in part that one of your two options would be to
1. tune your surface temperature to that of the environment/background (unpractical if you are out of tropical zones and want to stay alive)
I'm going to go out on a limb and say that it's not so unpractical; especially so if you are happy to make this a temporary defense against merely IR sensing.
There are two obvious ways that I can think of:
- Make your creature cold-blooded and able to regulate its metabolism down to a very low level. Many Earth reptiles fall into this category at least to some extent. You could probably make it even more extreme if the creature only uses it as a temporary defense mechanism.
- Give your creature very good insulation. IR sensing presumably works by detecting the difference against the ambient environment. If the outer surface layer of your creature is at or near ambient temperature (whatever exactly that is), it will be very hard to detect by such means. A fair number of Earth species that live at extreme latitudes (near the poles) fall into this category, to varying degrees. For an extreme example, look at polar bears, which are very difficult to detect in IR because their fur insulates them so well that their outer temperature is only very marginally above that of the ambient environment. You'll have to figure out a way to keep them from overheating without giving themselves away, but again if you only need it for a period of time then ability to reduce metabolism might work.
Both options are viable in that there actually exist real-life creatures on Earth which use them. You will need to tweak those approaches slightly, but given some appropriate selection pressure, neither would seem completely unreasonable.
As a bonus, you can now have creatures which are difficult to detect in IR both at high and low latitudes! (Near the poles and near the equator, respectively.)
Whichever way you go, keep in mind that this would be very specialized against something hunting by IR. The instant you face a predator that hunts by scent, or sound, or sight, your defense becomes a huge liability. Since different predators in your world would likely evolve different hunting strategies, you should plan accordingly if you don't want your species to go extinct very quickly.