Developers of the Tor network published project release Arti 1.2.0, developing a Tor client written in Rust. The 1.x branch is marked as suitable for use by general users and provides the same level of privacy, usability, and stability as the main C implementation. Code distributed by under Apache 2.0 and MIT licenses.
Unlike the C implementation, which was first designed as a SOCKS proxy and then tailored to other needs, Arti is initially developed in the form of a modular embeddable library that can be used by various applications. In addition, when developing a new project, all past Tor development experience is taken into account, which avoids known architectural problems and makes the project more modular and efficient. When the Rust code reaches a level that can completely replace the C version, the developers intend to give Arti the status of the main implementation of Tor and stop maintaining the C implementation.
The reason cited for rewriting Tor in Rust is the desire to achieve a higher level of code security by using a memory-safe language. According to Tor developers, using the Rust language without “unsafe” blocks will prevent at least half of all typical vulnerabilities in the project from appearing. Rust will also make it possible to achieve faster development speeds than using C, due to the expressiveness of the language and strict guarantees that allow you to avoid wasting time on double checking and writing unnecessary code.
Arti 1.2 release remarkable implementation of stable support for onion services. Using Arti, you can now not only connect to existing onion services, but also create your own onion services.
Started, but is not yet complete, work is being done to implement related capabilities related to privacy and security of onion services, such as the congestion control protocol (RTT Congestion Control), DDoS protection, bandwidth throttling, client authorization and the Vanguard mechanism. to prevent detection of Guard nodes. Until the implementation of these features is completed, the creation of onion services based on Arti is not recommended for production implementations.
The new version also eliminates vulnerability in the code for processing messages from relays, caused by the ability to send empty DATA messages, which can be used to substitute undetectable traffic indicators. The issue is rated Low because DATA packets are only accepted for threads that are already open.
Achieving parity with the C client is planned for the 2.0 branch, which will also offer bindings for using Arti in code in various programming languages. When the Rust code reaches a level that can completely replace the C version, the developers intend to give Arti the status of the main implementation of Tor and stop maintaining the C implementation. The C version will be phased out gradually to allow for a smooth migration.
Thanks for reading: