This repository contains a reference implementation of an Agentic Security Operations Center (SOC) using LangChain and LangGraph.
It demonstrates a multi-agent workflow where specialized AI agents collaborate to handle security alerts:
- Triage Agent: Analyzes raw alerts to determine severity and validity.
- Investigation Agent: Gathers context using (mock) security tools like SIEM logs and Threat Intel.
- Response Agent: Proposes remediation actions based on the investigation.
graph TD
Start([Alert In]) --> Triage
Triage -- "False Positive" --> End([End w/ Note])
Triage -- "Incident" --> Investigation
Investigation --> Response
Response --> End
- Stateful Workflow: Uses
LangGraphto maintain context (alert data, investigation findings) across agent steps. - Mock Tools: Includes simulated tools for
search_logs,virustotal_lookup, andfirewall_block_ipto demonstrate tool use without needing live API keys. - Extensible: Designed to be easily adapted to real integrations (Splunk, Microsoft Sentinel, etc.).
- Clone the repository.
- Install dependencies:
pip install -r requirements.txt
- Run the demo:
python main.py
main.py: Entry point for the simulation.soc/: Core package.graph.py: Defines the LangGraph workflow.state.py: Defines the shared application state.agents/: Agent implementations (prompts and logic).tools/: Tool definitions.