Spaces:
Sleeping
Sleeping
Create README.md
#1
by Shiggii - opened
README.md
CHANGED
|
@@ -1,10 +1,62 @@
|
|
| 1 |
-
--
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# π‘οΈ CloudGuard-S3-Auditor (OpenEnv)
|
| 2 |
+
|
| 3 |
+
## π Project Overview
|
| 4 |
+
**CloudGuard-S3-Auditor** is a real-world simulation environment for AI agents built on the **OpenEnv** framework. It simulates the high-stakes role of a Cloud Security Auditor.
|
| 5 |
+
|
| 6 |
+
### The Challenge: "Security vs. Availability"
|
| 7 |
+
In a vacuum, security is easy: close all ports and lock all data. In the real world, this causes **production outages**.
|
| 8 |
+
This environment tests if an agent can:
|
| 9 |
+
1. Identify and secure **PII (Personally Identifiable Information)**.
|
| 10 |
+
2. Ensure **Business Continuity** by keeping "Website Assets" (CSS, Images, Javascript) public.
|
| 11 |
+
|
| 12 |
+
## π οΈ action & Observation Spaces
|
| 13 |
+
|
| 14 |
+
### Observation Space
|
| 15 |
+
The agent receives a list of buckets, each with the following properties:
|
| 16 |
+
* `name`: Unique identifier.
|
| 17 |
+
* `contains_pii`: (Boolean) High-risk data flag.
|
| 18 |
+
* `is_required_public`: (Boolean) Business continuity flag.
|
| 19 |
+
* `encryption_enabled`: (Boolean) Compliance flag.
|
| 20 |
+
|
| 21 |
+
### Action Space
|
| 22 |
+
The agent can interact with any bucket using:
|
| 23 |
+
* `MAKE_PRIVATE(bucket_name)`
|
| 24 |
+
* `ENABLE_ENCRYPTION(bucket_name)`
|
| 25 |
+
* `ENABLE_VERSIONING(bucket_name)`
|
| 26 |
+
|
| 27 |
+
## π― Tasks & Difficulty Levels
|
| 28 |
+
* **Easy (The Leak):** A single bucket with sensitive logs is public. Fix it.
|
| 29 |
+
* **Medium (Triage):** 10 mixed buckets. Some are sensitive, some are required for the website. The agent must choose correctly.
|
| 30 |
+
* **Hard (Full Compliance):** 20 buckets. Perform a full security sweep (Privacy + Encryption) without a single second of website downtime.
|
| 31 |
+
|
| 32 |
+
## π Reward Function
|
| 33 |
+
Our reward signal is designed to penalize "blind" security:
|
| 34 |
+
* **+0.2:** Successful security hardening (Encryption or Privacy).
|
| 35 |
+
* **-1.0 (Critical Failure):** Breaking production by making a `required_public` bucket private.
|
| 36 |
+
* **Score:** Normalized between **0.0 and 1.0**.
|
| 37 |
+
|
| 38 |
+
## π Setup & Baseline
|
| 39 |
+
To run the environment locally or run the baseline inference:
|
| 40 |
+
|
| 41 |
+
1. **Clone the Space**
|
| 42 |
+
2. **Install dependencies:**
|
| 43 |
+
```bash
|
| 44 |
+
pip install -r requirements.txt
|
| 45 |
+
```
|
| 46 |
+
3. **Run Inference:**
|
| 47 |
+
```bash
|
| 48 |
+
export HF_TOKEN="your_token_here"
|
| 49 |
+
python inference.py
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## π Baseline Results
|
| 53 |
+
**Model:** Qwen/Qwen2.5-72B-Instruct
|
| 54 |
+
**Benchmark:** OpenEnv-S3-v1
|
| 55 |
+
|
| 56 |
+
```text
|
| 57 |
+
[PASTE YOUR INFERENCE.PY OUTPUT HERE]
|
| 58 |
+
Example:
|
| 59 |
+
[START] task=compliance-sweep env=cloudguard model=qwen
|
| 60 |
+
[STEP] step=1 action=MAKE_PRIVATE(user-db-backup) reward=0.20 done=false error=null
|
| 61 |
+
[STEP] step=2 action=ENABLE_ENCRYPTION(user-db-backup) reward=0.20 done=false error=null
|
| 62 |
+
[END] success=true steps=2 score=1.00 rewards=0.20,0.20
|