Malware doesn't have access to the T2. Presumably, the T2 is configurable separately from the rest of the hardware or anything else the system would have access to.
Unless specifics about the implementation are public, it's safer to say "...until it (malware) does have access to the T2" in response to your comment.