feat: introduce dynamic lab topology and vulnerability mapping system#68
Merged
Conversation
…ia labmap **Added:** - Implemented labmap package to parse arbitrary GOAD-style lab topologies, supporting dynamic host/domain/user mappings and variant overlays - Added comprehensive tests in labmap_test.go covering multiple lab scenarios and vulnerability fact queries **Changed:** - Refactored health check, validation, and trust verification commands to use dynamic lab topology from labmap, removing hardcoded host/domain logic - Health checks, validation checks, and trust verifications are now driven by lab configuration, supporting custom/variant labs - Health check logic dynamically generates checks for DCs, servers, trusts, DNS, MSSQL, and IIS based on parsed lab state - All validation checks in validate/checks.go now enumerate lab topology and vulnerabilities via labmap queries instead of static host/user lists - Validator and infra context now require and propagate parsed lab config for all operations **Removed:** - Eliminated all hardcoded hostnames, domain names, and trust assumptions from health checks, validation, and trust verification logic - Removed static lists of GOAD hosts and replaced with lab-driven topology
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Key Changes:
LabMapAdded:
LabMap) to parse and represent labstructure, hosts, domains, trusts, vulnerabilities, and variant mappings
labmapto query DCs, servers, trusts, users, ACLs,and vulnerability facts for arbitrary lab topologies
cases (
labmap_test.go)infra.go, removing static host listChanged:
lab topology, supporting arbitrary lab configurations and variants
DNS relationships, services)
configuration, supporting any number of domains and trust types
delegation, SMB, ACLs, MSSQL, ADCS) now dynamically enumerate hosts and users
from lab config rather than using static logic
infra.goandvalidate.gonow deriveexpected hosts from lab config, supporting variants and custom labs
Removed:
from CLI and validator logic
evaluation