Siddhantkt/support-ticket-triage
๐ก๏ธ SentinelSOC - Autonomous Cyber-Defense Command Center
SentinelSOC is a high-performance Reinforcement Learning environment simulating the high-stakes operations of a Security Operations Center (SOC). Built for the Meta PyTorch OpenEnv Hackathon, it challenges AI agents to act as Autonomous SOC Analysts (L1) defending a global enterprise from real-time cyber threats.
The agent must ingest critical security alerts (Ransomware, DDoS, Phishing), query a Threat Intelligence Database, deploy immediate mitigation countermeasures, and draft comprehensive incident reports to neutralize risks before they escalate.
๐ Tactical Architecture
sentinel-soc/
โโโ openenv.yaml # OpenEnv spec (missions, metadata)
โโโ Dockerfile # High-performance deployment for HF Spaces
โโโ inference.py # SentinelAI core engine ([START]/[STEP]/[END] logs)
โโโ models.py # Pydantic SOC Action/Observation models
โโโ client.py # EnvClient bridge
โโโ server/
โ โโโ app.py # SentinelSOC Command Center (Gradio Dashboard)
โ โโโ sentinel_env.py # SOC environment logic
โ โโโ kb.json # Security Playbooks (Threat Intel)
โ โโโ tickets.json # Security Incidents (Easy, Medium, Hard)
โ โโโ requirements.txtโ๏ธ Operational Workflow
flowchart TD
A["๐ค SentinelAI Agent"] -->|"reset / start_mission"| B["๐ก๏ธ Command Bridge Initialized"]
B -->|"Active Threat Vector Details"| A
A -->|"1. investigate (query)"| C["๐ Threat Intel Database"]
C -->|"Returns Security Playbooks"| A
A -->|"2. mitigate (unit, severity, status)"| D["โก Countermeasures Deployed"]
D -->|"Returns mitigation signal"| A
A -->|"3. report (incident summary)"| E["๐ CISO Incident Report"]
E -->|"Returns synchronization status"| A
A -->|"4. submit"| F["โ๏ธ Grader (Assessment)"]
F -->|"Playbook adherence check"| G["๐ Score 0.01 โ 0.99"]
F -->|"Threat containment quality"| G
F -->|"Unit/Severity accuracy"| G
G -->|"[END] Mission Complete"| H["โ
Threat Neutralized"]
style A fill:#ff004c,color:#fff
style F fill:#9d00ff,color:#fff
style G fill:#00ff9d,color:#000
style H fill:#00e5ff,color:#000๐๏ธ Technical Highlights
๐ฐ๏ธ The Sentinel Dashboard (WOW Factors)
- Cyber-Security Command Center โ High-contrast tactical UI designed with
Orbitronfonts and red-alert pulsing indicators. - ๐ Intellectual Retrieval โ Instant access to a curated database of 20+ security playbooks (SQLi patching, CIDR blocking).
- ๐ Fleet Analytics โ Live Thompson-style line plots for Mitigation Efficiency and Policy Entropy tracking.
- ๐ค Autonomous Vector Analysis โ Integrated LLM-driven inference loop that demonstrates agentic reasoning in real-time.
- ๐ Supervisor Authorized Terminal โ Multi-tiered access demonstration for CISO-level oversight.
๐ฆพ Mission Parameters
Observation Space (SentinelSOCObservation)
current_ticket: The raw security alert or threat vector detected.kb_search_results: Retrieved intelligence from the Security Playbooks.ticket_status: Mitigation status (open,in_progress,resolved,escalated).ticket_priority: Threat severity level (low,medium,high,critical,urgent).ticket_team: Assigned mitigation unit (security,it_support,network,legal).draft_reply: Drafted incident report for post-mortem analysis.
Action Space (SentinelSOCAction)
- `start_mission`: Initiate a specific DEFCON threat level.
- `investigate`: Search logs and threat intelligence for patterns.
- `mitigate`: Update incident severity, routing unit, and mitigation status.
- `report`: Compose a detailed incident summary.
- `submit`: Close the incident and finalize the mission.
๐ Deployment & Intelligence Uplink
Prerequisites: Python 3.10+ and Hugging Face API Token.
1. Launch Command Center
# Install dependencies
pip install -r server/requirements.txt
# Start the Command Center (Gradio)
python server/app.py2. Initiate Sovereign Agent (SentinelAI)
To run the automated baseline agent against the environment:
export HF_TOKEN="your_hf_token"
export API_BASE_URL="https://router.huggingface.co/v1"
export MODEL_NAME="Qwen/Qwen2.5-72B-Instruct"
python inference.py --url http://localhost:7860๐ฆพ Efficiency Baseline
Autonomous agents using SentinelAI (Qwen-72B) achieve the following performance metrics:
SentinelSOC โ Autonomous Defense. Sovereign Intelligence. ๐ก๏ธ
