{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/95676"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/95676","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"DoS-Resilient Onion Message Routing in the Lightning Network","abstract":"Onion messages (OMs) are private messages sent between nodes in the Lightning Network (LN) using onion routing. While they are intended to enable interesting applications such as reusable invoices, refunds, and asynchronous payments, OMs may also be used for unintended applications such as streaming data or spam. LN nodes can impose a rate limit on forwarding OMs to mitigate this. However, if not carried out carefully, the rate limit can expose the network to a denial of service (DoS) attack, where an adversary may disrupt or degrade the OM service by flooding the network. This DoS threat is particularly concerning because, under current specifications, a single OM can traverse hundreds of nodes, affecting all the nodes on its way. In addition, the adversary can hide their true identity thanks to the privacy-preserving nature of onion routing. We propose a simple solution to address this threat with two main components. The first component limits the distance over which OMs can travel. For this purpose, we introduce two methods: a hard leash and a soft leash. The hard leash strictly limits how far OMs can travel, while the soft leash makes it exponentially harder for OMs to traverse long distances. While the first method requires changes in the message format, the second method can be easily adopted without altering OMs. The second component of our solution consists of a set of simple yet effective forwarding and routing rules. We demonstrate that when these rules and the proposed leashes are applied, an adversary cannot significantly degrade the onion messaging service, assuming that the adversary does not control a significant fraction of funds in the network.","abstract_html":"Onion messages (OMs) are private messages sent between nodes in the Lightning Network (LN) using onion routing. While they are intended to enable interesting applications such as reusable invoices, refunds, and asynchronous payments, OMs may also be used for unintended applications such as streaming data or spam. LN nodes can impose a rate limit on forwarding OMs to mitigate this. However, if not carried out carefully, the rate limit can expose the network to a denial of service (DoS) attack, where an adversary may disrupt or degrade the OM service by flooding the network. This DoS threat is particularly concerning because, under current specifications, a single OM can traverse hundreds of nodes, affecting all the nodes on its way. In addition, the adversary can hide their true identity thanks to the privacy-preserving nature of onion routing. We propose a simple solution to address this threat with two main components. The first component limits the distance over which OMs can travel. For this purpose, we introduce two methods: a hard leash and a soft leash. The hard leash strictly limits how far OMs can travel, while the soft leash makes it exponentially harder for OMs to traverse long distances. While the first method requires changes in the message format, the second method can be easily adopted without altering OMs. The second component of our solution consists of a set of simple yet effective forwarding and routing rules. We demonstrate that when these rules and the proposed leashes are applied, an adversary cannot significantly degrade the onion messaging service, assuming that the adversary does not control a significant fraction of funds in the network.","abstract_has_math":false,"creators":["Bashiri, Amin"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":"Computer Engineering","degree_department":null,"school":null,"contributors":[],"advisors":["Khabbazian, Majid (Electrical and Computer Engineering)"],"committee_chairs":[],"committee_members":[],"year":2024,"date_issued":"2024-11","date_published":"2024-11","updated_at":"2026-11-26T20:55:31Z","subjects":["Lightning Network","Onion Message","Denial of Service"],"languages":["en"],"rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/r3-bcen-2n54","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/r3-bcen-2n54","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F95676","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F95676","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Khabbazian, Majid (Electrical and Computer Engineering)"]},{"key":"dc:creator","label":"Author","values":["Bashiri, Amin"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-05-29T12:17:26Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-05-29T12:17:26Z"]},{"key":"dc:date.issued","label":"Date","values":["2024-11"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Lightning Network","Onion Message","Denial of Service"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/r3-bcen-2n54"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Onion messages (OMs) are private messages sent between nodes in the Lightning Network (LN) using onion routing. While they are intended to enable interesting applications such as reusable invoices, refunds, and asynchronous payments, OMs may also be used for unintended applications such as streaming data or spam. LN nodes can impose a rate limit on forwarding OMs to mitigate this. However, if not carried out carefully, the rate limit can expose the network to a denial of service (DoS) attack, where an adversary may disrupt or degrade the OM service by flooding the network. This DoS threat is particularly concerning because, under current specifications, a single OM can traverse hundreds of nodes, affecting all the nodes on its way. In addition, the adversary can hide their true identity thanks to the privacy-preserving nature of onion routing. We propose a simple solution to address this threat with two main components. The first component limits the distance over which OMs can travel. For this purpose, we introduce two methods: a hard leash and a soft leash. The hard leash strictly limits how far OMs can travel, while the soft leash makes it exponentially harder for OMs to traverse long distances. While the first method requires changes in the message format, the second method can be easily adopted without altering OMs. The second component of our solution consists of a set of simple yet effective forwarding and routing rules. We demonstrate that when these rules and the proposed leashes are applied, an adversary cannot significantly degrade the onion messaging service, assuming that the adversary does not control a significant fraction of funds in the network."]},{"key":"dc:title","label":"Title","values":["DoS-Resilient Onion Message Routing in the Lightning Network"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Khabbazian, Majid (Electrical and Computer Engineering)"],"dc:creator":["Bashiri, Amin"],"dc:date.accessioned":["2025-05-29T12:17:26Z"],"dc:date.available":["2025-05-29T12:17:26Z"],"dc:date.issued":["2024-11"],"dc:description.abstract":["Onion messages (OMs) are private messages sent between nodes in the Lightning Network (LN) using onion routing. While they are intended to enable interesting applications such as reusable invoices, refunds, and asynchronous payments, OMs may also be used for unintended applications such as streaming data or spam. LN nodes can impose a rate limit on forwarding OMs to mitigate this. However, if not carried out carefully, the rate limit can expose the network to a denial of service (DoS) attack, where an adversary may disrupt or degrade the OM service by flooding the network. This DoS threat is particularly concerning because, under current specifications, a single OM can traverse hundreds of nodes, affecting all the nodes on its way. In addition, the adversary can hide their true identity thanks to the privacy-preserving nature of onion routing. We propose a simple solution to address this threat with two main components. The first component limits the distance over which OMs can travel. For this purpose, we introduce two methods: a hard leash and a soft leash. The hard leash strictly limits how far OMs can travel, while the soft leash makes it exponentially harder for OMs to traverse long distances. While the first method requires changes in the message format, the second method can be easily adopted without altering OMs. The second component of our solution consists of a set of simple yet effective forwarding and routing rules. We demonstrate that when these rules and the proposed leashes are applied, an adversary cannot significantly degrade the onion messaging service, assuming that the adversary does not control a significant fraction of funds in the network."],"dc:identifier.doi":["https://doi.org/10.7939/r3-bcen-2n54"],"dc:language.iso":["en"],"dc:rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"dc:subject":["Lightning Network","Onion Message","Denial of Service"],"dc:title":["DoS-Resilient Onion Message Routing in the Lightning Network"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_discipline":["Computer Engineering"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T20:55:31Z"}