Spaces:
Runtime error
Runtime error
Commit History
-
fix(npc): restore smtp traffic script
Aaron Browna498b39 -
fix(npc): normalize compiled topology hosts (#103)
Lars TalianUnverified signaturebafb155 -
fix(runtime): stabilize live admission boot path (#102)
Lars TalianUnverified signature5b99233 -
Make mutation policy weights explicit
Lars Talian228ed67 -
Make builder/runtime service semantics manifest-driven
Lars Taliandabed55 -
fix(services): use Popen for daemon starts, remove fallbacks, dedup rsyslogd
Aaron Brown- Switch from sp.run+capture_output to Popen+DEVNULL for daemon starts to avoid SIGCHLD zombie reaper racing with sp.run's waitpid - Remove hardcoded fallback SnapshotSpec from _select_snapshot — raise RuntimeError when no snapshot source is available - Deduplicate daemon names in _from_topology (firewall + siem both mapped to rsyslogd, causing duplicate starts) - Add rsyslogd PID file cleanup to init commands - Update tests to provide snapshots explicitlyad5992a -
runtime: canonicalize snapshot store semantics and revalidate persisted snapshots
Lars Taliand2dbaf9 -
Fix service startup in containers
Aaron Brown- service_manifest.py: Add container-compatible init_commands (disable imklog for rsyslog, ensure MySQL data dir, postfix aliases) - environment.py: Add zombie reaper for PID 1, isolate service processes with start_new_session=True - Dockerfile: Clear stale snapshots so runtime regenerates with current service specs48525dd -
Merge branch 'main' of https://github.com/open-cybernauts/open-range into codex/issue-sweep-20260308
Lars Talian# Conflicts: # tests/test_builder.py0cfc06d -
fix(builder): enforce bug-family contracts and decouple payload wiring
Lars Talian8429075 -
fix(runtime): preserve per-host service specs and role-aware routing
Lars Talianf0faee1 -
Harden TemplateOnlyBuilder difficulty bounds
Lars Talian- Clamp malformed min/max vulns to safe bounds - Preserve at least one selected vulnerability - Add regression coverage for non-schema difficulty envelopese8df2e1 -
Enforce mixed mutation bundles and fail-fast legality checks
Lars Talian- Require structural+security mutation mix when available - Validate mutation-plan legality before mutating snapshots - Add regression tests for policy behavior and illegal plans Closes #654c52b20 -
Enable managed runtime for HF Space deployment
Aaron Brown- Set OPENRANGE_RUNTIME_MANIFEST in Dockerfile to activate the snapshot runtime so reset() boots real services (MySQL, nginx, slapd, etc.) from the tier1 manifest via TemplateOnlyBuilder - Set validator profile to offline (no Docker needed on HF) - Increase LLM builder timeout from 120s to 600s (Azure codex needs it)2968b9c -
fix: resolve runtime merge artifact and stabilize handlers
Lars Talian2b44fa8 -
Ground mutation-added vulns in real task paths
Lars Talianca6fc4d -
Fix difficulty calibration, deduplicate golden path, harden prompts
Aaron Brown- TemplateOnlyBuilder: cap vuln count to fit tier step window (±20%), deduplicate shared recon steps (e.g. nmap) across multi-vuln snapshots - DifficultyCheck: use round() instead of int() for upper bound to avoid off-by-one truncation - Builder prompts: reframe language for authorized security training context - CLI: add reward_grounding to Docker-required checks - Environment: respect OPENRANGE_MOCK=1 env var for forced mock mode53ccc8a -
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 -
Merge pull request #52 from open-cybernauts/feat/issue50-canonical-base-graph-policy
Lars TalianUnverified signatureImplement canonical base graph and mutation policy0a3cd7a -
Implement canonical base graph and mutation policy
Lars Talian80ef9e0 -
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 -
Remove hardcoded infra, enforce snapshot-driven architecture
Aaron Brown- environment.py: Remove hardcoded MySQL password (now from snapshot topology users), hardcoded container routing (now from topology host roles/zones), mock mode from production paths, hardcoded alert tool names (now queries real SIEM). Container name resolution raises on failure instead of silent fallback. - zone_router.py: Remove all hardcoded ZONE_ROUTES/HOST_ZONES/HOST_PORTS constants. ZoneRouter is now purely snapshot-driven via from_snapshot(). Fail-closed for unknown zones. Added from_manifest() classmethod. - mutator.py: Add post-build diversity enforcement (rejects snapshots repeating vuln classes from last 3 episodes or injection points from last 5). Remove hardcoded _INJECTION_POINTS dict (now dynamic). - npc_manager.py: Remove hardcoded _SCRIPT_CONTAINER_MAP and static env vars. Derive container mapping and scripts from snapshot topology. - runtime.py: Remove hardcoded MySQL password, add snapshot diversity tracking in acquire_snapshot(), add curriculum-…a24d0f2 -
Tighten manifest-grounded live admission
Lars Talian83f2912 -
Add live admission for rendered child snapshots
Lars Talian307d729 -
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 -
Cleanup: fix bugs, remove dead code, add missing packages
Aaron Brown- Add openenv fallback stubs in client.py (matches models.py pattern) - Fix auth command parsing with maxsplit=3 (passwords with spaces) - Fix reward exception silencing: log at ERROR with traceback - Add snapshot validation: default flags/topology/task if None - Fix shell injection in file deploy with shlex.quote() - Remove async anti-pattern in rollout.py - Remove duplicate src/open_range/server/Dockerfile - Remove unused requests dependency - Remove redundant uv install check from Dockerfile - Add missing packages: open_range.agents, open_range.validator3ea4118 -
Add snapshot lineage and parent-based mutation runtime (#49)
Lars TalianUnverified signaturef549fda -
Fix templates for live Docker execution
Aaron Brown- Remove php8.1-json (virtual package, already in php8.1-fpm) - Create app_user explicitly in init.sql with mysql_native_password - Hardcode app_user/AppUs3r!2024 in docker-compose (not from topology) - Add diagnosis column to patients table (LLM lookup.php expects it) - Restore conditional search/download blocks in nginx.confc83edc7 -
LLM Builder pipeline: GPT 5.2 Codex generation + production templates
Aaron Brown- Builder: handle codex models (no temperature), add JSON keyword to user message for response_format compatibility, max_tokens=32768 - Prompts: complete rewrite with Docker infrastructure context, static IPs, files dict spec, anti-patterns, completeness checks - Templates: production-quality Jinja2 for procedural generation - docker-compose: static IPs, NET_ADMIN attacker with tools/routing, mysql_native_password, web on dmz+internal+management, healthchecks - Dockerfile.web: php8.1 packages, /var/www/portal, proper FPM socket - Dockerfile.db: referral_db, native password auth - nginx.conf: /var/www/portal, php8.1-fpm.sock, conditional endpoints - init.sql: referral_db schema (patients, referrals, billing, etc.) - iptables: hardcoded zone rules + manifest overrides - Environment: _apply_snapshot() deploys LLM files dict to containers, container name discovery via Docker listing - Delete static Docker infrastructure (docker-compose.yml, docker/, Dockerfile) — in…3d5d7e9 -
Render admitted snapshots into artifact bundles
Lars Talian4e3f8b1 -
Add managed snapshot runtime behind OpenEnv server
Lars Talian906af9d -
fix: align package with openenv contract
Lars Talianfda4cbc -
Operator console (#28) and multimodal NPC channels (#30)
Aaron Brown +1: Claude Opus 4.6Add a FastAPI-based operator debugging console at /console with live episode state, snapshot metadata, and action history APIs. Add multimodal NPC communication channels (chat, voice, document) with SIEM log aggregation for Blue team consumption. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>c30abe9 -
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