Skip to content

feat: Add goal description validation to the config parser and update an example attacker goal with a specific C&C IP.#451

Merged
ondrej-lukas merged 1 commit intomainfrom
ondra-add-basic-goal-description-verification
Feb 25, 2026
Merged

feat: Add goal description validation to the config parser and update an example attacker goal with a specific C&C IP.#451
ondrej-lukas merged 1 commit intomainfrom
ondra-add-basic-goal-description-verification

Conversation

@ondrej-lukas
Copy link
Member

Implemented validate_goal_description() in netsecgame/game/config_parser.py which checks that the controlled_hosts and known_data values defined in the configuration goal actually appear as text inside the string description.

If any IPs or targets are missing from the description string, the logger triggers a WARNING.

… an example attacker goal with a specific C&C IP.
@ondrej-lukas ondrej-lukas linked an issue Feb 23, 2026 that may be closed by this pull request
@ondrej-lukas ondrej-lukas merged commit 6ddc356 into main Feb 25, 2026
2 checks passed
@ondrej-lukas ondrej-lukas deleted the ondra-add-basic-goal-description-verification branch February 25, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The goal description can not match the goal-state representation

1 participant