Every security team is being told that AI agents will triage its alerts. Few guides show how to build one that an attacker cannot talk into closing a real phish, that never acts without a person, and that can prove where every claim came from. This book does.
Working from a tested, open-source Python codebase, you will build a triage agent for phishing, endpoint, identity and cloud alerts, step by step. Then you will harden it against prompt injection, measure it honestly, and plug it into the SOAR platform your analysts already use.
You will learn to:
- Compute facts in code, reason with the model, decide with guardrails, and act with a human
- Fence off prompt injection in every field an attacker controls
- Tie every piece of evidence to a tool call that really happened
- Map detections to MITRE ATT&CK without overstating what a single event proves
- Gate every response action behind policy, revalidation and human approval
- Measure honestly: safe coverage, critical misses and error bounds
- Run the agent as a hardened service for one organisation or many customers
Written for SOC analysts, detection engineers, security automation engineers and MSSP teams who know some Python and want AI that helps the people in the loop instead of replacing them.
Includes 15 chapters, ready-to-use prompts, and a companion GitHub repository with 96 automated tests: github.com/ProgVaibhav/socagent
Vaibhav Gondaliya is a security automation engineer, AI developer and Python specialist based in Ahmedabad, India. For more than seven years, five of them in cybersecurity, he has designed software that au tomates complex workflows, strengthens security operations and turns ideas into production systems.
He is employed by Skillmine Technology as a Senior Software Engineer, SecDev and Security Automation, and is assigned to Sony In dia Software Centre, where he works as a Security Automation Engi neer. In that role he supports Sony’s Global Security Incident Response Team(GSIRT), building and improving security automation workflows in Cortex XSOAR, developing Python automations, integrations and REST API solutions, and troubleshooting production playbooks and third-party integrations alongside security engineers and SREs.
Before that, he spent five years at SharkStriker, a managed security services provider, where he grew from Software Engineer (2021) to Software Developer, Security (2022) and then Senior Software Engineer, Security (2023 to 2026). He built cybersecurity automation for multi-tenant MSSP platforms, including security data pipelines and cloud-based automation. He began his career in 2018 as a freelance software engineer in Ahmedabad.
His work spans Python back ends, AI agents and retrieval-augmented generation, search and data platforms, and SOAR and enterprise archi tecture. Outside his full-time role he builds AI applications and SaaS products under the name Zynotrix. Vaibhav is also the author of Programming with Python, published by Notion Press, written out of the same belief that drives this book: that technology is most valuable when it removes complexity and lets peo ple focus on meaningful work.
You can connect with him on LinkedIn at : linkedin.com/in/