The technique splits into two mechanics MITRE tracks as sub-techniques. Symmetric Cryptography (T1573.001) bakes a shared key or algorithm, RC4 is the most common choice in commodity loaders, directly into the malware binary or its configuration blob, then XORs or RC4-encrypts the C2 payload before it ever touches the wire. Some families wrap that symmetric-encrypted blob inside a second layer of TLS, so a defender doing TLS inspection sees valid HTTPS carrying what looks like random bytes underneath.
Asymmetric Cryptography (T1573.002) instead rides standard TLS or a custom implementation of public-key crypto, letting the malware negotiate a session key with the C2 server the same way a browser would with a legitimate site. The advantage for the attacker is that TLS is now table stakes: any C2 framework that does not encrypt by default looks amateurish and gets caught by basic network monitoring, so nearly every current loader, backdoor, and post-exploitation framework defaults to it.
Because the traffic is legitimately encrypted, defenders cannot read the payload without breaking TLS (SSL/TLS inspection per MITRE's own mitigation M1020), so detection leans on what is still visible outside the encrypted envelope: the JA3 hash of the client's TLS handshake, the JA3S hash of the server's response, the certificate itself (issuer, subject CN, serial number, self-signed status), and the shape of the session (byte counts, timing, port choice). Frameworks that ship with a default certificate, like Cobalt Strike's well-documented serial 8BB00EE, hand defenders a near-zero-noise indicator until the operator remembers to swap it.