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

Securitylab•Other

OpenAI Releases GPT-6.1 Terra: Cost-Effective Model Focused on Computer Control, Image Analysis and Practical Automation

OpenAI has launched GPT-6.1 Terra, a new model positioned between its high-end GPT-6 Astra and more affordable options in the GPT-6 family. The model emphasizes real-world computer interaction, visual understanding of documents and interfaces, and reduced error rates rather than raw reasoning benchmarks. It supports a 1.05 million token context window, image inputs, and tool use through the Responses API while cutting input token prices by half compared with its predecessor. Published benchmarks show substantial gains on Terminal-Bench 4.0, OSWorld 2.1 and Agents' Last Exam, with error rates dropping sharply at both low and maximum reasoning levels. OpenAI stresses that the model still requires human oversight for high-stakes actions and does not directly process audio or video. The release targets developers and enterprises seeking reliable automation of repetitive multi-step tasks at lower cost than flagship models.

Habr•Other

Yandex Black October: How Architectural Flaws and Capacity Mismanagement Turned Data Center Losses Into a 11-Day Fintech Coma

In October 2026 three Yandex data centers in Central Russia were physically destroyed within days, triggering the collapse of Yandex Cloud and multiple core services. Between the first and third site failures engineers had 74 hours to restore quorum and rebalance workloads yet failed to do so because Control Plane components remained tied to the lost zone and spare capacity had been eliminated to cut costs. Core banking and BNPL systems entered Read-Only mode after losing quorum, forcing a complete stop-the-world reconciliation that lasted until 22 October. Backups stored inside the same regional S3 buckets proved unusable, resulting in a seven-day RPO and primary-key collisions after restoration. The incident exposed that Metro-Cluster designs had been incorrectly treated as full Disaster Recovery and that aggressive AP microservice patterns created logical split-brain conditions outside the database layer.

AntiMalware•Other

Astra Group Releases Low-Code Astra AI Platform for Building Corporate AI Agents in Closed Environments

Astra Group has launched the Astra AI Platform, a low-code constructor designed for creating corporate AI applications that operate entirely within closed circuits without reliance on foreign clouds. The platform targets small and medium businesses as well as large corporations, enabling rapid deployment of AI secretaries, technical support assistants, and other agents in days rather than months. It forms part of the broader Astra AI ecosystem and includes two main constructors: one for machine learning model training and deployment, and another for LLM-based language assistants, document search, and process automation. Users can assemble scenarios from visual blocks, debug them in real time, or extend functionality with custom Python code when needed. The solution supports RAG-based knowledge bases, integration with external tools such as CRM and ERP systems, and the coordination of multiple agents for distributed task handling. One demonstrated use case involves processing ten pages of engineering drawings and specifications in five minutes to prepare data for downstream systems. The product is already listed in the Russian domestic software registry and available to customers.

Habr•Other

Multi-Tenancy Isolation in VictoriaMetrics, VictoriaLogs and Grafana: Building Client Separation in a Shared Stack

Voltir runs a single shared monitoring stack consisting of VictoriaMetrics, VictoriaLogs, Grafana and vmalert for all customers instead of deploying separate instances per tenant. Isolation relies on numeric account IDs enforced at every layer: nginx validates tokens against the platform API before proxying writes, Grafana data sources hard-code tenant accounts, and vmalert rules receive automatic account filters. The team discovered that a single malformed rule or template could break alerting for every tenant because vmalert loads the entire rules directory at once. They also found that Grafana automatically created personal organizations granting Org Admin rights, accumulating hundreds of orphaned organizations and users that consumed disk space and resources. A dedicated cleanup module plus hourly reconciliation now removes rules, organizations, series and users when a tenant is deleted, while isolation tests verify both data and API objects across tenants.