CoolFace
Apppublic

MGouthamreddy/security-logs-env

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
App README

Security Log Analysis Environment

OpenEnv environment for simulating SOC (Security Operations Center) analyst work - detecting and classifying security threats in system logs.

What Is This?

This environment simulates a real-world cybersecurity task: analyzing security logs to detect threats ranging from basic attacks (brute force, SQL injection) to sophisticated APT (Advanced Persistent Threat) campaigns.

Tasks

TaskDifficultyLogsThreatsPass Threshold
Basic Attack DetectionEasy10580%
Advanced Threat DetectionMedium201070%
APT Campaign DetectionHard352265%

API Endpoints

EndpointMethodDescription
/GETEnvironment info
/healthGETHealth check
/resetPOSTReset environment
/stepPOSTExecute action
/stateGETGet full state
/scoreGETGet current score
/tasksGETList available tasks

Environment Variables

Set these in Space Settings → Repository secrets:

NameValue
API_BASE_URLhttps://router.huggingface.co/v1
MODEL_NAMEmistralai/Mistral-7B-Instruct-v0.3
HF_TOKENyourhuggingfacetoken

Project Structure

security-logs-env/
├── models/types.py       # Pydantic models
├── tasks/tasks.py        # Task definitions
├── graders/graders.py    # Scoring logic
├── security_logs_env.py  # Main environment
├── inference.py          # Baseline inference
├── server.py             # FastAPI server
├── main.py               # Entry point
├── openenv.yaml          # OpenEnv config
├── Dockerfile            # Container config
└── requirements.txt      # Dependencies

License

MIT License


Built for the OpenEnv Hackathon

Detecting threats humans miss, at scale AI enables.