The book is dedicated to all the extraordinary sons and daughters of Ukraine who embarked on the path of revolutionary struggle and remained true to the cause, never succumbing to the enemy’s bribes and never cowering in the face of the enemy’s prisons, torture, and murder.

Security Fundamentals for Revolutionaries ENG

Reading time ~ 4 hours

Preface

“The cause of helping the drowning is in the hands of the drowning themselves.”

Ilf and Petrov


Why the hell did I write this book? The short answer is in the quote above, and I will explain more further, in the introduction. But let’s begin with a couple of cool stories.

Story number one:

Once upon a time, in the fine Ukrainian city of Dnipro, there lived a man named Alexander Matyushenko. Alexander was a left-wing activist long before Maidan, involved in the activities of the “Borotba” organization. By the way, the organization has been long gone, and its media resources are still run by some social-chauvinist jerk living in Russia who simulates the existence of Borotba and feeds nonsense to dim-witted lefties in the West.
Anyway, the Borotba organization in general, and Alexander Matyushenko in particular, didn’t care about secrecy. Until the very end, they acted very openly, as if there were no significant threats, nor could there be any. In short, they were careless people.

Some Borotba members, including Alexander, wrote articles for the website liva.com.ua.

Naturally, he signed his articles with his real name. To top it off, for some unknown reason he also included pictures of himself in the articles. As of 2024, one could still find these articles on the website.

In 2016, hackers leaked emails of Surkov, the then-political adviser of Putin and the architect of the anti-Maidan movement. The emails revealed that Borotba members were writing articles on commission, ordered by the Kremlin. Alexander Matyushenko was among the authors of these commissioned articles. Alexander himself did not know the source of his income; he was set up by his so-called “comrades.”

Fortunately, even after this incident, Alexander did not have any particular problems with the authorities until 2022. Let’s move on to this period, which was tragic for many.

In the spring of 2022, SBU agents and Azov members broke into Alexander’s house, beat him up really badly, and then our most humane court in the world tried Alexander for alleged work for Russian intelligence. Initially, he was facing fifteen years, but solely thanks to an expensive and talented lawyer, the sentence was reduced to three years. We believe that Matyushenko did not actually work for Russian intelligence and that the case doesn’t hold water, but what difference does that make? Alexander is still in prison, and from our point of view, even if he is not guilty in the legal sense, he is clearly responsible for gross violations of the rules of secrecy.

That was story number one. The reason I told it is that many comrades living both east and west of Ukraine believe that if they are not being terrorized for their views and activities right now, there is little to worry about.

Alexander Matyushenko is just one of many Ukrainian leftists who behaved with criminal negligence before the Maidan and in 2014, when communist views were still legal in Ukraine, which cost him dearly now that they have been banned.

And don’t bother arguing with me, saying, “That’s how it goes in Ukraine, but our country is totally different, and we don’t need your underground tips.”

First, aside from anonymity, any self-respecting organization will care about confidentiality, even in “normal” circumstances. Later on, this book will go over anonymity and confidentiality, who needs them, and to what extent.

Second, “normal” circumstances don’t last forever. World War III is bound to level the playing field for all countries, so revolutionaries everywhere should start taking security seriously.

Of course, security must be ensured in different ways in different concrete-historical situations. We will discuss how to use this book in different situations later. Now, here is story number two, which is more relevant to us.

There is another fine city of incredible beauty in Ukraine, Odessa. In Odessa, there lived a young man (let’s call him Mr. Clark Chickendale), and a young woman (let’s call her Ms. Bernadette Ratcliff). Chickendale and Ratcliff were good friends—as it later turned out, perhaps a little too good—and until 2022, they were both members of our humble organization. Shortly after the start of the full-scale Russian-Ukrainian war, Clark and Bernadette left us.

It so happened that Ms. Ratcliff was rather careless about secrecy: she’d had publicly displayed her chubby visage on many occasions. And then, on a lovely spring day, when both heroes of this story had long parted ways with the RFU, the SBU came for Ms. Ratcliff. She shed some tears, had a chat with the agents, and was soon released. Then the SBU came for Mr. Chickendale. How did it happen to Clark? As I mentioned above, the young people knew each other too well, meaning that Ms. Ratcliff knew Mr. Chickendale’s address, so she turned him in. Chickendale proved to be weak-willed, but he didn’t lose his footing and tried to give the SBU agents something—but failed. Why did Chickendale fail? Quite simply, Chickendale couldn’t say anything useful because he didn’t have any valuable information.

The fact that Ms. Ratcliff knew where Mr. Chickendale lived was a critical breach of our security protocols and simply a terrible blunder on Mr. Chickendale’s part. Unfortunately, in contrast to individuals who exhibit this trait, stupidity itself sometimes has a tendency to remain covert for quite some time, so we were unable to take any precautions in this instance. Ultimately, we had to roll with the punches.

Frankly speaking, the situation that unfolded was not a pleasant one, but there was something positive about it: the investigation came to a dead end with Ms. Ratcliff and Mr. Chickendale, who by that time were already former members of the RFU. However, this was not thanks to Ratcliff and Chickendale who steadfastly endured torture and remained silent like partisans (as far as we know, they were not tortured at all)—rather it was thanks to our imperfect but relatively good system of secrecy, which prevented them from turning anyone or anything over to the SBU except each other.

Needless to say, the SBU agents forced this couple to do something, so Ratcliff and Chickendale recorded video messages in which they quietly and tremulously distanced themselves from the RFU, accused us of working for Russia, and swore allegiance to the regime.

Following the instructions of the obvious source, the media soon began to churn out news about how the SBU had rounded up and jailed everyone in Odessa. Here is a quote from a piece by odessa-life.od.ua:

Members of the pro-Russian movement “Workers’ Front of Ukraine” were detained in Odessa by officials of the Security Service of Ukraine.

On April 21, leaders and members of the public association “Workers’ Movement of Ukraine”, which is coordinated and financed by the Russian Federation, were detained in Odessa, according to the SBU press service.

Since the start of military hostilities, according to the service, they have produced a batch of anti-Ukrainian materials, repeatedly attempted to distribute communist symbols, and called for the revival of the Soviet Union. The next step was to be staged mass gatherings and rallies.

Fortunately, this and similar outright lies were the only harm done to our organization. That’s the end of the story, I will let you draw your own conclusion.

I will immediately answer the reasonable question: Where did we get all this information? For obvious reasons I cannot reveal the source, so you have to trust either the SBU or us. All I can say is that the information has been double-checked by me personally, and that the Security Service of Ukraine itself has far from perfect security.

Introduction

Following Hegel’s advice, let’s start from the beginning.

If I am to write a book about the fundamentals of security, it is appropriate to begin with the question of what is security and what is danger in general.

In the broadest sense, danger is the state of being vulnerable to some sort of harm.
Security in general can mean two things: either the condition of being free from danger or risk (basically, safety), or security as something that gives or assures safety, such as measures adopted to prevent harm — i.e., means to overcome a danger. Naturally, we’re more interested in the latter.

Overcoming danger should not be viewed as danger magically disappearing without a trace. That does not happen. Safety is always a dialectical negation of danger (whereas danger itself is a negation of the initial danger-free state). Consequently, danger does not disappear completely when it transitions to safety, but is sublated in safety as its moment, that is, as a danger that has been overcome in order to become a necessary component of safety.

Now, a bit of a zrada moment. What I described above is something you will never find or grasp in the real world in its “pure form”. This is because what I have described is “danger in general” and “safety in general”, so despite their very real existence as general laws and concepts, they cannot be grasped, just as space and time in general or anabolism and catabolism in general cannot be grasped. “Safety and danger in general” exist only as individual shapes, that is, as safety and danger in specific, “tangible” situations.
In revolutionary work, this means that the only way to really deal with the current dangers at their root, at their origin, is to use security measures and keep fighting until the revolution wins in your country.

Another thing is that after the victory of the revolution and the eradication of the old dangers, new ones will immediately arise in their place, both outside and inside the revolutionary state. This is a topic worthy of many other books, so let us come from progressive heaven back down to reactionary earth.

So, a complete elimination of “danger in general” is impossible, and dangers will always exist.

Here we come to a fork in the road with three (though actually only two) paths. Here they are:

• the path of carelessness;
• the path of paranoia;
• the path of awareness.

Let’s take a look at each of them.

The path of carelessness is the path most people take. “No one cares about me,” “They’ll find out anyway if they want to,” and my favorite, “I have nothing to hide.” Most likely, you’ve heard these phrases at least once.

The path of paranoia is the path of people who have strayed from the path of carelessness but have not embarked on the path of awareness. Here, too, everything is quite prosaic: “No one cares about me” becomes “Everyone cares a lot,” “They’ll find out anyway if they want to” becomes just “They’ll find out if they want to,” and “I have nothing to hide” becomes “I no longer have anything to hide.”

Why did I say that there are actually two paths, not three?

Because the paths of carelessness and paranoia are actually one and the same. These paths have the same beginning — more on that later — and the same end — significant damage to the cause.

While it is already clear from the preface how the path of carelessness leads to such an end, the path of paranoia is a little more insidious.

It’s time for another story, or rather, for retelling a story from a former KGB agent.
Totalitarian sects are a tricky thing for secret agencies. It’s hard to catch every single member, and even if you do, new sect members will immediately appear to replace those who were caught. What options did the KGB have in such situations?

One of them was to start spreading paranoid ideas within the sect (with the help of planted provocateurs or simply naive fools): “We’re under the thumb of the bloody secret police, soon everyone will be arrested, we must do something now!”. As a result, “doing something” has the potential to turn into mass hysteria, spy mania, a disruption of contacts between sect members, and, ultimately, a decline or even cessation of the sect’s activity.

Let’s go back to the single origin of carelessness and paranoia.

Both the careless and the paranoid are incapable of fully understanding the dialectics of safety and danger and the dialectics of the general and the particular as applied to safety and danger.

In the real world, there is no such thing as the general: the general is not a stone on the road or even an invisible teapot in space. Everything general, all scientific categories, are generalizations of the particular. The same applies to the categories of security and danger.

Both the careless and the paranoid disregard in their thoughts and actions that:

1) “safety in general,” and, as a result, individual safety in any particular situation, is not the abstract absolute disappearance of danger;
2) in particular lives of individuals and organizations, one has to deal not with safety and danger in general, but with individual dangers and the corresponding means of ensuring safety.

Thus, the careless surrender to “danger in general,” while the paranoid seek to protect themselves from “danger in general” by finding some abstract “safety in general,” but in fact both are fallen Don Quixotes in a fight against windmills.

However, besides carelessness and paranoia, there is also the path of awareness.

The bottom line is to build a security system based not on “danger in general,” but on the actual range of dangers that threaten you and your comrades.

This is where the threat model comes in handy.

When modeling threats, we first try to look at our security system not from the perspective of our own defense, but from the perspective of an enemy attack. This is reasonable, because before you can defend yourself, you need to understand what you are defending yourself from.

In this way, we build a concrete portrait of our potential adversaries, vulnerabilities, and threats. Any proper security system should be built on the basis of a thoughtful study of this portrait, risk assessment, and the adoption of appropriate countermeasures, taking into account existing strategies and tactics.

Well, we have figured out the right direction for the development of our security system. I will explain how to create a threat model for your specific situation very soon, in the first section of this book, but for now, I will quickly answer a few key questions.

Who can benefit from this book?

First and foremost, this book is intended to assist organized revolutionary Marxists who have the ability to consistently follow the path of awareness, appropriately apply the advice from the book to their concrete historical situations, and continuously update their knowledge, particularly regarding cybersecurity.

The definition is cumbersome, but complete. For those who want to engage in revolutionary struggle but do not fit the above definition in one way or another, the book will be of less help.

When writing the book, I also took into account that it could and would be read by our enemies, whether they be fascists or “law enforcement officers” (although in Ukraine, these terms are becoming increasingly interchangeable). Because my work is based in part on the experience of our organization, our enemies may be able to understand a little better how our security system works, which will slightly reduce our advantage over them. Fortunately, we are aware of this threat and are prepared to accept it for the sake of achieving the main goal of writing this book.

And I don’t mind if my advice is used by non-communist leftists, such as anarchists, in our or other bourgeois states. Despite my categorical disagreement with anarchism as an idea, I will be happy and even maliciously pleased if I make it more difficult for the cops to catch another political offender.

As for the idiotic complaints of casual observers against virtually any material on confidentiality, claiming that such material helps drug dealers, distributors of child pornography, and other nasty individuals, I am willing to read such complaints to lift my spirits, but I do not promise to respond, and I will definitely not argue. The wisdom of our ancestors tells us: Answer not a fool according to his folly, lest you be like him yourself.

What made me decide to write this book?

The first reason is that this is a global issue. I see revolutionary Marxist organizations that I respect neglecting security in various corners of the globe. I really don’t want these respected organizations to disappear into the flow of history under pressure from our class enemy. Thus, the first and main goal is to make my small contribution to the risk management of the world revolution.

The second reason is that I wanted to get my thoughts on the topic sorted out in a more organized way. So, the second goal is to summarize my own knowledge for the benefit of my organization, so that later on it will be easier for me to put together our internal training materials. I couldn’t think of a better way to do this than to write this book.
The third reason is my death. The threat of my death can never be ruled out. Moreover, my death appears to be approaching faster than I wish. Therefore, my third goal is to enter the proletarian Valhalla knowing that I have contributed to the common cause, so that my life will have been lived meaningfully.

What is the book based on?

The book is based on the following elements:

• theoretical material accumulated by the author on the topics covered in the book;
• global historical experience — mainly the experience of criminal, state, commercial, and political organizations;
• Ukrainian historical experience;
• the experience of our organization;
• the author’s personal experience.

And just in case: is this book a magic pill that can protect the revolutionary who reads it from all misfortunes?

No. The book is far from exhaustive on the subject, and not everything written in it will always be relevant.

Moreover, even complete adherence to the path of awareness and constant improvement of knowledge and security systems will not give you any guarantees.

Revolutionary work always involves risks, even if we assume that the actions of revolutionaries are completely flawless. What’s worse, mistakes are bound to happen.
If you are not satisfied with this, if you only agree to “guarantees,” and any danger makes your knees tremble, then I can cheer you up: you can reduce the risks to zero by refusing to engage in revolutionary work. By doing so, you will even help the cause of the revolution a little, because weak-willed people are themselves an unnecessary threat.

That’s it, I’m finishing this long introduction and moving on to the main part. To everyone I wrote this book for, I wish you a pleasant read.

Section I. Building a Security System From the Ground Up

This section will teach you how to build a threat model (in Chapter 1) and develop organizational precautions based on that model (in Chapter 2).

Chapter 1. Threat Modeling

First, we will go through the general rules for creating a threat model step by step and then take a look at a sample model.

The first step is to think carefully about the organization you need to protect. Briefly write down the circumstances in which the organization exists, the principles that underlie the organization and its work, the process of bringing new members into the organization, the level of authorizations different members possess with respect to specific information and processes, the IT infrastructure currently in use, and how your organization interacts with external entities and individuals. Essentially, you should summarize everything you have that could be relevant to security.

The second step is to create a model of perpetrators. Keep in mind that you should consider not only external but also internal perpetrators. When drafting this model, be sure to identify the potential capabilities of various groups of perpetrators.
The third step is to actually define the threats and categorize them. There are many ways of categorizing, here are just a few suggestions:

  • by source;
  • by apparentness;
  • by probability;
  • by impact.

Once this work is complete, it is sometimes useful to look at the big picture and assign all threats a sort of overall danger rating, taking into account their relationship to all the categories identified.

The fourth step is to identify vulnerabilities. By vulnerabilities in the broad sense of the word (broad because we are creating a threat model for the organization as a whole, not just for its cybersecurity), we mean any weak points in the organization’s security system that could be exploited.

Finally, the fifth step in creating a threat model is to decide what to do about all these threats and vulnerabilities. There are three options: accept, mitigate (i.e., minimize risks and/or possible consequences), and eliminate. Each threat must be dealt with individually to determine which option is best. Not all threats can or should be mitigated or eliminated, just as not all threats can or should be accepted. This calls for a thoughtful approach.

The above is a general outline. Below is an example based on our experience, along with some thoughts that are relevant for a variety of situations. I am only giving a very general overview, as the goal is to illustrate the outline, not to provide a complete description of our threat model.

Example

1. Ukrainian reality: poverty, energy crisis, anti-communism, militarism, repression, mobilization terror, and many other delights. This is the environment in which we operate.
The organization is founded on the principles of Marxism-Leninism, democratic centralism, clandestine activity in the face of reactionary domination. New members join us from among the candidates once they have completed a certain number of tasks, and to become a candidate, one must fill out an application form. All candidates and members of the WFU are required to comply with a series of conspiracy rules. There are penalties for violating these rules. All WFU members are required to take a course on online anonymity.

Ordinary members have access to the organization’s general chat and to the chats of the departments/cells they belong to. The activities of the departments are reported at the organizational level through reports. For cells and some departments, there are limited reports with a stricter confidentiality policy.

Access to the management of the IT infrastructure is limited to a small number of time-tested specialists who have the trust of the organization. I will not describe the IT infrastructure, but if you are curious, you can try to join the WFU and find out for yourself.
The organization’s interactions with third parties must be agreed upon in advance.

2. External perpetrators are “patriotic citizens” and Ukrainian law enforcement officers (both regular and special forces). Internal perpetrators may potentially include any member of the RFU.

As the main external threat, we should consider the police, because these days most “patriotic citizens” are under their thumb in one way or another.

The potential capabilities of the cops alone are quite significant. Police textbooks and historical experience give a more concrete idea of what cops can and cannot do in theory, but we will not dwell on that now.

The important thing to understand here is that the actual performance of a cop differs to some extent from what they are supposed to do according to the textbooks, and for many reasons, not all of their potential capabilities are always used in practice. In addition to the potential of “law enforcement officers,” there are also the actual “law enforcement officers” of flesh and bone.

On the one hand, there is a high percentage of untalented, lazy idiots among the cops, and that is an indisputable fact. On the other hand, there is a small percentage who are truly capable and want to achieve real results, rather than just making the statistics look good for their superiors.

The most reasonable strategy here is to hope for the best but prepare for the worst. Accordingly, in our model of the perpetrator, the enemy must be considered motivated and competent. To count on the enemy’s weakness would be to admit your own weakness.
An important point: in the model of the perpetrator, there should also be no expectation that the officer might in any way sympathize with the revolutionary cause. First, in reality, there are no such officers, even as a statistical deviation, and second, in the model, we are preparing for the worst, so we will assume that the police are bloodthirsty monsters wearing uniforms and simply inhuman fascist scum.

Now let’s talk about internal perpetrators. Perhaps some of you are surprised by my wording, but that’s life. Even if unintentionally, absolutely anyone is capable of causing trouble. No one is immune to making mistakes. That is why in our model, all members of the organization are listed as potential internal perpetrators.

3. A small sample of threats will suffice as an example: betrayal of the organization by one of its members (this primarily refers to cooperation with the enemy in any form), unintentional disclosure of confidential information by a member of the organization, failure of a member of the organization to comply with security rules, infiltration by agents, DDoS attacks on IT infrastructure, use of exploits in IT infrastructure, de-anonymization, physical surveillance with or without the use of technical means, fingerprinting, information leaks by third parties (this refers to all third parties without exception, including legal entities: all hosting providers, all centralized messengers, all social networks, etc.).

Mobilization terror, despite not being a direct threat to the organization itself, is a significant threat to all men in Ukraine. Thus, it is also a threat to many members of the RFU.

Now let’s sort them by category.

By source:

  • Internal: betrayal, accidental disclosure, non-compliance with rules.
  • External: all other threats mentioned above.

By apparentness:

  • Explicit: DDoS.
  • Can be either explicit or implicit: betrayal, unintentional disclosure, non-compliance with rules, use of exploits, leaks by third parties, mobilization terror (often after a person is busified, he is completely cut off from the outside world).
  • Implicit: infiltration of agents, de-anonymization, physical surveillance, fingerprinting.

By probability:

  • Low (less than 25%): DDoS, use of exploits, physical surveillance, fingerprinting.
  • Medium (25-75%): betrayal, non-compliance with rules, unintentional disclosure, infiltration, de-anonymization, leaks by third parties.
  • High (more than 75%): mobilization terror.

I would like to note that in any organization larger than one man and his dog, betrayal, non-compliance with security rules, unintentional disclosure, and infiltration are always in either the medium or high zone. The probability will inevitably increase as the organization grows and may decrease thanks to competent risk minimization measures, but it will almost never be in the low zone.

By consequences:

  • Non-critical: DDoS.
  • Can be either non-critical or critical: betrayal, unintentional disclosure, non-compliance with rules, infiltration by agents, use of exploits, fingerprinting, leaks by third parties, mobilization terror.
  • Critical: de-anonymization, physical surveillance (in our situation, it indicates that things have already got pretty ugly).

Let’s move on to vulnerabilities.

4. On the technical side, may the Proletarian Allah bless our IT specialists, we are doing very well. Of course, zero-day vulnerabilities (vulnerabilities that have not yet been fixed by developers) can never be ruled out.

In line with the popular expression, the main vulnerability exists between chair and keyboard.

The human factor will always be a vulnerability, and for obvious reasons, it is impossible to get rid of the human factor; all we can do is reduce the risks.

5. Let’s go through each of the threats described in the item three and decide what we should do about each of them.

Betrayal, unintentional disclosure, and non-compliance with security rules, i.e., the entire human factor, should be mitigated. The infiltration by agents should also be mitigated. We will discuss how exactly these threats can be mitigated very soon.

DDoS attacks and the use of exploits should be mitigated.
De-anonymization should be mitigated.
Physical surveillance should be mitigated.
Fingerprinting — accept in some cases, eliminate in others.
Leakage of information by third parties — eliminate where possible (do not contact third parties unnecessarily), mitigate where impossible (give them only the minimum necessary information).
Mobilization terror — unfortunately, in most cases, the only option is to accept or mitigate it slightly, and only occasionally can it be eliminated (that is, by leaving the country; all other options are unreliable).

This concludes the example of the threat model. Once again, I would like to remind you that this is only for illustrative purposes and is not a template, so be sure to detail your model thoroughly, not just as shown here.

Before concluding this chapter, I would like to share a few thoughts on the infiltration by agents.

I deliberately categorized this threat as implicit rather than ambiguous in terms of apparentness. It is important to understand once and for all: if the police have actually gone so far as to infiltrate your organization, it means that they are seriously interested in you. If they are seriously interested in you, the agent is most likely not an idiot. If the agent is not an idiot and is focused on gathering information rather than undermining the work from within, then the probability of them being exposed will be very, very low in the vast majority of cases. It would be realistic to hope for this, but not to count on it, which means not building security based on faith in your ability to identify agents.
Do not underestimate your opponent and do not overestimate yourself. No clever magic techniques will help you identify an agent with certainty until they make a mistake. The history of the secret services of the 20th century shows that an agent can remain undetected for years, even if a strong counterintelligence service is working against them.
Is there room for optimism here? Yes, and we have already arrived at it — it’s in the second chapter.

Chapter 2. Organizational Precautions

First, it is necessary to look at the security component of secrecy and determine to what extent and in what forms you may require it.

At this point, it is important to distinguish between two essential concepts: confidentiality and anonymity.

Confidentiality means that access to certain information is restricted to those who are authorized to have it. Any information that should only be accessible to a limited group of people can be considered confidential. In general, this is a very broad concept and is essentially synonymous with secrecy. Everyone has some secrets, some closed, non-disclosable information, so confidentiality is necessary for everyone without exception.
Anonymity and confidentiality are often mixed up, and very wrongly so. Anonymity is a specific form of confidentiality aimed at concealing one’s identity.

WFU is an underground organization that strives for maximum confidentiality and anonymity.

Your organization may exist in more lenient environment, where you should still strive for maximum confidentiality in general, but the kind of anonymity required by an underground organization is not objectively necessary. This is normal. At the same time, rejecting this level of anonymity should not mean a complete rejection of anonymity in general, but this is exactly what many people do, intoxicated by the illusion of legal freedom.

Of course, if you work in a legal environment and have, for example, public figures, then in most cases anonymity would be unnecessary and even harmful for them, because they are public figures precisely for the purpose of appearing in public. However, even legal organizations surely have people whose refusal of anonymity makes no practical sense. Here I must digress slightly from the topic of legality, only to return to it later with greater clarity.
There is an important principle that we will follow going forward. It is to not give more permissions than necessary (including access to confidential information by a person).
What is the essence of this principle? If there is no channel for leakage, then there is no possibility of leakage through that channel. The principle applies to both technical and human components. When it comes to confidentiality, ignorance is indeed bliss.

A competent access policy is one of the most effective ways to minimize risks from human factors and hostile infiltration.

Let’s return to a legal organization. So, let’s imagine that you are all perfectly legit folks and you have someone who writes texts for the organization’s news materials. Is it vital for the activities of the organization to disclose personal information about this person? No, it is not necessary, not only to the outside world, but even within the organization. There is no need to shout from the rooftops that a certain text was written by a certain John Smith. What matters is that the text is well written, and neither you nor your audience need personal information about its author.

The same can be said not only about news writers, but also about many other positions. In short, consider who should be public and who should not, and then start ensuring partial anonymity for your legal organization.

Unfortunately, I have observed that among certain groups, especially in the post-Soviet space, the number of people who really need to give up anonymity for practical reasons is significantly smaller than the number of people who definitely need anonymity but do not use it, which means that in their hope for the best and preparation for the worst, they completely ignore the latter. One part of this equation, however, becomes meaningless without the other.

So, to summarize the general principles:

  1. Do not grant more access than is necessary.
  2. Ensure maximum possible confidentiality in all circumstances.
  3. Ensure maximum possible anonymity in all circumstances. In ALL circumstances, because your possibilities might vary, but the principle itself will remain the same.

Well, congratulations! We have finally figured out the basics, so now we can move on to developing specific measures.

1) The first organizational measure I suggest taking is to clearly define your access policy in general and your secrecy policy in particular: who can and cannot do what, who knows and does not know what. Base this on your threat model and general principles.

It may be useful to draw up a document or set of documents where you spell all this out. Don’t hesitate to write down the obvious things, either. Experience shows that what seems obvious to you may not be obvious to others.

Pay special attention to access to critical objects, such as IT infrastructure. On the one hand, don’t give access to too many people, but at the same time, if there aren’t enough specialists with access, this can also have negative consequences.

Once you have finalized your access policy, use it as a basis for developing corresponding organizational rules.

Important: if you live in a country like Ukraine, where a person can go missing and most likely die, make sure your comrades give notice immediately if they must temporarily go inactive due to illness, family circumstances, heavy workload, etc. Don’t let them cause everyone else to worry due to uncertainty. In our organization, there was a case when a comrade simply disappeared from the radar. Weeks and months passed, and we were very worried about him because we knew nothing at the time and couldn’t find out anything. A whole year after he disappeared, it turned out that he was fine and had just decided to leave us in such a jerkish way.

2) Writing down access rights and rules is not even half the job. The most difficult but necessary thing is to communicate the rules to everyone. Cybersecurity can pose particularly difficult problems. It’s a broad topic that can’t be covered in a set of rules. I strongly recommend introducing cybersecurity courses with mandatory exams. You can use the second section of this book as a basis for the courses; it will be sufficient for the average user.

As for offline activities, make sure that members of the organization have a clear understanding of what falls under the concept of personal data. For example, if one comrade decides to throw a drinking party at another’s apartment, this reveals such important information as their place of residence. Consider whether this is acceptable in your circumstances.

3) Decide what you plan to do with internal perpetrators in cases of unauthorized access (and rest assured, there will be such cases). When imposing penalties, consider factors such as intent, admission or concealment of the violation, and actual and potential damage. In addition to penalties, think about how to prevent a recurrence in the future.

4) Sketch out response tactics for various external threats. This will help you respond effectively and without panicking according to a pre-thought-out plan.

5) Last but not least, and this is important not only for security but also for the normal functioning of the organization in general: don’t accept just anyone into the organization for the sake of numbers.

Create a system for filtering incoming personnel so that only those who have proven that they really want to and are capable of engaging in conscious revolutionary activity can become members of the organization. For those who are willing but do not yet have the necessary skills, create a separate space and do not accept them until you have trained them. Do not be afraid to expel old members from the organization if they cease to be useful to it.

And most importantly, comrades: no broad left coalitions, no encouragement of factionalism, but at the same time, no sectarian perversions such as so-called “scientific centralism.” Both are paths to nowhere. Only Leninist democratic centralism, only hardcore (although hard rock and heavy metal are also acceptable).

Section II. Fundamentals of Computer Security

Chapter 3. Threat Overview: Malware, Man-In-The-Middle (MITM) Attacks, Physical Access, Breaches of Confidentiality and Anonymity, and the Greatest Threat of All

Let’s start with three threats: malware, Man-in-the-Middle attacks, and physical access to the device.

Malware is most often used in mass attacks for financial gain. There are many ways to cash in: mining cryptocurrency on infected computers, stealing financial data, encrypting the victim’s disk and demanding money for decryption, and so on. What have become popular lately are clippers, which are malware that change the clipboard. This is how a friend of mine lost money once – a clipper changed his clipboard when he copied a cryptocurrency wallet address.

Although mass attacks using malicious software can cause enormous damage to corporations, individual users have a good shot at protecting themselves from most of them. This book will help you do just that. But bear in mind, it’s “most of them”, not “all of them”.

There is also malware that exploits zero-day vulnerabilities, i.e., vulnerabilities that are not yet known to software or hardware developers and have not been fixed, but are already known and exploited by attackers. If the latter have also happened to find a critical vulnerability in widely used software or hardware, malware that exploits this vulnerability can cost millions of dollars.

Such powerful malware is usually developed by highly competent people from corporations, government agencies, or skilled hacker groups. Infection can take place entirely unnoticed by both the user or antivirus software.

I would say that preventive measures would help here, but that would only be partly true, because sometimes there is little we can do about it. For example, the well-known spyware Pegasus, developed and sold by the Israeli corporation NSO Group, could (and may still be able to) be installed on iOS and Android via zero-click exploits, i.e., without any user interaction with the device. Back in 2021, which is not so long ago, it was quite possible1 to get infected with Pegasus on iOS simply by receiving a message with a JBIG2 file in iMessage. Apple has fixed this vulnerability, but Pegasus as a whole is still alive and actively used by you-know-who.

If there is any sound protection against such programs, it would be to simply abandon mobile phones, as it is difficult to achieve the same level of security on a smartphone as on even the most basic Linux PC. Of course, there are many situations in which not having a mobile phone would be challenging. Moreover, there is no guarantee that your PC is safe, even if it has near-perfect software protection measures in place: it should not be forgotten that in addition to software vulnerabilities, there are also hardware vulnerabilities, which are occasionally found on both Intel and AMD processors. In the second chapter, I said that it is not always possible to eliminate or mitigate a threat, and all that remains is to accept the threat.

Bottom line, you can learn how to protect yourself from malware, but just like with anything else, you should never expect a 100% protection. Some people think that the only safe computer is a turned-off computer, but even that idea isn’t totally right, as we’ll see later.

Now a few words about Man-in-the-Middle attacks. The general principle is clear from the name—an attacker takes control of the victim’s communication channel with someone and tracks or modifies the flow of information. Some MITM attacks are now irrelevant thanks to the development of network applications and protocols. At the same time, there is a number of attacks targeting local Wi-Fi and Ethernet networks (the data link layer of the OSI model), the risks of which are often underestimated by ordinary users.

We will discuss such attacks in the next chapter, but for now, I will throw in a bit of intrigue: phishing does not only occur when you click on a fake link that takes you to a fake website, but also when you click on a real link that takes you to a fake website.
Let’s move on to physical access to a device or its memory. At first glance, it seems easy to protect yourself: all you need to do is use reliable encryption technology and a password. This is very important, but encryption is not a magic bullet: when you entered the password, you decrypted the device, and that’s when someone could simply take it away from you. All they need to do is wait for or create the right moment.

First example: you are sitting in a cafe, immersed in some degenerate content on TikTok, oblivious to the world around you. In this situation, it would be easy to sneak up and steal your phone, especially since it is unlocked. Finito. The same thing can happen if you are using a laptop in a public place.

Second example: someone approaches you and asks to borrow your phone for a couple of seconds to make a call or check the navigation app because their phone is dead, and the stranger is late, lost, drunk, etc. You act like a good Samaritan and unlock your phone, but at that very moment, you are restrained by officials and your device is confiscated.
Later, when we move on to deanonymization, you will learn the real story of a criminal whom the cops were able to bring down thanks to a well-organized provocation carried out at the right moment.

In addition to “taking it away after the password is entered,” there is also the option of peeking at the keystrokes as the password is entered. This simple and effective method is great because it can be used not only for physical access, but also for remote access: passwords are not only used to access devices, but also accounts on various online services.

If you often use your devices around strangers, either break this habit or always keep the threat in mind and try to minimize the risks.

To protect against device seizure and snooping, here is some practical advice I can give you right now: first, use your phone at a sufficient distance from other people and security cameras; second, it is better not to use laptops in public places unless absolutely necessary.

Finally, an often overlooked method of gaining physical access to an encrypted device is torture. Legally, of course, the police have no right to torture you, but law and reality are two separate worlds with only a few intersections.

The topic of torture is covered in the fourth section of this book, but the second section also suggests some useful preventive measures against torture, related to computer security.

The next two threats are privacy breach and deanonymization.

To avoid confusion with the concept of privacy breach, we will temporarily exclude deanonymization so that we can look at it separately later. Accordingly, let’s think of privacy breach as a situation where it’s revealed what someone did, and anonymity breach as a situation where it’s revealed who did something.

How can our enemies breach our privacy on the Internet? Since in our threat model the main enemy is a cop, we must take into account that the enemy has the ability to file legally justified and not-so-justified requests with a chance of obtaining useful answers.
Do you think there is any reason why IT corporations would not rat you out to the noble police? That’s naive, because they’re already leaking your data, and not just to the cops, but to anyone who wants it.

Most ordinary people use Google, Apple, Microsoft, and Meta products in one way or another. These four giants hold a huge amount of information about literally every one of their users.

Corporations violate privacy primarily for marketing reasons. You may have noticed “coincidences” like this: you google something, and after a while you see ads on the same topic, not on Google itself, but on another platform. Well, these are not coincidences, but data trading and subsequent targeting — identifying a target audience among the general public in order to show targeted ads to them.

That is why, in large-scale marketing, advertisers strive to learn everything about everyone, and for a certain amount of money, they can obtain this knowledge. Trading user data is one of the key sources of income for these corporations.

It would be fine if marketers only tracked Google searches or Instagram subscriptions, but their greed goes much further. A recent example is Meta selling personal correspondence to Netflix. The link to this story also contains other materials about Meta’s privacy breaches. You can also read about Microsoft, Apple, and Google’s “care” for personal data.

In general, the scale of the problem is already significant, and now consider that corporations would leak no less to the cops than to advertisers. I would like to reassure you that you will learn to cope with this inconvenience, as with the others. For now, let’s continue with a general overview of threats and smoothly transition to deanonymization and fingerprinting.

Deanonymization means figuring out a person’s identity.

Fingerprinting is the process of comparing various online activities and figuring out that they were done by the same person, without necessarily figuring out their identity.
Fingerprinting can be used in targeting or in investigative work as part of the deanonymization process.

I will briefly describe several methods of deanonymization and fingerprinting.

Let’s start with the famous “IP tracking” that everyone has heard of. An IP address is a unique identifier for a device on the network that is necessary for going online. By knowing the IP address, anyone can determine the approximate location of the device without spending any resources, and the cops, with their resources, can go to the provider and obtain a lot of valuable data that will make it much easier to search for a suspect. The threat is serious, but it is relatively easy to protect yourself from it at a basic level. However, there are many caveats, and it is not enough to simply connect with the first VPN you come across. Furthermore, no method of hiding your IP address will guarantee anonymity on its own and is not an ultimate solution.

Your browser can tell a lot about you. So it’s not just about ditching trashy products like Chrome, switching to something like Firefox, and limiting cookies. That will definitely be a step in the right direction, but there’ll still be a bunch of threats you can’t get rid of, and those are called browser fingerprints. You can learn more about this with browserleaks or amiunique, where you can also see how these fingerprints help to identify you personally. Browser fingerprints are primarily used for targeting and blocking scammers, but there is absolutely nothing stopping them from being used in operational and investigative work.
There are also hardware-level identifiers, such as MAC addresses and various serial numbers like IMEI. Under normal circumstances, these identifiers cannot be changed, so you need to be especially careful when trying to hide them.

Now let’s move on to the reason why all the deanonymization methods described above are not the worst. The reason is the perpetrator. Often, the simplest and at the same time most effective approach to deanonymization is to use the information that the perpetrator reveals about themselves through their own words or actions. The main enemy of your anonymity, my friend, is you yourself. Let’s turn to historical experience.

Our patient is Ross Ulbricht, founder of Silk Road, the then largest darknet marketplace selling drugs and other illegal goods. He was a thoroughly repulsive individual, but not stupid, and he was quite good at keeping his cover up. So what led to us now knowing him by his real name, Ross Ulbricht, rather than his pseudonym, Dread Pirate Roberts?
Below, I will briefly summarize the most important points. For those who want to read the whole story in detail, here is a link to the article by the cop who caught Ulbricht.

Using the account of an arrested girl with moderator rights and skillfully pretending to be her, the cops managed to establish that Silk Road’s servers were located in Iceland. This was a major breakthrough, but it did not lead directly to the ringleader. All they managed to find out was that the administrator accessed the server from an internet café in San Francisco.

While communicating with the administrator, nicknamed Dread Pirate Roberts, the cops noticed that his time zone was displayed in the chat—Pacific Time Zone, which is the time zone used in San Francisco.

At the same time, the officers conducted a thorough Google search and found a forum, a gold mine, I would say, where Silk Road was mentioned back in January 2011. Ross Ulbricht’s email address was found in posts mentioning Silk Road, and on the same forum, Ulbricht asked questions about Bitcoin and Tor, the very technologies on which his market was based and which, at the time, were not nearly as popular as they are now.

When Ulbricht was checked against police databases, it turned out that the police had previously dealt with Ulbricht because of forged documents. When asked about the source of the documents, Ulbricht stated that he had purchased them on Silk Road.
In short, Dread Pirate Roberts was deanonymized, and the rest was a piece of cake.
The FBI considered simply storming Ulbricht’s home with special forces, but this was risky because the huge metal gate would allow Ulbricht to react quickly and remove all evidence.

They decided that a more cunning approach was needed, and they found one. Ulbricht left his house with his laptop, and his journey was tracked. He went to the library to use the public Wi-Fi there. Ulbricht was no fool and used encryption, so just taking his laptop wasn’t an option. However, encryption doesn’t help if you’ve already opened and, therefore, decrypted something.

A cunning cop, who at that time had an admin account on Silk Road, wrote to Ulbricht and provoked him into opening everything that was needed. Then, to be on the safe side, a couple of other agents pretended to start a fight in the library to distract the dealer from his laptop. Ulbricht fell for it, and before he knew it, one agent jumped out and grabbed the laptop, while another grabbed Ulbricht himself.

By that point, there was already ample evidence of his guilt. Another nail in Ulbricht’s coffin was that he promoted libertarian ideas from both his real accounts and under the guise of Dread Pirate Roberts. Most likely, he sincerely believed in the moral justification of his actions. Ulbricht once wrote on his LinkedIn page:

“I am creating an economic simulation to give people the opportunity to experience for themselves what it is like to live in a world without the systematic use of force.”

For my part, I would add that, in addition to drugs, another thing that was distributed in this “world without the systematic use of force” was child pornography.

Silk Road was succeeded by another darknet marketplace, AlphaBay. I won’t retell this story here, but I recommend reading about it yourself in your free time. AlphaBay was much larger than Silk Road, but its creator made much more serious mistakes. For example, for some time he put his personal email address in welcome messages to new AlphaBay members.

Let’s move on to the conclusions.

Ross Ulbricht made one seemingly minor mistake — long ago, he left several messages on a forum from an account linked to a non-anonymous email address, and that became the beginning of the end.

To achieve anonymity on the Internet, you must separate your virtual identity from your real one, as well as separate your virtual identities from each other if you have more than one. To do this, you need to be aware of a number of vulnerabilities, not only technical, but also social or socio-technical in nature.

1. Account details. This includes your email address, nickname, and password. For the first two, it’s obvious: don’t use the same email addresses and nicknames, because they make it easy to find you.

Passwords are also straightforward. First, when creating passwords, a huge number of people use their personal data, which, incidentally, also makes the password itself weak. Second, using the same password for multiple accounts carries dual risks. If one account’s password is leaked, the other accounts can be accessed immediately. Additionally, the leaked passwords can be compared, revealing that different accounts belong to the same person.

2. Money. It is clear what the problem is with banking services: anonymity and often even confidentiality are simply impossible there (we are not considering the competent use of front men, as this is currently available to very few people, and every homeless person already holds dozens of payment cards).

On the other hand, cryptocurrencies give many people a false sense of invulnerability. In fact, cryptocurrencies can only be independent of external regulators because they use a special technology that requires ALL transfer records to be stored at ALL network nodes. In a sense, the balance of any crypto wallet is not a balance in the usual sense, but a history of all transfers to and from it, and this history is publicly available to anyone who wants to see it. One might think: no big deal, you can’t tell who exactly is making the transfers anyway. Unfortunately, it is possible to find out.

If you use cryptocurrency, you most likely buy or sell it somewhere for fiat money. This is where you can be caught: most converters and stock exchanges operate within the legal framework. Moreover, according to our information from one law enforcement officer, converters and stock exchanges may periodically leak to the police everything they know about all their customers, even without specific requests for individual suspects.

It is possible that you are a more advanced user and use mixers, but this does not solve the problem either: a mixer can also leak your information, and I am convinced that there are even more honeypot mixers than normal ones. In any case, you have no way of making sure that a mixer is reliable.

But don’t be discouraged: it is possible to anonymize crypto, and in one of the following chapters, I will explain how to do it.

3. Social circle and field of activity/interests. If your virtual persona has common contacts with your real persona, then for obvious reasons this can also be a factor in de-anonymization. Of course, this is not a call to automatically break ties with all your friends who, for whatever reason, already know the details of your real identity. Just give some thought to how you will work going forward. Perhaps you know each other within your circle, but in the future you will be able to remain anonymous to everyone else and avoid creating new intersections between your real and virtual personas. And don't forget that it's not just personal data itself that needs to be protected, but also the fact that someone knows someone else's personal data.

When it comes to fields of activity and interests, the importance of such information is usually higher than it seems. Here's an example: let's imagine that in the fall of 2023, a certain perpetrator blurted out that he was a first-year university student. In 2023, 267,000 candidates applied for undergraduate programs at Ukrainian universities. This may seem like a lot, but in reality, it greatly narrows the search. Now let's assume that our offender mentioned his major, “Computer Science.” There were only 30,000 applications for this major that year (and this is a popular major in Ukraine; for unpopular majors such as chemistry and physics, the number would be significantly lower). Let's add that the offender mentioned living in Kyiv. There are not many higher education institutions in Kyiv, and here we can immediately exclude many universities that do not offer the specialty we need. Finally, if the perpetrator also mentioned his university, the investigator only has to go through a few hundred people, which is very few.

Note: in this example, we only used data about the field of activity and city of residence. If we add everything else to this, the pool of suspects can quickly narrow down to a single person. After all that has been said, I must reveal a secret: the above was not an imaginary case, but my real experience of deanonymization, even though I am just an ordinary guy from Podunk with no police resources or connections: only a console, a monitor, a mouse with a keyboard, and Internet access. I didn't even buy any restricted databases; I found everything from public sources.

By the way, I mentioned my hometown of Podunk on purpose. I lied—it's not my hometown. Remember that when you use a virtual persona, you can not only conceal your real personal information, but also replace it with misinformation. You need to do this carefully, not too intrusively, as if you let it slip. Let your ill-wishers think that you made a mistake and that they were lucky to notice it.

4. Language use — another point worth emphasizing, though often overlooked. Each of us exhibits a unique combination of features, such as overall literacy level, punctuation, use or avoidance of emojis, frequently repeated phrases, capitalization, and more.

None of these things are particularly significant on their own, but together they can be quite important. It is not a given that law enforcement specialists will conduct a linguistic analysis of your writing, nor is it a given that such an analysis will yield any useful information, but the possibility exists and is worth keeping in mind. Sometimes it makes sense to deliberately change your patterns. For example, if your grammar is flawless, your style is elegant, and you never use emojis, start writing with errors, awkward phrasing, and lots of emojis to create an impression of mild stupidity. Or maybe not so mild.

5. Voice. I don’t know about other countries, but in Ukraine, it would be difficult to identify a person by their voice, unless, of course, their voice is publicly known as the voice of Mr. So-and-so. Another thing is that after the criminal has been caught, the voice can serve as valuable evidence if incriminating records exist. Fortunately, we live in the age of neural networks, so you can suggest to your lawyer that the evidence be proven invalid, because now it is quite possible to vocalize any text in any voice, and it will sound natural.

Hypothetically, such a trick could work if your case is dealt with strictly within the legal framework (in Ukraine, that alone would be a stroke of luck), the other evidence is weak, and your lawyer is strong.

However, it is better not to let it come to that and not to test this idea on yourself. When you need to say something anonymously but publicly (for example, for a YouTube podcast), those same neural networks are very good at replacing the voice on the recording. You can even make yourself sound like Mr. Krabs or Geralt of Rivia.

Real-time voice modification is more challenging, as software tends to produce poor-quality output. Much depends on your individual characteristics: the same software might work well for one person but not for another. Experiment to find what works for you, preferably use a state-of-the-art AI voice changer. Unfortunately, I cannot share my experience here, as it has been a long time since I last used voice changers.

That’s all for now on confidentiality and anonymity. We will discuss specific types of attacks and methods of protection in more detail in the corresponding chapters, but for now, let’s transition to the last threat in this chapter with another story.

One autumn day, Sasha came back home from classes to his rented apartment on the first floor of a Khrushchev-era building. The young man crossed the doorstep, took off his Gucci sneakers, walked into the room with old, peeling wallpaper, and turned on his new gaming PC. In the lower right corner of the desktop, Sasha noticed that the Internet had disappeared.

When Sasha called his provider, they replied briefly: a technician would come today and fix the problem.

Half an hour later, the technician arrived and immediately made a positive impression on Sasha. While the specialist was busy with the problem, the young man went out onto the balcony: he didn’t want to stand over the nice man’s shoulder. The technician fixed everything, said that the Internet would be back soon, received his well-deserved payment, and took his leave.

An hour later, Sasha heard another knock on the door and saw another technician. The student recapped the recent events, and the second technician left, cursing under his breath, while Sasha returned to his room and continued chatting with his friends on Telegram.

You may have already guessed what really happened on that autumn day. Now I will tell the same story, but from the perspective of other characters.

Alexander Denisovich Petrenko had been under investigation by the authorities for some time. Young investigator Andreev felt that Alexander was not only an interesting person, but also someone who could help him advance his career. Andreev’s confidence grew when Petrenko, who had previously been poor, started boasting about expensive purchases on his social media. However, although the prosecutor shared the investigator’s suspicions, he said outright that there was not enough evidence yet.

Andreev came to the conclusion that since surveillance and wiretapping had not been very useful, and the investigating judge was not issuing any new orders, it was necessary to use tactical cunning. He didn’t have to think long — there were long-established methods for speeding up the case.

The investigator knew that Petrenko, for some reason, hardly ever missed classes — apparently, he didn’t want to upset his parents. Accordingly, he knew exactly when Petrenko would not be at home. At that very moment, field agent Ivasiuk dressed up as a simple working man, took a suitcase and approached the grannies sitting on a bench, who, after a short conversation, kindly unlocked the entrance for him. All that remained was to find the right internet cable and carefully cut it, which was no problem for Ivasiuk.
When Petrenko came home, he called his mobile provider. The moment could not be missed, and the technician Ivasiuk quickly came to the rescue. He was polite and friendly, creating the image of a reliable professional, thanks to which he hit the jackpot when Petrenko went out onto the balcony: now he had the opportunity to choose a good place to install the bug. After that, the technician told Petrenko that everything would be working soon and left the apartment. Ivasiuk kept his promise and repaired the cable.
They didn’t have to wait long for Petrenko to say something interesting: when he was at home, he conducted business via calls on a popular messaging app. A couple of weeks later, the investigation managed to locate the drug warehouse.

You can imagine what happened next, so I’ll end my story here.

“But the evidence was obtained illegally!” some might say, and they would be right. Anything obtained through illegal wiretapping cannot be used in court. However, such evidence can be used during the investigation, and for the trial, investigators can come up with a completely different, clean story. A simple and effective way to do this is to use well-trained “witnesses.”

So, the most dangerous threat is social engineering, i.e., high-level psychological manipulation aimed at getting the victim to blurt out or do something they shouldn’t.
Most people are vulnerable to social engineering. And the previous sentence was a test: if you just thought that you are not one of the majority, then you are very vulnerable. In fact, everyone is susceptible to social engineering attacks to some extent, and especially those who underestimate them.

Protecting yourself from social engineering is difficult because it requires more than just knowledge and skills: it also requires specific habits.

The fact is that people are trusting by nature and learn not to trust as they grow older. The ability to be reasonably distrustful may not develop until one’s hair turns gray. Why? Some people lack experience, others do not learn from their experience, and still others learn solely from their experience.

To all three categories, I recommend reading The Art of Deception by Kevin Mitnick, a well-known hacker. The book is good because it provides a large number of examples of social engineering, from which one can draw many valuable conclusions. Incidentally, Mitnick argued against the popular saying that a secure computer is one that’s turned off. He said that’s not true either because an ill-wisher could “talk someone into going into the office and turning that computer on”.

As you read this, keep in mind that there are plenty of cops out there who, while not necessarily intelligent, are cunning and highly skilled in social engineering, which is a very important professional skill.

So, what is reasonable distrust? In my view, at its core, it is essentially the same as reasonable trust. Reasonable trust and distrust mean that trust is not your default state, applied to everyone around you unless they give you reason not to trust them. On the contrary, here the whitelist principle applies: you do not trust anyone except those people whom you have consciously decided to trust, with a clear understanding of the reasons behind your decision. This doesn’t mean you see every stranger as an agent of the Sacred Brotherhood of Ukraine; it means you simply know how to clearly distinguish between friends and strangers and don’t grant the latter the same access or information as you do to friends.

The principle of reasonable distrust also applies to verifying the identity of the person you’re communicating with online: you shouldn’t assume they are who they claim to be until you have proof. For example, if someone messages you from an unfamiliar account using a friend’s username, ask them to record a voice message or say something that only you and your friend know. These are the simplest ways to verify the sender’s identity without deanonymization.

To conclude, I’ll say that the principle of reasonable distrust should be applied not only to people but also to software; that’s what we’ll cover in the next chapter.

Chapter 4. The basis: operating systems, virtualization, and what makes any router a security risk

It is very important that your space for revolutionary work be isolated from your space for everyday life. This approach will help significantly reduce several risks at once: malware, physical access, privacy breaches, and deanonymization. When creating an isolated space, it is best to dedicate a separate system for it.

Here we are faced with a multitude of possible configurations, depending on the answers to the questions: where and which system to install? Let’s start with where.

1. The most obvious solution is a separate computer. This is a very good option, as it immediately provides a high degree of isolation: we isolate not only the hard drives but the entire computers. The main drawback is that not everyone has a second computer or the money to buy one.

2. A work system running alongside the everyday system on a second partition of the same disk on the same machine.

Pros:
  • if you have free space on the disk, this solution costs nothing;
Cons:
  • you cannot quickly wipe the work system without wiping the main one.

3. An operating system on an external drive or on a second internal drive housed in an external enclosure. I recommend using the latter, since buying an internal drive and an enclosure is usually cheaper than buying an external drive, and the functionality is the same.
There are two main advantages here: it’s easy to transport and easy to destroy. Both are important for security.

This solution can be combined with the separate machine to get both good isolation and good destructibility of digital evidence.

You can also install the second system on a USB drive instead of a hard drive, but this isn’t suitable for continuous use due to significantly slower performance and the limited lifespan of USB drives.

4. Virtual machines. If you don’t want to split your drive into two partitions and don’t have a separate drive or computer, this is the only option left. At the same time, virtualization will be useful even for those who already use a separate machine, a second system on the same drive, or a separate drive.

We’ll return to the topic of virtual machines a bit later.

To summarize the above, it’s best to use either a separate internal drive in an external enclosure or that same thing on a separate machine.

A new external enclosure and a 128-gigabyte 2.5-inch internal drive together cost about $20, and used ones cost even less, so there’s no point in skimping.

Now let’s look at the second part of the question from the beginning of the chapter: which operating system should you choose? Here, we have three main options: macOS, Windows, and the Linux family.

Both macOS and Windows have drawbacks that make them unsuitable for creating a secure environment. The first is closed-source code. We can only guess what exactly is “under the hood”, and the only reason we trust these operating systems is because we’ve been told, “Trust me, bro”. Given what was said above about Apple and Microsoft’s attitude toward users’ personal data, we cannot be sure that there isn’t yet another dirty trick hidden in macOS and Windows (on the contrary, we can be sure that there are dirty tricks; see client-side scanning in macOS and Windows Recall in Windows 11).

The second significant drawback is weaker protection against malware compared to Linux, especially in Windows. Although corporations are indeed working to improve malware protection, and Windows Defender is quite good right now, a Linux PC user still has better protection.

Let’s move on to Linux itself. I advocate for it specifically, and there are several reasons for that.

The first reason is that it is free and open-source software, which, while not an absolute cure-all, makes it much harder to secretly embed malicious functionality and allows the community to modify the software however they want. In addition, open-source Linux distributions are free, so to install Linux, you don’t have to part with your hard-earned money, download a dubious pirated copy, or jump through hoops.

The second reason is its enhanced protection against malware. There is a common belief that Linux is more secure because Windows is so popular that all Trojans are designed for it, while hackers don’t care about Linux. This isn’t entirely true: malware on Linux does exist and is actively used. Although Linux isn’t exactly a hit with PC users, it’s actually the most common choice1 for servers—and servers are certainly of interest to hackers. That said, a PC user would really have to go out of their way to catch a virus on Linux.

Linux security is primarily ensured not by antivirus software, as on Windows, but by the kernel itself. Unlike Windows, access control is properly implemented in Linux. Each user has a home directory that is clearly separated from the system. When malware is launched, it can damage user files, but the system as a whole will remain unaffected, since any actions on the system require superuser access permissions. Unless you grant these permissions to the malicious program yourself, it will be powerless against your system. Furthermore, in Linux, programs are typically installed from verified official repositories, rather than by downloading dubious .exe files.

What’s so great about all this? The antivirus in Windows provides protection by scanning the system and detecting malware based on information already known to the antivirus developers. This raises three problems at once. First, antivirus developers aren’t know-it-alls and may overlook something—either due to insufficient intellectual, technical, and financial resources, or because certain vulnerabilities and related threats may be unknown to anyone except the attackers. Second, antivirus programs have constant, broad access to the system—after all, this is the only way they can protect it—but at the same time, this gives the antivirus itself the opportunity to be used to attack the user. Third, as a consequence of the first two problems, the antivirus user is forced to rely on the developers’ trustworthiness for their security. On the other hand, in Linux, protection against malware is built into the very design of the system and does not require the installation of additional programs.

All that remains to be added is that, in both Windows and Linux, the best protection against malware has always been and always will be the user’s own judgment. No program or operating system can help if you don’t practice digital hygiene.

Many people are reluctant to switch to Linux because they think it’s difficult—after all, you need to constantly use the command line to install and configure anything on Linux. In reality, this is an outdated stereotype that hasn’t been relevant for many years.
Linux is not a single system, but a family of operating systems based on a single kernel, and the complexity of using it depends on the distribution you choose. While Gentoo Linux does indeed require certain skills, our experience shows that Ubuntu and Linux Mint are manageable for any ordinary MacOS or Windows user. To let you see this for yourself, a beginner's guide to installing and getting started with Linux Mint is included at the end of this chapter.

In this guide, you’ll also learn how to enable disk encryption during the Linux Mint installation. This security measure is essential for enhancing protection against physical access. In fact, disk encryption is a must-have not only for underground revolutionaries but for everyone, because it protects sensitive data against theft in the event your device is stolen.

Unencrypted disks are like open books, and a user password won’t save them: it only works when booting from the disk itself, but doesn’t protect against disk access when booting from another device. You can check this for yourself: simply follow the instructions at the end of the chapter to create a Linux bootable USB stick, boot from it, and if your disk isn’t encrypted, you’ll gain access to all the data on it.

If your disk is encrypted and protected by a strong password, it will be impossible to access the data on the disk without the password—whether the disk is stolen by thieves or seized by the police. You’ll learn how to work with passwords in the next chapter. It’s a bit more complicated than it might seem at first glance, and our approach to secure password management will differ slightly from the conventional one.

An important part of the security system is the use of virtual machines, or VMs. A virtual machine is essentially a computer within a computer: using special software, you allocate a portion of your computing power to the VM, and then you see a window with a separate system, isolated from the main one.

For us, virtualization is useful primarily because it allows us to create an additional layer of protection against malware. If the virtual machine becomes infected, the main operating system will remain secure. There are, of course, ways to bypass the VM and access the main system, but in general, when used correctly, a VM significantly increases security.

There are also virtual machines designed to enhance online anonymity, which we will discuss in the chapter on VPNs and Tor.

You can use a VM if the first three options for setting up a secondary system described above don’t work for you—leaving you with no choice but to run a VM on top of your primary system—or if you’ve already used one of those three options and want to further enhance your security. If your computer’s resources allow it, you should create multiple VMs for different tasks. For example, I personally use one VM for work, another for crypto wallets, and a third for testing suspicious links and applications, and on my main system, nothing of interest happens other than running these three Vms.

We will create virtual machines using VirtualBox. It is a time-tested open-source program that is fairly easy to get the hang of. Another advantage of VirtualBox is that it allows us to create backups with ease, so that if any problems arise with the virtual machine, we can easily restore it to its previous state. Instructions for VirtualBox will also be provided at the end of the chapter.

Finally, what makes any router a security risk? In short, its very nature. It is the router that you use to send and receive data from the network. Consequently, whoever controls the router controls this data transmission. If that someone isn’t you, then they can intercept and alter the transmitted information—that is, carry out a “man-in-the-middle” attack. By controlling the router, it is possible to carry out several types of MITM attacks; I’ll describe one of them.

Remember what was written in Chapter 3? Phishing does not only occur when you click on a fake link that takes you to a fake website, but also when you click on a real link that takes you to a fake website.

After clicking the link, your computer doesn’t connect to the web server of the target website immediately; instead, it first sends a request to a domain name server (DNS). The DNS finds the IP address corresponding to that link, sends you a response, and it is only then that you connect to the web server with that IP address.

The problem is that you connect to the DNS in the same way as to any other server—that is, through a router, which provides access to the internet.

If an attacker has control over the router, they can send you a fake DNS response. For example, you type privatbank.ua into the address bar, send a request to the DNS server, the attacker sees this, and sends you a response stating that privatbank.ua has such-and-such an IP address. As a result, you don’t connect to the PrivatBank server but to the attacker’s server; you see a website in your browser that looks exactly like the real one, and you may end up handing over sensitive data to the attacker.

The most important thing here is that it is very difficult to detect such an attack. This is not phishing like a spam email where you are asked to visit privatbank.ua, and all it takes to spot the scam is a closer look. In the described MITM attack scenario, everything will look completely normal, and you are unlikely to notice anything, regardless of your expertise or attentiveness.

What security measures can be taken to protect against this and similar MITM attacks?

1. Take care of your home wireless network. Go to your router’s settings (usually by entering 192.168.0.1 or 192.168.1.1 in your browser’s address bar) and change the passwords for network users and the router administrator to new, strong passwords—and make sure you are the only one who knows the administrator password.

Make sure your router always has the latest firmware. If the firmware does not update automatically, update it manually. You can find instructions on the website of the manufacturer, such as TP-Link. Before performing a manual update, be sure to verify that your router’s hardware version (on TP-Link devices, this is printed on a sticker near the barcode) supports that particular firmware, as using the wrong firmware can brick your router.

Disable the WPS feature; it is highly vulnerable and currently offers little benefit.
Very important: DO NOT use hidden networks. It may seem that setting your home network to hidden increases privacy, but in reality, the opposite is true. The router stops sending broadcast messages, so the device itself starts sending them constantly in an attempt to connect to the hidden network using its name. You can easily see this using Wireshark; see the screenshot for an example.
Also, if possible, it’s best to avoid using Wi-Fi on your home network altogether and switch to the more secure Ethernet and mobile internet. To connect to mobile internet from your personal computer without using a Wi-Fi hotspot, you can purchase a 4G LTE USB adapter and disable tethering so that only the device connected via USB can access the mobile internet.
The option of using mobile internet via USB also offers a slight advantage in terms of anonymity, since if your real IP address is exposed, it will be harder to pinpoint your exact location than if you were using Wi-Fi. In countries like Ukraine, where you can buy SIM cards without giving your personal details, this is especially great.

2. Take precautions when using public wireless networks, or better yet—don’t use them at all and don’t skimp on mobile data, which is very cheap these days.

If you’re a penny-pincher or have other reasons for using public wireless networks, at least disable automatic connection to saved wireless networks and use a VPN to encrypt your network traffic.

Let’s move on to the instructions for Linux Mint and VirtualBox.

Getting started with Linux Mint

You can install Linux Mint on a hard drive or on a virtual machine, or you can even run virtual machines with Linux Mint on your main Linux Mint system—essentially creating a “Linux Mint times two”, which is also a good option.

The process for installing Linux Mint on a hard drive and on a VM differs slightly; in this guide, we’ll focus on installing it on a hard drive.

Note: If you’re a Mac user with an Apple Silicon processor, you’ll encounter issues with both hard drive and VM installations, so it’s best not to bother and just buy a regular PC.

0. This step is only for those installing Linux alongside another system on the same disk; everyone else should skip to step 1.

First, you need to allocate space for Linux Mint; 30–40 gigabytes will be sufficient for most users. If you have less free disk space, it’s better to buy a separate disk.

On Windows 10/11, press Win+X and go to Disk Management. Shrink the volume with free space by the number of megabytes you want to allocate for Linux Mint.
1. Go to the official Linux Mint website and download the ISO image of the system. I recommend choosing the Cinnamon Edition; in the latest version of Linux Mint, it looks better and runs more stably than the other options.

2. Grab an empty flash drive (but if you have a very old computer, a USB 3.0 drive might not work, so you’ll need a USB 2.0 one). Use Etcher, Rufus, or a similar program to write the image to it. It’s simple: select the image, choose the flash drive, and run the program.

Загрузочная флешка Linux Mint создана. Её, кстати, стоит сохранить и после установки Linux Mint на диск, чтобы в случае возникновения проблем с системой можно было загрузиться с флешки и решить их.

The Linux Mint bootable USB drive is ready. By the way, it’s worth keeping it even after installing Linux Mint on the hard disk, so that if any issues arise with the system, you can boot from the USB drive and resolve them.

3. Turn off the computer and turn it back on (or insert the USB drive into the computer designated for this task and turn it on). Press F2 or Del repeatedly to enter the UEFI/BIOS.

Find the menu that controls the boot order. Its location varies by firmware; sometimes it’s on the main page. Move your bootable USB drive to the top of the list. Save the changes, exit UEFI/BIOS, and boot the system.

Note: On newer computers, you may need to disable Secure Boot in UEFI.

4. After booting, click “Install Linux Mint” on the desktop.

5. Select a language, skip the internet connection and codec installation, and pause at the installation type selection. Here, it’s important to follow the instructions carefully.
Whether you’re installing Linux Mint on a separate machine, the free space on an old hard disk, a separate hard disk, or a virtual machine, select the last option, “Something else.”

6. Select the free disk space where you want to install Linux Mint, and click the plus sign. Create a 512-megabyte partition and set the mount point to /boot; leave the rest of the settings as they are.

If you’re wondering why we’re doing this: the files necessary for booting the operating system are installed in /boot. Often, /boot is a directory (folder) on the main partition /, but in this guide we’re creating a separate partition for /boot because the main partition / will be encrypted, and /boot must remain unencrypted.
7. Select the free space again and click the plus sign. Set its size to the remaining free space. Under “Use as,” select “physical volume for encryption” and set a very strong password—it’s crucial not to lose it (we’re encrypting the disk, and if you lose the password, you’ll lose access to the disk). If you wish, you can change the password after the system is installed by following the guide.
8. At the top, /dev/mapper/[partition name]_crypt will appear, and below it, the corresponding ext4 partition. Select the partition, set the mount point to /, and click OK.
9. At the bottom, there is “Device for boot”—select the disk where your system is being installed; in my case, this is /dev/sda.

10. Click Install Now.

11. Next, you’ll be asked to choose a username and password—you don’t necessarily need to set a strong password here; a weak one will do. Click Continue and wait for the system to install.

12. After installation, you’ll be asked to reboot; agree to this. During the reboot, remove the bootable USB drive and boot into your wonderful new operating system.
Note: Those using Linux alongside Windows 11 on the same machine should note that with BitLocker (Windows’ disk encryption technology) enabled, you cannot boot into Windows 11 from the GRUB bootloader; therefore, when you need to switch the boot system, you must change the bootloader in UEFI/BIOS.

13. Let’s get started with Linux Mint. We’re greeted by a welcome window featuring the “First Steps” tab. There’s a lot there, but for now we need the driver manager, multimedia codecs, and the update manager. Click on them and install everything that’s needed.

14. The great and terrible (not really) command line. In reality, for the average user, it is enough to know just a few commands, primarily for working with the apt and flatpak package managers.

How do they differ? The first is the native package manager for Debian-based systems, which installs programs in the root (system) directory, so you need superuser permissions to use apt. Flatpak, on the other hand, installs programs in the user folder and isolates them in sandboxes, which is better in terms of security.

For using the apt package manager:

sudo apt update && full-upgrade — to update everything;
sudo apt autoremove — to automatically remove unused packages; run this command from time to time;
sudo apt remove something — to remove a package;
sudo apt purge something — to completely remove something, including configuration files;
sudo apt install something — to install something.

For using the flatpak package manager:

flatpak install something;
flatpak update something;
flatpak uninstall something.

As the command names indicate, these are commands to install, update, and remove packages.

How can you tell what to enter in place of something? There are two options: either visit the official websites of the software developers and look for the commands to install the software on Linux, or, if you’re using flatpak, go to flathub.org, search for the software, click the arrow next to the Install button, and copy the command to the command line (to paste it into the terminal, press Shift + Ctrl + V).
In addition, you’ll sometimes use AppImage, but that’s even simpler: you download the entire application at once, without any actual installation, make the necessary file executable, and run it.

The main thing to remember is that as long as you download software only from trusted sources, the likelihood of catching a trojan on Linux will remain extremely low. Before downloading anything, double-check several times to make sure you’ve found the official repository. And never run commands with sudo (superuser permissions) unless you know exactly what those commands do. Follow these precautions, and you’ll be fine.

15. A guide to getting started with Linux wouldn’t be complete if I didn’t end it with the advice to google, google, and google again—and preferably in English, since that’s always more effective.

When something goes wrong in Linux, the system tells you exactly what it is. In the vast majority of cases, all you need to do is type what the system said into a search engine to find a solution to the problem within the first two or three, or at most five, results. Linux Mint also has a wonderful forum where you can find answers to a lot of questions without even asking them—just by reading existing discussions.

P. S. Don’t assume that disk encryption fully protects against a hacker’s physical access to the device—you’re encrypting the disk, but besides the disk, the computer contains a motherboard, RAM, and a processor, all of which can also be compromised. In light of this, first, set a password on the UEFI/BIOS, and second, make sure that no unauthorized persons touch the device (including when it’s turned off).

If the device breaks down and you have enough money, it’s better to buy new parts and replace the broken ones yourself than to go to a service center. The issue isn’t so much the omnipresent SBU and Mossad agents as it is simply dishonest people, of whom there are plenty at service centers.

If the device has broken down and you’re short on money, or for some reason you can’t replace the components yourself, then before taking it to a service center, disconnect the hard drive and leave it at home.

Getting started with VirtualBox


0. It is highly recommended that you encrypt not only the VM but also the disk containing the host system on which you are installing the virtual machine. On Windows 11, locate BitLocker in the settings and enable it. If you don’t have BitLocker, search online for instructions on how to encrypt Windows using VeraCrypt.

1. Here, we will also be installing Linux Mint. First, download the ISO image from the official website.

2. Go to the official VirtualBox website, install, and run the program.

3. Click New at the top and select the system image.

4. Configure the hardware resources as you see fit, but it’s recommended to allocate at least 4 gigabytes of RAM.

5. Allocate storage space for the virtual machine. If you plan to use the VM actively, allocate 30–40 gigabytes.

6. Start the VM; from here on, follow the previous instructions starting from step 4, except you’ll need to create a partition table and ignore a few warnings. On the other hand, since we’re installing the system on a VM, we have an easier option: in step 5 of that guide, instead of “Something else,” select “Erase disk and install Linux Mint,” then enable LVM and encryption in “Advanced features.”
7. Once you’re done with Linux Mint, you can install Guest Additions on the virtual machine to improve performance, run the VM in full-screen mode, and generally make working in the virtual machine more convenient. After starting the VM and entering your password, select the Devices menu at the top and click Connect Guest Additions Image, then Run.

8. Backing up a VM is easy: locate the folder containing the virtual machine and copy the folder. If the system is encrypted, you can store the backup in the cloud.
VirtualBox also has a very useful feature for creating snapshots (state captures) — make use of it.

9. To encrypt the guest system, you can use not only the system’s built-in features but also VirtualBox’s own features; to do this, you need to install the Extension Pack. This isn’t necessary for Linux Mint, but it may come in handy for other operating systems.

10. Optional: if the virtual machine lacks sufficient dedicated RAM (which may cause it to freeze), create a swap file for it. Sometimes the host OS runs out of RAM while using the VM, in which case this file will be needed there as well.

Chapter 5. Passwords: Leaving the Statistical Majority Behind

The reason we’re leaving the statistical majority behind is that this majority handles their passwords wrong.

What requirements must a password meet to be considered secure? There are several basic ones:

1. A password must be long. It is often recommended to use at least 8 characters, but in my opinion—and I am far from alone in this view—this requirement is outdated, and nowadays a secure password should be 15–20 characters or more.

2. A password should not be based on any personal information.

3. A password must be unique. The term “unique” has two meanings here: first, you should never use the same password anywhere else, and second, no one else should use the same password anywhere else. The reason for the first requirement was already explained in Chapter 3, and the second is necessary to protect against brute-force attacks (hacking by trial and error). Brute-force attacks use dictionaries containing a huge number of the most popular passwords. If your password can be found in such a dictionary, you must change it immediately.

4. A password must contain mixed-case letters, numbers, and special characters.

Example of a bad password: hitler (this password ranks quite high at number 2,602 on the list of most popular passwords, between heather1 and, surprisingly, israel).

Example of a good password: [4)cn$c>*?]2$c2n-2kB. It’s best not to come up with these yourself, but to generate them using special software.

It’s not enough to create strong passwords; you also need to learn how to store them securely.

The worst option is a plain text document in cloud storage—it’s hard to even call that “storing”. A text document on an offline device is better, but it’s still very vulnerable.
I don’t recommend using pieces of paper either, because anyone can take them and read them, and the entire security relies solely on your confidence that outsiders cannot access your notes.
Using a password manager can be either a great idea or a terrible one—it all depends on the manager.

It’s a bad idea if the password manager is online and encryption takes place on someone else’s server rather than on your device: in that case, your passwords will definitely not be yours alone.

It’s very good if you use a time-tested, open-source offline password manager. From my own experience, I recommend KeePassXC for PC and KeePassDX for Android. They’re simple, convenient, and functional, and they’re configured by default to generate very strong passwords.

At the same time, you can still enjoy the benefits of cloud technology, since these password managers create encrypted database files, and even if cloud administrators really wanted to read the contents, they wouldn’t be able to do so without the passwords to the files themselves.

That said, you need a place to store the passwords from password databases and from devices where you have password managers installed, and since there’s malware that specifically targets password managers, they don’t fully solve the problem on their own.
You can also store passwords in your head. Obviously, this isn’t the best option for most passwords, since no one can remember many truly strong passwords.

Sometimes it is said that the few most important passwords should be kept in your head, and the rest in a manager. There is some truth to this, but only some: people don’t take into account that there are methods for extracting passwords from human memory.
As we can see, every approach has its drawbacks, but you can mitigate them by using not just one, but a combination of several methods.

First, most passwords really should be stored in password managers, preferably in KeePassXC or KeePassDX.

Second, to enhance security, passwords stored in a manager can be split into two parts: the main part, which is saved in the manager, and the remaining part, which is not saved anywhere but in your memory.

Third, it makes sense to back up your databases on USB drives and/or in a cloud. If there is a risk of losing your backups when storing them on your own devices, you can give trusted comrades the USB drive and/or cloud access. Keep in mind that flash drives don’t have the longest lifespan, so if you need long-term storage, use hard drives.

Fourth, and this is the most important point for those who want to achieve truly strong password security under extreme conditions like those in Ukraine: you MUST NOT memorize your full passwords, including those for encrypted drives, encrypted virtual machines, and password databases.

So where should you store passwords that aren’t kept in password managers? We’ve already established that paper is out of the question, as is memorization, but we can combine the two. Write down on paper the first part of the password—a very long, completely random, and impossibly complex string—and commit the second part, which is shorter but equally complex and random, firmly to memory. If someone steals the notes, they won’t gain the desired access. At the same time, in a critical situation, you’ll simply need to eat the piece of paper so that the password is lost to the enemy forever. You can, of course, leave a backup copy of the notes with trusted comrades.

In addition to passwords, this chapter will cover two-factor authentication and usernames.
Usernames should not be overlooked, as they serve as a security measure. The point here is not only anonymity, but also that the username itself acts as a sort of additional password. To achieve this, usernames and email addresses should be impersonal and unique across different services; ideally, you should use the same random generation from KeePassXC.

Two-factor authentication is a double-edged sword: it can both strengthen security and, in some cases, harm the user—especially their anonymity—so choose your two-factor authentication method wisely.

SMS is the worst option, since intercepting SMS messages isn’t particularly difficult these days. Plus, SMS messages aren’t anonymous.

Email: if you use a dedicated email account—one set up specifically for registrations and two-factor authentication—rather than your primary one, that’s much better. However, keep in mind that email service administrators can access the codes if they choose to.
Time-based one-time password (TOTP) — a good option: when logging in, you must enter a one-time code that is generated based on the current time and changes every few seconds. Google Authenticator, for example, works on this principle, but it is preferable to use KeePassXC or KeePassDX. The main advantage of TOTP is that it preserves anonymity when using a suitable authenticator, since it requires no network interaction, only the exact time. This, however, is also the problem with TOTP: access can be lost if the time on the server and in the authenticator become out of sync.

Note: It’s best if your two-factor authentication email or authentication app isn’t on the same device you use to log in to the linked services. In other words, don’t put all your eggs in one basket.

A list of backup one-time codes is very secure if you write the codes down on paper or store them in a password database on a USB drive.

A key file is also very secure, but rarely used. It offers anonymity, stability, and the ability to disguise the key file as something else. The main thing is not to lose it, so be sure to make a backup. Before backing up the file, you must encrypt it, and this naturally brings us to the next chapter.

Chapter 6. Encrypted Containers and Data Deletion: How to Securely Store and Destroy Your Secrets

Криптоконтейнеры

An encrypted container is a virtual encrypted disk, sort of like a password-protected folder. Modern software for creating encrypted containers, when used properly, allows you to protect confidential files well enough to prevent Ukrainian cybersecurity police from accessing them. Police in Ukraine definitely cannot bypass VeraCrypt’s security without the password.
ome readers followed the recommendations from Chapter 4 and encrypted their entire drives (ideally, the drives being external) while others, for various reasons, did not. Encrypted containers will be most relevant for the latter group, but it is very important for the former to familiarize themselves with the topic as well, since encrypted containers allow you to store files in the cloud or send them via messengers without fear of confidential information leaks. Remember that storing or sending anything online in unencrypted form means giving third parties access to your data, so get into the habit of placing confidential files in crypto containers before uploading them anywhere.
The general principle here is the same as with disk encryption: when you start up and enter your password, the data is decrypted; when you shut down, it is encrypted. As long as the disk or encrypted container remains in an encrypted state and is protected by a secure password, it is virtually impossible to access the stored data.
Of course, a mounted (open, decrypted) container, just like a decrypted disk, offers no protection against malware—just as an open front door does not prevent someone from entering a room full of money. An encrypted container is primarily a safeguard against physical access, effective only when the container is closed. To protect valuable data from malware, in addition to encryption tools, be sure to use virtual machines to create isolated workspaces.
Let’s get started with encrypted containers. In this guide, we’ll be looking at VeraCrypt—a solution proven by auditors and time.
First, go to the official website and download the installer for your operating system. Linux users can choose between a version with a graphical user interface (GUI) and one without (console); for convenience, download the GUI version.

I won’t go into detail about the installation; it’s intuitive. You’ll need to make just a few changes to the VeraCrypt settings: Settings → Preferences → Password Cache → Enable Wipe cached passwords on exit.

Now we can create our first encrypted container—luckily, the interface here is quite user-friendly.

Click “Create Volume,” then “Create an encrypted file container,” select “Standard VeraCrypt volume,” and choose the volume location.

Note: If you want to make it harder for intruders to find the container, save it among a bunch of obscure files of some application and name it so that it doesn’t stand out. An alternative option is to disguise the encrypted container for work as a personal one: for example, name it “BDSM with my ex,” and let the cops prove that the investigation genuinely needs this information. In either case, enable the “Never save history” option in the main VeraCrypt window. It also makes sense to set up a decoy container with a name like “Important” and place it somewhere easy to find. When using decoys, it’s worth putting in a little extra effort to make them convincing, but we’ll talk about that in the section on false-bottom containers.

Encryption options: For greater cryptographic strength at the cost of a slight performance loss, select cascaded encryption using a combination of two or three different algorithms—that is, one layer of encryption using one algorithm is applied on top of another layer using a different algorithm, much like a matryoshka doll (see screenshot).
After configuring encryption, set the volume size.

Next, you need to create a strong password for the crypto container, and at this stage, you can also create a keyfile for additional authentication: Keyfiles → Generate Random Keyfile → Leave the settings as they are, move the mouse randomly in the window, enter the keyfile name → Generate and Save Keyfile → Store the file in a secure location(s) and do not lose it, because without it, you won’t be able to open the encrypted container later.
In the previous window, select the key file you created and proceed. Keep the default file system. During the volume formatting stage, move the mouse randomly again and click Format.

After creating the container, try to open it. To do this, click Select File, choose the file, select any slot, and then click Mount. Enter the password and select the key file. Done! The encrypted container will now appear in the system as a drive, and you can work within it. It is very important never to forget to unmount the encrypted container immediately after you finish working in it.

That covers standard encrypted containers, but there’s more to VeraCrypt: we need to say a few words about features such as disk encryption, Windows encryption, and false-bottom containers.

Encrypting partitions or disks without an operating system primarily refers to encrypting external storage devices, such as external hard drives and USB flash drives. It is recommended to encrypt all external storage devices that may contain important information, even if they already have manufacturer-provided encryption. The procedure is roughly the same as when creating encrypted containers. The only difference is that cascading encryption on external storage devices can significantly impact performance, so choose just AES, Serpent, Twofish, or Camellia.

Encrypting Windows using VeraCrypt is relevant for those who do not want to or cannot use BitLocker. Instructions for your version of Windows can be found online.

False-bottom encrypted containers are a useful feature for protecting against forced password disclosure. The idea is that you actually create two encrypted containers—an outer one and a hidden one—with the latter nested inside the former. Consequently, there are two passwords, each of which opens a different container when entered.

When working with false-bottom encrypted containers, it’s important to follow a few rules to ensure the false container works properly.

First, size. If a 5 GB encrypted container holds files totaling 5 MB, this will immediately raise suspicion. It’s better to thoroughly fill the outer container with all sorts of junk and leave only the minimum necessary space for the hidden one. Keep this in mind from the very beginning, and don’t ignore VeraCrypt’s warnings: after creating the two containers, don’t fill the outer one with new files so as not to damage the hidden one.

Second, the contents. The outer container should hold something you’re willing to reveal to intruders, but not so much that there’s no point in hiding it at all—otherwise, they’ll quickly suspect there’s a hidden compartment. The same applies to the idea of a decoy container on the desktop mentioned above. What can you use to fill the fake container? Here, I’ll take the liberty of recalling a friend of mine who had a folder with the mysterious name DO NOT OPEN (if you want to stay sane). There was nothing compromising in that folder, but it really was better not to open it, because it contained two photos from a wild drinking party: in the first, a friend of his was sleeping while sitting naked on a rural outhouse pit, and in the second, he woke up sitting on a sink, but, so to speak, didn’t realize upon waking that his location had changed. Anyway, if you still haven’t had enough interesting life situations and corresponding material for the external container, I’ve already provided you with an idea.

Third, the names of documents opened in the text editor’s history, the titles of videos watched in the media player’s history, and image thumbnails. Keep in mind that these items are stored outside the crypto-container, and they can really blow your cover—there have been cases where this has happened. To protect yourself from this threat, you need, first, to give documents and videos non-descriptive names, and second, to periodically delete the history of used files and image thumbnails—and not just the regular way, but using a special tool, which we’ll explore now.

Data Deletion

Note: This section discusses the secure deletion of data—not to be confused with emergency deletion. The procedure described here should be performed periodically during normal system operation; actions to take in emergency situations are covered in Section IV of the book.

When we delete files from the Recycle Bin, they do not vanish from disk space. The space occupied by the deleted file is marked by the file system as available for writing, and the computer perceives it as free; however, in reality, the data will remain on the disk until the space it occupies is overwritten with new data. This makes the deleted files very likely to be recovered using special software, and much of the data can be recovered without special skills or tedious procedures.

Fortunately, there are also programs designed to permanently destroy data by overwriting the disk space occupied by the deleted data. There are many options, but let’s look at BleachBit, as this software is completely free, open-source, easy to use, and runs on Windows and Linux.

Let’s take a quick look at some of the useful features of BleachBit running on Linux.

1) The menu in the top-left corner. “Shred Files and Folders” is self-explanatory; use this for individual files and directories. Wipe Free Space — in this menu, this feature allows you to overwrite free space in a specific directory, which is useful if you don’t need to do this across the entire disk at once. Make Chaff — generates a bunch of files with meaningless text that can be created and deleted without shredding, to complicate forensic analysis. You can leave the settings at their defaults.
2) Main section, first screenshot. On Linux, to free up space, it’s helpful to run a cleanup at least once a month using the autoremove1 option in the APT tab. You don’t need to clear the browser cache and cookies in BleachBit if you follow the advice in the next chapter and install a private browser. It’s worth clearing the bash log if it contains valuable information (e.g., SSH connections to conspiratorial servers, usernames and passwords, network diagnostics for specific resources).

1You can learn how autoclean and clean differ from autoremove here: https://askubuntu.com/questions/3167/what-is-difference-between-the-options-autoclean-autoremove-and-clean
3) Main section, second screenshot. You should clear old journald system logs from time to time, unless, of course, you plan to dig through them for troubleshooting: they contain a wealth of information useful to forensic investigators. It is very important to clear the log of office programs usage to maintain the secrecy of encrypted containers; the same applies to thumbnails and the list of recently used documents. In the System section, the most important option is Free Disk Space, which overwrites all free space on the drive. If you’re using an SSD, be sure to use this feature no more than once a week to avoid shortening the drive’s lifespan.
Note: Theoretically, there is a chance that data on an HDD could be recovered using specialized equipment based on magnetic traces even after it has been deleted by BleachBit, but in practice, I have never encountered such cases. Nevertheless, if you ever decide to permanently dispose of a drive, do not hesitate to physically destroy it to be on the safe side.

Chapter 7. Going Online: Proxies, VPNs, Tor, and Why They Might Not Help You

What is the Global Network?

Before you start thinking about covering your tracks on the Internet, it’s worth having an idea of how the Internet actually works. Unfortunately, even Generation Z—who have been using computers daily since childhood—often struggles with this.

If you’re already familiar with the topic, feel free to skip to the next part of this chapter. If you’d like to brush up on your knowledge and have enough time, I recommend taking the free course linked below. If you’re short on time, I suggest reading the short Wikipedia article. Below, I will try to provide a simplified, schematic overview at the minimum level necessary for further exploration of network security.

A word of warning: if you are completely unfamiliar with computer networks, much of what you are about to read will be unclear. That’s okay. Computer networks are a complex subject, so you can only truly grasp them after a thorough study of the entire topic—which you don’t need to do. As you read my attempts to explain networks in simple terms, don’t be alarmed if something isn’t clear—just keep reading. The most important thing for the average user is to have a general understanding of the types of attacks and to apply the anonymization techniques described in this chapter.

For simplicity, let’s examine the network architecture and transmission of data in it based on the OSI model. The model consists of seven layers: physical, data link, network, transport, session, presentation, and application. Each layer is responsible for its own set of functions. The layers are organized hierarchically, with the application layer at the top of the hierarchy. We will, however, start from the bottom and work our way up, as this will make things clearer.

Imagine that after a hard day at work, you come home, turn on your laptop, open a browser, and go to the website www.youtube.com. What is happening at each level with the computer hardware and software at this moment?

1. The foundation of data transmission in networks is the sending of physical signals (a stream of zeros and ones) via electrical and fiber-optic cables, as well as via radio communication. Description of the physical medium of data transmission—pardon the tautology—is the domain of the physical layer.

2. But it is not enough to simply run a physical transmission line from device A to device B: we also need to figure out exactly how the connected devices will exchange data and understand each other, which is why there is Ethernet technology for cables and Wi-Fi technology for radio communication. Data transmission within a single network segment is described by the data link layer.

So, you’ve turned on your laptop. Your laptop isn’t connected to the Internet directly: first, it connects to the router that keeps your local Wi-Fi network running; the router itself doesn’t connect to the Internet on its own either: via an Ethernet cable, the router is connected to the Internet service provider’s networking equipment, which provides access to the global network, but let’s get back to the network layer. In addition to the laptop, other devices like a phone and a tablet can also connect to this same router. How does the router know exactly what it is communicating with?

In both Wi-Fi and Ethernet, communication between user devices and the Wi-Fi router or Ethernet switch relies on MAC addresses—unique identifiers for network devices found on PCs and phones as well as on routers and switches. MAC addresses are initially assigned by manufacturers but can be changed using software tools. For example, the feature to change a MAC address for privacy reasons can be found in the settings of most modern phones, and on Linux there is the macchanger utility.

Typically, a user’s MAC address remains within the local network and is not visible to the Internet. In the event of a leak, knowing the MAC address alone does not allow for the identification of an individual, but it can be a useful piece of information in this task. With the MAC address of a suspect’s laptop, cops can monitor whether they connect to public Wi-Fi networks using that laptop. Additionally, using the MAC address and other unique hardware identifiers, it is possible to attempt to determine where the laptop was purchased, provided that the retailer maintains records of the devices it sells.

3. So, what exactly is the Internet? “Internet” literally means “interconnected networks”. In apartments, homes, and businesses, there are a vast number of different computers connected to a vast number of different local Wi-Fi and Ethernet networks. These computers, and consequently their local networks, need to interact with one another somehow. The question arises: how can this be done?

To enable communication between a large number of networks, as happens on the global net, it’s not enough to simply connect them with a bunch of cables and use data-link technologies, since the latter aren’t designed for such a task. To solve the problem of inter-network communication, the network layer was invented.

You opened your browser and typed www.youtube.com into the address bar. Action will already be taking place at higher layers here, but we’ll set that aside for now. Obviously, the YouTube server isn’t connected to your router, so now we need to figure out how to reach that distant server on a distant network.

When traffic leaves your local network, it is routed to your ISP’s network equipment, specifically the router. A router, as the name suggests, is responsible for finding the correct route in the global network to the local network where the target device is located—in this example, the YouTube server. Before reaching the server, the traffic will pass through a chain of several routers, which can be shorter or longer.
How does a router know how and where exactly to route traffic across the entire Internet? Several technologies are used for this purpose, but the most important one is the IP (Internet Protocol).

There are two versions of the IP protocol: IPv4 and IPv6. Both versions use IP addresses to identify the senders and recipients of packets: shorter ones in IPv4 and longer ones in IPv6. One part of the IP address contains the network address, and the other part contains the server or host address (the device that connects to the server).

It is important to note that IP addresses can be internal or external. Internal IP addresses are used for addressing within a local network, while external ones are used on the Internet. When you connect to the Internet, it is your external IP address that is used, and when your router communicates with you, it uses your internal IP address and MAC address.

Information about an IP address can assist investigators to varying degrees depending on a number of factors, one of which is whether the IP address is a home or mobile address. Criminals prefer to use mobile internet, as a leak of a home IP address often—though not always—leads to rapid deanonymization.

By design, an external IP address is supposed to be a unique identifier for a device on the global network, but due to the short length of IPv4 addresses, there are only slightly more than four billion possible IPv4 addresses, most of which are already taken. This shortage is compensated for by NAT technology at the next level.

4. You have connected to the YouTube server’s network adapter, but this is still not enough: in addition to the browser on your computer and the server application on the server, other programs may be running simultaneously, and there will always be a large number of processes associated with the operating system. This raises the issue of interaction between different processes on different devices, which is resolved by the transport layer.

Ports numbered from 0 to 65535 are used to address data exchange between processes. The main transport layer protocols are TCP (with guaranteed message delivery and connection establishment) and UDP (without guaranteed delivery or connection establishment, but faster than TCP).

When we talk about anonymity on the network, the technology we are interested in at the transport layer is NAT (Network Address Translation), which allows multiple devices to use the same external IPv4 address simultaneously through a combination of external ports, internal ports, and internal IP addresses.

NAT was created to address the shortage of IPv4 addresses, but as a side effect, it provides a slight increase in anonymity. NAT is always used by mobile carriers for mobile internet and is not always—but often—used by internet service providers for home internet.

At the transport layer, there are also security features for data transmission—TLS/SSL (Transport Layer Security/Secure Sockets Layer). These protocols ensure confidentiality, integrity, and authentication. Fortunately, TLS is now used almost everywhere, and most traffic on the modern Internet is transmitted in encrypted form using TLS.

5. As the name implies, the session layer is responsible for maintaining a communication session during prolonged interaction between devices.

6. The presentation layer deals with how data is converted from one format to another. For example, converting unencrypted information into encrypted form and back again falls under the tasks of the presentation layer.

In practice, the functions of the session layer and the presentation layer are performed by protocols at other layers, so we won’t dwell on them here.

7. Now, after going through all these stages, we need to figure out how to establish the user’s interaction with the YouTube server via a browser—that is, how, on the one hand, to load a style sheet, display text, and play a video, and how, on the other hand, to enable the user to press pause, leave comments, navigate to other pages, and so on. The task of user interaction with the network via network applications (browsers, messengers, email clients) is handled by the application layer.

This layer is the most diverse: there are many protocols, they perform different functions, and differ significantly from one another. Here, we will focus only on HTTP, HTTPS, and DNS.

HTTP (Hypertext Transfer Protocol) is the foundation of the World Wide Web. Originally, HTTP was developed for transferring hypertext documents, but it now serves a universal purpose. It is thanks to the HTTP protocol that you see on websites everything that web servers send to you. Classic HTTP does not provide security, meaning data is transmitted in unencrypted text.

HTTPS (Hypertext Transfer Protocol Secure) is a variant of HTTP that operates over the secure TLS/SSL protocols. If you visit a website using HTTPS, a padlock icon or https:// will appear before the website address in your browser. It is strongly recommended that you avoid using websites that do not support HTTPS.

DNS (Domain Name System) is responsible for converting a domain name (e.g., www.youtube.com) into an IP address (e.g., 172.217.169.174); in other words, you use DNS every time you enter a domain name into the address bar. Information about which domain names correspond to specific IP addresses is not stored on user devices, but on numerous DNS servers.

When you try to connect to a website, your computer sends a request to a server called a DNS resolver. This DNS resolver, in turn, queries a multi-level domain name tree infrastructure (see image), where each server is responsible for a specific zone at a specific level. After the DNS resolver receives the necessary responses from the tree, it sends you the IP address corresponding to the domain name you’re trying to connect to.
Users can obtain DNS resolver services either from their ISP or from public servers. In the first case, the ISP can see the domain names of the websites the user visits; in the second, it sees only the IP addresses without the domain names.

By default, DNS requests and responses are not encrypted, which creates an opening for a variety of dangerous attacks. This problem can be solved by configuring DNS over HTTPS in your browser or operating system, or by using VPN and Tor technologies, which we will now discuss.

Technologies for hiding your IP address: proxies, VPNs, Tor

A proxy is an intermediary node in your connection that acts as a middleman: your requests are first sent to the proxy server, and only afterwards to the web server or application server. Responses, in turn, are first sent to the proxy server, and from there to you.

Proxies have a wide range of features, but in practice, most users need them to bypass censorship and ensure anonymity. By default, proxies do not provide traffic encryption.
VPN (Virtual Private Network) is a security tool that can be used to hide your IP address. Typically, when using a VPN, traffic is additionally encrypted (even if it is already encrypted, for example, via HTTPS). Just like a proxy, a VPN has many uses, the most important of which for the average user are anonymization, bypassing censorship, and protecting traffic on an unsecured network. The last feature is often unfairly overlooked: a VPN allows you to hide from your local network administrator which websites you visit and what you do on them. Never use public Wi-Fi networks without a VPN.

Tor (The Onion Router) is an anonymous network that provides encryption and “onion” routing. How does Tor work? The connection passes through a chain of servers connected in sequence (one after another, like layers of an onion), which are called nodes.

By default, the Tor network uses three nodes: guard → middle → exit. As a result, on the one hand, only the guard node knows the user’s IP address, while the web server or application server sees only the exit node’s IP address; on the other hand, the entry and exit nodes themselves do not know each other’s IP addresses, only the IP address of the relay node. To further enhance user anonymity, the Tor circuit automatically changes to a new one every 10 minutes.

Nodes are set up and maintained by volunteers independently of one another: any user without professional skills can run their own node on the Tor network using their personal computer.

All Tor nodes are publicly known, and this presents two major problems:

1. As part of their anti-fraud efforts, many companies (such as Google and Meta) block connections from Tor nodes, and there is no way around this unless you combine a Tor connection with a VPN, which we will discuss later.
2. In some countries (China, Belarus, Turkmenistan), connections to Tor nodes are blocked by internet service providers. To bypass these blocks, bridges are used—they are almost the same as nodes, but unlike nodes, bridges are not public and are issued to users in limited numbers.

How does encryption work in Tor? At this point in writing the book, I was overcome by a wave of overwhelming laziness, so I’ll just quote Jordan Wright:

Now that we know how connections are routed through relays, how do we know we can actually trust relays? How can we be sure relays won’t track who we’re connecting to and sniff the data we send across the wire? The short answer is, we don’t have to!
Tor is designed to put as little trust in relays as possible. It does this through the use of encryption.

So what’s the deal with all the references to onions? To answer this question, let’s take a high-level look at how the encryption works when a client makes a connection through the Tor network. The client encrypts the original data in such a way that only the exit relay can decrypt it.

2 This encrypted data is then encrypted again in such a way that only the middle relay can decrypt it.

3 Finally, this encrypted data is encrypted once more in such a way that only the guard relay can decrypt it.

This means that we have wrapped our original data in layers of encryption, much like an onion is wrapped in layers of…well, more onion, I guess.
The most common ways to connect to Tor on a PC are using the Tor Browser1 or the anonymous operating systems Tails and Whonix.

Now that we’ve covered ways to hide your real IP address, it’s time to discuss how it can be revealed when using proxies, VPNs, and Tor.

Ways to determine a user’s real IP address via proxies, VPNs, and Tor

1. Unstable connection (proxy and VPN)

Sometimes, the VPN connection may be interrupted for a second due to a loss of internet connection or software glitches, which can expose your real IP address to the web server on one hand and your real traffic to your internet service provider on the other. To avoid this, you can use VPN services with a kill switch (a feature that prevents the system from connecting to the Internet bypassing the VPN) or configure a kill switch on your operating system yourself2.

2. Official request from authorities (proxy and VPN)

VPN providers often assure customers that they do not keep logs, and therefore could not turn you in even if they wanted to. There is always some degree of marketing deception in these claims: if it’s on the higher end, logs are kept and requests are complied with; if it’s on the lower end, there’s no outright lie and everything is truly log-free, but the providers are leaving out important details, and users without sufficient technical knowledge don’t see the full picture.

The fact is that, as a rule, VPN providers do not own their own servers but rent them from hosting providers, so even when the VPN service itself isn’t tracking you, the hosting provider can still do so. Moreover, it’s not a given that the hosting provider itself fully owns the servers: the chain of renters can be very, very long. To top it off, all these entities are also dependent on their own internet service providers. Thus, there are numerous entities to which “law enforcement” can submit official requests. Of course, it’s not a given that requests—especially if they’re sent from one country to another—will be automatically satisfied, but still, don’t forget that there are always plenty of entities capable of turning you in if they want to.

What should you do? It goes without saying that you should never use VPN servers or VPN providers located in your own country. On the contrary, a relatively reliable option is to take full advantage of the increasingly tense international situation and use a VPN from “unfriendly countries.” Additionally, you can use combinations like Whonix+VPN or VPN+Tor+VPN, which will be covered in the part For Advanced Users.

3. Multi-hop connections (proxy and VPN)

There are two ways to use a VPN: single-hop and multi-hop. A single-hop VPN is the most common type: the connection follows the path user → VPN server → Internet. Multi-hop VPNs come in several variations, the most popular of which is double VPN: user → VPN1 → VPN2 → Internet. Why would you need to connect to the Internet via a chain of two or more VPN servers if, seemingly, a single one is enough to hide your IP?

Let’s imagine a scenario: a troublemaker named Andrei uses a single VPN for some not-entirely-legal activities. Using this VPN, he logs into a certain forum that cooperates with the cops. The cops ask the forum admins what IP address Andrei is using, and they get an answer. Seeing the Dutch address, the cops immediately realize that Andrei is hardly eating weed muffins in Amsterdam right now. With the IP address in hand, the cops go through some tedious paperwork and then contact their country’s internet service providers, asking if any of their customers connected to a specific VPN server at a specific time. From that point on, since Andrei didn’t use a multi-hop VPN, his deanonymization and subsequent arrest are just a matter of time.

The free VPNs I’m familiar with are always single-hop, so if you really need enhanced anonymity, don’t skimp on a couple of dollars a month for a multi-hop VPN. The attack described above is technically very simple, and it is used all the time.

4. IP Leaks (proxy and VPN)

Be it due to user error or issues with VPN services, a user’s real IP address may be hidden only partially. What types of IP leaks may occur?

An IPv6 leak occurs when a VPN provider does not support IPv6 traffic routing and does not disable IPv6 for you: in this case, you will access websites using your real IPv6 address assigned by your ISP. To prevent IPv6 leaks, you can disable IPv6 on your device3.

A WebRTC leak is related to the corresponding technology for voice calls, which tends to bypass VPNs. To prevent this from happening, it is recommended to use private browsers, which are discussed in the subsection Deanonymization techniques that bypass IP-hiding technologies.

A DNS leak occurs when a VPN user connects to their home ISP’s DNS server. This issue can be resolved by using a proper VPN service or by manually configuring a connection to an open DNS resolver in your system4 or in a private browser—the latter option is easier for beginners.

If you use a VPN, it is essential to check for IP leaks. You can do this using browserleaks.5

5. Heuristic methods, timing attacks (proxy, VPN and Tor)

These attacks consist in collecting large amounts of data on both anonymous and non-anonymous traffic, analyzing it, and searching for correlations based on traffic volume, number of packets, sending time, and other data. According to probability theory and combinatorics, the longer heuristic methods are applied, the higher the chance of successfully detecting the target.

Timing attacks are a type of heuristic method. Example: Andrei the troublemaker started using the Tor Browser to visit a forum in the onion6 zone. From time to time, Andrei posted messages on the forum, with the time of posting indicated. At first, Andrei posted ten messages: one at 5:30 PM on Monday, another at 5:33 PM on the same day, a third at 10:11 AM on Tuesday, and so on; the cops collected all this data. It’s too early to try heuristics yet, so the cops waited. A month passed, and a hundred messages from Andrei had accumulated on the forum. Another three months went by, and there were now a thousand messages. All this time, the patient cops monitored Andrei’s activity on the forum and recorded the timestamps of his messages. If they manage to complete all the necessary paperwork,7 the cops can contact their country’s internet service providers and ask who was connected to the Tor network during all the specified time periods. Since there are quite a few of these periods, there are very few people—or perhaps just one person—who would have been connected to the Tor network during all of them.
In Andrei’s defense, it must be said that heuristics applied by observers with extensive resources are, to put it mildly, a very unpleasant thing that is difficult to combat. Nevertheless, you can reduce the risks by following the recommendations below:

1. Remember that in terms of anonymity, mobile internet is better than home internet thanks to NAT, the automatic change of mobile IP addresses, and the ability to purchase SIM cards without ID in many countries.
2. Reduce or completely stop messaging in open group chats on messaging apps and on popular forums.
3. Set your status to “Invisible” in messengers so that your “Online” status isn’t visible.
4. Leave a gap between the time you connect to a proxy/VPN/Tor and the time you connect to the service you need; the same applies to disconnecting.
5. If possible, occasionally change your usernames, accounts, and online personas in general, especially on public and popular platforms.
6. To make timing attacks more difficult, you can use chains such as Whonix+VPN or VPN+Tor+VPN.

6. Controlled Nodes (Tor)

Since any user can set up their own nodes on Tor, there’s nothing stopping cops from doing the same. To make their job significantly easier, law enforcement doesn’t need to control all three nodes that a suspect connects to at once: controlling even one node already greatly simplifies the analysis, and controlling two nodes8—with the help of internet service providers and the website the suspect connects to—allows for connection matching.

There is no way to significantly improve the situation here; Tor users can only accept this threat and hope that they will connect to honest nodes (or to nodes operated by foreign intelligence agencies that do not cooperate with their counterparts in your country). The only thing that might reduce the risks—and even that isn’t entirely guaranteed—is Whonix+VPN or VPN+Tor+VPN.

Deanonymization techniques that bypass IP-hiding technologies

Let’s look at three methods: exploiting browser fingerprints, exploiting keystroke patterns, and exploiting the suspect’s stupidity. At the end of this part, there will be a special mention of sound beacons.

Browser fingerprints provide a wealth of technical information about the computer, operating system, audio configuration, window size, font set, language, time zone, and much more, which allows for user identification. You can learn how this works at amiunique.9

VPN users looking to protect themselves from tracking via digital fingerprints should use virtual machines along with private browsers. Among the latter, I recommend LibreWolf10—a privacy-focused modification of Firefox. LibreWolf comes with fairly good default settings that you can leave as is if you have a reliable VPN without DNS leaks. Keep in mind that LibreWolf completely clears cookies when you close the browser, so you’ll have to get used to logging in to every site all over again each time. Actually, this is good from a security standpoint, but to avoid negating this advantage, don’t use the browser’s built-in password manager—stick with KeePassXC.

As for Tor Browser and Whonix users, they don’t need to worry about browser fingerprinting.

Keystroke patterns are an important biometric identifier that can be—and already is—used on many websites for user fingerprinting. Of course, if you don’t type much online—whether in your secret or everyday life—and keep your use of third-party websites and web apps to a minimum, you’re not as vulnerable to this threat. You can reliably protect yourself against such attacks by copying text from an offline editor and using the Whonix OS.

Now for the most interesting part — stupidity. Human stupidity is endless, so it’s impossible to cover every scenario. I’ll focus on one typical example and remind you of a simple solution that will help protect you from yourself.

One day, Andrei hits his head on a doorframe and suddenly becomes a bit of a dimwit. He loses the ability to properly separate his illegal online activities from his legal ones, so he constantly uses the same VPN for different tasks. Using this VPN, Andrei logs into both a shady forum and his personal social media accounts. When the cops take an interest in Andrei, they find out which IP address he uses to access the forum. A little later, the social media platform responds to a data request and reveals which accounts were logged into using that IP address. It would seem that Andrei’s mistake is obvious, but because criminals often lack attention to detail, competence, and common sense, situations like this happen all the time.

And here’s a reminder of a simple solution: keep your everyday life strictly separate from your underground activities. Use different drives, virtual machines, operating systems, browsers, VPN providers, and so on for your two lives. Ideally, there should be no overlap not only in logging into the same services but also in visiting the same websites, since this information can also be used for deanonymization.

Finally, there are the so-called audio beacons. There’s a lot of talk online about how sounds played on a website can be used to deanonymize Tor users if those sounds are picked up by the target’s phone or some other device.

And now I’m about to say something truly outrageous. Aside from the fact that a cell phone’s microphone won’t just turn on by itself and data won’t be sent where it’s supposed to go, I’ll note the following, speaking for myself: Ukrainian law enforcement agencies never use this hypothetical attack, so in our part of the world, there’s definitely no rational reason to tear your hair out and destroy your speakers, as some people sometimes advise.11

Whonix: Security by Default

Whonix is a highly useful Linux-based operating system. Its predecessor, Kicksecure, was an OS designed for maximum security; Whonix builds on that foundation by adding maximum anonymity. In the next paragraph, I’ll provide a general overview, and you can learn more about this excellent system on the official website,12 which is very detailed and includes all the necessary instructions.

Whonix runs only on virtual machines, specifically two: Whonix-Gateway and Whonix-Workstation. Whonix-Workstation is the main OS that you’ll use most of the time. It comes pre-installed with KeePassXC, crypto wallets, a browser, and other useful programs. A unique feature of Whonix is that the Workstation cannot connect to the Internet on its own: all incoming and outgoing traffic passes through the second system, Whonix-Gateway, which handles routing via Tor. Thus, no program on Whonix-Workstation can bypass or disrupt the connection to the anonymous network.13 Whonix-Gateway supports flexible network connection configuration: for example, you can set up a Whonix+VPN14 combination, which will allow you to avoid restrictions some servers put on connections from the Tor network.

For advanced users

Here’s a very brief overview of the following topics: router customization, manual configuration of a chained VPN, a VPN-Tor-VPN setup, and working on a VPS or dedicated server.

Router customization

What’s it for? For example, you can connect your router to mobile internet and configure it so that all traffic goes through a VPN or Tor, giving you default IP anonymization for all devices on your home network—which is very convenient if you have a lot of devices at home and don’t want to set everything up from scratch. To customize your router, you can install the open-source OpenWrt15 firmware (make sure your model supports it) or purchase a router from GL.iNet or MikroTik. In both cases, it’s helpful to be technically savvy and know how to find instructions online.

Manual Configuration of a Chained VPN

You can set up your own Double or Triple VPN manually if you rent and configure the servers yourself. This is beneficial because you’ll have more control over your connection, and your end IP’s reputation will be higher than that of an IP from a VPN service, meaning you’ll encounter fewer CAPTCHAs and blocks. Manual configuration is particularly relevant for residents of countries where VPNs themselves are being blocked, as it allows you to create an unblockable VPN. The only downside is that manual configuration is more expensive and more complicated than services offered by VPN providers. A helpful video guide16 on setting up an unblockable triple VPN is included.

VPN-Tor-VPN

Compared to regular Tor, this combination will be slower but offer better anonymity. A VPN-Tor connection will also allow you to use the Tor network in countries where it is blocked, while a Tor-VPN connection will free you from having to prove to every website that you are not a robot. The guide17 for setting up this combination were created by Vektor T13, so a huge shout-out to him.

Working on a VPS/Dedicated Server

Using remote servers as your primary work environment is a double-edged sword: on the one hand, you don’t store sensitive data at home; on the other hand, for the same reason, third parties—whether hosting providers or data center owners—may gain access to your work environment. If your threat model requires this advantage and such a drawback is acceptable, then before moving your work to a remote server, be sure to verify that you possess sufficient computer skills to configure security and competently cover your tracks both there and on your own device.

1https://www.torproject.org/
2Instructions for Linux: https://nixsanctuary.com/how-to-set-up-a-vpn-kill-switch-on-linux/
3Instructions for Linux: https://www.geeksforgeeks.org/how-to-disable-ipv6-in-linux/
4Instructions for configuring DNS on Linux: https://unix.stackexchange.com/questions/494324/how-to-setup-dns-manually-on-linux
5https://browserleaks.com/ip
6Domains in the onion zone can only be accessed via the Tor network; darknet websites are often located in this zone.
7Fortunately, heuristics are based on assumptions, so they may have even more tedious paperwork than usual to justify the necessity of such a request.
8And that is, any two nodes: the entry node and a relay node, a relay node and the exit node, or the entry node and the exit node. The first case allows to obtain the IP address of the uncontrolled exit node from the controlled relay node, which can be cross-referenced with information about the exit node provided by a cooperating website. In the second case, the controlled relay node provides the IP address of the uncontrolled entry node, which can be cross-referenced with information from a cooperating internet service provider. In the third case, the controlled entry and exit nodes reveal the IP address of the uncontrolled relay node, while the cooperation of the ISP and the website ensures bulletproof evidence in this scenario.
9https://www.amiunique.org/
10https://librewolf.net/
11https://telegra.ph/Kross-devajs-treking-ili-kak-obojti-anonimnost-lyubogo-urovnya-pri-ehtom-nichego-ne-vzlomav-07-29
12https://www.whonix.org/
13Unless, of course, it exploits some terrible vulnerability that allows it to bypass virtualization.
14Video tutorial: https://youtu.be/v6ce_xB9zvc?feature=shared. If your main system is Linux, use SSH instead of PuTTY; otherwise, the steps are the same.
15https://openwrt.org/
16https://youtu.be/pwSoXc0Veh8
17https://link.detect-expert.com/course-vpn-tor-vpn-ru.pdf

The most common ways to connect to Tor on a PC are using the Tor Browser or the anonymous operating systems Tails and Whonix.

Now that we’ve covered ways to hide your real IP address, it’s time to discuss how it can be revealed when using proxies, VPNs, and Tor.

Ways to determine a user’s real IP address via proxies, VPNs, and Tor
1. Unstable connection (proxy and VPN)

Sometimes, the VPN connection may be interrupted for a second due to a loss of internet connection or software glitches, which can expose your real IP address to the web server on one hand and your real traffic to your internet service provider on the other. To avoid this, you can use VPN services with a kill switch (a feature that prevents the system from connecting to the Internet bypassing the VPN) or configure a kill switch on your operating system yourself1.

2. Official request from authorities (proxy and VPN)

VPN providers often assure customers that they do not keep logs, and therefore could not turn you in even if they wanted to. There is always some degree of marketing deception in these claims: if it’s on the higher end, logs are kept and requests are complied with; if it’s on the lower end, there’s no outright lie and everything is truly log-free, but the providers are leaving out important details, and users without sufficient technical knowledge don’t see the full picture.

The fact is that, as a rule, VPN providers do not own their own servers but rent them from hosting providers, so even when the VPN service itself isn’t tracking you, the hosting provider can still do so. Moreover, it’s not a given that the hosting provider itself fully owns the servers: the chain of renters can be very, very long. To top it off, all these entities are also dependent on their own internet service providers. Thus, there are numerous entities to which “law enforcement” can submit official requests. Of course, it’s not a given that requests—especially if they’re sent from one country to another—will be automatically satisfied, but still, don’t forget that there are always plenty of entities capable of turning you in if they want to.

What should you do? It goes without saying that you should never use VPN servers or VPN providers located in your own country. On the contrary, a relatively reliable option is to take full advantage of the increasingly tense international situation and use a VPN from “unfriendly countries.” Additionally, you can use combinations like Whonix+VPN or VPN+Tor+VPN, which will be covered in the part For Advanced Users.

3. Multi-hop connections (proxy and VPN)

There are two ways to use a VPN: single-hop and multi-hop. A single-hop VPN is the most common type: the connection follows the path user → VPN server → Internet. Multi-hop VPNs come in several variations, the most popular of which is double VPN: user → VPN1 → VPN2 → Internet. Why would you need to connect to the Internet via a chain of two or more VPN servers if, seemingly, a single one is enough to hide your IP?

Let’s imagine a scenario: a troublemaker named Andrei uses a single VPN for some not-entirely-legal activities. Using this VPN, he logs into a certain forum that cooperates with the cops. The cops ask the forum admins what IP address Andrei is using, and they get an answer. Seeing the Dutch address, the cops immediately realize that Andrei is hardly eating weed muffins in Amsterdam right now. With the IP address in hand, the cops go through some tedious paperwork and then contact their country’s internet service providers, asking if any of their customers connected to a specific VPN server at a specific time. From that point on, since Andrei didn’t use a multi-hop VPN, his deanonymization and subsequent arrest are just a matter of time.

The free VPNs I’m familiar with are always single-hop, so if you really need enhanced anonymity, don’t skimp on a couple of dollars a month for a multi-hop VPN. The attack described above is technically very simple, and it is used all the time.

4. IP Leaks (proxy and VPN)

Be it due to user error or issues with VPN services, a user’s real IP address may be hidden only partially. What types of IP leaks may occur?

An IPv6 leak occurs when a VPN provider does not support IPv6 traffic routing and does not disable IPv6 for you: in this case, you will access websites using your real IPv6 address assigned by your ISP. To prevent IPv6 leaks, you can disable IPv6 on your device2.

A WebRTC leak is related to the corresponding technology for voice calls, which tends to bypass VPNs. To prevent this from happening, it is recommended to use private browsers, which are discussed in the subsection Deanonymization techniques that bypass IP-hiding technologies.

A DNS leak occurs when a VPN user connects to their home ISP’s DNS server. This issue can be resolved by using a proper VPN service or by manually configuring a connection to an open DNS resolver in your system3 or in a private browser—the latter option is easier for beginners.

If you use a VPN, it is essential to check for IP leaks. You can do this using browserleaks.4

5. Heuristic methods, timing attacks (proxy, VPN and Tor)

These attacks consist in collecting large amounts of data on both anonymous and non-anonymous traffic, analyzing it, and searching for correlations based on traffic volume, number of packets, sending time, and other data. According to probability theory and combinatorics, the longer heuristic methods are applied, the higher the chance of successfully detecting the target.

Timing attacks are a type of heuristic method. Example: Andrei the troublemaker started using the Tor Browser to visit a forum in the onion5 zone. From time to time, Andrei posted messages on the forum, with the time of posting indicated. At first, Andrei posted ten messages: one at 5:30 PM on Monday, another at 5:33 PM on the same day, a third at 10:11 AM on Tuesday, and so on; the cops collected all this data. It’s too early to try heuristics yet, so the cops waited. A month passed, and a hundred messages from Andrei had accumulated on the forum. Another three months went by, and there were now a thousand messages. All this time, the patient cops monitored Andrei’s activity on the forum and recorded the timestamps of his messages. If they manage to complete all the necessary paperwork,6 the cops can contact their country’s internet service providers and ask who was connected to the Tor network during all the specified time periods. Since there are quite a few of these periods, there are very few people—or perhaps just one person—who would have been connected to the Tor network during all of them.

In Andrei’s defense, it must be said that heuristics applied by observers with extensive resources are, to put it mildly, a very unpleasant thing that is difficult to combat. Nevertheless, you can reduce the risks by following the recommendations below:

1. Remember that in terms of anonymity, mobile internet is better than home internet thanks to NAT, the automatic change of mobile IP addresses, and the ability to purchase SIM cards without ID in many countries.
2. Reduce or completely stop messaging in open group chats on messaging apps and on popular forums.
3. Set your status to “Invisible” in messengers so that your “Online” status isn’t visible.
4. Leave a gap between the time you connect to a proxy/VPN/Tor and the time you connect to the service you need; the same applies to disconnecting.
5. If possible, occasionally change your usernames, accounts, and online personas in general, especially on public and popular platforms.
6. To make timing attacks more difficult, you can use chains such as Whonix+VPN or VPN+Tor+VPN.

6. Controlled Nodes (Tor)

Since any user can set up their own nodes on Tor, there’s nothing stopping cops from doing the same. To make their job significantly easier, law enforcement doesn’t need to control all three nodes that a suspect connects to at once: controlling even one node already greatly simplifies the analysis, and controlling two nodes7—with the help of internet service providers and the website the suspect connects to—allows for connection matching.

There is no way to significantly improve the situation here; Tor users can only accept this threat and hope that they will connect to honest nodes (or to nodes operated by foreign intelligence agencies that do not cooperate with their counterparts in your country). The only thing that might reduce the risks—and even that isn’t entirely guaranteed—is Whonix+VPN or VPN+Tor+VPN.

Deanonymization techniques that bypass IP-hiding technologies

Let’s look at three methods: exploiting browser fingerprints, exploiting keystroke patterns, and exploiting the suspect’s stupidity. At the end of this part, there will be a special mention of sound beacons.

Browser fingerprints provide a wealth of technical information about the computer, operating system, audio configuration, window size, font set, language, time zone, and much more, which allows for user identification. You can learn how this works at amiunique.8

VPN users looking to protect themselves from tracking via digital fingerprints should use virtual machines along with private browsers. Among the latter, I recommend LibreWolf9—a privacy-focused modification of Firefox. LibreWolf comes with fairly good default settings that you can leave as is if you have a reliable VPN without DNS leaks. Keep in mind that LibreWolf completely clears cookies when you close the browser, so you’ll have to get used to logging in to every site all over again each time. Actually, this is good from a security standpoint, but to avoid negating this advantage, don’t use the browser’s built-in password manager—stick with KeePassXC.

As for Tor Browser and Whonix users, they don’t need to worry about browser fingerprinting.

Keystroke patterns are an important biometric identifier that can be—and already is—used on many websites for user fingerprinting. Of course, if you don’t type much online—whether in your secret or everyday life—and keep your use of third-party websites and web apps to a minimum, you’re not as vulnerable to this threat. You can reliably protect yourself against such attacks by copying text from an offline editor and using the Whonix OS.

Now for the most interesting part — stupidity. Human stupidity is endless, so it’s impossible to cover every scenario. I’ll focus on one typical example and remind you of a simple solution that will help protect you from yourself.

One day, Andrei hits his head on a doorframe and suddenly becomes a bit of a dimwit. He loses the ability to properly separate his illegal online activities from his legal ones, so he constantly uses the same VPN for different tasks. Using this VPN, Andrei logs into both a shady forum and his personal social media accounts. When the cops take an interest in Andrei, they find out which IP address he uses to access the forum. A little later, the social media platform responds to a data request and reveals which accounts were logged into using that IP address. It would seem that Andrei’s mistake is obvious, but because criminals often lack attention to detail, competence, and common sense, situations like this happen all the time.

And here’s a reminder of a simple solution: keep your everyday life strictly separate from your underground activities. Use different drives, virtual machines, operating systems, browsers, VPN providers, and so on for your two lives. Ideally, there should be no overlap not only in logging into the same services but also in visiting the same websites, since this information can also be used for deanonymization.

Finally, there are the so-called audio beacons. There’s a lot of talk online about how sounds played on a website can be used to deanonymize Tor users if those sounds are picked up by the target’s phone or some other device.

And now I’m about to say something truly outrageous. Aside from the fact that a cell phone’s microphone won’t just turn on by itself and data won’t be sent where it’s supposed to go, I’ll note the following, speaking for myself: Ukrainian law enforcement agencies never use this hypothetical attack, so in our part of the world, there’s definitely no rational reason to tear your hair out and destroy your speakers, as some people sometimes advise.10

Whonix: Security by Default

Whonix is a highly useful Linux-based operating system. Its predecessor, Kicksecure, was an OS designed for maximum security; Whonix builds on that foundation by adding maximum anonymity. In the next paragraph, I’ll provide a general overview, and you can learn more about this excellent system on the official website,11 which is very detailed and includes all the necessary instructions.

Whonix runs only on virtual machines, specifically two: Whonix-Gateway and Whonix-Workstation. Whonix-Workstation is the main OS that you’ll use most of the time. It comes pre-installed with KeePassXC, crypto wallets, a browser, and other useful programs. A unique feature of Whonix is that the Workstation cannot connect to the Internet on its own: all incoming and outgoing traffic passes through the second system, Whonix-Gateway, which handles routing via Tor. Thus, no program on Whonix-Workstation can bypass or disrupt the connection to the anonymous network.12 Whonix-Gateway supports flexible network connection configuration: for example, you can set up a Whonix+VPN13 combination, which will allow you to avoid restrictions some servers put on connections from the Tor network.

For advanced users

Here’s a very brief overview of the following topics: router customization, manual configuration of a chained VPN, a VPN-Tor-VPN setup, and working on a VPS or dedicated server.

Router customization

What’s it for? For example, you can connect your router to mobile internet and configure it so that all traffic goes through a VPN or Tor, giving you default IP anonymization for all devices on your home network—which is very convenient if you have a lot of devices at home and don’t want to set everything up from scratch. To customize your router, you can install the open-source OpenWrt14 firmware (make sure your model supports it) or purchase a router from GL.iNet or MikroTik. In both cases, it’s helpful to be technically savvy and know how to find instructions online.

Manual Configuration of a Chained VPN

You can set up your own Double or Triple VPN manually if you rent and configure the servers yourself. This is beneficial because you’ll have more control over your connection, and your end IP’s reputation will be higher than that of an IP from a VPN service, meaning you’ll encounter fewer CAPTCHAs and blocks. Manual configuration is particularly relevant for residents of countries where VPNs themselves are being blocked, as it allows you to create an unblockable VPN. The only downside is that manual configuration is more expensive and more complicated than services offered by VPN providers. A helpful video guide15 on setting up an unblockable triple VPN is included.

VPN-Tor-VPN

Compared to regular Tor, this combination will be slower but offer better anonymity. A VPN-Tor connection will also allow you to use the Tor network in countries where it is blocked, while a Tor-VPN connection will free you from having to prove to every website that you are not a robot. The guide16 for setting up this combination were created by Vektor T13, so a huge shout-out to him.

Working on a VPS/Dedicated Server

Using remote servers as your primary work environment is a double-edged sword: on the one hand, you don’t store sensitive data at home; on the other hand, for the same reason, third parties—whether hosting providers or data center owners—may gain access to your work environment. If your threat model requires this advantage and such a drawback is acceptable, then before moving your work to a remote server, be sure to verify that you possess sufficient computer skills to configure security and competently cover your tracks both there and on your own device.

1Instructions for Linux: https://nixsanctuary.com/how-to-set-up-a-vpn-kill-switch-on-linux/
2Instructions for Linux: https://www.geeksforgeeks.org/how-to-disable-ipv6-in-linux/
3Instructions for configuring DNS on Linux: https://unix.stackexchange.com/questions/494324/how-to-setup-dns-manually-on-linux
4https://browserleaks.com/ip
5Domains in the onion zone can only be accessed via the Tor network; darknet websites are often located in this zone.
6Fortunately, heuristics are based on assumptions, so they may have even more tedious paperwork than usual to justify the necessity of such a request.
7And that is, any two nodes: the entry node and a relay node, a relay node and the exit node, or the entry node and the exit node. The first case allows to obtain the IP address of the uncontrolled exit node from the controlled relay node, which can be cross-referenced with information about the exit node provided by a cooperating website. In the second case, the controlled relay node provides the IP address of the uncontrolled entry node, which can be cross-referenced with information from a cooperating internet service provider. In the third case, the controlled entry and exit nodes reveal the IP address of the uncontrolled relay node, while the cooperation of the ISP and the website ensures bulletproof evidence in this scenario.
8https://www.amiunique.org/
9https://librewolf.net/
10https://telegra.ph/Kross-devajs-treking-ili-kak-obojti-anonimnost-lyubogo-urovnya-pri-ehtom-nichego-ne-vzlomav-07-29
11https://www.whonix.org/
12Unless, of course, it exploits some terrible vulnerability that allows it to bypass virtualization.
13Video tutorial: https://youtu.be/v6ce_xB9zvc?feature=shared. If your main system is Linux, use SSH instead of PuTTY; otherwise, the steps are the same.
14https://openwrt.org/
15https://youtu.be/pwSoXc0Veh8
16https://link.detect-expert.com/course-vpn-tor-vpn-ru.pdf
Если вы применяете VPN, то обязательно проверьте наличие утечек IP. Сделать это можно с помощью browserleaks.

5. Эвристические методы, тайминг-атаки (прокси, VPN и Tor)

Суть таких атак в том, что массово собирается информация про анонимный и неанонимный трафик, после чего она анализируется, и происходит поиск корреляций по объёму трафика/числу пакетов, времени отправки и другим данным. В соответствии с теорией вероятностей и комбинаторикой, чем дольше применяются эвристические методы, тем выше становится шанс успешного обнаружения цели.
Разновидностью эвристических методов являются тайминг-атаки. Пример: Андрей-бармалей начал пользоваться Tor Browser и с его помощью посещает некий форум в зоне onion9. Время от времени Андрей оставляет на форуме свои сообщения, на которых указывается время отправки. Сначала Андрей оставил десять сообщений: одно в 17:30 понедельника, другое в 17:33 того же дня, третье в 10:11 вторника и так далее, менты собирают все эти данные. Пока что пытаться в эвристику рано, поэтому фараоны ждут. Прошёл месяц, на форуме накопилось сто сообщений от Андрея. Прошло ещё три месяца, сообщений теперь тысяча. Всё это время терпеливые полицаи следили за активностью Андрея на форуме и фиксировали время отправки сообщений. Если получится оформить все нужные бумажки10, то мусора могут обратиться к интернет-провайдерам своей страны и спросить, кто подключался к сети Tor во все указанные временные отрезки, а так как последних довольно много, то остаётся совсем мало людей или даже всего один человек, который подключался бы к сети Tor во все эти промежутки вместе взятые.
В защиту Андрея нужно сказать, что эвристика со стороны наблюдателя с большими ресурсами — это, выражаясь предельно мягко, очень неприятная вещь, против которой трудно бороться. Тем не менее, снизить риски можно, следуя рекомендациям ниже:

1. Не забывайте, что в плане анонимности мобильный интернет лучше домашнего благодаря NAT, автоматической смене мобильных IP-адресов и возможности покупки SIM-карт без документов во многих странах.

2. Сократите или полностью прекратите переписки в открытых групповых чатах мессенджеров и на популярных форумах.

3. В мессенджерах ставьте «невидимку», чтобы не было видно статус «В сети».

4.Создавайте промежутки между временем подключения к прокси/VPN/Tor и временем подключения к нужному сервису, то же самое касается и времени отключения.

5. Если есть такая возможность, то иногда меняйте никнеймы, аккаунты и виртуальные личности в целом, особенно на открытых и популярных ресурсах.

6. Для усложнения тайминг-атак можно использовать цепочки Whonix+VPN либо VPN+Tor+VPN.

6. Подконтрольные узлы (Tor)
Так как любой пользователь может создавать свои узлы в Tor, то ничего не мешает делать это и мусорам. Для значительного облегчения своей работы легавым вовсе необязательно контролировать сразу все три узла, к которым подключается подозреваемый: контроль хотя бы одного уже серьёзно упрощает эвристику, а контроль двух узлов11 при содействии интернет-провайдеров и сайта, к которому подключается подозреваемый, позволяет провести сопоставление соединений.
Существенно изменить что-то в лучшую сторону здесь нельзя, эту угрозу пользователям Tor остаётся только принять и надеяться, что они будут попадаться на честные узлы (или на узлы тех иностранных спецслужб, которые не сотрудничают с коллегами из вашей страны). Единственное, что может снизить риски, и то не вполне гарантированно, — это Whonix+VPN или VPN+Tor+VPN.

Способы деанонимизации в обход технологий сокрытия IP

Рассмотрим три способа: эксплуатация отпечатков браузера, эксплуатация стиля нажатия клавиш и эксплуатация кретинизма подозреваемого. В конце подраздела будет особое место для звуковых маячков.

Отпечатки браузера дают море технической информации про компьютер, операционную систему, конфигурацию аудио, размер окна, набор шрифтов, язык, часовой пояс и многое другое, что позволяет уникализировать пользователя. Ознакомиться с тем, как это происходит, можно на сайте amiunique.

Пользователям VPN для защиты от отслеживания по отпечаткам нужно использовать виртуальные машины вместе с приватными браузерами. Из последних посоветую LibreWolf — модификацию Firefox с заточкой под приватность. В LibreWolf стоят достаточно хорошие стандартные настройки, которые можно не трогать, если у вас нормальный VPN без утечек DNS. Учитывайте, что в LibreWolf полностью очищаются cookies после закрытия браузера, поэтому придётся привыкнуть к тому, чтобы логиниться на всех сайтах заново каждый раз. На самом деле, это хорошо с точки зрения безопасности, только вот чтобы не нивелировать данное преимущество, не пользуйтесь встроенным в браузер менеджером паролей и оставайтесь с KeePassXC.

Пользователям Tor Browser и Whonix волноваться о браузерных отпечатках не нужно.

Стиль нажатия клавиш — это важный биометрический идентификатор, который может применяться и уже применяется на многих сайтах для уникализации. Конечно, вы не так сильно подвержены данной угрозе, если мало печатаете в Интернете в рамках своей подпольной или, наоборот, обыденной жизни, и сводите к необходимому минимуму использование сторонних веб-сайтов и сетевых приложений. Надёжную защиту от атаки по этому вектору обеспечивают копирование текста из оффлайнового редактора и ОС Whonix.

Теперь самое интересное — кретинизм. Человеческая глупость бесконечна, а потому обозреть все сценарии не выйдет. Остановлюсь на одном характерном и напомню о простом решении, которое поможет застраховаться от самого себя.

Однажды Андрей ударяется головой об косяк и резко тупеет. Андрей перестаёт нормально отделять нелегальную компьютерную жизнь от легальной, поэтому он постоянно пользуется одним и тем же VPN для разных задач. Под этим VPN Андрей заходит как на сомнительный форум, так и на свои личные аккаунты в соцсетях. Когда Андреем интересуются менты, то они узнают, с какого IP он заходит на форум. Чуть позже соцсеть отвечает на мусорской запрос и рассказывает, на какие аккаунты выполнялся вход под этим IP. Казалось бы, ошибка Андрея самоочевидна, но в силу того, что преступникам часто не хватает внимательности, компетентности и мозгов, похожие случаи происходят постоянно.

Ну и напоминание о простом решении: чётко отделите вашу обыденную жизнь от подпольной. Для двух жизней используйте разные диски, виртуальные машины, операционные системы, браузеры, VPN-провайдеры и так далее. В идеале пересечений не должно быть не только в логине на одни и те же сервисы, но и в посещении одних и тех же сайтов, ведь и эта информация может использоваться для деанонимизации.

Наконец, так называемые звуковые маячки. В Интернете часто мусолится идея о том, что с помощью звуков, воспроизводимых на веб-сайте, можно деанонимизировать пользователя Tor, если эти звуки примет телефон цели или ещё какое-либо устройство.

А сейчас будет страшная крамола. Помимо того, что просто так микрофон на мобильнике не включится и данные куда надо не отправятся, со ссылкой на самого себя отмечу следующее: украинские карательные органы эту гипотетическую атаку никогда не используют, так что в наших краях однозначно нет рационального смысла рвать на себе волосы и уничтожать динамики, как некоторые иногда советуют.

Whonix, безопасность по умолчанию

Whonix — это очень полезная операционная система на базе Linux. Предшественником Whonix является Kicksecure — ОС, заточенная под максимальную безопасность, к чему в Whonix добавили максимальную анонимность. В следующем абзаце я дам общий обзор, а узнать больше про эту прекрасную систему вы можете на официальном сайте, благо он очень подробный, и там же есть все необходимые инструкции.
Whonix работает только на виртуальных машинах, причём на двух: Whonix-Gateway и Whonix-Workstation. Whonix-Workstation — это основная ОС, которую вы будете использовать большую часть времени. На ней предустановлены KeePassXC, криптокошельки, браузер и прочие полезные программы. Особенность Whonix в том, что Workstation никак не может самостоятельно подключиться к Интернету: весь входящий и исходящий трафик идёт исключительно через вторую систему, Whonix-Gateway, которая отвечает за маршрутизацию через Tor. Таким образом, ни одна программа в Whonix-Workstation не способна обойти или нарушить подключение к анонимной сети12. Whonix-Gateway поддаётся гибкой настройке сетевого подключения: например, можно создать связку Whonix+VPN13, что позволит не сталкиваться с блокировками подключений из сети Tor в Интернете.
Для продвинутых

Здесь совсем-совсем бегло про следующие темы: кастомизация роутера, ручная настройка цепочки VPN, связка VPN-Tor-VPN, работа на VPS/dedicated server.

Кастомизация роутера

Для чего она нужна? Можно, например, подключить роутер к мобильному интернету и настроить его так, чтобы весь трафик шёл через VPN или Tor, и тогда у вас будет анонимизация IP по умолчанию для всех устройств в домашней сети, что весьма удобно, если дома много техники, и нет желания делать везде всё с нуля. Для кастомизации можете установить свободную прошивку OpenWrt (убедитесь, что ваша модель её поддерживает) или купить роутер от GL.iNet либо MikroTik. В обоих случаях желательно иметь прямые руки и навык поиска инструкций в Интернете.

Ручная настройка цепочки VPN

Вы можете организовать свой Double или Triple VPN вручную, если сами будете арендовать и настраивать сервера. Это хорошо с точки зрения того, что вы будете обладать более полным контролем над своим соединением, а репутация вашего конечного IP будет выше, чем у IP от VPN-сервиса, то есть вы встретите меньше капч и блокировок. Ручная настройка особенно актуальна для жителей стран, в которых ведётся борьба с VPN, поскольку она позволяет создать неблокируемый VPN. Минус — только то, что ручная настройка дороже и сложнее, чем услуги VPN-провайдеров. Хороший видеогайд по созданию неблокируемого тройного VPN прилагается.

VPN-Tor-VPN

По сравнению с обычным Tor такая связка будет хуже в скорости, зато лучше в анонимности. Соединение VPN-Tor также позволит пользоваться сетью Tor в тех странах, где её блокируют, а соединение Tor-VPN освободит вас от необходимости доказывать каждому сайту, что вы не робот. Инструкцию по созданию связки создал Vektor T13, за что ему спасибо.

Работа на VPS/dedicated server

Использование удалённых серверов как основной рабочей среды — это обоюдоострый меч: с одной стороны, так вы не храните дома вещдоки, с другой стороны, по этой же причине доступ к вашей рабочей среде могут получить третьи лица, будь то хостинг-провайдеры или владельцы дата-центров. Если в вашей модели угроз необходимо это преимущество, и такой недостаток приемлем, то перед переносом работы на удалённый сервер обязательно убедитесь, что вы обладаете достаточными компьютерными навыками для того, чтобы настроить безопасность и грамотно заметать следы как там, так и на своём устройстве.

Глава 8. Коммуникация: как не написать письмо товарищу майору

Перед тем, как мы рассмотрим популярные средства связи в Интернете и их пригодность для конфиденциальной, анонимной и удобной переписки в рамках деятельности революционной организации, нужно сделать три предварительных замечания:

1. Стоит ещё раз вернуться к теме из начала книги: подумайте, какая у вас модель угроз и какая организационная политика безопасности из неё следует. Исходя из этого сформулируйте правила насчёт того, что и кому в вашей организации говорить можно, а что и кому нельзя. Если революционеры из-за недостатка чётко обозначенной конспиративной дисциплины будут регулярно пробалтываться друг перед другом или, что ещё хуже, перед третьими лицами, то никакие программы и аппараты достичь приватности не помогут.

2. Есть одно общее правило: удобство и безопасность обратно пропорциональны друг другу. Каждая организация должна сама найти сбалансированное решение, адекватно отвечающее как её модели угроз, так и её потребностям и возможностям.

3. При рассмотрении инструментов онлайн-коммуникации в этой главе я не буду стремиться к тому, чтобы дать как можно более широкую картину, и опишу только те средства, с которыми достаточно хорошо знаком сам и могу оценить их пригодность для практического применения.
Facebook, Instagram, ВКонтакте и другие социальные сети

Кому-то может казаться очевидным, что этот вариант — вообще не вариант, но почему-то соцсети до сих пор часто используются левыми для внутренней коммуникации, в том числе и для обсуждения щекотливых тем.

Чтобы не тратить время впустую, в этой главе считаю достаточным просто напомнить, что корпорация Meta, владеющая Facebook, Instagram и WhatsApp, не только сливает ваши данные спецслужбам, но и продаёт их частным лицам, а переписки в социальной сети ВКонтакте даже без каких-либо запросов моментально попадают в распоряжение российских карательных органов.

Telegram

Здесь всё весьма непросто. С одной стороны, Telegram, пожалуй, — самый удобный мессенджер из существующих. Кроме того, в Telegram каждый пользователь бесплатно получает неограниченное облачное хранилище, что не может не радовать. С другой стороны, самореклама Telegram как «приватного мессенджера» не соответствует истине уже довольно давно, задолго до событий августа 2024-го.

Что не так с приватностью в Telegram?

1. Первая проблема встречает нас уже на этапе регистрации по номеру телефона. В главе про безопасность мобильника мы подробно разберёмся, насколько серьёзным фактором деанонимизации является номер, а пока спойлер: в определённых случаях информация про номер телефона может оказаться даже полезнее, чем ФИО подозреваемого.

Безусловно, вы можете скрыть отображение номера телефона своего аккаунта в настройках конфиденциальности, но есть рабочие способы раскрытия номера БЕЗ содействия со стороны корпорации Telegram. В частности, даже если в настройках конфиденциальности у вас всё скрыто, и найти вас по номеру не может «никто», то противник всё равно способен провернуть следующую схему: записать в телефонной книге очень много контактов, создать новый аккаунт в Telegram и воспользоваться функцией автоматического поиска контактов из телефонной книги. Таким образом, можно путём перебора установить привязанный к аккаунту номер телефона. Это вполне реальная угроза, вовсе не требующая больших ресурсов для реализации.

2. Закрытая серверная часть. Открытый исходный код в Telegram только у клиентских приложений, но о том, что происходит на серверах Telegram, мы можем только догадываться.

3. В Telegram есть хвалёное сквозное шифрование: ключи шифрования хранятся только у переписывающихся, сам сервер Telegram видит только зашифрованный поток данных в виде какой-то белиберды, да и вообще всё будто бы замечательно. Проблема в том, что сквозное шифрование работает только в секретных чатах Telegram, которые доступны только с мобильных устройств и только для личных переписок. Сквозного шифрования для групповых чатов в Telegram нет.

Следовательно, все чаты в Telegram кроме секретных — будь то личные чаты с настройками по умолчанию или любые групповые чаты — работают не со сквозным шифрованием, а с шифрованием типа клиент-сервер. Что это значит? Ваша переписка не видна интернет-провайдеру или другим посредникам между вами и сервером Telegram, зато вот у самой корпорации Telegram есть возможность прочитать и в случае чего раскрыть содержимое ваших чатов третьим лицам.
Добьём тем, что недавно появилась возможность отправлять жалобы14 на сообщения в частных группах, то есть в любой момент любой участник чата при желании может привлечь внимание модераторов Telegram к переписке.
4. В последнее время в Telegram стремительно происходит коммерциализация: становится всё больше платного функционала, которого раньше не было. Не исключено, что со временем Telegram будет мало отличаться от какого-нибудь Facebook.

5. Ранее в Telegram обнаруживались достаточно опасные уязвимости. Например, одна такая позволяла атаковать пользователя с помощью отправки замаскированного под видео вредоносного файла HTML.

6. Telegram сотрудничает с «правоохранителями» многих стран, а с недавних пор уже открыто сливает IP-адреса и телефоны подозреваемых в ответ на запросы. С другой стороны, информацией о сотрудничестве Telegram именно с украинскими мусорами я не обладаю, и, судя по всему, наши хозяева жизни не просто так время от времени поднимают вопрос о блокировке Telegram в Украине.

Резюмирую: Telegram не подходит для конфиденциальной внутриорганизационной коммуникации. Обсуждать в этом мессенджере советую только то, что вы не очень сильно боитесь раскрыть.

Тем не менее, в силу широкой распространённости Telegram всё же стоит оставить несколько рекомендаций по повышению анонимности и безопасности в этом мессенджере:

0. С самого начала, то есть с момента регистрации, бесперебойно используйте VPN/Tor, чтобы не раскрывать Telegram свой настоящий IP-адрес. Конечно, это касается не только Telegram, но и вообще любых мест в Интернете, которые вы посещаете в своей подпольной жизни, но не помешает лишний раз повторить.

1. Регистрируйте фейковые аккаунты на виртуальные мобильные номера, а лучше — покупайте готовые Telegram-аккаунты. Соответствующих сервисов в Интернете очень много, так что кто хочет, тот сам найдёт. Учитывайте, что после создания/покупки фейка важно первое время не проявлять на нём активность, чтобы не получить блокировку.

Примечание: фейковые аккаунты нужны именно новые. Если вы просто переименуете свой основной аккаунт с Иван Иванов на Потужнопитек Незламныч, то анонимности это вам не прибавит, ведь инструментами OSINT можно отследить историю смены ников. Точно так же бессмысленно менять или удалять имя пользователя (тэг, начинается на @), потому что у каждого Telegram-аккаунта есть неизменный идентификатор Telegram ID.

2. Обязательно сразу после приобретения аккаунта поставьте на него облачный пароль в настройках конфиденциальности, чтобы защититься от взлома.

3. В тех же настройках конфиденциальности оставьте только минимально необходимые разрешения.

4. Запретите Peer-to-Peer в настройках звонков.

5. В настройках устройств проверьте, есть ли на аккаунте незнакомые вам устройства, и при наличии отключите их.
Signal

В сравнении с Telegram позиционирование Signal как приватного мессенджера более оправдано: все чаты, включая групповые, шифруются с помощью проверенного временем и аудиторами протокола сквозного шифрования, поэтому конфиденциальность переписки в Signal действительно на высоком уровне, но и здесь снова есть свои НО: не стоит путать конфиденциальность переписки с анонимностью. С последней в Signal тоже всё не слава богу в силу регистрации по номеру телефона и сотрудничества с фараонами. И имейте в виду, что сообщения хоть и под сквозным шифрованием, но переписываетесь-то вы всё равно посредством серверов Signal, что может быть использовано против вас.

В общем, если нужна относительно надёжная тайна переписки, но не нужна надёжная тайна личности, то Signal — неплохой вариант, который ещё и хорош своим удобством в эксплуатации.

Для повышения анонимности и безопасности в Signal следуйте всё тем же рекомендациям, что описаны в части про Telegram. Дополнительно акцентирую ваше внимание на том, чтобы вы не ставили в Signal простой PIN из четырёх цифр, а использовали надёжный пароль. Также в настройках учётной записи включите блокировку регистрации ради лучшей защиты от хакерских атак.

XMPP (Jabber)

Jabber — это не мессенджер, а открытый протокол мгновенного обмена сообщениями. У сети Jabber федеративная структура, то есть каждый может поднять свой Jabber-сервер, по умолчанию коммуникация между пользователями разных серверов не ограничена. В этом отношении Jabber можно сравнить с электронной почтой.
Jabber имеет довольно широкий инструментарий для обеспечения безопасности вроде сквозного шифрования OTR и OMEMO. Кроме того, Jabber очень гибок, что позволяет хорошо модифицировать его под конкретные нужды.

Примечание: во многих Jabber-клиентах сквозное шифрование по умолчанию не включено, а для его использования может быть необходимо полазить в настройках или установить дополнения. Это очень важный момент, потому что если что-то не настроено по умолчанию, то, как показывает практика, какая-то часть товарищей этого не настроит даже при наличии инструкций, и тогда кому-то точно придётся заниматься уморительной работой по разъяснению элементарных вещей. Sad but true.

Анонимность в Jabber зависит от сервера. Популярные публичные сервера при регистрации обычно требуют электронную почту, но иногда нужны только ник и пароль.

Во много раз лучше как для безопасности, так и для стабильности работы развернуть собственный сервер. Если у вас есть товарищи с навыками системного администрирования, то это вполне реализуемая задача, стоящая своих усилий и затрат. Злонамеренный администратор стороннего сервера может сильно навредить вам, даже если вы используете сквозное шифрование.

Хотя у Jabber и есть свои преимущества, я не могу советовать его для переписки на уровне организации, так как он недостаточно удобен. Нормального единого мультиплатформенного клиента нет, так что под каждую ОС надо искать что-то своё. Все клиентские программы на ПК, которые я видел, навевают ностальгию по 2010-му, и пользоваться ими нынче не в удовольствие. На телефонах некоторые приложения получше, но и там ситуация не самая приятная. Ну а если вы захотите использовать шифрование OTR или OMEMO, то с ума сойдёте объяснять каждому товарищу, как это включать и как устранять неполадки. Проверено практикой.

Протокол Matrix и клиент Element

Протокол Matrix, как и Jabber, открытый и федеративный, однако имеет ряд преимуществ перед последним:
  • весьма удобное по сравнению с любым Jabber-клиентом мультиплатформенное приложение Element15;
  • сквозное шифрование по умолчанию для всех приватных чатов;
  • возможность создавать защищённые голосовые чаты.
Важный минус: нельзя скрыть историю группового чата для новых пользователей, что приводит к необходимости создавать новые чаты или пересоздавать старые, если вы хотите добавить кого-то без раскрытия ему предыдущей переписки.

В общем, на мой взгляд, Matrix в сочетании с клиентом Element — это достаточно хорошая альтернатива Jabber, которую точно стоит рассматривать как один из вариантов при выборе организационного мессенджера.
Как и в Jabber, здесь доступна нормальная анонимность без регистрации по номеру телефона и прочей ереси. Как и в Jabber, подчеркну ещё раз, при наличии прямых рук будет многократно лучше развернуть свой сервер, чем пользоваться каким-либо из открытых, даже если применяется сквозное шифрование, потому что у злонамеренного администратора Matrix-сервера всегда есть очень большой арсенал для пассивного наблюдения и активных атак16 против пользователей.
SimpleX Chat17
Молодой и во многом уникальный приватно-ориентированный мессенджер, который уже успел получить большое внимание интересующихся приватностью и прошёл несколько аудитов18. Мессенджер децентрализованный, доступно разворачивание своего сервера, но благодаря специфике SimpleX можно достичь приличных анонимности и конфиденциальности даже при использовании серверов от разработчиков.
Перечислю несколько примечательных свойств SimpleX:

1. Для регистрации не требуется абсолютно ничего кроме никнейма. В отличие от обычных мессенджеров, в SimpleX нет хранящейся на каком-то сервере учётной записи как таковой, то есть ваш аккаунт — это данные приложения на вашем устройстве. Таким образом, аккаунту SimpleX даже не нужен пароль, ведь всё хранится у вас локально. При желании можно поставить пароль на само приложение.

2. SimpleX — единственный известный мне мессенджер, в котором вообще нет фиксированных идентификаторов профиля, даже случайных цифр: для установки соединения используются либо одноразовые, либо постоянные ссылки. Последние можно в любой момент изменить, при этом сама ссылка не даёт никакой информации о пользователе, включая его никнейм, а любой нежеланный запрос на соединение можно отклонить.

3. Коммуникация осуществляется посредством интересной системы однонаправленных (симплексных) очередей сообщений: две разные очереди для получения и отправки, разные пары очередей для разных чатов. Сервера ничего не хранят и лишь передают данные, которые сохраняются только на клиентских устройствах. Всё это усиливает защиту пользователей от ряда атак.

4. Сквозное шифрование по умолчанию (и без возможности его отключить) для ЛС, групповых чатов и голосовых звонков. Применяются алгоритмы шифрования с сильной криптостойкостью, в том числе постквантовые.

5. Возможность включать и гибко настраивать исчезающие сообщения, что во многих случаях крайне полезно.

6. Режим инкогнито — уникальная для SimpleX опция, при включении которой у вас создаётся новый случайный ник, когда вы впервые подключаетесь к какому-либо чату. Таким образом, вы можете сидеть в разных чатах под разными никами без создания кучи аккаунтов, что экономит время.

Кроме всего сказанного, по меркам приватно-ориентированных мессенджеров у SimpleX неплохой пользовательский интерфейс и хорошая поддержка от разработчиков с регулярными обновлениями и исправлениями ошибок.

Кто-то сейчас спросит: «а минусы будут?», и я отвечу, что да.
Во-первых, отсутствие функционала популярных мессенджеров, в особенности групповых звонков и нормального файлообмена19, а также в целом неудобство при работе в больших группах, что может быть важно для многих организаций.
Во-вторых, стабильность соединения в SimpleX порой нарушается: у кого-то могут перестать приходить или отправляться сообщения, прекратить работать отдельные чаты или даже накрываться аккаунты целиком. Лично сталкивался с такими проблемами пару раз.

В-третьих, SimpleX по меркам некоммерческих проектов поддерживается разработчиками как-то очень хорошо, а среди спонсоров числится Джек Дорси, что может быть основанием для подозрений. С другой стороны, исходный код как у клиента, так и у сервера открытый.
По моему мнению, SimpleX прекрасен в качестве дополнительного мессенджера, когда требуется повышенная степень приватности20 и общение происходит в небольшой группе. В качестве основного мессенджера лучше выбрать что-то централизованное и самостоятельно разворачиваемое на собственном сервере умными людьми из IT-отдела. Тут подойдут уже упомянутый Matrix или Mattermost.
Mattermost

Если вы когда-то пользовались корпоративным мессенджером Slack, то Mattermost — это примерно то же самое, но с открытым исходным кодом. В отличие от всех предыдущих мессенджеров, в Mattermost нет ни центральных серверов, ни федеративной сети, потому что он сделан исключительно для самостоятельного развёртывания на собственном сервере.
По задумке доступ к серверу Mattermost должен быть только у самой организации, которая им пользуется. Соответственно, приватность коммуникации обеспечивается шифрованием типа клиент-сервер и руками из нужного места у администраторов, а сквозное шифрование типа клиент-клиент не применяется21 из-за отсутствия в этом большой необходимости с одной стороны и неизбежного возникновения неудобств от клиент-клиентского шифрования с другой.
Безопасность мессенджера проверена временем и большим опытом: Mattermost используется несколькими крупными корпорациями и даже ВВС США. Тем не менее, у Mattermost есть схожий с Matrix значимый недостаток в приватности: не скрывается история группового чата для новых участников.

В этом мессенджере встречаются слегка непривычные моменты, но в целом — достаточно удобно как для пользователей, так и для администраторов. Поскольку исходный код открыт, Mattermost поддаётся гибкой настройке и установке множества плагинов. Радует, что есть клиенты под все распространённые ОС и возможность заходить через веб-версию, в том числе через Tor Browser.

Исходя из своей практики, я могу советовать данный мессенджер как подходящий для организационной коммуникации по большинству вопросов, а особо интересные дискуссии можно проводить в чатах SimpleX с исчезающими сообщениями.

Jitsi

Инструмент для голосовых конференций, поддерживающий сквозное шифрование. Можно развернуть на своём сервере или пользоваться публичным. У обоих вариантов использования Jitsi есть свои минусы.

С одной стороны, эксплуатация приложения может оказывать сильную нагрузку на ресурсы вашего сервера, особенно если в голосовом чате сразу много пользователей.

С другой стороны, публичный сервер хоть и не требует регистрации от всех участников конференции, но заставляет модератора зайти через Google или GitHub, а так как для создания комнаты нужен хотя бы один модератор, то кому-то придётся это сделать. Этому кому-то лучше заходить через GitHub, потому что на нём проще создавать фейковые аккаунты.

Чтобы зарегистрироваться на GitHub, вам понадобится электронная почта, к чему и переходим.

Электронная почта

В качестве приватных почтовых сервисов больше всего рекламируют себя Proton и Tuta. Хоть они и действительно пожирают намного меньше данных о пользователях, чем всякие гуглы и яндексы, но всё так же работают в легальном поле. Неудивительно, что и швейцарский Proton, и немецкая Tuta идут на сотрудничество с «правоохранителями», ведь другого выхода у них как легальных компаний быть и не может.
Так или иначе, Proton и Tuta — пожалуй, меньшее из зол в сравнении с популярными аналогами. При использовании учитывайте, что, во-первых, за свою анонимность в сети отвечаете только вы, и, во-вторых, если вы переписываетесь без сквозного шифрования22, то почтовому сервису будет доступно содержание ваших писем.
Помимо Proton и Tuta следует вспомнить onionmail23: почта с простой и анонимной регистрацией. На бесплатной версии нельзя отправлять сообщения, но можно принимать, и учётная запись автоматически удаляется после 3 месяцев без активности. Годится для регистрации по электронной почте на всяких сайтах, которые вы не планируете долго использовать24. К сожалению, многие сервисы блокируют onionmail, и в таких ситуациях приходится искать что-то другое.
Ссылки с одноразовыми записками

Одноразовые записки нужны при передаче чувствительных данных, особенно паролей, чтобы не оставлять их навеки покоиться в открытом виде где-то на дне в пучине чата мессенджера.

Больше всего среди сервисов одноразовых записок известен privnote, но его не советую: утомляет тем, что постоянно спрашивает какие-то дурацкие разрешения на сбор данных для своих партнёров. Намного лучше cryptgeon: не предлагает продаваться в рабство Google, можно использовать сервер разработчика или разворачивать у себя, исходный код открытый.

Другая достойная альтернатива — Nextcloud Secrets — инструмент экосистемы Nextcloud, о которой пойдёт речь далее.

Nextcloud

Из-за широты функционала и обилия плагинов нелегко дать исчерпывающее определение тому, чем именно является Nextcloud. Прежде всего, это хорошее ПО с открытым исходным кодом для создания облачного хранилища на сервере, но кроме самого облака в Nextcloud есть:

  • Deck, невероятно полезный в проектной деятельности инструмент по управлению задачами команды — как Trello, только лучше. Если вы однажды начнёте работать с ним, то уже никогда не сможете работать без него;
  • Calendar за себя говорит названием. Взаимодействует с Deck;
  • Collectives для ведения документации, баз знаний и прочих стен текста. Можно красиво оформлять и разбивать на категории;
  • Talk, простенький мессенджер;
  • Secrets, приложение для одноразовых записок;
  • Интеграция с OnlyOffice, отличная альтернатива Google Docs.

В общем, это не только облако, но и бесценная для организации коллективной работы штука, которая ощутимо упрощает жизнь. Если есть возможность поставить Nextcloud на свой сервер, то ставьте, чтобы не мучиться с файлообменом и управлением задачами в мессенджере и не использовать какие-то сомнительные сторонние решения.

Примечание: в этой главе много раз рекомендуется разворачивание мессенджера на собственном сервере, однако критически важно, чтобы администрированием IT-инфраструктуры организации занимались компетентные и доверенные товарищи, причём под товарищами имеются ввиду исключительно члены организации — аутсорсеров к таким делам пускать нельзя.

Как только у вас появляется свой сервер, то появляются и новые направления атак против вас. Если на данный момент у вас нет достаточно компетентных кадров для того, чтобы грамотно настроить сервер и его безопасность (что не так просто, как хотелось бы, а сам сервер после настройки требует постоянной поддержки), то вполне вероятен сценарий, при котором использование своего сервера потенциально будет даже хуже, чем использование сторонних ресурсов.

Глава 9. Криптовалюты: перенимаем криминальный опыт

Существует ли полностью анонимный способ передачи денег?

Ясно, что переводить деньги непосредственно получателю с банковского счёта на своё имя — не вариант. Есть недоступный для подавляющего большинства, но рабочий метод — использовать карты подставных лиц, однако большинство банкингов собирают довольно много данных о пользователях и агрессивно реагируют на инструменты анонимизации, а на банкоматах или возле них почти всегда есть камеры. Конечно, можно поручить работу со счетами подставным лицам и контролировать их, однако тут встают вопросы о доверии и путях конечного вывода средств. В любом случае, следы будут, и в немалом количестве. Почему тогда те же днепровские мошенники ведут свою деятельность годами без особых трудностей? Ответ прозаичен: их безопасность обеспечивается не продвинутыми мерами анонимности, а мусорским крышеванием и/или нацеленностью на жертв за границей.

Намного лучше банковских переводов выглядит старая добрая наличность. И действительно: отказ от высоких технологий — тоже защита против высокотехнологичной слежки. Для минимизации рисков при передаче наличных денег можно выбирать специфические места, где легко снизить эффективность наружного наблюдения до приемлемого уровня, а также оставлять денежные закладки вместо передачи из рук в руки. Риски здесь всё равно остаются как со стороны доверия людям, с которыми вы встретитесь или которые оставят/заберут конверт в точке X, так и со стороны того, что полностью исключить наружное наблюдение порою трудно. В общем, свои угрозы, как и везде, тут присутствуют, но передача налички — если уметь её правильно организовывать — в определённых ситуациях может оказаться наилучшим вариантом с точки зрения анонимности. Обо всём этом мы ещё поговорим подробнее в третьем разделе книги.

Впрочем, любые пересечения в реальной жизни в большей или меньшей мере сопряжены с риском провалиться, занимают много времени, а при большой географической отдалённости могут быть и просто невозможными в обозримой перспективе. В качестве быстрого, дистанционного и в то же время анонимного способа передачи денег, на первый взгляд, хорошо подходят криптовалюты. Перейдём же к ним.
Насколько анонимна криптовалюта?

Зависит от криптовалюты.

В третьей главе говорилось: «На самом деле, криптовалюты лишь потому и могут быть независимыми от внешних регуляторов, что используют особую технологию, благодаря которой история ВСЕХ переводов должна сохраняться у ВСЕХ узлов сети. В каком-то смысле баланс любого криптокошелька является не балансом в привычном смысле, а историей всех переводов на него и из него, и эта история публично доступна для всех желающих».

Это утверждение верно для всех криптовалют, таков принцип их работы. Можете сами посмотреть переводы в том же Bitcoin на соответствующих ресурсах (пример). Бывают модели угроз, в которых такая прозрачность приемлема: например, когда есть уверенность, что противник по каким-то причинам не сможет получить информацию про свои цели от точек обмена криптовалюты на фиат, но понятно, что даже если это так, то на данный фактор всё равно нельзя положиться полностью.

К счастью, существуют две приватно-ориентированные криптовалюты, в которых история транзакций исследуется не так просто: Zcash и Monero.

В Zcash анонимизируются только специфические транзакции, а остальные работают как в обычных криптовалютах вроде Bitcoin, что может вносить путаницу. В настоящей главе мы рассмотрим только Monero, где анонимность предоставляется по умолчанию.

Monero

В Monero применяются очень интересные технологии, про которые можно долго говорить, но будет лучше сослаться на уже существующую хорошую серию видео от Tor Zireael. Здесь дам лишь общую схему того, как Monero защищает адрес получателя и адрес отправителя.

Для защиты адреса получателя используются стелс-адреса — одноразовые адреса, создающиеся во время перевода, которые не пересекаются с действительными реквизитами Monero-кошелька. В каждой транзакции используется два таких стелс-адреса: стелс-адрес самого получателя и стелс-адрес отправителя для получения сдачи. Кому какой стелс-адрес принадлежит — со стороны не ясно.

Для защиты адреса отправителя используются кольцевые подписи: в качестве отправителей указываются сразу шестнадцать стелс-адресов. Пятнадцать из них — это произвольно выбранные чужие стелс-адреса, то есть приманки, которые на деле к транзакции отношения не имеют и нужны только для анонимизации. Единственный настоящий стелс-адрес в кольцевой подписи — это тот, на который отправитель получал деньги в прошлом. С другой стороны, сам стелс-адрес отправителя тоже будет служить в качестве приманки в чьих-точужих транзакциях. Таким образом, становится сложно понять, откуда и куда переводятся средства в Monero. Правда, нужно учесть нюансы, о которых упомянем через пару абзацев.
Для того, чтобы завести Monero-кошелёк, советую использовать программу Feather Wallet25 — она простая, легковесная, с открытым исходным кодом и грамотно настроена на анонимность по умолчанию (при установке и эксплуатации можно всё оставлять как есть). В отличие от официального клиента, Feather Wallet стабильно работает на Whonix.
ОБЯЗАТЕЛЬНО храните мнемоническую фразу (16 слов, которые программа показывает при создании кошелька) в надёжном месте и сделайте резервные копии на другие носители. Помните, что мнемоническая фраза — это пароль от вашего кошелька, так что по ней можно получить доступ к деньгам с любого устройства. Потеря или кража мнемонической фразы приведёт к необратимой потере средств.

Поскольку криптовалютные сбережения являются популярными целями хакерских атак, есть смысл использовать отдельную виртуальную машину или даже отдельный компьютер, где не будет ничего кроме криптокошельков.

Нюансы

1. Точки входа и выхода. Как и где покупать и продавать Monero? Вопрос сразу же разбивается на два подвопроса: спреды (разницы обменных курсов) и анонимность точек входа и выхода.

Очень важно: если вы покупаете Monero для того, чтобы что-то оплатить или сделать пожертвование, то не поленитесь создать свой кошелёк в Feather Wallet и покупайте Monero на него, а не напрямую на счёт получателя. В противном случае, так как биржи и обменники записывают данные о транзакциях, будет указано, что такой-то Иван Иванов обменял гривны на Monero, которые отправились на такой-то криптокошелёк Партии умеренного прогресса. Вернёмся к теме.

Наиболее выгодно покупать валюту на централизованных криптобиржах (CEX). Из-за борьбы с отмыванием денег большинство бирж не продают Monero, но некоторые всё ещё это делают. А как же анонимность? Биржи, как и банки, требуют регистрации по паспортным данным.

На фоне бирж в выгодном свете могут представляться обменники, на которых необязательна регистрация и требуется меньше личных данных (или можно указать ненастоящие). Тем не менее, если у вас нет подставного лица, то вы будете переводить деньги обменнику со своей реальной банковской карты, поэтому обменник всё равно может предоставить мусорам достаточно информации для выхода на вас.

Если же подставное лицо у вас таки есть, то почему бы не зарегистрировать на его имя счёт на бирже? Спреды там ниже, чем на обменниках, так что это будет намного выгоднее.
Когда нужна повышенная анонимность, то вместо того, чтобы брать Monero на бирже непосредственно, можно на той же бирже покупать что-то обычное вроде Litecoin26 и потом обменивать его на Monero на каком-нибудь сервисе без KYC, желательно децентрализованном (DEX). При такой схеме усложняется поиск связи между карточкой Ивана Иванова и его Monero-кошельком.
Теперь про то, как продавать Monero. Если покупать Monero на бирже с соблюдением всех остальных правил анонимности приемлемо во многих моделях угроз, то вот заводить Monero на свой биржевой счёт для последующей продажи уже не так хорошо, потому что с каждым разом это значительно облегчает отслеживание транзакций. Лучше обменивайте Monero на другую валюту, тот же Litecoin, и продавайте уже его за фиат.

Также существуют различные способы купить Monero оффлайн за наличку, но они сильно разнятся от страны к стране, поэтому здесь проводите самостоятельное исследование. Много где можно купить Bitcoin за кэш с помощью криптоматов, после чего обменять Bitcoin на Monero, но учитывайте фактор камер и очень невыгодные обменные курсы.

В целом, невозможно дать универсальных советов по конкретным формам осуществления обмена, поэтому каждая организация, которая использует Monero, должна самостоятельно найти адекватное своей ситуации решение.
2. Волатильность. Как и Bitcoin или Ethereum, Monero подвергается сильным колебаниям. За год цена на один Monero может подняться со 120 долларов до 230, а потом точно так же упасть до 190. Из-за этого Monero пригодно как средство обращения и платежа, но не как средство накопления. Если вы не хотите рисковать, храня деньги в Monero, чтобы вас не порешал крипторыночек, то придётся время от времени обменивать Monero на фиат или стейблкоины27 вроде USDT и USDC.
3. Плохие узлы. В сети Monero, как и в сети Tor, существуют плохие узлы28, которые отслеживают активность пользователей. К счастью, в Feather Wallet по умолчанию настроена маршрутизация через Tor и подключение к Monero-узлам в зоне onion, то есть между вами и узлом будет аж шесть переходов. Для большей надёжности, как и всегда, также самостоятельно скрывайте свой IP, чтобы не полагаться только на Feather Wallet.
Те, кто обладает временем, навыками, небольшой суммой денег для оплаты тарифа и совсем не доверяет чужим узлам, могут развернуть свой собственный узел Monero на удалённом сервере и сделать его публичным, чтобы он не был связан только с вами. Для запутывания следов первое время не пользуйтесь своим узлом самостоятельно.

4. Время. Для того, чтобы ваш настоящий стелс-адрес не выделялся в кольцевой подписи транзакции как наиболее молодой, не отправляйте Monero куда-либо сразу после получения, а подождите несколько часов или пару дней. Тогда в списке стелс-адресов кольцевой подписи он окажется ближе к середине и будет менее примечательным.
Чтобы ещё больше усложнить работу потенциальным аналитикам, перед отправкой конечному получателю попробуйте с разными временными интервалами погонять29 валюту по двум-трём своим кошелькам. Каждая новая транзакция — новая кольцевая подпись и новая головная боль для наблюдателя.
5. Множественные траты. Когда вы в рамках одной транзакции отправляете деньги на один и тот же адрес получателя сразу с нескольких своих кошельков, это значительно упрощает отслеживание. Если вам нужно перевести Monero куда-либо с двух и более кошельков, перед отправкой конечному получателю сначала киньте всю сумму на один из своих, выждите время и уже потом проводите целевой платёж с этого единого кошелька.

Глава 10. Мобильник: набор базовых рекомендаций для перехода от «плохо» к «посредственно»30

Название главы может разочаровать, но такова реальность — обеспечить конфиденциальность и безопасность на мобильном устройстве намного сложнее, чем на компьютере. Кроме того, приватный телефон неизбежно связан с ощутимыми неудобствами.

Перед тем, как тратить время на дальнейшее чтение этой главы, задумайтесь: а так ли вам нужен телефон для работы в организации? Если в рамках своей революционной деятельности вы просто пишете статьи и ничего более не предпринимаете, то можно с тем же успехом выполнять свои обязанности, пользуясь только безопасно настроенным компьютером, а телефон оставить девственно чистым. В такой ситуации преимущества очевидны: чем меньше точек входа в систему, тем меньше направлений атак на неё. Недостатки же незначительны: не получится переписываться с товарищами в дороге или лёжа на диване.
С другой стороны, могут быть ситуации, когда телефон объективно необходим, к примеру, для координации работы в оффлайне31, при длительных командировках и когда надо дать по тапкам. Что делать тогда?
Лучше всего проводить до конца принцип разделения подпольной и обыденной деятельности, то есть использовать два телефона: по одному для каждой стороны вашей жизни. Это важно как для защиты от угроз из киберпространства (по аналогии с тем, как это разделение ранее предлагалось для компьютеров и жёстких дисков), так и для защиты от физического доступа в странах вроде восточнославянских, где мусора или другие недоброжелатели могут потребовать отдать разблокированный телефон.
Если во время проверки где-то на блокпосту вы решите козырнуть поверхностными познаниями в юриспруденции и скажете, что они не имеют права, что у вас есть тайна частной жизни и прочий бред из шизофренических фантазий, то вы определённо создадите себе проблемы32. Лучше сделать вид, что вы законопослушный дурачок, которому нечего скрывать, и просто отдать мобилу, на которой заведомо нет ничего интересного. Очень важно, чтобы отданное устройство не было совсем пустым как после сброса до заводских, потому что иначе подозрений не избежать.
Примечание: если вы, как и я, обладаете специфическим чувством юмора, то можете заполнить белый телефон чем-то шокирующим, но не противозаконным. Подойдёт творчество GG Allin и вокально-инструментального ансамбля AxCx. Полицаи посчитают вас не вполне вменяемым, а с таких, как известно, спросу нет.
Описанный выше способ подходит для случаев, когда вас просят добровольно отдать мобилу. Если же вас обыскивают33, то найдут второе устройство. К счастью, и на такой случай существует несколько мер предосторожности, самой простой из которых является создание второго пользователя в настройках: пользуйтесь рабочей учётной записью только во время самой работы, после чего сразу же возвращайтесь на некомпрометирующую вторую и оставайтесь на ней до следующей необходимости использовать рабочий профиль.
Разумеется, подставная учётная запись чёрной мобилы тоже должна быть с каким-то содержимым. Выдумайте сами, для чего вам нужен второй телефон, и скачайте на его второе пространство соответствующий легенде контент. Как вариант, можно установить второму пользователю игры и говорить, что вы используете этот телефон для мобильного гейминга.

Таким образом, всего у вас будет три среды:
  1. Основная белая мобила.
  2. Подставной пользователь чёрной мобилы с играми/музыкой/фильмами/священным писанием.
  3. Рабочий пользователь чёрной мобилы.
Обязательно учитывайте, что все описанные меры со второй мобилой и вторым пользователем подходят только на случай будничной проверки при отсутствии серьёзных подозрений в чём-то конкретном, как это происходит в Украине на блокпостах, а в условиях более серьёзного настроя ментов эти меры перестанут работать. Если вы пересекаете границу, на которой могут дотошно изучать электронику34, то следуйте инструкциям из следующей главы. Если же в дверь ломятся маски шоу, то компромат прятать поздно и пора уничтожать.
У кого-то наверняка возник вопрос: что делать, если сейчас нет денег на вторую мобилу? В качестве временного решения подойдёт, опять же, эксплуатация двух учётных записей. Разделение деятельности на подпольную и обыденную по двум пространствам одного телефона тоже снизит ряд рисков, хоть и не так эффективно, как использование двух отдельных устройств. При необходимости избавиться от компромата будет достаточно целиком уничтожить свой чёрный профиль.

Отступление про альтернативные прошивки
В вашей модели угроз может быть крайне желательно избавиться от тотальной слежки со стороны корпорации Google35, которая уж больно сильно залезает своими загребущими лапами в ОС Android. В таком случае могу порекомендовать установить на рабочий телефон кастомную прошивку, где не будет назойливого гугловского соседа. Хороших прошивок существует много, но особое внимание стоит уделить CalyxOS.
CalyxOS — это операционная система на основе Android, ориентированная на приватность по умолчанию. Также сразу после установки вы получите набор полезных инструментов: брандмауэр, VPN, Tor, microG («затычка», которая позволяет при необходимости включать отдельные сервисы Google и использовать их более приватно36), красная кнопка для экстренной очистки данных и многое другое.
Желающие начать пользоваться CalyxOS могут столкнуться со следующими трудностями:
  1. Систему поддерживают не все телефоны, а только указанные на сайте разработчиков.
  2. Даже те телефоны, которые указаны, иногда могут не подойти. Например, на моделях от американских мобильных провайдеров нельзя разблокировать загрузчик, что не позволяет их перепрошивать, поэтому перед покупкой мобильника под CalyxOS проверьте, доступна ли разблокировка загрузчика.
  3. Для установки CalyxOS вам понадобятся компьютер с бесперебойником37 или ноутбук, базовые технические навыки, руки из плеч и умение находить и применять инструкции из Интернета.
  4. Перепрошивка телефона может привести к потере гарантии, что неприятно, но не должно быть критично.
Настройки Android

В настройках есть пять ключевых моментов:

1. Шифрование. Просто убедитесь, что оно есть. Начиная с десятой версии Android шифрование должно стоять по умолчанию.
2. Метод блокировки экрана — исключительно PIN-код38 от 6 цифр и более или пароль. Также полностью скройте показ уведомлений на экране блокировки, отключите анимацию ввода и старайтесь отходить от людей при использовании устройства, чтобы PIN или пароль нельзя было подсмотреть.
Биометрия небезопасна! Даже если вы думаете, что никто никогда не приложит силой ваш палец к телефону, то не используйте биометрию хотя бы потому, что биометрические данные в случае кражи могут быть очень жестоко использованы против вас, а изменить биометрию, в отличие от пароля, невозможно.

3. Включение kill switch для VPN/Tor. Зайдите в раздел Сеть и Интернет в настройках устройства, перейдите в подраздел VPN, выберите нужное приложение и активируйте Постоянная VPN и Блокировать соединения без VPN.

4. Минимизация телеметрии. Если у вас не кастомная прошивка, то хотя бы запретите Google всё, что можно запретить, отключите персонализацию рекламы, удалите рекламный идентификатор и просто сократите использование всего, что связано с корпорацией зла. По возможности всё-таки перепрошейте мобилу и скажите наркотикам Google нет.

5. Управление разрешениями. Это — самое важное. Не разрешайте ничего сверх того, что необходимо. Если вам нужно отправить один скриншот в мессенджере, то дайте доступ только к этому скриншоту, а не ко всем фото на устройстве. Если вы не собираетесь указывать своё местоположение в календаре, то не давайте ему права на геолокацию. Если текстовый редактор просит доступ к журналу звонков, то ни на что не соглашайтесь и удалите этот дебильный текстовый редактор.

Полезные приложения

Для начала разберёмся, как их устанавливать. Поскольку нам не нравится Google Play, мы начинаем любить F-Droid — репозиторий Android-приложений с открытым исходным кодом. Там есть большинство необходимых программ или их опенсорсные аналоги, ищущий найдёт. Приложения из списка ниже устанавливайте оттуда.
NetGuard — брандмауэр39. Запрещаем доступ к интернету для всего, чему этот доступ не нужен или чем мы пользуемся редко.
KeePassDX — менеджер паролей, полноценный аналог KeePassXC для Android.

Кастомные клавиатуры — устанавливаем любую понравившуюся из F-Droid, чтобы не пользоваться клавиатурой от Google.

Приватные браузеры —на F-Droid есть DuckDuckGo, вне F-Droid есть IronFox. Не так хороши, как LibreWolf, но на Android выбор невелик. Ещё есть мобильный Tor Browser.

Orbot и его аналог InviZible Pro — маршрутизация трафика отдельных приложений или всего устройства через сеть Tor. InviZible Pro помимо смешного названия хорош удобной и гибкой настройкой подключения, в том числе перечня разрешённых и запрещённых узлов по странам.

AdAway — блокировщик рекламы.

Organic Maps — оффлайн карты, скачиваем перед походом в лес с большими чёрными мусорными пакетами.

Extirparter — затиратель свободного места на диске для Android, неполный аналог BleachBit. Применяем после сессий удаления чувствительных файлов.

Cryptomator — кроссплатформенная программа для пофайлового шифрования.

Duress и Wasted — обязательные приложения на случай ЧП.

Duress сбрасывает систему до заводских настроек при вводе ложного PIN-кода. Сделайте ложный PIN простым и легко запоминающимся вроде 000000, чтобы не забыть его в стрессовой ситуации. Обязательно сначала проверьте работоспособность Duress во вкладке Test. Если в ответна ложный PIN появится уведомление, то перейдите в раздел Wipe, включите его и дайте Duress нужные права. Убедитесь, что Wipe стоит на ВКЛ, и можете больше никогда не открывать это приложение. Кстати, довольно неочевидно, что если после включения сброса по ложному PIN-коду вы переходите в другие вкладки приложения, то Wipe автоматически отключается, поэтому лучше один раз настроить и не трогать.

Примечание: этот фальш-PIN нужен для того, чтобы не тратить бесценные секунды на поиск сброса до заводских в настройках тогда, когда в дверь уже ломятся незваные гости. Если во время обычного осмотра вы введёте ложный PIN-код и телефон сразу очистится, то, поверьте, ментам это очень не понравится. На рядовую проверку даётся специально подготовленный белый телефон, а не сброшенный до заводских, точка.

Wasted осуществляет тот же сброс при выполнении настраиваемых пользователем условий. Самым полезным триггером в Wasted является Lock — сброс до заводских настроек, если устройство не разблокируется за указанное количество временных единиц. Советую настраивать Lock на 24 часа в обычных ситуациях и на 12 часов в потенциально щекотливых, в последнем случае не забывайте разблокировать телефон перед сном и после него. С триггером USB будьте осторожны, у некоторых он может реагировать на зарядку.

Способы слежки за мобильными устройствами

Здесь существуют свои особые методы в дополнение к тем, которые применимы к подключённым к сети компьютерам вообще. Ниже мы разберём, в частности, слежку по SIM, Wi-Fi/Bluetooth и push-уведомлениям.

1. SIM. Зная номер телефона, можно установить примерную локацию устройства. У каждого телефона есть IMEI-номер, данные о котором передаются оператору сотовой связи, поэтому замена скомпрометированной SIM-карты не поможет: оператор увидит, что телефон, на котором раньше была симка A, теперь использует симку B. В общем, скомпрометированная SIM-карта автоматически «пачкает» телефон, и наоборот — скомпрометированный телефон автоматически «пачкает» SIM-карту.

Что-то скрыть здесь практически нереально. Можно определить, какие устройства находятся в относительной близости к телефону с симкой A, поэтому даже комбинация левого телефона с левой симкой не сильно улучшает ситуацию.
Конечно, есть вариант где-то спрятать конспиративный мобильник и ездить туда, оставляя основную мобилу дома40, но резкое понижение активности в определённые временные интервалы на одном устройстве параллельно с повышением активности на другом в долгосрочной перспективе может быть замечено.
Кроме того, если вы — любитель пообщаться по сотовой связи, то не забывайте, что ваши разговоры в любом случае будут в лёгкой доступности для оператора и, соответственно, полицаев.

Разбираться в дальнейших деталях можно, но не нужно, и достаточно усвоить одно простое правило: сотовая связь не анонимна и не конфиденциальна. Для регистрации где-либо по номеру телефона используйте виртуальные SIM-карты или покупайте готовые аккаунты, а для коммуникации используйте защищённые мессенджеры.

Примечание: сказанное выше применимо и к LTE-модемам, так как у них тоже есть IMEI-номера. Хотите запутать след на случай, если ваше подключение по модему когда-то будет скомпрометировано? Меняйте и модем, и симку раз в N недель, но имейте ввиду, что это не панацея.

2. Wi-Fi/Bluetooth. Возможно, при использовании навигаторов вы замечали, что для уточнения геолокации они иногда просят включить поиск сетей Wi-Fi. На самом деле, отслеживать примерное местоположение можно даже без GPS, основываясь исключительно на данных о ближайших Wi-Fi-сетях и Bluetooth-устройствах, и существуют даже специальные противоугонные средства, которые это используют. Таким образом, если вы хотите скрыться, то выключайте не только GPS, но и Wi-Fi с Bluetooth, а ещё лучше — заведите себе привычку не держать их постоянно включенными.

3. Push-уведомления. Вещь, безусловно, полезная и нужная, но есть одна большая проблема: для отправки push-уведомлений, как правило, используются сервера Google, и уже были случаи, когда ФБР эксплуатировало это на практике против своих объектов.

Проблема вполне решается только отключением гугловских push-уведомлений (не просто отключением показа пушей, а именно отключением самих пушей, для чего оптимально использовать приватную прошивку). Смягчением риска со стороны приватности содержимого уведомлений (но не со стороны анонимности) является настройка уведомлений в приложениях на минимальную информацию: например, чтобы показывалось не всё сообщение из мессенджера, а только отправитель или вообще только факт наличия нового сообщения.

Если указанные варианты действий не подходят, то придётся принять угрозу или попытать счастья с UnifiedPush, однако последний поддерживают не все приложения.

Глава 11. Сборная солянка: важные вещи, которые не вошли в остальные главы

В настоящем разделе эта глава, как говорят англосаксы, last but not least. Никогда не стоит пренебрегать мелочами, потому что порою они способны оказаться более значимыми, чем то, о чём думается в первую очередь.

Приватный поиск

Среди приватных поисковиков наиболее популярен DuckDuckGo. По сравнению с Google он, безусловно, хорош, но не без ложки дёгтя: своя телеметрия тоже присутствует. Если в вашей модели угроз это неприемлемо, то можете использовать ещё более приватные сервисы, к примеру, Qwant. К сожалению, DuckDuckGo и Qwant во время поиска по узкоспециализированным темам иногда выдают недостаточно релевантные ответы, в таких случаях есть смысл заходить на Google под Tor Browser.

Метаданные

Метаданные — это данные про данные. У каждого файла есть время создания и изменения, остальные метаданные зависят от формата и особенностей отдельных файлов.

Некоторые метаданные могут привести к деанонимизации, наиболее опасны геолокация фотографии и имя создателя текстового документа. Метаданные — это недооценённый вектор атаки, ведь по невнимательности при отправке файлов можно моментально раскрыть критическую информацию.

Для удаления метаданных с фото, видео и файлов pdf установите утилиту ExifTool.

Для того, чтобы освободиться от инфернального рабства у Microsoft, и чтобы у вас не указывались лишние метаданные на текстовых файлах при их создании, используйте LibreOffice или OnlyOffice вместо MS Office и свободный формат odt вместо docx.

И в ExifTool, и в LibreOffice/OnlyOffice ничего сложного нет, но это не отменяет того, что они практически обязательны для приватности, если вы работаете с файлами.

VirusTotal и конвертеры

VirusTotal — это популярный сайт для проверки файлов на вредоносные компоненты. VirusTotal действительно хорошо их находит, потому что пользуется базами сразу многих антивирусов, однако этот сервис на деле не бесплатен: проверку на вирусы вы оплачиваете данными из проверяемых файлов, которыми VirusTotal потом торгует. Сказанное не является конспирологией: так-то при использовании вы добровольно на это подписываетесь, даже если не читаете соглашение. В общем, не могу сказать, что VirusTotal нужно совсем отбросить, потому что вещь толковая, но не проверяйте на нём ничего содержащего конфиденциальные/компрометирующие данные.

Другое дело — онлайн-конвертеры файлов. Не поленитесь скачать себе оффлайновый конвертер с открытым исходным кодом, потому что ничего незаменимо полезного в онлайн-конвертерах нет, а вот слив данных оттуда происходит очень шибко.

Вас это может удивить, но даже в серьёзных коммерческих организациях VirusTotal и онлайн-конвертеры являются весьма и весьма распространёнными источниками утечек информации.

Небезопасные USB-устройства

Чем может быть опасна флешка? Очевидно, что вредоносным ПО. Менее очевидно, что под флешку может быть замаскирована USB-клавиатура, после чего такая «флешка» используется как инструмент удалённого доступа. Похожую маскировку под другое устройство, кстати, можно выполнить и для телефонной зарядки. Вывод? Не вступайте в незащищённые USB-подключения и ограничьте количество USB-партнёров ваших устройств до того минимума, при котором можно быть уверенным в отсутствии риска заражения.
Проверка техники на границе41
Как проводить зачистку данных на чёрных устройствах перед пересечением границы?

1. Сперва делаем резервные копии важных файлов в криптоконтейнер и отправляем это зашифрованное добро на приватное облако.

2. Ссылку на криптоконтейнер в облаке кидаем доверенному товарищу, который не потеряет ссылку и с которым ничего не случится в ближайшее время. Просим друга сохранить у себя локально и ссылку, и по возможности контейнер. Продумываем, как мы свяжемся после перехода. Удаляем переписку и теряем свой доступ к облаку, чтобы данные хранились только у нашего товарища. Это защитит нас от давления, потому что мы обладаем лишь ключом от сейфа (паролем), но без товарища не сможем получить сам сейф (криптоконтейнер) даже при всём желании.
3. Проводим полную очистку от компромата42.
Чёрный телефон сбрасываем43 до заводских и для легенды накачиваем на него чего-нибудь непримечательного. На ПК чёрные виртуальные машины и жёсткие диски стираем до блеска посредством BleachBit. Очищенный жёсткий диск, как и сброшенный телефон, надо заполнить каким-то неинтересным содержимым.
Важно, чтобы у вас было хотя бы по одному белому диску и телефону, на которых много давно накапливающегося хлама, потому что только тогда пустоватые вторые устройства не будут выделяться. Если же отсутствие сколько-нибудь длительной истории пользования обнаружится не на паре устройств из многих, а вообще на всех, то для проверяющего это будет выглядеть совершенно иначе.

Лишний раз повторю: пустой телефон — гарантированные подозрения. Должно быть белое устройство, которое безопасно отдавать в мусорские лапы. Если у вас есть только один мобильник, то см. рекомендации выше касательно второго пространства и его сноса.

4. Приезжаем на кордон, без возражений всё показываем и отвечаем на все глупые вопросы спецслужбистов, притворяемся обыкновенным скучным лохом.

5. После пересечения границы восстанавливаем контакт с товарищем и получаем обратно криптоконтейнер с нашими данными.

Раздел III. Основы некомпьютерной безопасности

Здесь вы прочитаете всего одну небольшую главу, однако краткость этого раздела не отменяет его важности для тех, кто занимается революционной деятельностью за пределами киберпространства.

Глава 12. Выходя из комнаты

Перед тем, как говорить о безопасности в оффлайне, нужно сперва определиться, какое соотношение оффлайн и онлайн-работы оптимально для вашей организации. Иначе говоря, надо решить, когда есть рациональный смысл покидать свои пещеры, а когда — нет.

С точки зрения практической целесообразности, к примеру, нет резона собираться всей гоп-компанией и ехать на кружок по гегелевской философии в уездный город N, когда тот же кружок можно вести в Интернете без временных затрат на проезд и географических ограничений. В то же время, едва ли вы подымете на забастовку рабочих, общаясь с ними только по сети. Каждому делу подходит свой способ.
С точки зрения безопасности у встреч в реальной жизни есть как преимущества, так и недостатки. С одной стороны, когда революционеры собираются вместе, то это позволяет противнику зафиксировать внешность участников событий, расширить наружное наблюдение с одного подозреваемого до нескольких, задержать сразу всю группу. Особенно сильно риски повышаются тогда, когда среди товарищей есть крыса или мусор44. С другой стороны, оффлайн — это действенный способ сократить цифровой след.
Возможно, вы придерживаетесь мнения, что живое общение лучше цифрового, и здесь я не могу поспорить: хорошо, когда видишь, горят ли глаза собеседника негасимым пожаром или же тлеют слабым огоньком. Кроме того, революция, в конечном счёте, будет разворачиваться не на экране ноутбука, а потому нужно сколачивать прочные коллективы на местах. Я не буду топить за то, чтобы все и везде вне зависимости от конкретной модели угроз отказывались от оффлайна. Тем не менее, старайтесь оценивать свою ситуацию здраво. Перед тем, как сделать что-либо, задумайтесь, оправдывают ли предполагаемые результаты предполагаемые риски. Может, было бы весело проводить кружок где-нибудь в Одессе на берегу Чёрного моря, но и не менее весело для фараонов было бы скручивать участников такого кружка.

Закрытые мероприятия

Для каждого типа мероприятий каждая организация должна прописать свои правила, соответствующие её целям и объективному положению. Здесь обозначим общие принципы и будем исходить из тех условий, когда нужно исключить стороннее внимание и сохранить анонимность. Для удобства выделим два пункта: участники мероприятия и его организация.

1. Участники.

Вовлекаться в любые закрытые акции должны исключительно те, кто ранее уже успел показать себя на практике революционной деятельности ответственным и надёжным товарищем. Также перед тем, как давать новому человеку возможность вступить в группу, одному из её членов необходимо сперва встретиться с новичком лично, чтобы поговорить с последним и убедиться в его вменяемости.

Особенно важными качествами для каждого участника группы являются:

- Внимательность. Во время самих акций, а также по дороге к ним и обратно революционеры должны постоянно обращать внимание на то, что происходит вокруг, чтобы противник не мог застать их врасплох. Не стоит отвлекаться на музыку, чтение или долгие разговоры.
- Смекалка. Феликса Дзержинского не раз спасало умение со скоростью и умом реагировать на неожиданности: однажды45 входя в квартиру он понял, что там готовилась засада. Сразу же своим ключом он запер жандармов снаружи, после чего успешно скрылся. Берите с Дзержинского пример и учитесь быстро соображать в стрессовых ситуациях, медлительность бывает губительной.
- Дисциплинированность. Без этого — никуда. Товарищи обязаны чётко следовать намеченному плану и не отклоняться от него. Во время акций и по пути ни в коем случае нельзя совершать незапланированные нарушения, даже незначительные: было бы очень глупо привлечь к себе внимание полицаев и провалиться из-за перехода дороги на красный свет или превышения скорости во время езды.

Также на организационных мероприятиях участники группы, очевидно, не должны выделяться внешне. Что это значит?

Одежда должна быть неприметной, повседневной, «как у всех», в нейтральных тонах. Кроме того, не стоит одеваться так же, как вы обычно ходите на учёбу или работу, чтобы по одежде вас не смогли опознать: выберите то, что носите редко.
Если нужно скрыть лицо, то используйте социально адекватные средства: парики46, капюшоны, кепки, панамки, солнцезащитные очки летом и шарфы зимой. С другой стороны, недопустимо ходить по улице в балаклаве как бандит из S.T.A.L.K.E.R., даже если в вашей стране это формально не запрещено.
Все приметные аксессуары перед акцией должны быть сняты, в том числе пирсинг. Категорически запрещаются аксессуары, связанные с идеологией.

Татуировки должны быть закрыты одеждой.

2. Организация мероприятия.

Перед мероприятием вы должны договориться по какому-то безопасному каналу связи о том, что, как, где и когда вы делаете. Вопросы что и как решаются в зависимости от конкретной ситуации, а вот по поводу где и когда можно дать более-менее общие советы.

Что бы у вас ни происходило, это не должно быть на месте жительства или работы кого-либо из товарищей, их друзей и родственников. Выбирайте территорию, которую нельзя связать с личностями участников организации.

Идём дальше: как договариваться о встречах? Для минимизации рисков предлагаю такую схему: за день, несколько дней или неделю до самого мероприятия участники договариваются только о времени и приблизительном районе сбора. Точное же место сбора раскрывается руководителем непосредственно в день акции за час-два до её начала (чем позже, тем лучше). При этом желательно, чтобы сбор и само мероприятие проходили в разных местах; тогда после сбора все должны немедленно отправиться к месту проведения акции согласно плану руководителя. Таким образом, в случае утечки противнику будет сложнее оперативно отреагировать и спланировать свои действия, чем если бы у него была вся нужная информация задолго до событий.

Логически возникающий следующий вопрос — какие действия нужно предпринимать по пути от дома на мероприятие и обратно.

Что нужно сделать перед выходом? Уведомить о планах группы уполномоченных товарищей, которые сами не участвуют в мероприятии, чтобы при ЧП группа не пропала бесследно. Точно так же нужно отчитываться друг перед другом по приезду домой после акции о том, что у всех всё ровно.

Если у вас есть ближайшие родственники или супруг/супруга, которым вы доверяете, то наизусть запомните их телефонные номера и также ставьте их в известность про потенциально опасные ситуации с вашим участием, но без подробностей о том, что именно вы будете делать.

Что брать с собой в дорогу? Только самое необходимое, причём в последнее необязательно входит ваш мобильный шпион. Если коллектив достаточно дисциплинирован, то перед выходом можно оставить телефон дома и просто прийти в условленные место и время. Здесь особенно важна пунктуальность. Не стоит приходить как слишком рано, так и слишком поздно, чтобы никто не был вынужден ждать, потому что ожидающие всегда привлекают внимание посторонних. Когда ждать всё же приходится, то лучше делать это не посреди улицы, а на остановке, в закусочной или пивной, то есть там, где ждуны не будут выделяться.
Если же телефон для каких-то задач всё-таки нужен, то порой достаточно взять его лишь одному или нескольким участникам мероприятия, а не всем сразу. В таком сценарии, во-первых, телефон должен быть чистым, без компромата, во-вторых, для защиты от слежки ещё до приезда на точку в мобильнике необходимо выключить геолокацию47 и включить режим полёта48 на всё время, пока вам нужно будет скрывать свои передвижения. Учитывайте, что и это — не панацея: оператору сотовой связи будут заметны ваши провалы активности, которые в перспективе можно сопоставить по времени с мероприятиями.
Что НЕ брать с собой в дорогу? Вроде очевидно, но ведь нельзя не написать: наркотики и нелегальное оружие. Последнее особенно важно. Средства самообороны — тема прекрасная и очень нужная, но они не должны создавать больше рисков для вас, чем для воображаемых нападающих. Кроме того, ножи, даже если они легальные, брать с собой на каждый моцион категорически не рекомендуется. Запомните, дети: нож — это орудие убийства и нарезки колбасы, но не самообороны. Инструменты должны применяться только по назначению.
Как добираться туда и обратно? Лучше всего пешком или на общественном транспорте. Популярные службы такси49 часто собирают много данных о клиентах, а если вы едете на своём автомобиле, то номера — это идентификатор вашей личности.
Предпочтительно, чтобы каждый прибывал на мероприятие и уходил с него поодиночке. Если же какую-то часть пути вы идёте с товарищами, то не обсуждайте никаких организационных дел до тех пор, пока не будет полностью исключена возможность того, что ваш разговор будет услышан.

Если вы едете на общественном транспорте и подозреваете слежку, то сделайте несколько внезапных и быстрых пересадок. На каждой пересадке наблюдайте за теми, кто выходит и заходит вместе с вами. Помните, что наружное наблюдение всегда осуществляется командами, поэтому на разных участках маршрута за вами могут следить разные менты. Выходите не на ближайшей к пункту назначения станции, а после неё или перед ней. Дальше добирайтесь быстрым шагом, часто сворачивая с одной улицы на другую. Чем более запутанным и угловатым получится итоговый маршрут, тем лучше.

Ещё есть один интересный способ защиты от наружки, который на первый взгляд может показаться нелепицей. Суть способа в том, чтобы постоянно бегать. Зачем? При наружном наблюдении мусора почти всегда либо идут пешком, либо едут на машине. Если вы бежите, то ваша скорость становится слишком высокой для ходячего мента и слишком низкой для едущего. В то же время, полицаю проблематично незаметно перейти на бег вслед за вами, особенно когда вы бежите по безлюдной улице. В общем, способ хоть и экстравагантный, но зато рабочий и полезный для здоровья. Из соображений социальной адекватности одевайтесь по-спортивному и бегайте не слишком быстро.

Примечание для курильщиков: когда вы курите, то оставляете образцы своего ДНК, поэтому воздерживайтесь от курения на мероприятии и по дороге.

Переговоры

В реальной жизни, в отличие от Интернета, общение происходит без посредников, поэтому теоретически в оффлайне можно добиться большей приватности беседы.

Понятно, что телефоны во время важных переговоров должны быть переведены в режим полёта или оставлены дома.

Для защиты от прослушки лучше всего говорить на пустырях или в немеблированных помещениях без окон с хорошей звукоизоляцией (например, в подвалах). Так как современные прослушивающие устройства найти трудно, можно обзавестись специальными приборами для генерации шумов, которые делают речь на записи неразборчивой.
Альтернатива — не говорить вслух ничего важного и обмениваться мыслями путём показа друг другу записок с немедленным уничтожением после прочтения. Например, можно писать и стирать текст в оффлайновом редакторе на телефоне или карандашом с ластиком на бумаге. Во втором случае пишите как можно более лёгкими движениями, чтобы на листе не продавливались следы50.
Демонстрации

Опираясь на опыт товарищей из других стран могу сказать, что главные правила на таких мероприятиях очень просты (что не отменяет их важности):

1. Не оставлять следов своего пути на демонстрацию и обратно (см. выше).
2. Не допускать провокаций: запрещённые предметы или лозунги51, хулиганство, атаки на ментов и тому подобное.
3. Не рассредотачиваться и не давить друг друга, держаться ровным строем из нескольких шеренг. Если во время демонстрации вас пытаются скрутить космонавты, то сформируйте с товарищами цепь: каждый крепко схватывает своих соседей по шеренге за локти, как на фото.
Полицайская проверка

Как думаете, если вы мирно идёте по улице и вас останавливают патрульные, чтобы осмотреть вещи и проверить документы, то что они надеются найти? В подавляющем большинстве случаев — конечно же наркотики!

Будем подразумевать, что вы — люди сознательные, потому наличие в ваших карманах запрещённых психоактивных веществ исключено.

Итак, вы заметили направляющихся в вашу сторону людей в форме. Если у вас нет при себе никакого компромата, то нужно просто позволить им провести проверку. Если же компромат есть, то существует два исключающих друг друга варианта:

1. Социальный стелс, то бишь забалтывание зубов. Не стоит недооценивать этот способ, потому что если у вас компромат чисто идеологического характера, то рядовые менты с большой вероятностью могут не обратить на него внимание. Конечно, очень многое зависит от ситуации в стране, характера попавшихся вам патрульных, самого компромата, а также от ваших навыков убеждения и обмана.

В нашей истории был такой случай: товарищ Владислав возвращался домой с рюкзаком, на дне которого лежала книга «Великая Октябрьская социалистическая революция. Энциклопедия», а внутри неё — агитматериалы. Когда Влад зашёл в метро, то к нему тут же подбежала ментовская собака и начала обнюхивать. Сержант заподозрил наличие наркотиков и попросил Влада пройти в комнату на обыск. В рюкзаке до книги ещё нужно было разгрести много личных вещей, и в процессе обыска сержант завёл с Владом разговор. Влад рассказал, как он ездил на отдых, как провёл время с друзьями, где и на каком факультете учится и сам поинтересовался у сержанта, как идёт служба. Потом Влад заметил в комнате дисковый телефон и спросил, пользуются ли всё ещё таким старьём и почему не продвигается реформа ментуры. Сержант начал хаять начальство в целом и эту реформу в частности, в это время обыск подходил ко дну рюкзака. К самой энциклопедии сержант отнёсся спокойно, сказав: «хорошая книжка», но внутри неё он увидел листовки. К счастью, к ним сержант присматриваться вообще не стал отчасти потому, что Владу повезло, и сержанту хотелось найти именно наркотики, а отчасти потому, что в ходе разговора Влад ослабил бдительность сержанта, общаясь доброжелательно и ни разу не продемонстрировав волнение. В итоге Влад и сержант пожелали друг другу удачи и благополучно разошлись.

2. Бежать. Этот способ приходится применять тогда, когда невозможен первый из-за наличия недопустимых к проверке предметов. Помимо физподготовки на шансы очень сильно влияет местность. Например, нелегко скрыться на открытом пространстве с широкими улицами без подворотен.

Вы должны уметь быстро оценивать ситуацию, чтобы понимать, какая линия поведения выгоднее, потому что когда вы выбираете одну, то автоматически усложняете или делаете невозможной другую.

Раздел IV. Провал

Вплоть до настоящего момента в книге описывались методы предотвращения провала. Зачем тогда нужен раздел с таким заголовком?
Как утверждает диалектика, не абсолютно ничто кроме всеобщего движения материи. Если выражаться не выпендриваясь, то даже при идеальном соблюдении всех правил безопасности, которые только можно придумать, нельзя гарантировать свою неуязвимость. Само по себе полное исключение своих ошибок — это невыполнимая на долгой дистанции задача52, но даже если бы было по-другому, то никогда нельзя списывать со счетов объективный фактор. Следовательно, для того, чтобы книга была логически завершённой, нужно разобрать в ней и вопрос провала.
Очевидно, что каждая организация должна самостоятельно разработать свои планы действий при ЧП исходя из своего конкретно-исторического положения. Тем не менее, ниже я постараюсь изложить относительно универсальные рекомендации, черпая идеи из которых вы сможете упростить создание инструкций под свой случай.

Глава 13. Подготовка

Юридическая грамотность

В данном контексте подразумеваются не какие-то знания в юриспруденции вообще, а именно те, которые будут нужны вам, когда возникнут трудности. Как завещал Остап Бендер, чтите Уголовный кодекс.

Важно регулярно повышать юридическую грамотность всей организации через обучающие курсы от компетентных товарищей. Если такие курсы вы пока не создали, то придётся полагаться на самообразование. В обоих случаях вот ключевые пункты, которые необходимо изучить:

1. Зоны ответственности различных «правоохранительных» органов и общая информация о том, как проходят гласные и негласные следственные и розыскные действия в вашем государстве.
2. Правовой статус53 вашей организации.
3. Статьи Уголовного кодекса, которые могут вменяться товарищам.

4. Порядок проведения досудебного расследования и судебного рассмотрения, то есть последовательность событий, которые будут происходить при провале.

5. Полномочия «правоохранителей», права и обязанности подозреваемых и свидетелей на каждой из стадий уголовного процесса.

Адвокат

Стоит обзавестись контактом адвоката, а лучше и договором с ним ещё до того, как вы окажетесь в ИВС или СИЗО. Адвокат нужен не абы какой, а именно что специализирующийся на делах вроде ваших. Особенно круто, если адвокат имел опыт работы ментом или прокурором, поскольку такие защитники знают, что происходит по ту сторону правовых баррикад.

Контакт адвоката храните не только в цифровом виде, но и на бумажке, которую можно будет захватить с собой.

Семья

«Правоохранители» могут как давить на ваших близких, так и играть с ними в благонамеренность: мол, расскажите-ка вы то и сё про своего мужа, тогда ему самому будет лучше. Бред? Бред. Зато в действительности этот бред применяется и вполне может срабатывать на морально неподготовленных людей в состоянии сильного стресса.

К счастью, в соответствии с Конституцией и Уголовно-процессуальным кодексом Украины ваши близкие родственники и члены семьи имеют право не давать показания против вас. Похожие законы существуют во многих других странах.

Соответственно, заранее уведомьте свою семью, что с вами может что-то произойти, и если это что-то таки произойдёт, то они должны молчать, не реагируя на манипуляции следователей и оперуполномоченных. Также поделитесь с близкими контактом своего адвоката, ведь, скорее всего, именно они будут ему звонить.

Естественно, беседа с роднёй по поводу ваших проблем с законом может оказаться не самой приятной, но она необходима.

Соседи в общежитии

Мусора могут вполне законно требовать у ваших соседей дать показания на вас. Таким образом, наилучшее решение — с самого начала не рассказывать соседям вообще ничего компрометирующего. Даже если вы им очень сильно доверяете, то не отягощайте их знанием о вашей деятельности, ведь это будет бестактно — подобная информация повышает риски для знающих, при этом ничего не давая взамен.

Единственное, что нужно знать соседям — это контакты вашей семьи. Просто скажите, чтобы звонили родственникам в случае любых ЧП. Не уточняйте, какие именно ЧП могут произойти.

Как менты проникают в жильё
Очень часто — через дверь, которую открывает сам обыскиваемый. Мусора могут как честно сказать, что они за вами пришли, так и использовать различные хитрые тактики. Например, стучатся полицаи рано утром54 и говорят, что возникла какая-то срочная проблема вроде затопления квартиры снизу. Вы открываете, а дальше — финита ля комедия.
Если вы не открыли дверь, то они откроют её сами, то есть выбьют. Количество вашего времени на заметание следов зависит от того, насколько прочна ваша дверь. Тем, у кого есть финансовая возможность, лучше не поскупиться и поставить дверь из металла, потому что выбивать такую дверь будут ощутимо дольше, чем деревянную. В плане выигрыша времени дополнительным преимуществом также обладают жители частных домов.

В любом случае исходите из того, что всё сводится лишь к числу ваших секунд в худшем случае или минут в лучшем. Мусора не могут не ворваться, если они уже получили соответствующее определение суда. Даже если у вас очень прочная сейфовая дверь, то всегда существуют обходные пути, такие как окна, балконы и пролом стен.

Компромат

Во-первых, не надейтесь ничего спрятать у себя дома. При тщательном обыске это невозможно, а рассчитывать на халатность противника глупо. Грамотный мент знает все места, в которых преступники делают тайники.

Во-вторых, в отношении компромата соблюдайте простое правило: при вас должно быть только то, что нужно для работы в данный момент. Дома и в машине не должно быть нелегальной бумажной литературы, неиспользованных агитационных материалов, разного рода идеологической символики. Весь цифровой компромат, будь то компьютеры, телефоны, диски и флешки, должен быть зашифрован и готов к экстренному уничтожению.

Избавляйтесь от всего, что вам не нужно здесь и сейчас, соблюдайте принцип минимализма. Если по какой-то причине это невозможно, то храните неиспользуемый в обозримой перспективе компромат в конспиративном месте, которое невозможно связать с вашей личностью.

Глава 14. Побег

Обычно встреча с правосудием либо рано или поздно происходит, либо не происходит никогда. Тем не менее, возможен и третий вариант: вы оказались на грани провала, каким-то образом смогли об этом вовремя узнать и решили скрыться, пока не стало слишком поздно. Рассмотрим, как это можно сделать в украинских реалиях.

Как подготовиться к побегу?
Два главных фактора — это хранение достаточно большой суммы денег наличностью55 и заранее продуманный план действий: как и куда выходить из дома, где остановиться на первое время, на каком транспорте и куда переезжать, чем заниматься дальше.
Как понять, что пора вставать на лыжи?

Получить вполне достоверную информацию о том, что вы в разработке, ещё до того, как ваши руки оказались в наручниках, может быть непросто или даже невозможно, поэтому всегда надо быть готовым к срочному уничтожению улик и вызову адвоката.

Тем не менее, если вам очень повезёт, то у вас может появиться шанс вовремя учуять неладное. Рассмотрим два варианта.

1. Самостоятельное обнаружение.

Пример 1: вы заметили, что возле вашего подъезда начала часто парковаться подозрительная машина, которую вы не замечали ранее, при этом в ваш дом за последнее время никто не переезжал. При таких вводных либо вы были невнимательны, и это старая машина кого-то из жильцов, либо это новый соседский автомобиль, либо за вами идёт наружное наблюдение.

Пример 2: к вам приходят якобы из ЖКХ под предлогом проверки показаний счётчиков, хотя вы никого не ждёте и раньше такого не происходило. Проверяющие активно пытаются завязать с вами диалог. Возможно, это мусора, которые хотят изучить вашу квартиру и провести психологическую разведку.

2. Получение информации от третьих лиц.
Пример 1: фараоны опрашивают56 ваших друзей, соседей и знакомых на ваш счёт, требуя не говорить об этих опросах никому. Кто-то всё же поставил вас в известность.
Пример 2: у вашего товарища уже произошла встреча с «правоохранителями». Каким-то образом товарищ предупреждает вас, что вы в опасности.

Как уйти незамеченным?

Начать следует с уведомления товарищей о том, что вы вынуждены временно пропасть с радаров. Не пишите поэму, хватит краткого сообщения: «Залегаю на дно. Отпишу, когда буду в безопасности».

После этого нужно избавиться от всего компромата. Здесь подразумеваем, что у вас есть достаточно времени, то есть хотя бы один час. Экстренное уничтожение улик после стука в дверь проходит иначе, его рассмотрим в следующей главе.

Наиболее очевидный способ избавиться от бумажных материалов — это сжечь их. Данный способ не лучший, во-первых, потому что он привлечёт внимание, во-вторых, потому что он малоэффективен, особенно при большом объёме сжигаемого материала. Намного лучше разорвать бумагу на куски, размочить в тазике чистящими средствами вроде белизны (предварительно нужно провести тесты, насколько хорошо растворяет бумагу с текстом именно ваше средство), а потом размешать и скомкать в кашицу. Заливайте размеренными движениями, чтобы на фоне стресса, особенно если дрожат руки, не попасть себе на глаза и слизистые оболочки.

Компьютер чистим до блеска с помощью BleachBit.
Как чёрные, так и белые мобильники сбрасываем до заводских настроек. Теперь для обрыва следа или просто оставляем их дома, или навсегда переводим в режим полёта и извлекаем SIM-карты. Так или иначе, старыми телефонами и симками больше не пользуемся. Нацеливаемся на то, чтобы избавиться от них57 и купить новое устройство в течение суток.
Как только компромата не осталось, можем готовиться к выходу из дома. С собой надо взять документы, деньги и небольшую сумку для личных вещей. Вы должны идти налегке, без тяжёлого груза, и выглядеть совершенно буднично, чтобы со стороны не было ясно, что вы собираетесь сваливать с концами. Выходим.

Если нет денег наличкой, но есть на карте, то снимаем сумму побольше в ближайшем от дома банкомате. Если нет денег вообще, то берём взаймы у родственников или близких друзей, в последнем случае — под выдуманным предлогом, чтобы не делать никого соучастником. Угрызения совести оставляем на потом, сейчас нужно выжить и остаться на свободе.
Покупаем новый телефон и, в случае срочной необходимости, симку58. Если это возможно, то стоит подождать и купить новую SIM-карту уже после переезда, так как активация SIM-карты с одесским номером в Полтаве — дело редкое и нетипичное, а потому привлекающее внимание.
Решаем, куда направиться. Лучше всего выбрать город, в котором вы никогда не бывали, и снять там квартиру. Точно нельзя переезжать к ближайшим членам семьи, потому что после вашей пропажи их проверят. В крайнем случае первые дни можно пересидеть у друзей или дальних родственников, которым вы доверяете и с которыми вы достаточно давно не виделись.

Ищем любой транспорт, который оплачивается наличкой и на котором не требуют паспортных данных. Выбираем маршруты не прямо в наш пункт назначения, а дальше него. Для запутывания следов где-нибудь в середине пути хотя бы раз делаем неожиданную пересадку.

Как быть на новом месте?
Сперва было бы хорошо узнать свой правовой статус. Например, в Украине можно зайти59 на сайт МВД и глянуть, находимся ли мы в розыске. Если нет, то это значит, что СБУ, скорее всего, ищет нас самостоятельно60.
Так или иначе, образ жизни после переезда ведём скромный и скрытный: меняем внешность, редко выходим на улицу, экономим, ни с кем не вступаем в конфликты или близкие отношения, не ведём социальные сети, следим за физическим и ментальным здоровьем, не уходим в запой, соблюдаем кибербезопасность, никому не открываем двери.

Непростым вопросом в сложившейся ситуации станет заработок. Если вы действительно хотите исчезнуть, то надо отказаться от использования банковских карт на своё имя, а также трудоустраиваться неофициально.

Можно как найти работу с оплатой в конверте по месту жительства, так и для того, чтобы не высовываться из дома лишний раз, поискать удалёнку, на которой не спрашивают паспорт и выплачивают деньги в крипте. Во втором случае нужно будет переводить криптовалюту в фиатные деньги на карту подставного лица, с чем могут возникнуть трудности. Встретить украинского бомжа без миллиона счетов на его имя в наше время уже не так просто, как раньше, поэтому, вероятно, придётся рискнуть и обратиться с таким запросом к дальним родственникам или друзьям.

Если организация способна оказывать вам финансовую помощь, то ни с кем не встречайтесь и просите оставлять деньги в закладках, причём не в своём новом населённом пункте, а на удалении от него.

Как быть со старыми контактами?

Сначала восстанавливаем связь с родственниками по безопасному каналу связи с исчезающими сообщениями и объясняем, что, собственно, произошло, а также предупреждаем их, что к ним могут прийти фараоны. Инструктируем по поводу того, как вести себя в такой ситуации.
Общение с друзьями, к сожалению, придётся разорвать. Впрочем, если у вас есть особенно близкие друзья, которые будут пытаться искать вас, то, быть может, не лишено смысла выдумать легенду61, объясняющую вашу пропажу, самостоятельно связаться с ними, успокоить и попросить не делиться ни с кем вашим контактом без разрешения.
Связь с товарищами возобновляем постепенно: для начала достаточно списаться с одним или несколькими доверенными людьми — с одной стороны, чтобы в организации знали, что у вас всё в относительном порядке, с другой стороны, чтобы вы могли узнавать новости и при необходимости запрашивать помощь. После каждого сеанса переписки очищаем следы со своих устройств. С возвращением в общие чаты и в работу в целом не спешим, первые пару недель лучше переждать. Само собой, от любых контактов в оффлайне отказываемся полностью, чтобы в случае слежки и мы никого за собой не потянули паровозом, и нас тоже никто не потянул.

Глава 15. Встреча

Вот и настал час последней главы этой книги. Искренне желаю, чтобы написанное ниже никогда вам не пригодилось, но всё равно прошу внимательно изучить.

Перед обыском

Эта ночь кажется совершенно обыденной: несколько часов назад вы почистили зубы, укутались одеялом и погрузились во владения Морфея. Неожиданно вы просыпаетесь от громкого стука в дверь. На часах — 06:15. И дураку понятно, что ни один приятный гость в такое время не приходит. Конец близок. Ваши действия?

Во-первых, постарайтесь быстро сообразить, сколько у вас времени. Обычно это одна-две минуты до выбивания дверей, при удачном стечении обстоятельств — до пяти. Количество времени зависит от вашего навыка его тянуть, настроения ментов и прочности двери. Единственный рабочий способ выиграть время в такой ситуации, то есть отказаться открывать дверь сразу же, — это говорить, что вам (и вашим домашним, если они есть) нужно одеться и сходить в туалет. Для лучшего эффекта можете даже поэтапно уведомлять ментов о том, как и что вы «надеваете».

Пока дверь ещё не открыта, имеющиеся мгновения надо тратить с умом, не думая о секундах свысока.
Сразу вызывать адвоката не спешите62: даже если вы договорились с ним заранее, то вряд ли он приедет моментально, так что можно отложить это дело до момента, пока вы не уничтожите улики.
Опционально: если вы способны очень быстро, секунд за десять, открыть телефон и написать товарищам слово «Обыск», то можете постараться это сделать. Такой шаг является рискованным, потому что так вы теряете свои драгоценные секунды, но зато вы не пропадёте в неизвестность, а также предупредите других о возможной опасности.

Как уничтожать улики? Действовать нужно в порядке уменьшения временных затрат и доказательной силы компромата.

Приложения Duress и Wasted и шифрование дисков во втором разделе описывались как обязательные меры, поэтому здесь представим, что вам нужно уничтожить компромат на следующих носителях: бумаги, телефон с Duress и Wasted и зашифрованный жёсткий диск компьютера.

Начнём с мобильника. Ваш пароль, PIN-код или графический ключ, вероятно, уже подсмотрен фараонами во время наружного наблюдения. Кроме того, перебор коротких мобильных PIN-кодов и графических ключей может оказаться успешным если не сразу, то в течение нескольких месяцев. Соответственно, первым делом сбрасываем телефон до заводских настроек быстрейшим образом.

Дальше — бумаги. По-хорошему бумажные улики не должны храниться вообще, а если они есть, то их не много. Так как на тщательное уничтожение с помощью чистящих средств сейчас нет времени, то проще всего разорвать компромат на мелкие кусочки, смешать с туалетной бумагой и смыть в унитаз, имея ввиду, что звук смыва привлечёт внимание ментов. Огонь, опять же, не рекомендуется, потому что это медленно и ненадёжно.
Наконец, компьютер. Если данные зашифрованы с помощью LUKS, VeraCrypt или BitLocker63, то без вашего сотрудничества получить к ним доступ, скорее всего, не выйдет. Тем не менее, после того, как вы разобрались с телефоном и бумагами, от зашифрованных жёстких дисков тоже стоит избавиться — так вы обезопасите себя от самого себя, если ваши пальцы окажутся в дверном проёме. Из домашних средств для экстренного уничтожения дисков подойдут молоток или сильный удар об угол чего-то прочного, например, ванны. Само собой, звук будет ощутимо громким. Сделать его чуть менее заметным можно с помощью закутывания диска в полотенце и разбивания подальше от входной двери.
ВАЖНО: при обыске менты могут и должны наблюдать за вашими окнами, поэтому не выбрасывайте из окон вообще ничего.

После уничтожения компромата, если к этому моменту менты ещё не ворвались силой, лучше проявить вежливость и впустить незваных гостей самостоятельно — так и дверь останется целой, и настроение друг другу меньше испортите.

Обыск

На территорию вашего жилища ступила нога следователя или прокурора. Первое, что вы должны сделать — это попросить его представиться и дать вам прочесть бумажки. Всё, что написано в определении суда, должно совпадать с фактическими данными, такими как срок действия определения, адрес обыскиваемого помещения, ФИО руководящего обыском прокурора или следователя, положения закона, на которых основано определение, искомые вещи.

После изучения документов уведомляйте родственников и вызывайте адвоката. Желательно, чтобы договор с ним на такой случай у вас был уже подготовлен.

Обратите внимание на пришедших. По украинскому законодательству на обыске должны быть два понятых, прокурор или следователь, опционально могут быть опера. Понятые, скорее всего, появятся сразу в комплекте с мусорами — это алкаши и наркоманы, которые будут молча кивать ментам и игнорировать нарушения, поэтому важно вызвать им на замену незаинтересованных лиц, то есть своих соседей.

Все, кто присутствует при обыске, должны быть вписаны в протокол. Если на обыск незаконно пришли посторонние люди вроде журнашлюх, то попросите их удалиться обратно в журнабордель.

Во время обыска не спускайте глаз с мусоров: попросите не разбегаться по всей квартире и делать свои дела при вас и независимых понятых, чтобы усложнить подбрасывание фальшивых улик. Следите за тем, чтобы осмотр или изъятие любого предмета вносились в протокол.

Очень высока вероятность, что во время обыска мусора будут пытаться завести с вами разговор. Надо понимать, что для вас это хождение по тонкому льду. Часто обыскиваемые пытаются как-то задобрить ментов, объясниться перед ними или обмануть их — ничего из перечисленного делать категорически нельзя. Во всём, что касается вопросов по делу во время обыска, ваш принцип — рот на замок (даже если вам кажется, что вы гениальный манипулятор и куколд кукловод). Обыскиваемые люди не в состоянии давать вполне взвешенные ответы, поэтому просто запомните фразу: «говорить буду на допросе в присутствии адвоката».

В то же время, не стоит уходить в полный мороз. Подыгрывайте полицаям: пытаются запугивать — делайте вид, что боитесь; хотят обсудить футбол и рыбалку — поддержите светскую беседу; имитируют «разговор по душам» — проявите сочувствие. Общайтесь без грубостей в нейтрально-вежливой манере, не демонстрируя своё истинное отношение к «правоохранителям», каким бы оно ни было. Всегда внимательно слушайте мусоров: возможно, у вас получится сформировать приблизительную картину того, что они уже имеют на руках, а что — нет.

Допрос

Главное правило допроса — не появляться на нём без защитника, причём не играет роли, подозреваемый вы или формально свидетель.

Очевидно, что частный адвокат намного предпочтительнее, но даже если у вас нет на него денег и вы взяли государственного, то это уже лучше, чем прийти на допрос в одиночестве: так у следствия будет намного меньше пространства для давления. Впрочем, учитывайте, что как бесплатные, так и платные адвокаты могут быть подментованными или просто нацеливаться на наилучший результат для вас лично без учёта последствий для товарищей. Короче, адвокат вам железно нужен, но всегда имейте свою голову на плечах и помните об общих интересах, даже если адвокат сосредоточился только на ваших собственных.

Примечание: возможны такие ситуации, когда в первые часы после задержания менты пытаются сразу тянуть вас на допрос, пока вы ещё не пришли в себя и не нашли защитника. Отказывайтесь идти без адвоката, а если не готовы к допросу — вместе с адвокатом отказывайтесь от дачи показаний. При подозрении, что «правоохранители» планируют применять пытки или отправлять вас в пресс-хату, есть вариант прилюдно вскрыть себе вены резким движением вдоль руки — умереть вам с вероятностью 99 % не дадут, зато окажетесь в больнице и выиграете время.
Линия поведения на допросе может зависеть от вашего статуса (свидетель или подозреваемый), законов государства и политики организации, но есть одна простая и универсальная тактика — молчать64. Если все будут стойко придерживаться её, ссылаясь на соответствующие статьи65, то так будет лучше и для каждого отдельного подследственного. Помните: рассказывая следователю про своих товарищей вы не только совершаете недостойный поступок, но и вредите самому себе, ведь таким образом автоматически подтверждаете связь с ними. В то же время, ваши показания на допросе не помогут вам отмазаться в суде, что бы там ни наобещали полицаи.
Помните, что даже если вас вызывают как свидетеля, но задают вопросы, которые касаются вас и на которые вам нельзя отвечать, то, по крайней мере, в рамках украинского права вы можете и здесь ссылаться на отказ свидетельствовать против себя.
Само собой, следователь может и будет спрашивать то, на что по закону нельзя отмолчаться. В Украине в такой ситуации свидетелям66 лучше не врать, а отказываться от дачи показаний. И то, и другое — правонарушения, но ответственность разная: за ложные показания до пяти лет, а за отказ — штраф или пробационный надзор. С ложными показаниями в целом такая беда, что их очень трудно сделать правильно: скорее всего, вы не знаете точно, какой информацией следствие уже обладает, а какой нет, и что говорили на допросах другие люди.
Хорошая альтернатива отказу, если вы не хотите нести за него ответственность и накалять отношения со следователем, — это ссылаться на плохую память и неуверенность в своих знаниях. Например, когда вас просят кого-то опознать, то можете говорить, что людей на фото плохо видно, а у вас проблемы с запоминанием лиц.

В целом, каждый свой ответ, даже если вопрос кажется простым и нехитрым, нужно хорошо обдумывать и НИКОГДА не высказывать его вполне однозначно: например, вместо «это мой телефон» говорить «это похоже на мой телефон». Вы же не знаете точно, что перед вами именно ваш мобильник, а не другой той же модели, и не можете быть уверены, что туда не накачали какого-нибудь компромата. Кроме того, прикасаться к этому телефону и любым другим предметам, которые показывает следователь, не стоит: можно оставить свои отпечатки пальцев и потом пожалеть.

Важно научиться вовремя распознавать манипуляции следователя и правильно реагировать на них. Вот несколько примеров:
1. «Хороший коп, плохой коп» из американского кинематографа — вполне рабочая схема, даже если по фильмам так не кажется. Иногда бывает и «хороший коп» без плохого. В любом случае возьмите себе за базовую установку: благонамеренных фараонов в деле против вас быть не может. Какими бы личными качествами ни обладал отдельный мусор, его цель — посадить вас, для чего он не постесняется прикидываться сочувствующим, использовать лесть, предлагать компромиссы, обещать смягчение наказания67.
2. Предложение «разобраться по-быстрому». Мент может пытаться сыграть на том, что долго сидеть на допросе вы не хотите, однако даже если у вас действительно много других дел, то имейте ввиду, что быстрый темп допроса для вас всегда невыгоден. Напротив, не спешите сами и не позволяйте следователю торопить вас. Не бойтесь переспрашивать и просить разбивать сложные вопросы на более простые, если вам что-то непонятно.
3. Создание иллюзии всезнания следствия. Эта манипуляция часто сопровождается утверждениями о том, что ваши товарищи уже настучали на вас, а кто расколется последним, тому будет хуже всего. Не поддавайтесь: если бы у следствия уже был весь необходимый объём доказательств68, то допрос не был бы нужен, и даже если кто-то из товарищей действительно пошёл на предательство (что, скорее всего, ложь), то никакие показания «в отместку» не облегчат вашу судьбу, зато запросто сделают плохую ситуацию ещё хуже.
4. Наводящие вопросы. «Планировали ли вы во время разговора с X от первого апреля устроить покушение на нашего лучезарного Зе-дуче?». Если вы отвечаете, что не планировали, то подтверждаете, что знакомы с X и говорили с ним в названную дату. В том и суть наводящего вопроса, чтобы подтвердить информацию, содержащуюся в нём, а не узнать сам ответ. В мировой практике наводящие вопросы часто находятся под запретом, но в Украине это не так. Кроме того, даже в тех странах, где наводящие вопросы задавать нельзя, менты всё равно могут пытаться применять эту уловку. Отказывайтесь отвечать на наводящие вопросы, требуйте их переформулировать.

5. Угрозы вам и близким. Повышенная степень свинства, к которой тоже нужно быть готовым. Вместе с адвокатом фиксируйте такие выпады и требуйте вносить их в протокол. Хорошо, если перед допросом вы ещё и попросили вести видео- или аудиозапись.

Как бы то ни было, после допроса ОБЯЗАТЕЛЬНО изучите написанное в протоколе. Если там есть ошибки или фальсификации, то потребуйте их исправить. Ни в коем случае не подписывайте протокол, если он не соответствуют тому, что вы говорили на самом деле — это может быть и будет использовано против вас!

В застенках

Если в уголовном деле вы фигурируете как подозреваемый, то после обыска вас отвезут в изолятор временного содержания (ИВС). Оказавшись в ИВС, в первую очередь изучите материалы своего дела, а также Уголовный и Уголовно-процессуальный кодексы, поразмышляйте над этим добром.

В изоляторе вы будете сидеть несколько дней, пока вам не назначат меру пресечения. В Украине чаще всего применяются залог, домашний арест или содержание под стражей, в последнем случае из ИВС вас переведут в следственный изолятор (СИЗО). При наличии хорошего адвоката вы можете время от времени запрашивать пересмотр меры пресечения следственным судом.
Когда закончится досудебное расследование и самый гуманный суд в мире будет выбирать вам наказание69 за ваши страшные грехи, то, в зависимости от обстоятельств, вы можете попасть на зону.
Так или иначе, вам придётся провести какое-то время в ИВС, СИЗО или колонии. На всякий случай будьте морально готовы к тому, что часть вашей жизни пройдёт в неволе.

Как правильно общаться с местным контингентом?
Во-первых, если вас посадили с уголовниками, то требуйте перевести вас к политическим, так будет намного лучше. Во-вторых, с кем бы вы ни сидели, доверять в тюрьме никому нельзя — не изливайте душу, не рассказывайте лишних подробностей о себе и своём прошлом70, общайтесь нейтрально-вежливо, то есть соблюдайте те же правила, что и в коммуникации с ментами. Среди зеков могут быть как доносчики, так и просто очень хитрые и подлые люди. В-третьих, в первые дни старайтесь поменьше болтать и побольше изучать обстановку, чтобы лучше адаптироваться и продумать дальнейшие планы.
Теперь самое важное — как сохранить здоровье, рассудок и достоинство?

В постсоветских тюрьмах распространённой проблемой является туберкулёз, поэтому старайтесь пользоваться каждой возможностью выйти на прогулку и избегайте физических нагрузок в закрытых помещениях.

Для того, чтобы не поехать кукухой, найдите себе какое-нибудь занятие. Свободного времени в тюрьме не просто много, а очень много, поэтому если вы не придумаете, что с ним делать, то рано или поздно ощутите последствия. Хорошим способом коротать часы в тюрьме является чтение, благо во многих тюрьмах есть библиотеки, и близкие могут передавать вам книги.

Наконец, что бы ни происходило, не позволяйте себе морально опускаться. Не помыкайте другими и не позволяйте помыкать собой. Не берите и не давайте в долг. Не играйте ни на какие ставки. Не употребляйте наркотики, даже если хочется «всего один раз». В любой ситуации оставайтесь Человеком.

Заключение

Хотел написать в конце что-то пафосное и глубокомысленное, но был не в настроении, поэтому просто оставлю слова благодарности.

Спасибо товарищам, которые помогали мне работать над книгой, особенно иллюстратору.

Спасибо читателям, которые прочли книгу до конца и сделали из неё выводы, чтобы с ещё большей силой бороться за победу революции.

Наконец, спасибо «правоохранителям», которые оставили неизгладимый след в моей жизни, ведь только потому я и написал всё то, что написал. Надеюсь дожить до момента, когда мы с вами поменяемся местами.
Примечания:
1. В Украине менты точно не могут обойти защиту VeraCrypt, не имея на руках пароля.
2. Несмотря на критику стиля разработки и качества кода, авторы данного аудита не обнаружили в VeraCrypt значимых недостатков со стороны защиты зашифрованных томов.
3. На современных SSD есть такой нюанс, как TRIM, но мы не будем его учитывать, поскольку он очищает блоки не сразу и был создан для поддержания долговечности SSD, а не для безопасного удаления данных.
4. Для интересующихся оставляю ссылку на хорошее руководство по восстановлению удалённых данных на Linux. Помните, что восстанавливать данные нужно исключительно на другой диск и загружаясь с другого диска, любой процесс записи создаёт риск повреждения удалённых данных. Как только вы поняли, что удалили что-то по ошибке, немедленно выключайте устройство и загружайтесь с другого носителя.
5. Про отличия autoclean и clean от autoremove можно узнать по этой ссылке.
9. К доменам в зоне onion можно подключиться только через сеть Tor, зачастую в этой зоне располагаются даркнет-ресурсы.
10. К счастью, эвристика строится на предположениях, а потому скучной бумажной работы по обоснованию необходимости такого запроса у них может быть ещё больше, чем обычно.
11. Причём любых двух: входного и промежуточного, промежуточного и выходного, входного и выходного. В первом случае от контролируемого промежуточного узла имеем информацию про IP неконтролируемого выходного, которую можно сопоставить с информацией про выходной узел от сотрудничающего сайта. Во втором случае от контролируемого промежуточного узла знаем IP неконтролируемого входного, которую можно сопоставить с информацией от сотрудничающего интернет-провайдера. В третьем случае от контролируемых входного и выходного узлов выясняем IP неконтролируемого промежуточного, а с учётом сотрудничества провайдера и сайта доказательства в таком сценарии будут железные.
12. Если, конечно, она не использует какую-то страшную уязвимость, позволяющую преодолеть виртуализацию.
13. Видеоинструкция. Если ваша основная система — Linux, то вместо PuTTY используйте SSH, в остальном действия те же.
14. В том числе по уморительным причинам Мне не нравится и Не нарушает закон, но надо удалить. Будем надеяться, что в Telegram эту дичь добавили специально для того, чтобы игнорировать такие жалобы и не перегружать модераторов дебильной работой.
15. https://element.io/ (кстати, на Linux Mint установлен по умолчанию).
16. Статья с описанием атак со стороны администратора сервера Matrix и сравнением с SimpleX: https://telegra.ph/SimpleX---ubijca-Matrixorg-polnaya-statya-12-29
17. Официальный сайт: https://simplex.chat/
19. Нормальный файлообмен в SimpleX, видимо, реализовать в принципе невозможно, потому что это потребовало бы централизации.
20. Кстати, для обсуждения всяких особо секретных дел в SimpleX не забывайте включать исчезающие сообщения, чтобы не накапливать компромат.
21. Вроде бы его всё же можно сделать какими-то плагинами, но на практике я их не проверял.
22. К счастью, его можно включить и в Proton, и в Tuta.
24. Есть ещё сервисы временных почт на 10-15 минут, но и для удобства, и для безопасности лучше потратить полминуты на регистрацию в onionmail. После регистрации можно на той же учётной записи спамить новые ящики.
26. Подойдёт и любая другая валюта, у которой хорошая ликвидность и низкие комиссии.
27. А стейблкоины уже неанонимны и под контролем регуляторов, что не стоит забывать.
28. Подробнее см. разбор методов Chainalysis в той же серии видео от Tor Zireael.
29. Гонять последовательно, не переводить обратно на уже использованные адреса.
30. По ряду причин в этой главе говорится только про Android. Если у вас iPhone, то оставьте его в качестве «чистого» телефона, а для революционной деятельности купите что-то нормальное.
31. Хотя при должной дисциплине и уверенности, что все будут приходить в заранее оговоренное место в заранее оговоренное время, можно обойтись без телефонов и в таких случаях, о чём в разделе про некомпьютерную безопасность.
32. В Украине у органов действительно нет законного права принуждать вас к выдаче пароля, зато есть вполне легальные полномочия для того, чтобы подпортить вам жизнь, даже если вы ничего не нарушили.
33. На обыск, в том числе и на принуждение к выворачиванию карманов, без соответствующего определения суда украинские «правоохранители» тоже не имеют права, но на практике они любят превышать полномочия.
34. Речь не только про наши восточноевропейские трущобы, но и про всякие либеральные государства первого мира. В Австралии, например, вы законно ОБЯЗАНЫ раскрыть пароль от ноутбука, если это потребуют в аэропорту.
35. Кроме того, инфраструктура Google на вашем телефоне может оказаться удобной для криминалистов, потому что позволяет добывать много информации даже без доступа к устройству.
36. Тем не менее, если стоит цель максимизировать приватность, то вы должны полностью отказаться от всех сервисов Google на рабочем устройстве, включая push-уведомления. MicroG хоть и сокращает объём слежки, но не останавливает её полностью.
37. Перебой электричества во время прошивания может окирпичить телефон.
38. Пожалуйста, не делайте PIN-код «1917». Спасибо.
39. На CalyxOS есть собственный, актуально для пользователей обычного Android.
40. Или всегда держать левый телефон в режиме полёта, включая и выключая самолёт только где-то подальше от места жительства. Зачем подальше? Подключение к соте и отключение от неё тоже фиксируются оператором.
41. Для украинских мужчин не актуально, но я оптимист, поэтому пусть будет с расчётом на будущее.
42. Здесь предлагается сносить всё в ноль, потому что на практике очень легко пропустить что-то важное при избирательной очистке, а у нас в этой схеме всё равно подразумевается наличие показных устройств.
43. Также в который раз напомню об удобстве рабочих профилей: снёс профиль — снёс данные.
44. На практике менты не так часто прибегают к инфильтрации своих сотрудников в разрабатываемую группировку, так как добыть информаторов почти всегда намного проще. Учитывайте это во время принятия новых людей в свою организацию.
45. Дзержинская С. С. В годы великих боёв, глава «В варшавском подполье».
46. Недооценённый инструмент, а ведь с помощью париков и косметики девушка может измениться до неузнаваемости в полном смысле слова.
47. Но вообще её нужно просто держать выключенной по умолчанию, потому что большую часть времени она вам и не нужна.
48. Если вы оставляете телефон дома, то переключать его в режим полёта не нужно.
49. Если воспользоваться такси необходимо, то найдите таксистов где-то на улице или на автовокзале, езжайте не прямо в пункт назначения, а куда-нибудь в пешей доступности от него, и оплатите поездку наличными деньгами.
50. Особенно актуально, если у вас блокнот, где следы могут оставаться на следующих страницах.
51. Само собой, не призываю молчать в тряпочку, но зато однозначно призываю высказывать преступные идеи анонимно и/или в узком коллективе доверенных лиц, а не светя хлеборезкой на всю площадь.
52. К примеру, хотя бы по той простой причине, что даже если вы исключите все ошибки сейчас, то это не заставит исчезнуть ваши предыдущие ошибки и соответствующие следы.
53. Так или иначе он существует, даже если официально ваша организация нигде не зарегистрирована.
54. Ночь и раннее утро — наиболее подходящее время для обыска, потому что спросонья объекту будет намного труднее грамотно предпринять что-либо. Поскольку ночные обыски в Украине запрещены за исключением отдельных случаев, любимое время обыска у украинских мусоров — шесть утра.
55. Необходимо для того, чтобы вы могли закрывать свои потребности во время побега, не оставляя цифровых следов.
56. Во время таких бесед ваших знакомых могут дезинформировать, приписывая вам не политическое, а какое-нибудь тяжёлое уголовное преступление или работу на вражескую разведку.
57. При нужде в деньгах позднее можно продать телефоны где-то в другом городе за наличку. Учитывайте, что если менты знают, какие у вас модели телефонов, и вы продаёте их в Интернете, то это риск раскрытия.
58. В странах, где SIM-карты продаются по паспорту, на случай побега стоит заранее запастись неактивированной симкой с мобильным интернетом, зарегистрированной на подставное лицо.
59. Обязательно с сокрытием IP-адреса, конечно же.
60. Казалось бы, вместе с МВД у СБУ было бы намного больше шансов, но на практике МВД и СБУ являются конкурирующими структурами. Похожие отношения между обычными ментами и спецслужбами часто наблюдаются и в других странах бывшего СССР.
61. Очевидный вариант — поступление на государственную службу.
62. Исходим из того, что в Украине при обыске мусора не обязаны ждать адвоката, поэтому его вызов именно сейчас не в приоритете.
63. Но не должно быть резервного копирования ключей BitLocker на аккаунт Microsoft.
64. Это не значит не приходить на допрос. Уход в отказ на допросе типичный следователь воспримет намного спокойнее, чем неявку. Первое для него — привычная защитная реакция, а последнее — неуважение.
65. В Украине — ст. 63 Конституции, ст. 18 УПК, ст. 66 УПК.
66. В Украине ответственность за ложные показания отсутствует для подозреваемых, но не для свидетелей.
67. К слову, следователь на наказание вообще никак не влияет, ведь это целиком и полностью зона ответственности судебной ветви власти.
68. И не путайте объём доказательств с объёмом имеющейся у следствия информации. В юриспруденции просто знать что-то — совсем не то же самое, что доказать. Допрос может использоваться в том числе и для того, чтобы подтвердить те факты, о которых следствию известно, но по которым недостаточно сильна доказательная база.
69. Оправдательные приговоры в украинской и не только судебной практике встречаются невероятно редко, так что их можно не брать в расчёт.
70. Для постсоветских тюрем — не рассказывайте вообще ничего о своей половой жизни, даже если она абсолютно гетеросексуальна.
ноябрь 2024–май 2025
Автор: Носферату
В Украине менты точно не могут обойти защиту VeraCrypt, не имея на руках пароля. (Прим. автора)
Несмотря на критику стиля разработки и качества кода, авторы данного аудита не обнаружили в VeraCrypt значимых недостатков со стороны защиты зашифрованных томов.
На современных SSD есть такой нюанс, как TRIM, но мы не будем его учитывать, поскольку он очищает блоки не сразу и был создан для поддержания долговечности SSD, а не для безопасного удаления данных.
Для интересующихся оставляю ссылку на хорошее руководство по восстановлению удалённых данных на Linux. Помните, что восстанавливать данные нужно исключительно на другой диск и загружаясь с другого диска, любой процесс записи создаёт риск повреждения удалённых данных. Как только вы поняли, что удалили что-то по ошибке, немедленно выключайте устройство и загружайтесь с другого носителя.
Про отличия autoclean и clean от autoremove можно узнать по этой ссылке.
К доменам в зоне onion можно подключиться только через сеть Tor, зачастую в этой зоне располагаются даркнет-ресурсы.
К счастью, эвристика строится на предположениях, а потому скучной бумажной работы по обоснованию необходимости такого запроса у них может быть ещё больше, чем обычно.
Причём любых двух: входного и промежуточного, промежуточного и выходного, входного и выходного. В первом случае от контролируемого промежуточного узла имеем информацию про IP неконтролируемого выходного, которую можно сопоставить с информацией про выходной узел от сотрудничающего сайта. Во втором случае от контролируемого промежуточного узла знаем IP неконтролируемого входного, которую можно сопоставить с информацией от сотрудничающего интернет-провайдера. В третьем случае от контролируемых входного и выходного узлов выясняем IP неконтролируемого промежуточного, а с учётом сотрудничества провайдера и сайта доказательства в таком сценарии будут железные.
Если, конечно, она не использует какую-то страшную уязвимость, позволяющую преодолеть виртуализацию.
Видеоинструкция. Если ваша основная система — Linux, то вместо PuTTY используйте SSH, в остальном действия те же.
В том числе по уморительным причинам Мне не нравится и Не нарушает закон, но надо удалить. Будем надеяться, что в Telegram эту дичь добавили специально для того, чтобы игнорировать такие жалобы и не перегружать модераторов дебильной работой.
https://element.io/ (кстати, на Linux Mint установлен по умолчанию).
Статья с описанием атак со стороны администратора сервера Matrix и сравнением с SimpleX: https://telegra.ph/SimpleX---ubijca-Matrixorg-polnaya-statya-12-29
Официальный сайт: https://simplex.chat/
Нормальный файлообмен в SimpleX, видимо, реализовать в принципе невозможно, потому что это потребовало бы централизации.
Кстати, для обсуждения всяких особо секретных дел в SimpleX не забывайте включать исчезающие сообщения, чтобы не накапливать компромат.
Вроде бы его всё же можно сделать какими-то плагинами, но на практике я их не проверял.
К счастью, его можно включить и в Proton, и в Tuta.
Есть ещё сервисы временных почт на 10-15 минут, но и для удобства, и для безопасности лучше потратить полминуты на регистрацию в onionmail. После регистрации можно на той же учётной записи спамить новые ящики.
Подойдёт и любая другая валюта, у которой хорошая ликвидность и низкие комиссии.
А стейблкоины уже неанонимны и под контролем регуляторов, что не стоит забывать.
Подробнее см. разбор методов Chainalysis в той же серии видео от Tor Zireael.
Гонять последовательно, не переводить обратно на уже использованные адреса.
По ряду причин в этой главе говорится только про Android. Если у вас iPhone, то оставьте его в качестве «чистого» телефона, а для революционной деятельности купите что-то нормальное.
Хотя при должной дисциплине и уверенности, что все будут приходить в заранее оговоренное место в заранее оговоренное время, можно обойтись без телефонов и в таких случаях, о чём в разделе про некомпьютерную безопасность.
В Украине у органов действительно нет законного права принуждать вас к выдаче пароля, зато есть вполне легальные полномочия для того, чтобы подпортить вам жизнь, даже если вы ничего не нарушили.
На обыск, в том числе и на принуждение к выворачиванию карманов, без соответствующего определения суда украинские «правоохранители» тоже не имеют права, но на практике они любят превышать полномочия.
Речь не только про наши восточноевропейские трущобы, но и про всякие либеральные государства первого мира. В Австралии, например, вы законно ОБЯЗАНЫ раскрыть пароль от ноутбука, если это потребуют в аэропорту.
Кроме того, инфраструктура Google на вашем телефоне может оказаться удобной для криминалистов, потому что позволяет добывать много информации даже без доступа к устройству.
Тем не менее, если стоит цель максимизировать приватность, то вы должны полностью отказаться от всех сервисов Google на рабочем устройстве, включая push-уведомления. MicroG хоть и сокращает объём слежки, но не останавливает её полностью.
Перебой электричества во время прошивания может окирпичить телефон.
Пожалуйста, не делайте PIN-код «1917». Спасибо.
На CalyxOS есть собственный, актуально для пользователей обычного Android.
Или всегда держать левый телефон в режиме полёта, включая и выключая самолёт только где-то подальше от места жительства. Зачем подальше? Подключение к соте и отключение от неё тоже фиксируются оператором.
Для украинских мужчин не актуально, но я оптимист, поэтому пусть будет с расчётом на будущее.
Здесь предлагается сносить всё в ноль, потому что на практике очень легко пропустить что-то важное при избирательной очистке, а у нас в этой схеме всё равно подразумевается наличие показных устройств.
Также в который раз напомню об удобстве рабочих профилей: снёс профиль — снёс данные.
На практике менты не так часто прибегают к инфильтрации своих сотрудников в разрабатываемую группировку, так как добыть информаторов почти всегда намного проще. Учитывайте это во время принятия новых людей в свою организацию.
Дзержинская С. С. В годы великих боёв, глава «В варшавском подполье».
Недооценённый инструмент, а ведь с помощью париков и косметики девушка может измениться до неузнаваемости в полном смысле слова.
Но вообще её нужно просто держать выключенной по умолчанию, потому что большую часть времени она вам и не нужна.
Если вы оставляете телефон дома, то переключать его в режим полёта не нужно.
Если воспользоваться такси необходимо, то найдите таксистов где-то на улице или на автовокзале, езжайте не прямо в пункт назначения, а куда-нибудь в пешей доступности от него, и оплатите поездку наличными деньгами.
Особенно актуально, если у вас блокнот, где следы могут оставаться на следующих страницах.
Само собой, не призываю молчать в тряпочку, но зато однозначно призываю высказывать преступные идеи анонимно и/или в узком коллективе доверенных лиц, а не светя хлеборезкой на всю площадь.
К примеру, хотя бы по той простой причине, что даже если вы исключите все ошибки сейчас, то это не заставит исчезнуть ваши предыдущие ошибки и соответствующие следы.
Так или иначе он существует, даже если официально ваша организация нигде не зарегистрирована.
Ночь и раннее утро — наиболее подходящее время для обыска, потому что спросонья объекту будет намного труднее грамотно предпринять что-либо. Поскольку ночные обыски в Украине запрещены за исключением отдельных случаев, любимое время обыска у украинских мусоров — шесть утра.
Необходимо для того, чтобы вы могли закрывать свои потребности во время побега, не оставляя цифровых следов.
Во время таких бесед ваших знакомых могут дезинформировать, приписывая вам не политическое, а какое-нибудь тяжёлое уголовное преступление или работу на вражескую разведку.
При нужде в деньгах позднее можно продать телефоны где-то в другом городе за наличку. Учитывайте, что если менты знают, какие у вас модели телефонов, и вы продаёте их в Интернете, то это риск раскрытия.
В странах, где SIM-карты продаются по паспорту, на случай побега стоит заранее запастись неактивированной симкой с мобильным интернетом, зарегистрированной на подставное лицо.
Обязательно с сокрытием IP-адреса, конечно же.
Казалось бы, вместе с МВД у СБУ было бы намного больше шансов, но на практике МВД и СБУ являются конкурирующими структурами. Похожие отношения между обычными ментами и спецслужбами часто наблюдаются и в других странах бывшего СССР.
Очевидный вариант — поступление на государственную службу.
Исходим из того, что в Украине при обыске мусора не обязаны ждать адвоката, поэтому его вызов именно сейчас не в приоритете.
Но не должно быть резервного копирования ключей BitLocker на аккаунт Microsoft.
Это не значит не приходить на допрос. Уход в отказ на допросе типичный следователь воспримет намного спокойнее, чем неявку. Первое для него — привычная защитная реакция, а последнее — неуважение.
В Украине — ст. 63 Конституции, ст. 18 УПК, ст. 66 УПК.
В Украине ответственность за ложные показания отсутствует для подозреваемых, но не для свидетелей.
К слову, следователь на наказание вообще никак не влияет, ведь это целиком и полностью зона ответственности судебной ветви власти.
И не путайте объём доказательств с объёмом имеющейся у следствия информации. В юриспруденции просто знать что-то — совсем не то же самое, что доказать. Допрос может использоваться в том числе и для того, чтобы подтвердить те факты, о которых следствию известно, но по которым недостаточно сильна доказательная база.
Оправдательные приговоры в украинской и не только судебной практике встречаются невероятно редко, так что их можно не брать в расчёт.
Для постсоветских тюрем — не рассказывайте вообще ничего о своей половой жизни, даже если она абсолютно гетеросексуальна.
Made on
Tilda