Tor (The Onion Router)
Overlay-сеть для анонимной маршрутизации интернет-трафика через распределённую систему реле с многослойным шифрованием
Введение
Tor (The Onion Router) — свободное программное обеспечение и глобальная overlay-сеть, обеспечивающая анонимность пользователя при просмотре веб-ресурсов и доступе к скрытым сервисам. Проект вырос из исследовательских работ US Naval Research Laboratory и с 2006 года развивается nonprofit The Tor Project. Tor не шифрует интернет целиком — он маршрутизирует TCP-потоки через цепочку добровольных relay-узлов, скрывая IP клиента от destination и скрывая destination от первого hop (guard) в ideal model.
Для сообщества privacy и investigative journalism Tor — критическая инфраструктура; для исследователей безопасности — объект изучения deanonymization attacks и censorship circumvention.
Как работает цепочка реле
Клиент Tor Browser строит circuit из трёх узлов: Guard (entry), Middle, Exit. Каждый hop знает только соседей: Guard видит IP клиента, но не destination; Exit видит destination, но не IP клиента (при отсутствии correlation attacks). Шифрование слоёное — см. термин «луковая маршрутизация».
Circuit periodically rotated; long-lived connections могут reuse circuit для performance. Stream isolation separates tabs to different circuits в hardened configurations.
Hidden services (onion v3)
Onion-сервисы доступны по адресам вида xxxxxxxx.onion — 56 символов base32 для v3. Сервер не раскрывает свой IP клиенту; клиент не раскрывает IP серверу через rendezvous protocol с introduction points и HSDir. Это enables hosting без traditional DNS и mitigates некоторые DDoS vectors, но не заменяет application security.
Matanga Info как образовательный проект может mirror content через onion для пользователей в censored regions — требует отдельной operational discipline.
Tor Browser и hardening
Tor Browser — модифицированный Firefox с preset privacy settings: resist fingerprinting, block many trackers, disable dangerous features. Security Levels (Standard / Safer / Safest) trade functionality vs attack surface. Не устанавливайте extensions — они уникально fingerprintable.
Updates critical: browser bundles Tor client; outdated versions имели известные 0-days. Verify signature downloads от Tor Project.
Bridges и censorship resistance
В странах с DPI blocking Tor используют bridges (unlisted relays) и pluggable transports (obfs4, meek, snowflake). Bridge distribution через email или moat — rate-limited чтобы усложнить enumeration censors.
Running exit node carries legal burden: abuse complaints, ISP ToS, potential law enforcement contact. Relay (non-exit) safer для volunteers.
Модель угроз и атаки
Global adversary correlation: если атакующий контролирует Guard и Exit одного circuit одновременно, traffic correlation может deanonymize. Tor design assumes не все hops compromised; nation-state ресурсы повышают risk.
Application-layer leaks: login to real identity, downloading PDF with phone home, fullscreen unique resolution — deanonymize несмотря на Tor.
Malicious exit nodes: HTTP без TLS — exit может modify traffic. Always HTTPS; HSTS helps.
Fingerprinting: Tor Browser стандартизирует fingerprint among users; custom setups reduce anonymity set.
Tor vs VPN
VPN: один trusted provider видит all traffic metadata; faster; good для geo-unblocking. Tor: distributed trust, slower, better против single-point logging. Combinations (VPN→Tor vs Tor→VPN) имеют разные threat models — изучайте перед использованием.
Эксплуатация инфраструктуры: relay и exit
Volunteers могут поднять non-exit relay с минимальным legal exposure в many jurisdictions — bandwidth donation укрепляет сеть. Exit nodes требуют understanding abuse complaints: copyright, spam, scanning appear as originating from exit IP. Contact info в Tor descriptor, response procedures, возможно ISP relationship — part of responsible exit operation.
Family-friendly exits filter ports; open exits broader но higher abuse volume. Bridge operators help censored users без public directory listing.
Tails и amnesic incognito
Tails OS boots with Tor default route, leaves no trace on host machine when shut down — standard tool для journalists и whistleblowers. Persistent encrypted volume optional для хранения PGP keys и documents между sessions. Combining Tails + air-gapped signing workflow — high-assurance pattern.
Мobile Tor и ограничения
Orbot on Android routes app traffic через Tor selectively; iOS ecosystem more restricted. Mobile fingerprinting (sensor, accelerometer) и background app leaks — additional vectors. Для high-threat mobile prefer dedicated device без personal SIM overlap.
Мониторинг и self-check
Регулярно проверяйте circuit через about:debug#tor (internal). Утечки DNS в misconfigured system Tor may bypass — use Tor Browser bundle holistically, не partial proxy config. Corporate VPN split tunneling может leak non-Tor traffic параллельно — disable или isolate.
Связанные термины
Onion routing — криптографическая основа. PGP — complement для content encryption. KYC — не применяется к Tor directly, но deanonymized Tor user + exchange KYC = link.
Snowflake и obfuscated bridges в цензурируемых сетях
Snowflake proxies через WebRTC volunteers позволяют Tor bridges работать через browser tabs добровольцев — устойчivity к blocking. Users in restrictive countries should familiarize with built-in bridge configuration в Tor Browser settings до travel into such regions.
Дополнительно: New Identity в Tor Browser создаёт fresh circuit без cookies — используйте между unrelated sensitive sessions, не как замену полной VM isolation при extreme threats.
Onion location routing и geo-specific censorship circumvention — активная research area; пользователи reporting blocks should submit feedback через Tor Browser built-in connection assist для получения working bridge configuration.
Заключение
Tor — не magic invisibility cloak, а carefully engineered probabilistic anonymity system с thousands of relays и ongoing research. Правильное использование требует Tor Browser defaults, discipline на application layer и realistic threat modeling. Для доступа к sensitive educational resources и resistance censorship Tor остаётся gold standard среди low-cost tools available to general public.