<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: RAVI Ravi</title>
    <description>The latest articles on DEV Community by RAVI Ravi (@hellinferno).</description>
    <link>https://dev.to/hellinferno</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4192125%2Ff0ac7002-5d80-4d93-9da6-4ed7cf28c369.png</url>
      <title>DEV Community: RAVI Ravi</title>
      <link>https://dev.to/hellinferno</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hellinferno"/>
    <language>en</language>
    <item>
      <title>Look Before You Leap: Building an Incident Agent That Proves Its Fix in a FalkorDB Sandbox Graph</title>
      <dc:creator>RAVI Ravi</dc:creator>
      <pubDate>Sun, 18 Oct 2026 13:11:25 +0000</pubDate>
      <link>https://dev.to/hellinferno/look-before-you-leap-building-an-incident-agent-that-proves-its-fix-in-a-falkordb-sandbox-graph-3997</link>
      <guid>https://dev.to/hellinferno/look-before-you-leap-building-an-incident-agent-that-proves-its-fix-in-a-falkordb-sandbox-graph-3997</guid>
      <description>&lt;p&gt;Most agent demos stop at an answer. Ours had to take an action in production—the kind of action that pages people at 3 a.m. if it is wrong. &lt;/p&gt;

&lt;p&gt;Building &lt;strong&gt;AegisGraph&lt;/strong&gt; for &lt;strong&gt;Graph Hacks&lt;/strong&gt; (&lt;a href="https://www.wemakedevs.org/hackathons/falkordb" rel="noopener noreferrer"&gt;WeMakeDevs&lt;/a&gt; x &lt;a href="https://www.falkordb.com/" rel="noopener noreferrer"&gt;FalkorDB&lt;/a&gt;, Track 01: &lt;em&gt;Agents That Act on Connected Data&lt;/em&gt;) taught us that an agent's ability to act safely depends almost entirely on the shape of its context. Flat vector chunks were not enough. A knowledge graph was.&lt;/p&gt;




&lt;h2&gt;
  
  
  The question an incident actually asks
&lt;/h2&gt;

&lt;p&gt;A WAF alert says forged bearer tokens are being accepted by &lt;code&gt;auth-token-service&lt;/code&gt;, and points at &lt;code&gt;jwt-crypto-core&lt;/code&gt;. The on-call engineer needs answers to three things at once:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;What customer data can an attacker reach from here?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;What can we cut to stop it without taking checkout down?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Who should fix the code?&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each answer lives in a different system. Package imports live in the repositories. Service-to-service traffic lives in the mesh. Data access lives in cloud IAM. &lt;/p&gt;

&lt;p&gt;The real answer is a &lt;strong&gt;multi-hop path&lt;/strong&gt; across all three:&lt;br&gt;&lt;br&gt;
&lt;strong&gt;CVE&lt;/strong&gt; → &lt;strong&gt;Package&lt;/strong&gt; → &lt;strong&gt;Function&lt;/strong&gt; → &lt;strong&gt;Service&lt;/strong&gt; → &lt;strong&gt;Service Mesh&lt;/strong&gt; → &lt;strong&gt;IAM Role&lt;/strong&gt; → &lt;strong&gt;Database&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In our demo topology that is five to eight hops, and there are six such paths leading into 3 critical PII databases.&lt;/p&gt;

&lt;p&gt;A vector store finds text that sounds like JWT bugs. It cannot tell you that &lt;code&gt;legacy-billing-bridge&lt;/code&gt; sits on all six paths.&lt;/p&gt;




&lt;h2&gt;
  
  
  One graph for code, runtime and identity
&lt;/h2&gt;

&lt;p&gt;We modelled the three layers as one &lt;strong&gt;FalkorDB&lt;/strong&gt; property graph:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Code:&lt;/strong&gt; &lt;code&gt;(:Vulnerability)-[:AFFECTS]-&amp;gt;(:Package)&amp;lt;-[:IMPORTS]-(:Function)&amp;lt;-[:MAINTAINED]-(:Developer)&lt;/code&gt;, plus &lt;code&gt;(:Function)-[:CALLS]-&amp;gt;(:Function)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runtime:&lt;/strong&gt; &lt;code&gt;(:Service)-[:DEPLOYS_CODE]-&amp;gt;(:Function)&lt;/code&gt; and &lt;code&gt;(:Service)-[:ROUTES_TO]-&amp;gt;(:Service)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identity and data:&lt;/strong&gt; &lt;code&gt;(:Service)-[:ASSUMES_ROLE]-&amp;gt;(:IAMRole)-[:CAN_ACCESS]-&amp;gt;(:Database)&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The whole blast radius then becomes one OpenCypher query:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
cypher
MATCH (v:Vulnerability {id: $cve_id})-[:AFFECTS]-&amp;gt;(:Package)&amp;lt;-[:IMPORTS]-(f:Function)&amp;lt;-[:DEPLOYS_CODE]-(origin:Service)
WITH DISTINCT origin
MATCH attack = (origin)-[:ROUTES_TO*0..3]-&amp;gt;(pivot:Service)-[:ASSUMES_ROLE]-&amp;gt;(role:IAMRole)
               -[:CAN_ACCESS]-&amp;gt;(db:Database {contains_pii: true})
WHERE ALL(r IN relationships(attack) WHERE coalesce(r.status, 'ACTIVE') = 'ACTIVE')
RETURN pivot.name, role.name, db.name, [n IN nodes(attack) | n.name] AS path
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>python</category>
      <category>falkordb</category>
      <category>ai</category>
      <category>security</category>
    </item>
  </channel>
</rss>
