[attacks] Add message filtering to attack stages
I maintainer di solito rispondono entro 1 giorno
@Dorguy ci sta già lavorando.
Dal 11/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Problem or motivation
Attack targets currently select service instances using simulation state. Once an interceptor is installed, spoofing rules apply to matching message structures, while dropping affects the entire output or randomly selected batch elements.
There is no shared mechanism for selecting individual messages by sender, recipient, payload type, or payload field values. This limits experiments that should affect a specific vehicle or message category while preserving other traffic handled by the same service.
Introduce reusable message filters for spoofing, dropping, replay, and future stages. Messages that do not match a filter should pass through unchanged.
Proposed solution
Add an optional message_filter to the stage configuration. The existing target selector chooses service instances, and the filter determines which messages handled by those services the stage applies to.
Support matching by sender ID, recipient ID, payload type, and exact payload field values. A message matches only if all configured conditions are met. If a field referenced by a condition is missing, the message does not match. Validate the filter configuration when loading the scenario.
Evaluate the filter at the input to each stage for every message, including each element of a batch. Messages that do not match pass through unchanged and can still be processed by subsequent stages. Preserve the relative order of messages that remain in the batch.
Use the same filtering logic for spoofing, dropping, replay, and future stages. When message_filter is omitted, the stage retains its current behavior.
Add tests for batches containing both matching and non-matching messages, missing fields, multiple conditions, and scenarios without a filter. Document an example that selects messages of a given type from one simulated vehicle.
Area
Simulation
Alternatives considered
No response
Additional context
No response
- Lingua principale
- Python
- Stelle
- 11
- Fork
- 11
- Merge medio
- 1g 16h
- PR unite (30g)
- 12
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CAVISE/OpenCDA
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 47/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di CAVISE/OpenCDA
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
-
frontend testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
vendrabuck/HERD#1588 ·
I maintainer di solito rispondono entro 1 giorno
-
Lessons: record the second case of L14 (security updates cover only pip)Forse già presa @vishwanathj l’ha presa oggi. Apertaarea/docs no-test-needed type/docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
vishwanathj/ocp_lab.ai#39 · 1 commento ·
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
laaielichter/Gulliver#228 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
nyjc-computing/campus#1338 ·
I maintainer di solito rispondono entro 1 giorno