Spaces:
Runtime error
Runtime error
Commit History
-
Remove hardcoded fallbacks, add snapshot-driven service lifecycle
Aaron Brown- Remove _LEGACY_STOP_DAEMONS, _start_services_legacy, _declared_service_daemons - _stop_services and _capture_service_pids derive daemons from snapshot.services - _start_snapshot_services skips when no service specs (no legacy fallback) - _resolve_target reads topology roles/zones, raises if missing - _select_snapshot raises RuntimeError when no snapshot provided - _get_pending_alerts returns [] instead of synthetic fallback - Renderer auto-populates snapshot.services via generate_service_specs - start.sh supports ServiceSpec-driven startup alongside legacy path - Tests updated: explicit snapshot in all reset() calls, 114 env tests pass - 70 new service spec tests (models, generation, lifecycle, renderer)7fedc25 -
Add episode CLI, synthetic data pipeline, NPC generalization, service manifest
Aaron Brown- Add `openrange episode` command (golden-path replay + interactive REPL) - Add synthetic data generation pipeline with teacher agents and dataset helpers - Generalize NPC actions/traffic scripts to derive targets from SnapshotSpec - Add service_manifest.py for snapshot-declared service lifecycle - Add replay_agent, dataset module, NPC reward coupling tests - Graceful container resolution when Docker is available but no containers running - Skip tests that depend on deleted snapshot fixtures - Remove scripted_agent (replaced by replay_agent)f016eb7 -
Add NPC actions, synthetic data pipeline, CLI enhancements
Aaron BrownAgent-generated supporting changes from architecture review: - NPC action system (actions.py) for structured NPC behaviors - Synthetic data generation pipeline (training/synthetic.py) - CLI improvements and NPC traffic script updates - NPC agent loop enhancements for topology-driven operationfb68239 -
Production all-in-one container with real service execution
Aaron Brown- Replace mock mode with subprocess execution for production - Add execution_mode parameter: auto/docker/subprocess - Auto-detect: env var OPENRANGE_EXECUTION_MODE > Docker SDK > subprocess - Subprocess mode executes commands via bash against local services - _apply_snapshot_subprocess() writes files directly to filesystem - Add zone_router.py: Python zone routing replaces iptables - All-in-one Dockerfile: ubuntu:22.04 + nginx, php-fpm, mysql, slapd, rsyslog, samba, postfix, nmap, sqlmap, hydra, nikto, etc. - start.sh: follows OpenEnv openapp_env pattern (bg services + exec uvicorn) - HEALTHCHECK with 60s start-period for service boot time - Unit tests preserved: docker_available=False still uses mock mode - 689 tests passing49d1c75 -
Merge branch 'worktree-agent-a342e088'
Aaron Brown6418097 -
Add family registry, baseline solver suite, and hard manifest variants
Aaron Brown +1: Claude Opus 4.6- Family registry (#24): manifests/registry.yaml with metadata for all range families (display_name, tags, difficulty, learning_goals) and src/open_range/registry.py with FamilyInfo model, Registry class (load, list_families, get_family, filter_by_tag, filter_by_difficulty). - Baseline solver suite (#21): src/open_range/agents/solvers.py with Tier1Solver, Tier2Solver, Tier3Solver (Red) and BlueSolver (Blue), each pre-loaded with realistic command sequences matching the tier's topology. Factory function get_solver(tier, role) for easy access. - Hard variants (#27): manifests/tier1_hard.yaml (same 8-host topology, WAF bypass, chained SSRF+SQLi, max_steps reduced from 12 to 8) and manifests/tier2_hard.yaml (same 10-host topology, 3+ hop chains, enhanced monitoring, stricter creds, max_steps reduced from 18 to 12). - Tests: 62 new tests across test_registry.py (24 tests) and test_solvers.py (38 tests) covering loading, filtering, protocol compliance, factory, behav…b09903c -
Add task engine, exposure policy, auth scenario, pivot mechanics, curriculum wiring
Aaron Brown +1: Claude Opus 4.6Implements five GitHub issues: - #17 Task engine: TaskType enum, TaskSpec milestones/success_conditions, milestone checking in step(), milestones_completed in RangeState - #18 Exposure policy: ExposurePolicy model (public/hidden/authenticated/ misconfigured), added to Host in manifests/schema.py - #25 Auth scenario: auth/logout meta-commands in environment, session tracking via active_sessions and auth_attempts in RangeState - #26 Pivot mechanics: access_grants and pivot_history in RangeState, credential leak detection in command output via _check_pivot() - #34 Curriculum feedback: CurriculumTracker.update_from_result() method, run_episode() wires results to tracker when provided All 354 tests pass (311 existing + 43 new). No existing tests broken. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>769dd2e -
Full OpenRange implementation: environment, builder, validator, agents, tests
Aaron Brown +1: Claude Opus 4.6- src/open_range/: complete package with server, builder, validator, client, agents, training, and protocols modules - manifests/: Pydantic schema + 3 enriched YAML manifests (tier 1-3) with realism profiles (company context, tech stack, credential policy, monitoring coverage, trust relationships, operational context) - vulns/catalog.yaml: 23 vulnerability classes across 4 realism layers (application, infrastructure, identity, process) - Builder LLM pipeline: structured JSON output, 18-rule system prompt using all manifest realism layers, template renderer, snapshot store - Validator: 10-check hybrid pipeline (8 mechanical + 2 LLM advisory) - Environment: container-as-constraint design (no artificial command allowlists), Red routes to attacker container, Blue routes to siem container - Rewards: Red (flag, efficiency, stealth, evidence, anti-hallucination) and Blue (detection, patch, availability, false-positive penalty) - Agents: protocol, scripted, LLM, and human agent i…8c486a8