Add hotseat multiplayer Red Team controls and 4 architectural fixes
Ajayyy00+1: Claude Sonnet 4.6
a144947
Frontend (hotseat mode):
- FSP mode: dashboard_server now creates CyberSOCEnvironment(fsp_mode=True) so
the backend pauses after every Blue step waiting for a manual Red action
- Red Team Toolkit panel: action dropdown (lateral_pivot, deploy_payload,
evade_detection, pass_turn) with context-sensitive input fields and Execute button
- RedTeamController class wires the toolkit to API.step() and resumes Blue
auto-play after each Red action completes
- Turn indicator in header: shows BLUE/RED TEAM TURN badge, disables the
opposite team's controls, and halts Blue auto-scheduling on Red's turn
Backend grader & environment fixes:
- Lazy Adversary: _deterministic_red_policy rewritten with 3-priority logic
(stall punishment > reactive pivot > 15% autonomous pivot); else-branch now
dispatches deploy_payload in addition to lateral_pivot
- Rigid Bureaucracy: ActionMiddleware allows isolate_segment in triage phase
only when a critical alert justifies it; new UNJUSTIFIED_EMERGENCY err…
Gracefully handle invalid LLM actions with -0.2 penalty instead of 500 crash
Ajayyy00
f7f5220
Fix attack_chain KeyError and other validation errors
Ajayyy00
533611a
Initialize _step_reward_total in __init__ to fix AttributeError
Ajayyy00
583fea5
Add root health check route to fix HF 404
Ajayyy00
14a2669
Add FSP multi-agent architecture: Red Team LLM action space + alternating turns
Ajayyy00+1: Claude Sonnet 4.6
5719ec3
Step 1 — models.py
• New Red action classes: LateralPivot, DeployPayload, EvadeDetection, PassTurn
• RedActionWrapper (mirrors SOCActionWrapper for WS/HTTP routing)
• RED_ACTION_TYPES frozenset for payload routing
• SOCObservation: active_turn + red_observation fields
• SOCState: active_turn field
Step 2 — play_environment.py
• fsp_mode=False constructor flag; True enables strict Blue/Red alternation
• step() dispatches to _step_blue() or _step_red() based on action type
• _step_blue(): executes Blue action; in fsp_mode auto-flips to red without
incrementing step_count; in legacy mode auto-PassTurns + increments (backward compat)
• _step_red(): executes Red action, increments step_count, flips to blue
• Red handlers: _handle_lateral_pivot, _handle_deploy_payload,
_handle_evade_detection, _handle_pass_turn
• _generate_red_observation(): compromised_hosts + blue_actions_detected
• Removed deterministic _execute_lateral_pivot and _maybe_reinfect;
_adve…
Replace the blunt >20% flat penalty with a per-host check: any host
isolated that is not in the attack chain's compromised_hosts (or currently
marked compromised in the graph) incurs a -0.20 penalty per wrong
isolation, capped at -0.80. Also restores triggered_playbooks extraction
and step_efficiency playbook-bonus logic that was lost in a prior edit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add alternating self-play training scaffolding.
Ajayyy00
292f6a5
Wire configurable frozen-opponent server startup and add training utilities for archive, eval harness, data collection, and freeze-alternate orchestration.
Made-with: Cursor
Replace SOAR playbooks with agentic micro-tools.
Ajayyy00
7211e63
Introduce terminate_pid, create_firewall_rule, and quarantine_file actions while removing playbook-based remediation and updating validation and grading to reward efficient containment sequencing.
Made-with: Cursor