In police investigations into alleged copying of a system or unauthorised access to corporate infrastructure, there is an understandable temptation: to ask, right at the outset, for access to the private communications of those under investigation. The expectation is to find in the messages the arrangement, the sending of the file, the admission. From a technical standpoint, this route reverses the order of the investigation. It looks in conversations for a technical fact that has not yet been demonstrated in the place where it usually leaves a direct trace, which is the system itself.
A corporate system records a great deal about itself. The code repository keeps the history of changes, with the account responsible for each change and the time it was made, and many platforms also log clones and downloads. The cloud environment keeps authentication logs, data export logs and permission change logs. The access policy shows who could see what and whether credentials were individual or shared. A preserved copy of the original system allows it to be compared technically with the system in question. These are direct sources, generally under the control of the very company that claims to be the victim, and less intrusive than the private lives of third parties.
There is a sequence that makes the investigation auditable. First, identify which is the original system, in which version and where it was. Next, preserve and collect it with integrity, recording the hash value, which works like a fingerprint of the file and makes it possible to verify later that the material examined is the same as the material collected. Then validate the collection, compare the two systems technically, correlate the logs, reconstruct the chronology and, finally, establish each person’s individual conduct. Arts. 158-A to 158-F of the CPP (Brazil’s Code of Criminal Procedure) govern the chain of custody and give this sequence a verifiable record. Only then, if a concrete gap remains that the direct sources cannot fill, does it make sense to consider a specific complementary measure, with the person, account, period and facts defined.
This order also separates the layers of evidence. That the two systems have similar passages is a technical fact to be examined. That there was copying is a hypothesis, which may have alternative explanations, such as commonly used libraries or third-party code. Who copied, when and by what means is a conclusion that depends on the correlation between the comparison, the logs and the chronology. And even the log has its limit: it points to the account, not the person, and a shared credential requires further individualisation. Asking for access to messages before establishing the technical fact is trying to reach the conclusion without passing through the hypothesis.
The law follows the same logic. The Brazilian Constitution protects privacy, private life and the confidentiality of communications in Art. 5, X and XII. Lei 9.296/1996 (Brazil’s Interception of Communications Law), which governs interception, does not permit it where the evidence can be obtained by other available means, under its Art. 2, II, and this idea of subsidiarity guides the assessment of other intrusive measures. Lei 12.965/2014 (Brazil’s Civil Rights Framework for the Internet, the Marco Civil da Internet) makes the disclosure of records and content conditional on a court order, in Art. 10, and an application under Art. 22 must set out well-founded evidence of the unlawful act, a justification of the usefulness of the records and the period to which they refer. Defining that period is not an exercise in estimation. It is a technical question, because it is the repository or cloud log that shows in which window the relevant events took place.
None of this is resistance to the investigation. It can and should proceed, and lifting confidentiality is a legitimate measure when there is a concrete, delimited gap. Nor does the absence of the earlier steps prove anyone’s innocence. It indicates what still remains to be examined. The point is the order, and it is useful to whoever claims to be the victim: an application supported by a preserved original system, a technical comparison and a reconstructed chronology demonstrates the need for the measure instead of presuming it. Art. 14 of the CPP allows the victim and the formally named suspect to request investigative steps, which the authority carries out or not at its discretion, and a well-built technical roadmap serves both sides.
The question that organises this kind of case is simple: before opening the messages, did anyone examine the source system?
4 min read Translated from the original in Portuguese. Read the original →