Habr•September 28, 2026•🇷🇺Translated from Russian

CryptoLab: Interactive Educational Platform Turns Cryptographic Protocols Course into Hands-On Alice, Bob and Mallory Experiments

CryptoLab is an educational testbed created to transform traditional cryptographic protocols laboratory work into interactive experiments featuring Alice, Bob, and Mallory. Instead of simply calling encrypt and decrypt functions, students now place an active adversary between sender and receiver to observe real protocol behavior under attack.

The first laboratory centers on the model Alice → Mallory → Bob, where Alice acts as the client, Bob as the server, and Mallory controls the communication channel. Mallory can INSPECT, MODIFY, DROP, or REPLAY packets. In normal operation the packet passes unchanged; once students assume the Mallory role they begin tampering to see concrete results.

Key Experiments in the First Lab

One experiment shows what happens when Mallory alters ciphertext protected by AES-GCM. Because AEAD is used correctly, any modification causes the authentication tag check to fail, resulting in immediate rejection rather than partial plaintext delivery. This demonstrates the principle that AEAD decryption must return either valid plaintext or failure, never forwarding data to application logic before authentication succeeds.

A second experiment covers replay attacks. Students capture a fully valid packet containing a correct authentication tag and nonce, then resend it. Without replay protection the server accepts the duplicate because the cryptographic primitive itself only guarantees authenticity and integrity, not freshness. Enabling replay protection through sequence numbers or a replay cache causes the second copy to be rejected, illustrating that replay defense is a protocol-level property built around the primitive.

Additional covered topics include ciphertext and authentication tag handling, AAD, nonce reuse consequences, CSPRNG versus weak RNG behavior, salt usage, key rotation and revocation, and metadata leakage. The lab supports both interactive sessions and automated scenarios launched via command line, such as ./CryptoLab scenario --lab 1 --name 08_weak_rng, which also serve as regression checks during platform development.

Programming tasks remain part of the course but focus on the correct use of existing libraries rather than implementing algorithms. Students write supporting logic for data preparation, key and parameter handling, protocol message formatting, validation, state management, and error handling in Python 3.10.

The platform is distributed as a ready-to-run application for Windows x64 and macOS Apple Silicon without requiring separate installation of Python or Docker. The first lab has already undergone multiple development iterations and now forms the foundation for a second lab on symmetric encryption modes (ECB, CBC, CTR, GCM), padding oracle attacks, and bit-flipping. Future labs will extend the same testbed to asymmetric cryptography, key exchange, digital signatures, handshake protocols, TLS, and PKI.

Related articles

Habr•Other

Ratcast Updates P2P App with Auto Quality Mode, Hardware Encoder Fixes and File Sharing

Ratcast has released a new version of its serverless P2P application focused on voice calls, video conferencing and joint content streaming. The update introduces automatic resolution adaptation that balances network bandwidth and encoder load to maintain optimal image quality without overloading the device. Hardware encoder issues were fixed for both NVENC on Windows and VideoToolbox on macOS, eliminating bitrate deviations that previously caused quality loss or packet loss. Users can now share files directly in chat by dragging them into the window or pasting from the clipboard. Full-screen mode is now available for the local camera in addition to remote participant feeds. Static image handling at high frame rates has also been improved to prevent unnecessary bitrate spikes.

AntiMalware•Other

SberTech Expands AI Agents in Platform V DataSpace to Enable Corporate Application Development from Text Descriptions

SberTech has introduced a new set of skills for its AI agents within the Platform V DataSpace platform, allowing the creation of corporate applications based on textual descriptions. The update focuses on automating the design of architectural components while respecting enterprise environment requirements. Presented at the AI Journey 2026 conference in Moscow, the skills draw from the company's low-code development practices and have been released openly on GitVerse. The AI agents can now handle user interfaces, server-side logic, data models, authorization mechanisms, and access rights. This addresses challenges in vibe coding by providing better architectural control and consistent service structures. According to CEO Maxim Tyatyushev, the capabilities support rapid prototyping, business hypothesis testing, and organizational scaling for both professional developers and non-programmers.

AntiMalware•Other

Russia's MAX Messenger Launches Chatbot for Presidential Appeals Collecting Personal Data

VK has activated a dedicated chatbot inside the MAX messenger to collect text and video messages addressed to President Vladimir Putin as part of the annual "Results of the Year" program. Citizens of Russia, regardless of age or region, must provide a phone number, full name, age, locality, and email address before submitting questions or recordings. The collection window opens at midnight Moscow time on 27 November and closes at the end of the live broadcast on 10 December. Messages will be reviewed by the program’s editorial team, which may contact senders using the supplied contact details, while GigaChat AI will assist users in refining their questions. Storage periods and handling procedures for the collected personal data remain unspecified in the official announcement. MAX joins other official channels including a dedicated website, mobile app, VK and Odnoklassniki communities, telephone, and SMS/MMS options.

AntiMalware•Other

Security Vision Releases SV5 Update with HTTPS Connectors, Dynamic Memory Management and MCP Automation

Security Vision has released a major update to its SV5 platform focused on improving secure integrations and operational resilience. The new version introduces HTTPS encryption for connector traffic, dynamic resource adaptation during memory shortages, and automatic discovery of MCP components. Administrators can now configure traffic encryption between the connector service and individual connectors to reduce interception risks during integration with internal and external IT systems. The workflow and connector services include mechanisms that automatically adjust parameters under peak loads to prevent critical errors. MCP setup has been simplified with self-discovery of REST tools, resources, and prompts even without explicit directory paths in configuration files. Additional improvements cover data visualization, manual refresh buttons in monitoring sections, a streamlined main menu, and automatic cleanup of performance logs after a defined retention period.