[attack] Extend attack configuration validation before simulation startup
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem or motivation
Attack configuration validation currently covers condition structure, duplicate stage IDs, registered stage types, supported capabilities, and selected stage parameters. Compatibility with actual target services is checked during execution, while missing message paths in spoofing rules are silently skipped.
Extend validation to check service compatibility, stage references, and known message fields before the simulation starts. Report configuration errors with their exact locations and warn about clearly inconsistent trigger conditions. Fields that depend on runtime data should have explicit runtime diagnostics instead of silently producing no effect.
Proposed solution
- Add validation.py to validate attack definitions against the scenario’s merged participant configurations. Check that target services are configured and provide the required capabilities. Recursively walk attack and stage conditions to validate stage references and warn about simple trigger inconsistencies.
- Add class-level message-type metadata alongside service capability definitions. Use existing message dataclasses to validate envelope and nested payload paths without creating service instances. Leave optional values and sequence lengths to runtime checks.
- Refactor attack loading in scenario.py so configuration parsing and validation happen before participant creation and simulation ticks. Keep runtime target resolution and compatibility checks.
- Pass the configuration filename and full field path through parsing and validation, including existing checks in attack_spec.py, stage_registry.py, and stage parameter parsing.
- Update SpooferStage path resolution to distinguish missing attributes, unavailable optional values, and invalid indices. Report failures with attack, stage, rule, and path context instead of silently skipping them.
- Add tests for early validation, precise error locations, trigger warnings, and runtime path diagnostics, while preserving existing valid configurations and interception behavior.
Area
Simulation
Alternatives considered
No response
Additional context
No response
- Ngôn ngữ chính
- Python
- Star
- 11
- Fork
- 11
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CAVISE/OpenCDA
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 47/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CAVISE/OpenCDA
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
-
frontend testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
vendrabuck/HERD#1588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Lessons: record the second case of L14 (security updates cover only pip)Có thể đã có người làm @vishwanathj đã nhận hôm nay. Đang mởarea/docs no-test-needed type/docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vishwanathj/ocp_lab.ai#39 · 1 bình luận ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
laaielichter/Gulliver#228 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
nyjc-computing/campus#1338 ·
Maintainer thường phản hồi trong vòng 1 ngày