Spaces:
Sleeping
Sleeping
Commit History
-
fix: correct RL reward signal, disable reactive red pivot, propagate negligence penalty to dimensions
Ajayyy00 +1: Claude Sonnet 4.6- graders.py: when threat_containment=0 and plan submitted, multiply business_impact and step_efficiency by 0.1 so reward_funcs sees the lazy-submit penalty directly in dimension scores, not just final_score - play_environment.py: move business_impact growth from every Blue step to _apply_red_team_dynamics (only fires on Red lateral_pivot/deploy_payload) - train_grpo.py: set CYBERSOC_ADAPTIVE=0 to disable reactive red pivot during GRPO training (removes negative feedback loop where correct Blue containment immediately triggered Red expansion) - train_grpo.py: remove dead trigger_playbook action from SYSTEM_PROMPT Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>75fda81 -
Fix 4 critical RL training bugs
Ajayyy00 +1: Claude Sonnet 4.6- graders.py: forensic_investigation now reads state.forensics_run (was incorrectly reading scanned_hosts, contradicting the live reward signal) - graders.py: step_efficiency base raised from 0.5→1.0; triggered_playbooks was always [] (SOCState has no such field), capping the dimension at 0.5 - play_environment.py: reset() seeds rng with hash(task_id)^hash(episode_id) and keys network cache by (task_id, eid); previously identical seed per task caused all GRPO prompts to be byte-for-byte identical → loss=0.0000 - notebook SYSTEM_PROMPT: removed trigger_playbook action (not in SOCActionWrapper.to_typed_action, causing -0.2 penalty on every attempt) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>08d1655
-
Add hotseat multiplayer Red Team controls and 4 architectural fixes
Ajayyy00 +1: Claude Sonnet 4.6Frontend (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…16abf54 -
Gracefully handle invalid LLM actions with -0.2 penalty instead of 500 crash
Ajayyy00fb2558e -
Fix attack_chain KeyError and other validation errors
Ajayyy00a1eaa4b -
Initialize _step_reward_total in __init__ to fix AttributeError
Ajayyy00f02fe4d -
Add root health check route to fix HF 404
Ajayyy004f81d19 -
Add FSP multi-agent architecture: Red Team LLM action space + alternating turns
Ajayyy00 +1: Claude Sonnet 4.6Step 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…f4496b6 -
Fix business_impact grader: penalise unjustified isolations per-host
Ajayyy00 +1: Claude Sonnet 4.6Replace 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>0263728 -
Add alternating self-play training scaffolding.
Ajayyy00Wire configurable frozen-opponent server startup and add training utilities for archive, eval harness, data collection, and freeze-alternate orchestration. Made-with: Cursor03e943f -
Replace SOAR playbooks with agentic micro-tools.
Ajayyy00Introduce 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: Cursor2f4b8ee
-
Add .gitignore, improve play_environment pending_followup tracking
Ajayyy006fe23ce -
Fix phantom data bug: correct HF baseUrl, health endpoint for liveness probe, zero initial scores
Ajayyy00941ae35 -
Initial commit of CyberSOC upgraded RLVR environment
Ajayyy00fd8751e