Defender not detecting malware

The spam code was clearly visible to us by looking in the footer. How come Defender didn’t detect it?