<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged arizephoenix</title>
<link>https://coderlegion.com/tag/arizephoenix</link>
<description>Powered by Question2Answer</description>
<item>
<title>Building PhantomSOC: A Self-Improving AI Security Platform with Google Cloud and Arize Phoenix</title>
<link>https://coderlegion.com/19649/building-phantomsoc-self-improving-security-platform-with-google-cloud-and-arize-phoenix</link>
<description>&lt;p&gt;Over the past few weeks, I've been building PhantomSOC, an autonomous incident response platform that doesn't just investigate security incidents—it learns from them.&lt;/p&gt;
&lt;p&gt;Most AI-powered SOC tools can analyze alerts and generate reports. However, they rarely improve their investigation quality over time. That was the problem I wanted to solve.&lt;/p&gt;
&lt;p&gt;The Problem&lt;/p&gt;
&lt;p&gt;Security teams face thousands of alerts every day. False positives consume valuable analyst time, while real attacks can slip through the cracks. Even when investigations are completed, lessons learned often remain trapped in reports rather than improving future investigations.&lt;/p&gt;
&lt;p&gt;I wanted to build a system capable of:&lt;/p&gt;
&lt;p&gt;Investigating incidents autonomously&lt;br&gt;
Evaluating the quality of its own investigations&lt;br&gt;
Detecting blind spots and overconfidence&lt;br&gt;
Learning from past mistakes&lt;br&gt;
Automatically improving future investigations&lt;br&gt;
The Architecture&lt;/p&gt;
&lt;p&gt;PhantomSOC consists of three primary layers:&lt;/p&gt;
&lt;p&gt;Layer 1 — SOC Triage Agent&lt;/p&gt;
&lt;p&gt;The SOC Agent receives alerts and determines whether they are:&lt;/p&gt;
&lt;p&gt;False positives&lt;br&gt;
Suspicious activity&lt;br&gt;
Escalation-worthy threats&lt;/p&gt;
&lt;p&gt;It performs threat scoring, MITRE ATT&amp;amp;CK mapping, and checks previous investigations through an investigation memory system.&lt;/p&gt;
&lt;p&gt;Layer 2 — Phantom Forensic Agent&lt;/p&gt;
&lt;p&gt;Escalated incidents are handed to the DFIR agent.&lt;/p&gt;
&lt;p&gt;This agent:&lt;/p&gt;
&lt;p&gt;Reconstructs attack timelines&lt;br&gt;
Extracts indicators of compromise&lt;br&gt;
Maps attack chains&lt;br&gt;
Generates stakeholder-specific reports&lt;br&gt;
Produces autonomous incident response runbooks&lt;br&gt;
Layer 3 — Learning Meta-Agent&lt;/p&gt;
&lt;p&gt;This is the most interesting part of the project.&lt;/p&gt;
&lt;p&gt;After each investigation:&lt;/p&gt;
&lt;p&gt;The investigation is evaluated by an LLM Judge&lt;br&gt;
Quality scores are generated&lt;br&gt;
Confidence drift is measured&lt;br&gt;
Historical traces are queried through Arize Phoenix MCP&lt;br&gt;
Blind spots are identified&lt;br&gt;
Investigation playbooks are automatically updated&lt;/p&gt;
&lt;p&gt;Future investigations immediately benefit from those improvements.&lt;/p&gt;
&lt;p&gt;Why Arize Phoenix?&lt;/p&gt;
&lt;p&gt;Instead of using Phoenix purely for observability, I used it as the foundation of the learning loop.&lt;/p&gt;
&lt;p&gt;Every Gemini reasoning step is captured through OpenInference instrumentation.&lt;/p&gt;
&lt;p&gt;The Learning Agent queries Phoenix MCP to answer questions like:&lt;/p&gt;
&lt;p&gt;Which investigations scored below 70%?&lt;br&gt;
Which blind spots appear repeatedly?&lt;br&gt;
Where is the system consistently overconfident?&lt;/p&gt;
&lt;p&gt;That information becomes training data for operational improvement.&lt;/p&gt;
&lt;p&gt;Results&lt;/p&gt;
&lt;p&gt;After enabling the self-improvement loop:&lt;/p&gt;
&lt;p&gt;DFIR quality improved from 58% to 77%&lt;br&gt;
SOC quality improved from 50% to 75%&lt;br&gt;
Confidence drift decreased from CRITICAL to WARNING&lt;br&gt;
MITRE ATT&amp;amp;CK coverage doubled from 3 tactics to 6&lt;br&gt;
Investigation memory successfully recalled related incidents&lt;br&gt;
Executive reports and runbooks were generated automatically.&lt;/p&gt;
&lt;p&gt;Technology Stack&lt;br&gt;
Google ADK&lt;br&gt;
Gemini&lt;br&gt;
Google Cloud Run&lt;br&gt;
Google Cloud Storage&lt;br&gt;
Arize Phoenix&lt;br&gt;
Phoenix MCP&lt;br&gt;
OpenInference&lt;br&gt;
Python&lt;br&gt;
SQLite&lt;br&gt;
Pydantic&lt;br&gt;
What I Learned&lt;/p&gt;
&lt;p&gt;The most valuable lesson from this project was that observability becomes far more powerful when it is connected directly to learning.&lt;/p&gt;
&lt;p&gt;Tracing alone tells you what happened.&lt;/p&gt;
&lt;p&gt;Evaluation tells you whether it was good.&lt;/p&gt;
&lt;p&gt;Learning systems use that information to continuously improve.&lt;/p&gt;
&lt;p&gt;That's the direction I believe autonomous agents need to move toward.&lt;/p&gt;
&lt;p&gt;Project Links&lt;/p&gt;
&lt;p&gt;GitHub:&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/ssurekumar01111-hue/phantomsoc&quot;&gt;https://github.com/ssurekumar01111-hue/phantomsoc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Live Demo:&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://phantomsoc-745097138732.us-central1.run.app/dashboard&quot;&gt;https://phantomsoc-745097138732.us-central1.run.app/dashboard&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Demo Video:&lt;br&gt;
&lt;a rel=&quot;nofollow&quot; href=&quot;https://youtu.be/mAJ5f7dyKsk&quot;&gt;https://youtu.be/mAJ5f7dyKsk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'd love to hear feedback from the community and discuss ideas for making autonomous security operations more reliable, observable, and self-improving.&lt;br&gt;
Built for #Google Cloud Rapid Agent Hackathon 2026, #Arize Track.&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/19649/building-phantomsoc-self-improving-security-platform-with-google-cloud-and-arize-phoenix</guid>
<pubDate>Thu, 04 Jun 2026 09:06:46 +0000</pubDate>
</item>
</channel>
</rss>