← Back to the blog

The e-mail came from her account. Who sent it is another question: the authentication sequence tells the story

An e-mail sent from an account proves that the account sent it; who was operating the session is shown by the authentication, connection and session sequence leading up to the sending, not by the content of the message.

The e-mail came from her account. Who sent it is another question: the authentication sequence tells the story

In disputes over e-mails sent "on someone's behalf", the message tends to be treated as the centerpiece of the evidence. That is understandable: it is the message that contains the insult, the leaked information or the false statement. Technically, however, the message answers a limited question. The special feature the STJ (Brazil's Superior Court of Justice) published on October 11, 2026 on online scams and fraud involving financial institutions helps bring the method into view: the decisions it cites assess fraud through signals of profile, time, location, interval and sequence of operations. Applied to e-mail accounts, that reasoning shifts the analysis from content to the events that preceded the sending.

An e-mail service records, in different layers, what happens to an account. The authentication layer records access attempts, failures and successes, with date, time and, ideally, time zone. The connection layer records the IP address and, where an address is shared among users, the source port — without which the IP may not single out the connection. The session layer records session identifiers, browser and device. The sent message, in turn, carries headers showing the path it took between servers. None of these layers, in isolation, identifies a person. Taken together, and consistent with one another, they can support a technical narrative about who was operating the account and from where.

In the case that inspired this piece, a former employee of a services company, who had previously carried out support routines for the HR department, allegedly accessed the corporate webmail of that department's manager. The case notes record three failed password attempts before access was gained. Next, a reply was sent from the manager's account, as if it were her, copying other people in the company and an external personal address.

There are three layers to separate. The technical fact: the account sent the message, preceded by authentication failures. The hypothesis: a third party, not the account holder, was operating the session. The possible conclusion depends on correlating the origin of the attempts and of the access (IP, port, time), the session and the browser, and the message headers. If the origin is consistent with a connection tied to a particular location or device, the hypothesis gains strength. Even so, a network address indicates a connection, not an individual; singling out a person requires other elements, technical or otherwise. The content of the message, the recipients chosen and the history of conflict may form part of the context, but they do not replace the technical demonstration.

For the accuser, the risk is resting authorship on content and context, without records. For the defense, the opposite risk is accepting that "it came from the account, so it was the holder". In both cases, the critical point is timing: authentication logs of corporate services may have short retention, set by the service's configuration; application providers subject to art. 15 of Lei nº 12.965/2014 (Marco Civil da Internet, Brazil's Internet Civil Framework) must keep access logs for six months. Preserving early, through an out-of-court request to the administrator or through a court order, is what makes the expert examination possible later. The legal characterization of the facts — including any criminal-law discussion — is for the court; the technical work delivers the sequence of events and its limits.

Preservation starts with identifying who holds each layer. In a corporate e-mail service, the administrator of the institutional account usually has access to authentication and activity audit logs, with retention periods that vary according to the subscribed plan and configuration. The service provider, when outsourced, keeps its own logs. The connection provider keeps the subscriber's connection logs (art. 13 of the Marco Civil, for one year). That is why requests must be specific: (i) authentication events for the account during the relevant interval, including failures, with date, time, time zone, IP and port; (ii) active sessions, and the associated browser and device; (iii) changes to the password, to forwarding rules and to recovery methods; (iv) full headers of the messages in question; (v) any record of access from the internal network. With this material, the expert examination can build a verifiable timeline. Without it, all that remains is the message — which, by itself, only shows that the account sent it. It is worth remembering that a request to the connection provider to identify the subscriber behind an IP address usually requires a court order and calls for the IP, port and time with an accurate time zone; a time-zone error or a missing port can point to a different subscriber. That is why the timeline should be built before the request, not after.

The message is the effect. The authentication sequence is the path that led to it. In disputes over messages sent in someone else's name, the decisive technical question is not "what does the e-mail say?" but "what happened before it, from where, and in what order?". It is also the question that allows the court to separate what has been demonstrated from what is inferred.

5 min read Translated from the original in Portuguese. Read the original →
← Back to the blog Go to the home page