# A Trusted Channel Is a Protocol for Measuring Shared Intent

> When a payment skimmer uses WebRTC’s signaling handshake, the breach is not in the data pipe but in the broken ritual of establishing mutual purpose.

- **Author:** Uğur Akçıl (https://softwaredeveloper.biz/author/ugur-akcil)
- **Topic:** security-reliability
- **Published:** 2026-11-27T20:18:37+00:00
- **Canonical URL:** https://softwaredeveloper.biz/p/a-trusted-channel-is-a-protocol-for-measuring-shared-intent

## Key Thesis

The WebRTC skimmer exploit succeeds by corrupting the signaling protocol, the ritual that establishes shared intent between two endpoints. True security requires architecting systems where trust is continuously verified through the semantics of the handshake, not just the encryption of the pipe.

---

The recent discovery of credit card skimmers using WebRTC is a textbook case of a systems failure, but not in the way most reports frame it. The vulnerability was not a buffer overflow or a weak cipher. It was a corruption of the *handshake*, the initial ritual where two parties establish a shared intent to communicate. WebRTC, designed for peer-to-peer video and data, requires a signaling mechanism to exchange session descriptions.

This signaling is left to the application layer, often implemented via websockets on the very website the user trusts. The skimmer script inserts itself into this ritual, masquerading as a legitimate participant in the call setup. The encrypted data channel that follows is pristine, but its purpose has been silently inverted. The breach occurs in the semantics of the agreement, not the mechanics of the tunnel.

This moves the problem from cryptography to epistemology. How does any system know the intent of its counterpart? In secure communications, we have long relied on a chain of certificates to answer “who.” But “why” is a question left to context, often implied by the URL in the address bar or the brand logo in the header. These are fragile, human-readable signals.

The skimmer attack exploits this gap between cryptographic identity and functional purpose. It creates a schism where the technical channel is secure but the shared understanding of its use is false. The user intends to send payment details to a merchant. The system, hijacked, establishes a peer connection with a criminal entity. Both parties followed the protocol, but their models of the interaction were fundamentally misaligned.

We can map this failure onto a broader architectural pattern. Many systems comprise a *negotiation plane* and an *execution plane*. The negotiation is where intent, capability, and terms are established. The execution is where the agreed-upon work is done. When these two planes are weakly coupled or the negotiation is not itself a secured, verifiable protocol, the entire system becomes vulnerable to semantic subversion.

<svg class="acad-diagram" viewBox="0 0 680 180" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="20" width="180" height="60" stroke="currentColor" fill="none" stroke-width="1.5"/>
<text x="100" y="55" font-family="monospace" font-size="12" fill="currentColor" text-anchor="middle">Client Intent</text>
<rect x="250" y="20" width="180" height="60" stroke="currentColor" fill="none" stroke-width="1.5"/>
<text x="340" y="55" font-family="monospace" font-size="12" fill="currentColor" text-anchor="middle">Server Intent</text>
<path d="M 190 50 L 250 50" stroke="currentColor" fill="none" stroke-width="1" stroke-dasharray="5,5"/>
<text x="220" y="45" font-family="monospace" font-size="10" fill="currentColor" text-anchor="middle">Signaling Ritual</text>
<rect x="10" y="100" width="420" height="60" stroke="currentColor" fill="none" stroke-width="1"/>
<text x="220" y="135" font-family="monospace" font-size="12" fill="currentColor" text-anchor="middle">Execution Plane (WebRTC Data Channel)</text>
<circle cx="490" y="50" r="30" stroke="currentColor" fill="none" stroke-width="1.5"/>
<text x="490" y="55" font-family="monospace" font-size="12" fill="currentColor" text-anchor="middle">?</text>
<path d="M 430 50 L 460 50" stroke="currentColor" fill="none" stroke-width="1"/>
<text x="550" y="55" font-family="monospace" font-size="10" fill="currentColor">Adversarial Intent</text>
</svg>

The diagram illustrates the rupture. The dashed signaling line between legitimate intents is the attack surface. A third, adversarial intent (the '?') can interpose itself into the ritual, leading to a technically correct but semantically corrupted execution plane. The encrypted channel is established, but it connects the wrong parties for the wrong purpose. The failure is fundamentally a *context leak*.

Fixing this requires a shift from pure transport security to intentional security. We must design systems where the negotiation plane has its own integrity, where the “why” of a connection is as verifiable as the “who.” This could manifest as signed session intents, where the merchant’s server cryptographically attests the purpose of the WebRTC channel (e.g., “payment form data collection”) as part of the session description.

The client’s runtime could then verify this attestation against the expected context of the page. The negotiation becomes a verifiable protocol, not just an informal exchange.

This principle extends far beyond browser skimmers. Consider an AI agent instructed to transfer funds.

The LLM may generate a valid API call (the execution), but was the user’s natural language command (the negotiation) correctly interpreted and free of hidden prompt injection? The failure mode is identical: a breakdown in the verified chain from human intent to system action. In microservices, a service mesh validates service identity (who) but often lacks a protocol for declaring the intent of a request (why this data, for what purpose), leaving systems open to confused deputy attacks.

The following table contrasts the traditional transport-security model with an intentional-security model, highlighting the shift in focus.

| Dimension | Transport-Security Model | Intentional-Security Model |
| :--- | :--- | :--- |
| **Primary Guarantee** | Data confidentiality & integrity in transit. | Semantic alignment of purpose between endpoints. |
| **Attack Surface** | Cipher weaknesses, key compromise. | Corruption of negotiation/ signaling protocols. |
| **Trust Anchor** | Certificate Authority (Identity). | Verifiable attestation of intent & context. |
| **Failure Mode** | Data is intercepted or altered. | Data is delivered securely to the wrong party for the wrong reason. |
| **System Metaphor** | A sealed, tamper-proof pipe. | A contractually bound handshake before the pipe is built. |

The practical takeaway is that architects must now design for the verifiability of intent. This means elevating the signaling layer from an implementation detail to a first-class, hardened protocol. It requires runtime environments that can understand and verify contextual claims. For WebRTC, this might mean browser APIs that allow a page to declare its expected peer purposes and reject mismatched sessions. In AI systems, it requires audit trails that link final actions back to verified user instructions, closing the semantic gap.

Ultimately, a trusted channel is not defined by the strength of its encryption but by the rigor of the ritual that establishes it. When that ritual is corruptible, the channel’s technical perfection is meaningless. Security, therefore, becomes the engineering discipline of designing unambiguous, verifiable protocols for establishing and maintaining shared intent. It is the difference between building a perfect pipe and ensuring it connects the right wells for the right purpose.

## References

- [Hacker News: Credit card skimming scripts using WebRTC found on popular shopping sites](https://www.infohawk.com/news/2026-11-27-black-friday-webrtc-skimmer)
- [Uğur Akçıl (ugur.io)](https://ugur.io)

---

## Discussion (1 notes)

- **Nina Patel** (Clinical Data Architect · Philadelphia, PA · 2026-11-27): In a hospital, the harder case is not an unknown peer but a valid vendor endpoint attached to the wrong patient or encounter after a device is moved. A certificate can verify the vendor. It cannot prove the stream’s clinical context. Bind each session to patient, device, purpose, and recipient, then preserve that provenance in the audit trail. Rechecking every change has a cost, though: noisy alerts train clinicians to dismiss them.
