Feat/nlp siem embeddings#5
Merged
Merged
Conversation
Modified can_route_to natively rejecting Secure subnet traversals entirely unless Red explicitly populates their agent_inventory hash lists via new AD memory objects.
Added global RotateKerberos loop neutralizing PassTheTicket hashes natively. Verified End-to-End via local python script.
Adds dual-mode hypervisor system (MockHypervisor for training, DockerHypervisor for evaluation). Includes Sim2RealBridge, HypervisorResult dataclass, and curated payload_library.json with 30+ real Metasploit stdout samples.
ExploitRemoteService, ExploitBlueKeep, ExploitHTTP_RFI now call bridge.dispatch() when available on global_state. HypervisorResult stdout and reward_delta attached to observation_data for SIEM pipeline.
Accepts sim2real_mode='sim'|'real' from scenario_config. Attaches bridge to global_state on init and episode reset. Calls teardown_all() between episodes.
New siem/ package. SIEMLogger converts action effects into authentic Windows Event ID + Sysmon XML strings (4624, 4625, 4648, 4688, 4768, 4776, Sysmon 1/3/10/22). Probabilistic detection with background noise injection.
New nlp/ package. LogEncoder encodes raw SIEM strings to 128-dim float32 vectors. Default: scikit-learn TF-IDF + LSA (zero extra deps, fast training). Optional: sentence-transformers all-MiniLM-L6-v2 + random projection. LRU embedding cache prevents re-encoding.
Observation space extended with siem_embedding: Box(128,). Blue agents receive live encoded SIEM vectors; Red agents receive zeros. SIEMLogger logs every resolved action effect + background noise per tick. LogEncoder fits TF-IDF on payload library + event template corpus at env init.
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.
The Implementation
siem_loggerto dynamically stream human-readable log syntax strings.5, it returns:"[AuthLog] User SYSTEM executed kernel32.dll on 10.0.0.4. Confidence: Medium."