Black Hat Asia 2026 | Payload Compromised: Full Key Recovery in Rocket.Chat E2EE

skim AI Analysis | Black Hat

Black Hat's Black Hat Asia 2026 | Payload Compromised: Full Key Recovery in Rocket.Chat E2EE: skim's analysis identifies 11 key moments. Security researcher Hayato Kimura details critical vulnerabilities that completely broke Rocket.

Category: Tech. Format: Educational. YouTube video analyzed by skim.

Summary

Security researcher Hayato Kimura details critical vulnerabilities that completely broke Rocket.Chat end-to-end encryption across its client applications. Weak non-cryptographic password generation, lowercase character conversion bias, single-iteration key derivation, and unrotated session keys allowed attackers with server backup access to recover keys and read or forge messages.

skim AI Analysis

Credibility assessment: Primary Source Code Research. Hayato Kimura presents peer-accepted academic research backed by direct inspection of Rocket.Chat open-source code, GitHub commit history, proof-of-concept exploits, and coordinated vendor disclosure.

Bias assessment: Constructive Security Audit. The presentation focuses strictly on cryptographic and implementation flaws, gives fair historical context for why Rocket.Chat made early design compromises in 2017, and credits vendor engineers for remediation.

Originality: 90% — Novel E2EE Vulnerability Study. Presents original vulnerability discoveries in Rocket.Chat end-to-end encryption, combining source-code analysis, entropy measurement, and open-source intelligence on project history.

Depth: 88% — Deep Protocol & Code Teardown. Traces the full key hierarchy from password generation and PBKDF2 iterations through RSA key backups and AES-CBC session keys, while also examining the architectural root causes.

Key Points (11)

1. Hayato Kimura bridges AppSec and cryptography

Timestamp: 00:00:10 to 00:02:50

Hayato Kimura introduces his joint research breaking Rocket.Chat end-to-end encryption, deployed across more than 150 countries. He argues that an application security mindset focused on reading code, tracing data flows, and testing input predictability is highly effective for real-world cryptographic audits.

Significance (Medium): Lowers the barrier to entry for application security engineers by showing that catastrophic cryptographic flaws often stem from basic code-level implementation errors.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

2. Undocumented E2EE architecture across three layers

Timestamp: 00:04:25 to 00:07:20

Because Rocket.Chat public documentation lacked critical implementation details, the research team reconstructed the specification by reading the source code. They mapped the architecture into three core components: password-encrypted RSA key backups on the server, RSA-encrypted group session key exchange, and AES-CBC message encryption.

Significance (Medium): Establishes the structural blueprint of Rocket.Chat encryption, showing how server-stored key backups connect directly to group session and message keys.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

3. Three architectural red flags in Rocket.Chat E2EE

Timestamp: 00:07:30 to 00:10:20

Kimura identifies three fundamental design flaws across the three encryption components: unspecified password generation for RSA key backups, static RSA key exchange with no forward secrecy, and unauthenticated AES-CBC message encryption. Together, these flaws expose past and future messages if a private key leaks and allow undetected ciphertext modification.

Significance (High): Highlights how combining static RSA key exchange with unauthenticated AES-CBC violates modern cryptographic standards for both confidentiality and integrity.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

4. Single-iteration PBKDF2 weakens RSA key backups

Timestamp: 00:10:21 to 00:12:54

In the RSA key backup workflow, client applications encrypt the user's private key using a password-derived master key and upload it to the Rocket.Chat server. The key derivation function uses PBKDF2-SHA256 with only a single iteration instead of the 600,000 iterations recommended by OWASP, offering minimal resistance to offline brute-force attacks.

Significance (High): Strips away computational protection against offline password cracking, turning any weakness in password entropy into an immediately exploitable flaw.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

5. Math.random and toLowerCase shrink password entropy

Timestamp: 00:12:54 to 00:17:12

Kimura examines the custom password generator in the Rocket.Chat mobile and legacy web codebases, which selects nine characters from a 62-character alphanumeric set using `Math.random()`, a non-cryptographic Mersenne Twister algorithm. Worse, a subsequent `.toLowerCase()` call converts all uppercase letters to lowercase, shrinking the effective character set to 36 and doubling the probability of lowercase letters.

Significance (High): Demonstrates how a single string-formatting method (`toLowerCase()`) both slashes the search space and introduces statistical bias that accelerates key recovery.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

6. Low entropy persists across mobile and web clients

Timestamp: 00:17:12 to 00:19:03

Comparing client implementations, the researchers found that the legacy web application shared the exact same nine-character `.toLowerCase()` bias as the mobile app. While a newer web application switched to generating passphrases from five random words, it only provided roughly 53 bits of entropy, which remains insufficient against offline cracking.

Significance (High): Confirms that the vulnerability was systemic across Rocket.Chat client platforms rather than isolated to a single mobile codebase.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

7. Password recovery compromises the entire E2EE chat

Timestamp: 00:19:03 to 00:22:45

Because the backup password sits at the root of the Rocket.Chat key hierarchy, cracking it yields the master key, which decrypts the RSA private key backup, which in turn decrypts all group session keys. Furthermore, an undocumented password reset workflow only renews the password and never rotates compromised group session keys, leaving attackers with permanent access to read and forge messages.

Significance (High): Proves that a single key recovery combined with broken key rotation results in total, persistent compromise of group communications.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

8. GitHub OSINT reveals why Signal was dropped in 2017

Timestamp: 00:22:45 to 00:26:50

Using open-source intelligence on public GitHub commits and pull requests, Kimura investigated why Rocket.Chat built a fragile custom protocol after announcing plans in 2017 to adopt the Signal protocol. A developer comment in a pull request revealed that the custom password-backed design was chosen to let users easily access encrypted chats across multiple devices.

Significance (Medium): Illustrates how usability requirements like multi-device synchronization frequently push engineering teams away from secure protocols toward fragile custom cryptography.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

9. Coordinated disclosure and the 2.5-year research arc

Timestamp: 00:26:50 to 00:29:28

Kimura outlines the two-and-a-half-year timeline from initial documentation review in 2023 to responsible disclosure and patching with Rocket.Chat in 2024, followed by academic paper acceptance in February 2025. While Rocket.Chat patched the key recovery and rotation flaws, it retained a trust-on-first-use model for public key authenticity as an accepted risk under its threat model.

Significance (Medium): Clarifies which vulnerabilities were remediated by the vendor and notes that trust-on-first-use public key handling remains an accepted limitation.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

10. Auditing undocumented multi-platform client code

Timestamp: 00:29:28 to 00:32:29

Reflecting on the research challenges, Kimura highlights the difficulty of reverse-engineering undocumented protocol behaviors across web, desktop, iOS, and Android codebases, as well as formalizing the proofs for academic publication. He credits open-source code availability, end-to-end proof-of-concept exploit development, and collaborative Rocket.Chat engineers for making the project succeed.

Significance (Low): Shows that modern messaging security requires auditing every client implementation separately because specifications rarely reflect platform-specific code.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

11. Replace password-based E2EE with modern key designs

Timestamp: 00:32:31 to 00:36:00

Concluding with lessons for practitioners, Kimura advises combining design reviews and formal verification with source-code audits to catch bugs hiding between specifications and implementations. Most importantly, he warns that simple password-based key derivation creates a catastrophic single point of failure in E2EE and urges engineers to adopt modern multi-device key management or device-bound keys.

Significance (High): Provides actionable architectural guidance for security engineers designing or auditing end-to-end encrypted systems.

Sources in support: Hayato Kimura (Researcher, National Institute of Information and Communications Technology & The University of Osaka)

Key Sources

  • Hayato Kimura — Researcher, National Institute of Information and Communications Technology & The University of Osaka

This analysis was generated by skim (skim.plus), an AI-powered content analysis platform by Credible AI. Scores and classifications represent the platform's AI-generated assessment and should be considered alongside other sources.