Not in The Prophecies: Practical Attacks on Nostr
Distributed social networking services (SNSs) recently received significant attention as an alternative to traditional, centralized SNSs, which have inherent limitations on user privacy and freedom. We provide the first in-depth security analysis of Nostr, an open-source, distributed SNS protocol developed in 2019 with more than 1.1 million registered users. We investigate the specification of Nostr and the client implementations and present a number of practical attacks allowing forgeries on various objects, such as encrypted direct messages (DMs), by a malicious user or a malicious server. Even more, we show a confidentiality attack against encrypted DMs by a malicious user exploiting a flaw in the link preview mechanism and the CBC malleability. Our attacks are due to cryptographic flaws in the protocol specification and client implementation, some of which in combination elevate the forgery attack to a violation of confidentiality. We verify the practicality of our attacks via Proof-of-Concept implementations and discuss how to mitigate them.
Authors
- Kazuhiko Minematsu (ORCID: https://orcid.org/0000-0002-3427-6772)
- Ryoma Ito (ORCID: https://orcid.org/0000-0002-4929-8974)
- Takanori Isobe (ORCID: https://orcid.org/0000-0003-4253-5567)
- Hayato Kimura
- Shogo Shiraki
Institutions
- NEC (Japan) (JP)
- Osaka University of Economics (JP)
- University of Hyogo (JP)
- National Institute on Consumer Education (JP)
Publication Details
- Published
- 2025-06-30
- DOI
- https://doi.org/10.1109/eurosp63326.2025.00040
- Primary Topic
- European and Russian Geopolitical Military Strategies
- Type
- article
- Field-Weighted Citation Impact
- 0.00