It's almost certainly varnish. The insulation in this transformer is paper. Paper attracts moisture. To prevent that, you pot it in varnish. They must have used air drying varnish. The most common for general applications. Some of it gets trapped in voids and gaps of the bobbin, the windings, and the laminations, and then leaks if not completely cured.