Back

Secure LSL: A Unified Encryption Architecture for the Lab Streaming Layer

Shirazi, S. Y.; Makeig, S.

2026-07-11 neuroscience
10.64898/2026.07.07.737068 bioRxiv
Show abstract

ObjectiveThe Lab Streaming Layer (LSL) protocol, widely adopted for synchronized multimodal biosignal recording in neuroscience research, transmits all data in plaintext, exposing sensitive neural and physiological recordings to interception and tampering and creating regulatory liability for clinical and commercial deployments across most major international jurisdictions. We present Secure LSL, the unified encryption architecture for the protocol: a novel security layer that authenticates devices and encrypts biosignal streams through transparent, drop-in modifications to the core library, requiring no application changes and no recompilation for dynamically linked clients. ApproachWe implement encryption at the liblsl core library level using a shared keypair authorization model with ChaCha20-Poly1305 authenticated encryption. All authorized devices share a common Ed25519 keypair, and public key verification during connection establishment ensures only authorized devices communicate. The architecture enforces network-wide security consensus, requiring all connected devices to operate in either secure or insecure mode, eliminating vulnerable mixed environments, and operates transparently with zero code changes to existing applications. Main ResultsThe architecture preserves application programming interface (API) transparency, so existing applications need no code changes (legacy devices must update to connect to secured outlets). Across five hardware platforms spanning x86 desktop, Apple Silicon laptop, embedded ARM single-board, and Xtensa microcontroller targets, encryption adds sub-millisecond latency in all desktop and embedded ARM configurations, with overhead in the single-digit percent range (approximately 4 to 9%, the lowest values within measurement noise of zero) for typical 64-channel, 1000-Hz configurations. A clean-room ESP32 implementation extends transparent encryption to dual-core microcontrollers with no measurable push-path overhead and approximately 2 kB additional static random-access memory (SRAM) consumption, enabling secured wearable and ambulatory biosensor deployments. SignificanceBy implementing security within the protocol core rather than requiring application-level changes, we transform LSL from a research-only protocol to a security-capable platform for clinical settings, multi-institution collaborations, and commercial products, while preserving its zero-configuration philosophy.

Matching journals

The top 6 journals account for 50% of the predicted probability mass.

1
Journal of Neural Engineering
221 papers in training set
Top 0.4%
11.4%
2
PLOS ONE
5266 papers in training set
Top 18%
10.2%
3
Alzheimer's & Dementia
163 papers in training set
Top 0.7%
8.2%
4
eneuro
439 papers in training set
Top 0.4%
8.2%
5
Scientific Reports
3612 papers in training set
Top 8%
7.5%
6
Nature Communications
5641 papers in training set
Top 26%
5.7%
50% of probability mass above
7
Diagnostics
50 papers in training set
Top 0.5%
3.4%
8
Imaging Neuroscience
282 papers in training set
Top 2%
3.3%
9
npj Digital Medicine
118 papers in training set
Top 2%
2.5%
10
Psychophysiology
77 papers in training set
Top 0.7%
1.8%
11
IEEE Access
35 papers in training set
Top 0.7%
1.7%
12
Neurophotonics
42 papers in training set
Top 0.3%
1.6%
13
iScience
1154 papers in training set
Top 20%
1.5%
14
Journal of the American Medical Informatics Association
71 papers in training set
Top 2%
1.4%
15
Patterns
78 papers in training set
Top 2%
1.2%
16
Behavior Research Methods
30 papers in training set
Top 0.4%
1.2%
17
IEEE Journal of Biomedical and Health Informatics
37 papers in training set
Top 0.8%
1.2%
18
Neuron
337 papers in training set
Top 4%
1.2%
19
Nature Neuroscience
252 papers in training set
Top 4%
1.2%
20
Frontiers in Neuroscience
256 papers in training set
Top 4%
1.2%
21
Journal of Visualized Experiments
34 papers in training set
Top 0.4%
1.1%
22
eLife
5828 papers in training set
Top 63%
0.9%
23
Science Advances
1243 papers in training set
Top 29%
0.9%
24
BMC Neuroscience
11 papers in training set
Top 0.1%
0.9%
25
Communications Biology
993 papers in training set
Top 28%
0.9%
26
Journal of Neuroscience Methods
122 papers in training set
Top 2%
0.6%
27
PLOS Computational Biology
1863 papers in training set
Top 21%
0.6%
28
Nature Medicine
125 papers in training set
Top 4%
0.6%
29
Journal of Medical Internet Research
87 papers in training set
Top 3%
0.5%
30
PLOS Biology
486 papers in training set
Top 16%
0.5%