skip to content

Your proxy re-originates TLS on every outbound session - why doesn't that remove command and control?

level: seniorimportance: must knowfreq 56%

answer

  1. plaintext of which layer?
  2. the client's trust store decides, not the proxy
  3. pinned applications have to be exempted
  4. permission was the enabler, not readability

basics

~20 s

Interception yields plaintext only where the endpoint trusts the interception authority and does not pin, and exempt populations exist by design. Even where it works, the recovered body can be encrypted by the implant itself - and the destination was permitted anyway.

solid answer

~50 s

Three separate holes, and the third is the one that matters. First, interception only works where the client accepts the certificate the proxy presents, which means trusting an internal issuing authority: unenrolled devices, appliances, containers carrying their own root bundle and runtimes that ignore the system trust store are all outside it. Second, anything that pins a certificate breaks under interception, so pinning applications and sensitive categories get exempted - and every exemption is a permitted, uninspected path an operator can aim at. Third, and structurally: TLS plaintext is not message plaintext. An implant can encrypt or encode its payload beneath TLS, so what the proxy recovers is another blob. Underneath all of it, the channel exists because the destination is permitted, not because the bytes were unreadable. Interception bounds what a permitted destination can be used for; it does not withdraw the permission.

code

text · 12 lines
text
What the endpoint sees for the session:
  subject: CN=cdn.example-updates.net
  issuer:  CN=Corp TLS Inspection Authority   <- internal; trusted only by enrolled hosts

What the proxy recovers after terminating it:
  POST /v2/assets/sync HTTP/1.1
  Host: cdn.example-updates.net
  Content-Type: application/octet-stream
  Content-Length: 148

  9f3a1c04b7...   <- encrypted by the implant, beneath TLS
  ...

go deeper

for a junior

Know that a proxy can only read a TLS session when the client accepts the certificate the proxy presents, which requires the client to trust an internal issuing authority.

for a middle

Explain how termination and re-origination work at the CONNECT boundary, and why an application that pins a certificate has to be exempted from it.

for a senior

State the residual precisely: which endpoint populations fall outside the trust, why an implant's own encryption survives interception, and why the permitted destination is the real enabler.

for a principal

Own the exemption list as a risk statement - each category you cannot open is an accepted uninspected path, and someone has to sign for that against the business need.

### What interception actually does When a client sends `CONNECT host:443`, an intercepting proxy does not open a transparent tunnel. It terminates the client's TLS session itself, presenting a certificate for the requested name issued by an internal authority, and separately establishes its own TLS session to the real destination. Two sessions, one in each direction, with the proxy in the middle holding both plaintexts. The whole design rests on one precondition: **the client must trust the internal issuing authority**. That trust is installed on managed endpoints. Everything follows from where that installation did and did not reach. ### Hole one: trust coverage is never total Any endpoint that does not carry the internal root in a store the client consults is outside the design: - Contractor, personal and otherwise unenrolled devices. - Printers, cameras, building systems and other appliances with fixed trust stores. - Container images shipped with a public root bundle, and runtimes that maintain their own store rather than the operating system's. For these, the proxy cannot present an acceptable certificate, so they are either exempted from interception or refused entirely. Exemption is the common outcome, because refusal breaks things. There is a mirror-image case worth stating plainly: an implant can simply *not validate anything*. Code that accepts whatever certificate it is handed sails through interception without difficulty - it never notices. ### Hole two: pinning forces exemptions, and cuts both ways Certificate pinning means a client accepts only one specific certificate or public key, ignoring its trust store entirely. A pinning application cannot work through interception, because the proxy necessarily presents something else. Estates therefore carve out exemptions: applications known to pin, and categories that policy or law says must not be opened - health, banking, legal. Every exemption is a destination reachable through a path that is not being read. That is not a flaw in the implementation; it is the cost of the design, and it is a list an operator can reason about. Now reverse it, because this is the point candidates get backwards. If an *implant* pins its operator's certificate, it does not sail through with unreadable contents - its handshake fails and it never reaches the operator at all. Pinning would protect the traffic at the cost of losing the channel. That is precisely why implants aimed at intercepting estates typically validate nothing. ### Hole three: TLS plaintext is not message plaintext Even with interception fully working, what the proxy recovers is an HTTP exchange. There is no rule that the body of that exchange is meaningful. An implant commonly applies its own encryption or encoding to the payload before it is ever handed to TLS, so the recovered body is ciphertext inside plaintext HTTP: a well-formed request to a permitted destination carrying an opaque blob. Stripping the transport layer strips one layer. ### The structural answer Underneath the three holes is a simpler point that the network engineer's charter tends to hide. Interception is about *readability*. The command channel exists because of *permission* - the estate allows requests to that destination, for good business reasons. Making the bytes readable does not withdraw the permission, and a channel to a permitted destination remains a channel whether or not anyone can read it. So the honest statement of the residual is: interception narrows what a permitted destination can be used for and raises the operator's engineering cost. The control class that would actually remove the channel is one that removes the permission - default-deny outbound to an allow-listed destination set - and that is a business decision, not a proxy setting. ### The sentence to avoid *We terminate TLS, so we would see it.* It contains three unstated assumptions: that every endpoint trusts the interception authority, that nothing is exempt, and that the recovered body is meaningful. In a real estate, none of the three holds completely.

  • If an implant pins its operator's certificate, what happens in a fully intercepting estate?
    The session fails. Pinning means accepting only one certificate or key, and the proxy necessarily presents its own, so the handshake breaks and the operator never hears from the host. That is why implants built for intercepting estates usually validate nothing and accept whatever they are handed - pinning would protect the traffic at the price of losing the channel.
  • Which endpoint populations sit outside the interception authority's trust, and why does that matter here?
    Anything never enrolled or holding its own trust store: contractor and personal devices, printers and other appliances, container images with a public root bundle, and runtimes that ignore the system store. Each is either exempted or blocked outright, and every exemption is a permitted path through which a destination can be reached without being opened.

Opening every envelope in the mailroom tells you nothing when the letter inside is written in a private cipher - and the address on it was one you agreed to deliver to.

saying these in an interview costs you the question

  • We terminate TLS, so we would see any command channel
  • Thinks interception works regardless of the client's trust store
  • Confuses the TLS plaintext with the message plaintext
  • Believes pinned malicious code sails through an intercepting proxy
  • Treats readability as though it withdrew the destination's permission

context