Spaces:
Sleeping
Sleeping
ShadowOps Deploy commited on
Commit ·
c826192
1
Parent(s): f6cdf23
Add openenv.yaml to HF root
Browse files- openenv.yaml +42 -0
openenv.yaml
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: shadowops
|
| 2 |
+
version: 1.0.0
|
| 3 |
+
description: >
|
| 4 |
+
ShadowOps is a cybersecurity incident-response RL environment where agents
|
| 5 |
+
decide whether cloud, CI, IAM, network, and pentest actions should be allowed,
|
| 6 |
+
blocked, forked to human review, or quarantined.
|
| 7 |
+
entrypoint: backend-ml/openenv_shadowops_env.py:ShadowOpsOpenEnvV1
|
| 8 |
+
schema_contract: backend-ml/schema_contract.json
|
| 9 |
+
interface:
|
| 10 |
+
reset: reset()
|
| 11 |
+
step: step(action)
|
| 12 |
+
state: state()
|
| 13 |
+
close: close()
|
| 14 |
+
actions:
|
| 15 |
+
- ALLOW
|
| 16 |
+
- BLOCK
|
| 17 |
+
- QUARANTINE
|
| 18 |
+
- FORK
|
| 19 |
+
observation:
|
| 20 |
+
type: object
|
| 21 |
+
fields:
|
| 22 |
+
prompt: Cybersecurity incident prompt for the agent.
|
| 23 |
+
risk_vector: Sixteen-dimensional risk feature vector.
|
| 24 |
+
incident_state: Production, memory, health, and quarantine state.
|
| 25 |
+
available_actions: Valid supervisor actions.
|
| 26 |
+
reward:
|
| 27 |
+
type: composable
|
| 28 |
+
rubrics:
|
| 29 |
+
- correct_action_reward
|
| 30 |
+
- safety_reward
|
| 31 |
+
- false_positive_penalty
|
| 32 |
+
- missing_evidence_penalty
|
| 33 |
+
- risk_calibration_reward
|
| 34 |
+
- memory_chain_reward
|
| 35 |
+
- safe_outcome_reward
|
| 36 |
+
- invalid_output_penalty
|
| 37 |
+
done:
|
| 38 |
+
condition: episode step count reaches episode_max_length.
|
| 39 |
+
safe_defaults:
|
| 40 |
+
model_free: true
|
| 41 |
+
deterministic_seed: 42
|
| 42 |
+
no_huggingface_jobs: true
|