Habr•October 5, 2026•🇷🇺Translated from Russian

Secure Personalization of Java Card Applets Using Issuer Security Domain and SCP02

The tutorial demonstrates an elegant approach to secure Java Card applet personalization by relying on the built-in security features of the Issuer Security Domain instead of custom asymmetric cryptography implementations.

Background and Problem Statement

Previous examples using ECDH for session key derivation required significant testing resources and failed to provide authentication, allowing any party knowing the elliptic curve parameters to extract secrets. The new method avoids these issues by delegating security to the GlobalPlatform card manager.

The use case involves an access control system where employee data (name, department, position, validity period) must be written or updated only by authorized parties over a protected channel. Any reader can retrieve the data, but it is returned encrypted with AES-128. The applet must securely receive and periodically update the 16-byte key throughout the card lifecycle.

Applet Implementation Details

The constructor simply allocates a 255-byte buffer for personal information. Heavy cryptographic objects such as AESKey and Cipher are instantiated after installation to avoid 6F00 errors on NXP cards during the INSTALL for install command.

The install method follows GlobalPlatform guidelines by passing the instance AID to register(). The process method handles three proprietary instructions for setting the secret key, writing personal data, and reading personal data, while unknown instructions are routed to mutual authentication.

A helper method determines whether an instruction carries command data, ensuring setIncomingAndReceive is called only when needed. Comprehensive try-catch blocks convert CryptoException reasons into informative status words instead of generic 6F00 errors.

Secure Channel Usage

The applet obtains a SecureChannel instance in select() via GPSystem.getSecureChannel and resets it in deselect(). Unknown APDUs invoke scp02.processSecurity, which handles INITIALIZE UPDATE and EXTERNAL AUTHENTICATE commands according to the negotiated security level.

The update_secret_key method calls unwrap with an adjusted length to account for the CLA offset, then verifies that the security level includes C_DECRYPTION before installing the AES key. The set_person_info method applies a lower requirement of C_MAC only.

Reading personal information simply initializes the AES cipher in encryption mode and returns the ciphertext. All operations are tested using the FunGP Python library, which supports multiple SCP02 security levels configurable at mutual authentication time.

Related articles

AntiMalware•Other

RBC Restores News Portal After DDoS Attack as Russian Organizations Face Rising Cyber Threats

RBC's news website was hit by a DDoS attack on December 4, disrupting normal operations and forcing the outlet to publish updates via Telegram. Technical teams worked to restore full functionality after users saw only a simplified technical page instead of regular sections and articles. No evidence of infrastructure compromise or data leaks has been reported. The incident follows similar attacks in November 2026, including a 2.1 Tbit/s DDoS on hosting provider Beget that interrupted client FTP and SSH connections, and earlier strikes on Rosstat's resources. Roskomnadzor recorded 3,478 DDoS incidents in November, up from 2,500 in October, with the longest attack lasting over 20 days and targeting telecom companies mainly in the Central Federal District.

AntiMalware•Other

Russia's NTI Fund Exits Natalia Kasperskaya's SOVA Open AI Platform Project

The National Technology Initiative fund has fully exited the capital of Virtual Assistants, the company behind the open conversational AI platform SOVA. Structures linked to founders Natalia Kasperskaya and Stanislav Ashmanov repurchased the stake, with changes registered in the Unified State Register of Legal Entities on December 1, 2026. The fund had entered the project in 2022 and later increased its share to 49.4 percent, following earlier state plans to allocate 300 million rubles toward a 400 million ruble project. Laboratory Nanosemantics now holds 59.65 percent while Ashmanov directly controls the remaining 40.35 percent. Although SOVA was positioned as an open-source ecosystem for building voice assistants and chatbots, its GitHub repositories have seen no updates since April 2023. The company continues to collect user feedback for future modernization while experts note growing competition from technologies such as Whisper, GigaAM, and Yandex SpeechKit.

AntiMalware•Other

Incident at Sarov Nuclear Center Triggers Wave of Disinformation on Social Media

An industrial accident at the Russian Federal Nuclear Center in Sarov on December 3, 2026, led to the rapid spread of false claims about nuclear material fires and potential Chernobyl-scale consequences across social networks and messengers. Official statements from RFNC-VNIIEF confirmed the event occurred during scheduled non-nuclear production work, resulting in five fatalities with additional injuries under investigation, while emphasizing that the site was localized and no threat existed to facilities holding fissile materials. Radiation levels remain within normal limits according to both the institute and the Main Directorate of EMERCOM for Nizhny Novgorod Region, with no danger to the public or environment. The limited official information released so far has fueled further misinformation, prompting Lapsha Media to warn of additional fakes and advise verification against authoritative sources. Specialists continue damage assessment and repairs at the affected industrial site, with the exact cause of the incident still undisclosed.

Habr•Other

SpaceVM Border Firewall Configuration Guide Restricts SSH and Web Access to Specific Subnets

SpaceVM has published a detailed tutorial on configuring its border firewall using a three-node cluster example. The guide demonstrates how to allow SSH and HTTP/HTTPS access exclusively from the 172.22.21.0/24 subnet while disabling default system rules that permit broader access. It explains rule processing order, where lower index values take precedence, and shows how to apply traffic shaping limits. Administrators must activate rules after creation and verify connectivity from allowed and disallowed hosts. The instructions cover both incoming filter rules and shaping policies for management networks without affecting virtual machine traffic.