Honeytoken Traps for Detecting Compromised Backends in Encryption Key Services
The service that stores encryption keys must trust its backend application. The backend signs every request with its own key, and the signature validates correctly. If the backend is compromised, the attacker obtains the signing key and can issue perfectly valid requests for any document. All normal issuance checks pass because nothing unusual has occurred from the service’s perspective.
This article describes a detection mechanism, not a prevention control. It assumes an attacker who has already taken over the backend or stolen a service token and is replaying old grants. Rate limits and threshold-based emergency blocking already exist; the new system focuses on reliable detection of slow, careful exfiltration that stays within those limits.
Core Idea: Canary Identifiers Unknown to the Backend
A fake user and a fake document are created. In normal operation these identifiers are never referenced by any interface, workflow, or real user. Therefore any request for them is a high-confidence signal. The approach follows the classic honeytoken pattern, but its implementation must satisfy one strict constraint: the alarm signal cannot originate from the component being monitored.
Consequently the list of canary identifiers lives exclusively inside the key service and is never exposed to the backend. The backend cannot learn which identifiers are traps or avoid them.
Storage as Keyed Hashes
Storing plaintext identifiers would be insecure because user and document IDs are often predictable. The service therefore stores only keyed HMAC-SHA256 digests:
def canary_digest(key: bytes, value: str) -> str:
return hmac.new(key, value.encode("utf-8"), hashlib.sha256).hexdigest()The HMAC key resides solely inside the key service. Without it, an attacker who obtains the stored hash list cannot enumerate possible identifiers.
The runtime detector is implemented in a small CanarySet class that performs two HMAC calculations per request and returns either “user”, “document”, or None.
Configuration and Seeding
Four environment variables control the feature:
- KEYSVC_CANARY_HMAC_KEY_FILE – path to the secret HMAC key file
- KEYSVC_CANARY_USER_HASHES – JSON array of user canary digests
- KEYSVC_CANARY_DOCUMENT_HASHES – JSON array of document canary digests
- KEYSVC_CANARY_AUTOLOCK_ENABLED – whether to trigger emergency lock on hit
A separate seeder program creates realistic-looking records by calling the normal /wrap endpoint, obtaining genuine wrapped keys, and computing the corresponding digests. The digests go into the key-service configuration; the identifier-plus-wrapped-key pairs are inserted into the production database as ordinary rows with no visible markers.
Placement of the Check
The canary test runs after signature validation, lifetime checks, replay protection, and context matching, but before envelope decryption. This placement guarantees that only legitimately signed requests from the trusted backend can trigger the alarm and prevents an unauthenticated attacker from causing an emergency lock.
Silent Response and Internal Actions
When a canary is hit the external response is identical to a normal context-mismatch or locked error. No distinct “canary tripped” status code is returned, because a distinguishable response would allow the attacker to map the trap and avoid it in future. Internally three actions occur in order: an audit record of type “canary_trip” is written, an alert is raised to external monitoring, and, if autolock is enabled, the service erases its master keys and enters the emergency-locked state.
Production Validation
Live tests on a deployed instance confirmed the expected behavior: a normal document request succeeded, a canary request produced a silent 409 locked response, master-key material was cleared, and both the canary_trip and emergency_lock events appeared in the audit trail.
Limitations
The system detects only bulk scraping or user-enumeration attempts that touch the planted canaries. Targeted extraction of documents belonging to a single real user will not trigger it. It is a detection layer for the key-service tier only; equivalent traps are still required in the document store and backend itself.
Related articles
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.
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.
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.
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.