Getting StartedΒΆ
Python 3.12+. Install from git (not PyPI).
python -m pip install 'netforge-rl @ git+https://github.com/reforcemind/NetForge_RL'
netforge run hospital_ransomware --replay replay.html
That spins Red vs Blue on a hospital ransomware pack and writes an HTML replay of hosts, SIEM, and rewards.
git clone https://github.com/reforcemind/NetForge_RL.git
cd NetForge_RL
pip install -e ".[dev]"
import netforge_rl
from pettingzoo import make
from netforge_rl.environment.graph_wrapper import GraphObservationWrapper
env = GraphObservationWrapper(make('parallel', 'netforge/ransomware-v4', max_ticks=80))
obs, infos = env.reset(seed=0)
infos["blue_dmz"]["graph"] is what Blue believes from SIEM.
One Blue vs a scripted attacker: gym.make("NetForge/Blue-v4").
Env ids |
|
Red / Blue / SIEM |
|
Packs |
|
Your policy |
|
Gate |