MaxIm propose a spécific tool to do that, menu -> filter_> Kernel filters -> Hot Pixels.
A 'kernel filter to fix hot pixels' is a simple median filter with a 3x3 structure (either a square or a cross structure), maybe applied through a mask to protect the rest of the image. This is easy and accurate with MorphologicalTransformation in PixInsight.
Better than that is applying a specific tool to fix hot pixels in PixInsight:
- CosmeticCorrection script by Nikolay Volkov.
- DefectMap tool by Carlos Milovic.
To apply one or more processes to a set of images, ImageContainer can be used in PixInsight, when necessary.
In general, hot and cold pixels should be fixed through accurate image calibration. Cosmic rays and other artifacts are naturally removed during image integration with pixel rejection (sigma clipping, etc.), including any surviving hot pixels, provided you apply dithering between exposures.