NetForge RL
Multi-agent cybersecurity environment for RL research. Red team vs Blue team on generated networks.
Features (v2.0)¶
- JAX Backend: Vectorized step implementation (
jax.vmap,jax.jit) providing >1,000,000 steps-per-second at 4096 parallel environments on CPU. - JaxMARL & DLPack Integration: Native integration with hardware-accelerated MARL frameworks and zero-copy tensor conversion between JAX and PyTorch.
- Decoupled Rendering: Matplotlib + NetworkX visualizer operating strictly off the hot path, with
moviepyframe recording capabilities. - Semantic Bridge: Foundation model interfaces providing SIEM telemetry via
state_to_text, multimodal payloads viabuild_vla_prompt, and LoRA+PPO fine-tuning recipes for Llama-3-8B. - Functional Core: Immutable
EnvStatePyTree with deterministicapply_state_deltaexecution.
Quick Start¶
See the Quick Start Guide for execution loops.
Architecture Structure¶
netforge_rl/
├── core/ Immutable EnvState PyTree and interpreters
├── backends/jax/ Vectorized kernels and batched execution
├── environment/ Legacy PettingZoo backend
├── bridges/ JaxMARL adapter and zero-copy dlpack
├── render/ Decoupled visualization pipelines
├── semantic/ Interfaces for language model agents
├── baselines/ Reference heuristic policies and JAX PPO
└── scenarios/ Environment goal configurations