[Feature request] Detect modified channel-message replays with progressively increasing trailing spaces
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Summary
While passively recording received MeshCore channel messages in the Netherlands, I observed the same message content reappearing with progressively more ASCII spaces immediately before the sender-name separator : and at the end of the message body.
This appears across multiple displayed sender names. The earliest observed version may be a legitimate original; the names below must not be interpreted as identifying whoever generates the modified copies. Channel display names are not authenticated sender identities.
Is this a known behavior, bridge loop, or abuse pattern? Is there existing work on optional repeater-side detection/filtering that preserves the unmodified messages?
Environment and collection
- Receiving companion: LilyGo T-Echo,
v1.18.0-81dbae5(build 15-Oct-2026). - My local repeater reports the same firmware version. This does not establish that any particular received message traversed it.
- Messages collected over BLE with the Python
meshcorelibrary installed withmeshcore-cli 1.6.13. - The collector polls
get_msg()and writes the received payload without trimming or appending spaces. - Capture date: 2026-12-05. All times below are UTC.
- This is an observational report, not a controlled reproduction of the transmitter's behavior.
Example 1: increasing padding
Here · represents one ASCII space (0x20). All other spaces in these illustrative strings remain ordinary spaces.
| Received (UTC) | Text with added spaces made visible | Extra spaces before separator / at end | Path hash width | Hops |
|---|---|---|---|---|
| 13:53:26 | John: kliko |
0 / 0 | 1 byte | 10 |
| 14:02:53 | John·: kliko· |
1 / 1 | 2 bytes | 7 |
| 14:12:28 | John··: kliko·· |
2 / 2 | 2 bytes | 13 |
| 14:36:56 | John···: kliko··· |
3 / 3 | 2 bytes | 11 |
| 15:05:33 | John····: kliko···· |
4 / 4 | 2 bytes | 12 |
| 15:39:25 | John·····: kliko····· |
5 / 5 | 2 bytes | 8 |
The sender timestamp also changes: the first two versions carry 1796478796 and 1796479358, respectively. These are not simply the same application payload arriving over different routes.
Example 2: the same pattern under another displayed name
| Received (UTC) | Text with added spaces made visible |
|---|---|
| 14:23:49 | 🍎Appel🍎: Ja joh lekker spammen 🤡 |
| 14:34:06 | 🍎Appel🍎·: Ja joh lekker spammen 🤡· |
| 15:15:34 | 🍎Appel🍎··: Ja joh lekker spammen 🤡·· |
| 15:58:05 | 🍎Appel🍎···: Ja joh lekker spammen 🤡··· |
| 16:14:55 | 🍎Appel🍎····: Ja joh lekker spammen 🤡···· |
For an unambiguous representation, this is one actual stored record, with ASCII spaces escaped as JSON Unicode escapes:
{
"received_utc": "2026-12-05T16:14:55.218964+00:00",
"event": "channel_message",
"payload": {
"type": "CHAN",
"SNR": 12.25,
"channel_idx": 0,
"path_hash_mode": 1,
"path_len": 10,
"txt_type": 0,
"sender_timestamp": 1796487276,
"text": "🍎Appel🍎\u0020\u0020\u0020\u0020: Ja joh lekker spammen 🤡\u0020\u0020\u0020\u0020"
}
}
Initial observations
In the first 70 recorded messages (13:18:14–16:14:55 UTC):
- 51 had one or more trailing spaces in the displayed name before
:. All 51 had exactly the same number of trailing spaces at the end of the body. - All 51 used 2-byte path hashes (
path_hash_mode = 1). - Another 5 had a trailing space only in the body; 14 had neither kind of trailing space.
- After stripping trailing spaces from the displayed name and body, the 70 messages form 20 distinct (name, body) pairs.
- The phenomenon occurs on both locally configured channels Public (slot 0) and #nl (slot 6).
- Some initial versions use 1- or 3-byte paths, while their later padded variants use 2-byte paths.
- Hop counts and SNR overlap with the unpadded versions, so those fields alone do not identify a source.
- The capture has no full repeater paths or authenticated channel sender keys, so I cannot attribute the modified copies to a specific node.
This suggests a common mechanism re-originating modified copies, possibly bypassing exact-packet duplicate suppression. That explanation is a hypothesis; I cannot distinguish deliberate abuse from a faulty bridge or other software behavior using this capture alone.
Requested behavior / questions
Could an opt-in repeater policy detect this pattern or suppress repeated channel text after whitespace normalization, while preserving the original unpadded message?
A conservative starting point for discussion could be matching both trailing-name and trailing-body padding, ideally combined with a bounded recent-message cache scoped per channel. A blanket ban on the displayed names would risk blocking legitimate users whose messages are being copied. Trailing spaces alone can also be legitimate, so this should not become an unconditional protocol validity rule.
I understand content-aware matching requires the channel key and cannot generically inspect arbitrary encrypted/private channel traffic. This request is for explicitly configured channels, not a universal decryption capability.
Related: #4013 (general repeater packet/channel filtering request) and #2571 (earlier packet-filtering proposal).
Happy to provide additional selected capture excerpts or test a proposed diagnostic/filter.
- Linguagem predominante
- C
- Estrelas
- 3.9k
- Forks
- 1.5k
- Merge médio
- 2d 19h
- PRs com merge (30d)
- 61
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de meshcore-dev/MeshCore
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
meshcore-dev/MeshCore#4015 ·
Mantenedores costumam responder em até 2 dias
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new nameTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
meshcore-dev/MeshCore#3891 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
meshcore-dev/MeshCore#3826 ·
Mantenedores costumam responder em até 2 dias
-
App Preset Australia: NTAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
meshcore-dev/MeshCore#3825 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
meshcore-dev/MeshCore#3781 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de meshcore-dev/MeshCore
Issues semelhantes
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
389ds/389-ds-base#8251 ·
Mantenedores costumam responder em até 1 dia
-
bug data-types
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ROCm/hrx-system#3628 ·
Mantenedores costumam responder em até 1 dia