🏆 Built for the Meta PyTorch OpenEnv Hackathon x Scaler School of Technology
In collaboration with Meta AI, PyTorch, and Hugging Face | April 2026
An OpenEnv-compatible environment for training and evaluating AI agents that audit AWS cloud infrastructure for security misconfigurations.
Benchmark Results
Fine-tuned model: kkaustav/aws-security-auditor-lora
Base model: unsloth/Qwen2.5-3B-Instruct-bnb-4bit
Training: SFT on curated AWS security audit traces
Evaluation: 3 runs per task, averaged
Task
Difficulty
Avg Score
easy_security_group
Easy
0.9900
medium_s3_policy
Medium
0.9900
medium_lambda_iam
Medium
0.9900
hard_rds_cloudtrail
Hard
0.9200
hard_iam_vpc
Hard
0.8600
OVERALL AVERAGE
0.9500
All scores within valid OpenEnv range (0.0, 1.0) ✅
Before/After Demo
The judges' rubric explicitly values measurable improvement over a baseline. Here is the direct comparison between an untuned base model and our fine-tuned model on the same AWS configs.
Base Model (untuned Qwen2.5-3B)
Fine-tuned Model (ours)
Output format
Plain text or broken JSON
Valid JSON on every run
Findings detected
1–3 (incomplete)
10–17 per task
easy_security_group
~0.20
0.9900
medium_s3_policy
~0.20
0.9900
medium_lambda_iam
~0.15
0.9900
hard_rds_cloudtrail
~0.10
0.9200
hard_iam_vpc
~0.10
0.8600
Overall
~0.15
0.9500
What changed after fine-tuning:
Model consistently outputs valid, closed JSON (no truncation, no markdown leakage)
Detects all severity levels: CRITICAL, HIGH, MEDIUM, LOW
This project simulates realistic AWS security review tasks and gives an AI agent a reward based on the quality of its findings, severity labels, remediation advice, and optional config patches.
The environment is designed for reinforcement learning and evaluation workflows where an agent must inspect cloud configuration data, identify security issues, and improve over multiple steps.
Why this environment is unique
Unlike generic ML benchmarks, this environment is grounded in real AWS production configurations — Security Groups, S3 bucket policies, IAM roles, Lambda functions, RDS instances, and VPC network ACLs. The tasks reflect actual enterprise-grade misconfiguration patterns encountered in production cloud environments, making agent performance directly applicable to real-world cloud security auditing.
The agent operates in a standard observe → act → reward loop. On each /step, the agent submits a structured audit response. The grader evaluates it against a weighted rubric and returns a scalar reward.
Tasks
Task
Description
easy_security_group
Reviews a production web-tier Security Group for risky internet-exposed inbound rules (SSH, RDP)
medium_s3_policy
Audits an S3 bucket for public access, missing encryption, suspended versioning, and overly permissive bucket policies
medium_lambda_iam
Audits a Lambda function for plaintext secrets, wildcard IAM, missing VPC isolation, and unauthenticated function URLs
hard_rds_cloudtrail
Reviews RDS instance and CloudTrail for public exposure, unencrypted storage, disabled backups, and missing audit logging
hard_iam_vpc
Reviews IAM roles and VPC settings for wildcard permissions, weak password policy, disabled MFA, missing Flow Logs, and open NACLs
Reward Design
Each task uses a weighted reward breakdown for important security signals. Examples include:
SSH or RDP exposure
Public S3 access
Wildcard IAM permissions (Action:*)
Disabled VPC Flow Logs, CloudTrail, or GuardDuty
Weak password policy and missing MFA
Plaintext secrets in environment variables
Scores are strictly between 0 and 1, keeping the environment compatible with OpenEnv evaluation rules.
Scoring Breakdown
Component
Easy
Medium
Hard
SSH/RDP detection
0.55
—
—
Internet exposure
0.25
—
—
Public access
—
0.20
—
Encryption
—
0.20
—
Wildcard IAM Action
—
—
0.18
Weak password / MFA
—
—
0.28
Logging & GuardDuty
—
—
0.24
Remediation quality
0.15
0.05
0.04
Config patch bonus
0.10
0.05
0.08
API Endpoints
Endpoint
Description
/reset
Initialise or reset the environment for a new episode