<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Challenges on Bhavya Tiwary</title>
    <link>https://bhavyatiwary.com/tags/challenges/</link>
    <description>Recent content in Challenges on Bhavya Tiwary</description>
    <image>
      <title>Bhavya Tiwary</title>
      <url>https://bhavyatiwary.com/og.png</url>
      <link>https://bhavyatiwary.com/og.png</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Sun, 20 Sep 2026 04:25:15 +0530</lastBuildDate>
    <atom:link href="https://bhavyatiwary.com/tags/challenges/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Monitoring AI Systems: 6 Challenges for SOC Teams</title>
      <link>https://bhavyatiwary.com/posts/agenticlogging/</link>
      <pubDate>Sun, 20 Sep 2026 04:25:25 +0530</pubDate>
      <guid>https://bhavyatiwary.com/posts/agenticlogging/</guid>
      <description>Why monitoring AI agents breaks SIEM: log volume, what to alert on, payload privacy, multimodal inputs, and whether chain-of-thought logs can be trusted.</description>
      <content:encoded><![CDATA[<p>When a traditional web service fails, the incident response playbook is mechanical: grep the access logs for <code>500</code> status codes, isolate the stack trace, and patch the null pointer. The path from trigger to failure is deterministic.
A deterministic path basically means that traditional SIEM systems rely heavily on using static rules to match specific log patterns, which ensures consistency and auditability but often struggles with detecting novel or unknown threats.</p>
<p>Autonomous agentic systems break this paradigm entirely.
An agent does not follow hardcoded logic; it interprets, plans, loops, and acts. Faced with an identical prompt, an agent may react completely differently; it might query a database today, call a shell script tomorrow, or hallucinate an entirely nonexistent API endpoint next week. To improve explainability and also, to pretend to know what the hell is going on, we have the agent&rsquo;s chain-of-thought thrown into this mix too. Basically CoT means the model/agent documents exactly how it reached the result. To fully understand what&rsquo;s going on we have to use logs for our agent, what it accesses, how it thinks, how it&rsquo;s authenticating and finally what is it doing.</p>
<p>This also increases the attack surface of an agent as now it isn&rsquo;t just limited to the assets and data it has access to but also it&rsquo;s own Chain-of-Thought and Memory.</p>
<p>Some challenges faced in SOC due to the new attack surface:</p>
<h2 id="the-sheer-volume-of-data">The sheer volume of data</h2>
<p>Just think about it, we have AI Assistants like Claude, AI-enabled Browsers like Perplexity, AI-enabled software like Harvey AI or even Jira and SNOW, MCPs, LLM Endpoints etc. If each person in a 50 person company runs 5 sessions/day it&rsquo;s almost 250 log events to be monitored across each software, so increasing the amount of logs generated and ingested by almost 150%. By the way, we haven&rsquo;t even considered OT and IoT devices running manufacturing AI algos or BMS in the mix yet for Enterprise monitoring.</p>
<h2 id="the-most-difficult-question-what-to-monitor">The most difficult question: What to monitor?</h2>
<p>OWASP Top 10 for Agentic and LLM covers different vulnerabilities across different Responsible AI tenants.
Alerts related to bias or cascading bias, hallucination or agent goal hijack related alerts are required to be sent to the dev team for remediation. If these alerts, reach a SOC team, it&rsquo;s practically useless because a SOC team manages the incidents for the enterprise and hallucination, bias is specific to the use case only. The dev team responsible for the use case or app can only fix the performance based vulnerabilities.
Any prompts where PII data wasn&rsquo;t properly obfuscated or the outputs show PII/PHI data that it shouldn&rsquo;t, need Data Privacy Office to review. They determine how to handle the incident.<br>
Prompt Injection and Privilege Escalation etc need the security team to intervene and stop.</p>
<p>At the same time non GenAI or LLM related algos running may have different criteria for monitoring. For example: a team working on an self-driving car, they don&rsquo;t need to monitor for privacy and security in the traditional sense. The monitoring parameters would be with the perspective of the environment, visibility, detection, control, driving etc. Thus, for general consulting companies or manufacturing companies, the monitoring of an AI system for safety and security is totally different.</p>
<p>Thus, the segregation of events and alerts require a thoughtful framework to be created with each team requiring different data parameters for their review and analysis. Currently no products or even guidelines from any orgs are available in the market to help companies differentiate between log collection and actionable alerting.</p>
<h2 id="the-payload-paradox-and-legal-challenges">The Payload Paradox and Legal challenges</h2>
<p>Following up from the previous point we have the payload paradox brought to you by the non-deterministic autonomy of an agent.</p>
<p>Since the agent can take actions on it&rsquo;s own and their actions may differ for each case, to detect adversarial goal hijacking, developers and security analysts need total forensic visibility into the agent’s chain-of-thought traces, prompt templates, and intermediate tool arguments. Yet indiscriminately dumping all raw execution spans into telemetry pipelines turns the observability stack into a high-risk data liability, aggregating unredacted PII, enterprise secrets, and compliance violations into single, queryable buckets.</p>
<p>Not only does logging everything increase risk but also not logging everything raises several issues in cases of legal hold or court/gov inquiries, once litigation is reasonably anticipated, the duty to preserve potentially relevant evidence extends to AI interaction logs the same way it extends to any other record so &ldquo;we didn&rsquo;t think to keep it&rdquo; is not a defense.</p>
<h2 id="multimodal-inputs">Multimodal inputs</h2>
<p>For certain models like LLMs or object-detection (YOLO), the input and payload format received are varied. An LLM accepts video, audio, text, image inputs which requires subsequent calibration for the alert rule. For images, we need to keep in mind about steganography. For audio, we have to consider privacy declarations before even considering ingestion of logs. Other systems with YOLO models will have sensor input which will be processed completely differently from user facing apps providing text or so  responses.  This overall increases the complexity as there is no common baseline to go from and  most integrations requires further nuances to set up credible alerts.</p>
<h2 id="legitimate-vs-malicious-events-for-general-purpose-apps">Legitimate vs Malicious events for General Purpose apps</h2>
<p>For general purpose AI apps like Claude ort ChatGPT, the use cases that a user can do are countless. One can generate essays, analysis website UI or even do gene computation. Now, how do you determine at a very large scale with just logs what is malicious activity? If a user is leveraging Claude Cowork for editing a video, the agent might create multiple temp image files during processing in the folder and then delete them all. In the logs, it may come across as mass deletion which needs further review on account of it being insider threat. With such general purpose apps, determining use cases that are truly malicious are difficult and may need to be regularly updated.</p>
<h2 id="trust-in-cot">Trust in CoT</h2>
<p>As mentioned earlier in the article, we depend on Chain-of-Though to understand the agent behavior. However, as the agent documents it&rsquo;s own actions, it raises a questions that if the logs are actually accurate.</p>
<p>Referencing specifically the model system card published by OpenAI for Astra, we see that chain-of-thought faithfulness and accuracy has been chipping away and the picture in 2025–2026 is not encouraging. Models can produce a plausible, coherent-looking rationale that has little to do with the actual computation behind an answer. The stated reasoning and the real decision process can come apart, especially under biased or leading prompts, as Turpin et al.&rsquo;s original work demonstrated and later studies have replicated. A 2025 study from Anthropic researchers found that reasoning traces verbalize a hint the model actually relied on in fewer than one case in five where the hint was used at all. Anthropic&rsquo;s own paper on chain-of-thought monitorability is candid about this: CoT is a genuinely valuable safety signal, but a fragile one, subject to exactly the same pressure to look helpful and harmless as any other model output.</p>
<p>There&rsquo;s a term for the failure mode that&rsquo;s started circulating in the literature: reasoning theater. A model can already &ldquo;know&rdquo; the answer and still generate tokens that perform the appearance of working it out.</p>
<p>This matters enormously for the audit-trail pitch, because an audit log that doesn&rsquo;t reliably reflect what happened isn&rsquo;t an audit log. It&rsquo;s a transcript of a performance. Worse, a security researcher pointed out that the failure mode is exploitable in the other direction too: an adversary can craft prompts that produce a coherent-looking reasoning trace that steers toward an attacker&rsquo;s preferred conclusion, without ever triggering the safety classifiers built to inspect reasoning for red flags. The very layer you&rsquo;re trusting to catch misbehavior can be dressed up to pass inspection.</p>


<style type="text/css">
    .box-shortcode {
      padding: 1.6em;
      padding-top: 1.4em;
      line-height: 1.4em;
      margin-top: 1em;
      margin-bottom: 2em;
      border-radius: 4px;
      color: #444;
      background: #f3ebe850;
    }

    .box-title {
      margin: -18px -18px 12px;
      padding: 4px 18px;
      border-radius: 4px 4px 0 0;
      font-weight: 700;
      color: var(--content);
      background: #6ab0de;
    }
    .box-shortcode.warning .box-title {
      background: #ff6b6b;
      color: var(--content);
    }
    .box-shortcode.warning {
      background: #ff6b6b4f;
      color: var(--content);
    }
    .box-shortcode.info .box-title {
      background: #0089e488;
      color: var(--content);
    }
    .box-shortcode.info {
      background: #0089e41c;
      box-shadow: 3px 3px 5px #0089e410;
      color: var(--content);
    }
    .box-shortcode.important .box-title {
      background: #f7ec2c;
    }
    .box-shortcode.important {
      background: #f7ec2c7d;
    }
    .box-shortcode.tip .box-title {
      background: #a3ffa34d;
    }
    .box-shortcode.tip {
      background: #a3ffa34d;
      box-shadow: 3px 3px 5px #0089e410;
    }
    .icon-box {
      display: inline-flex;
      align-self: center;
      margin-right: 8px;
    }
    .icon-box img,
    .icon-box svg {
      height: 1em;
      width: 1em;
      fill: currentColor;
    }
    .icon-box img,
    .icon-box.baseline svg {
      top: 0.125em;
      position: relative;
    }
    .box-shortcode p {
      margin-bottom: 0.6em;
    }
    .box-shortcode p:first-of-type {
      display: inline;
    }
    .box-shortcode p:nth-of-type(2) {
      margin-top: 0.6em;
    }
    .box-shortcode p:last-child {
      margin-bottom: 0;
    }
  </style>

  
  <svg width="0" height="0" display="none" xmlns="http://www.w3.org/2000/svg">
    <symbol id="tip-box" viewBox="0 0 512 512" preserveAspectRatio="xMidYMid meet">
      <path
        d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"/>
    </symbol>
    <symbol id="important-box" viewBox="0 0 512 512" preserveAspectRatio="xMidYMid meet">
      <path
        d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"/>
    </symbol>
    <symbol id="warning-box" viewBox="0 0 576 512" preserveAspectRatio="xMidYMid meet">
      <path
        d="M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"/>
    </symbol>
    <symbol id="info-box" viewBox="0 0 512 512" preserveAspectRatio="xMidYMid meet">
      <path
        d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"/>
    </symbol>
  </svg><div class="box box-shortcode info" >
    <span class="icon-box baseline">
      <svg><use href="#info-box"></use></svg>
    </span>
    <p>PS: Other points were more from my observation during my work at my org to setup the AI Security framework This point is derivation of my study of research on AI Safety so do read the papers from <a href="https://www-cdn.anthropic.com/b9ca6db27f02a9ddf0d4fdb51b26432c99a27be0.pdf">Anthropic</a> and <a href="https://arxiv.org/abs/2305.04388">Turpin et al</a></p>
  </div>

<p>This concludes the challenges a SOC team may face when they try to setup effective monitoring and alerting for AI and agentic systems. Everytime you think of AI systems, make sure it&rsquo;s not just boxed to GenAI/LLM systems but also systems leveraging other algos like Building Mangement Systems that run ML models or Face scan systems that use Object-detection algos (YOLO).</p>
]]></content:encoded>
    </item>
    <item>
      <title>AI Security Agents in the SOC: Co-Worker or Co-Risk?</title>
      <link>https://bhavyatiwary.com/posts/ai-in-soc/</link>
      <pubDate>Fri, 01 May 2026 05:09:15 +0530</pubDate>
      <guid>https://bhavyatiwary.com/posts/ai-in-soc/</guid>
      <description>How AI security agents differ from plain automation, and the challenges SOC teams face when they hand agents access, credentials and decisions.</description>
      <content:encoded><![CDATA[<p>As the number of AI agents increase in corporations, we can&rsquo;t expect that cybersecurity would be the only domain left behind. Many VC-backed startups like Simbian have been launched, and Google also announced a partnership with Wiz for cybersec agents, etc.</p>
<h2 id="ai-agents-vs-automation-what-is-the-difference">AI Agents vs Automation: What is the difference</h2>
<p>Firstly, what is an AI agent, and why is it different from our plain ol&rsquo; automation?
Automation follows a set of predefined rules to complete tasks—fast, consistent, and predictable. AI agents, on the other hand, operate with autonomy: they can reason, adapt, and make decisions based on dynamic inputs. For eg: if the goal is to parse a document and then send a mail with the extracted data. If we create an automation script, we would need to first use a parsing algo and then define words that need to be extracted using key-value pairs or regular expressions. After that, we also need the exact template with substitutions defined for the mail to be sent. Whereas if we create an AI agent, we need to use an algo focused on extraction and just define the expectations, like write a mail with a formal tone or make sure the mail is concise. The agent will use its autonomy to draft the mail and send it.
Both the AI agent and automation script would still need access to the mailbox, permission to read the doc, permission to send the mail and authentication credentials. Pretty cool to see how far NLP algos have come but also a bit terrifying.</p>
<h2 id="challenges-we-may-see-if-we-use-soc-ai-agents">Challenges we may see if we use SOC-AI agents:</h2>
<ol>
<li>One of the key challenges AI researchers are working on is Explainability. According to ISO/IEC TR 29119-11:2020, it means the level of understanding how the AI-based system came up with a given result. Let me elaborate with an example: If we consider a decision tree algo or K-means, as a researcher/developer, one can look at the input and give a reasonable guess why a certain output was derived. But what about LLMs or Facial Recognition algos like FaceNet, at any given point a researcher or expert cannot say with certainty why a certain output was derived. You can try it yourself if you ask Claude to write 5 sentences on any topic, like &ldquo;Tell me about the movie Jurassic Park.&rdquo; Now, how can you say with certainty what 5 points it will cover? It can talk about actors, directors, movie reviews, CGI or anything.</li>
</ol>
<p>This is different from interpretability, which is basically the level of understanding how the underlying (AI) technology works, which we can explain, like Claude is an LLM which is based on Transformer architecture. Or FaceNet uses a deep convolutional neural network to learn a mapping/embedding from a set of face images to a 128-dimensional Euclidean space and assesses the similarity between faces based on the square of the Euclidean distance between the images&rsquo; corresponding normalized vectors.</p>
<p>So in the context of SOC agents who have more autonomy, tool access, LLM access, etc., how do we account for explainability in a way that is accessible to all the analysts?</p>
<ol start="2">
<li>
<p>The idea that the system responsible for monitoring everything and generating alerts uses a mix of probabilistic and deterministic algos to derive answers is a bit scary. The probabilistic algos come into play during the first half, where the agent tries to assess the telemetry for context. They apply behavioral baselines and knowledge graphs to assign risk scores and dynamically select response paths based on asset criticality, rather than following fixed &ldquo;if X, then Y&rdquo; rules. As you may know, any system is not 100% accurate, and a probabilistic system may lead to errors that have a huge impact on business. Not a big deal in the grand scheme of things, but has anyone noticed that since we started using AI agents for coding in corps like AWS and Microsoft, there have been more outages? Big organizations may be able to absorb the impact, but smaller orgs will face more challenges.</p>
</li>
<li>
<p>With AI being the IT-girl of the industry, it is also the prime target of hackers. The constant attempt to use AI agents or shared LLMs for attacks and malware propagation is very real. Imagine the system you depend on for alerting you of these incidents and exploits and attacks itself gets compromised because of a shared model or Agent-to-Agent sprawl or even a sci-fi-style rebellion.</p>
</li>
<li>
<p>Lastly, since AI agents have more autonomy, their mistakes are also unpredictable. As per many experts across domains, note that the agent is generally reliable and doesn&rsquo;t make errors, but when it does, it&rsquo;s pretty hard to trace the error because the steps taken aren&rsquo;t logged. In a controlled environment, with limited variables or just 2-3 use cases, it is still manageable, but in prod, where the SOC system handles 1000s of use cases and logs, attack signatures, etc., things become challenging. Also, the butterfly effect, where a small mistake is insignificant in itself, may lead to business outages or legal repercussions.</p>
</li>
</ol>
<p>Then what is the solution? Because analyst fatigue is real, and with fixed security budgets, any help is appreciated. The solution is human-in-the-loop, where the analyst uses SOC for summarization, data extraction, references, and alert generation, but at the end of the day, the analyst makes the final call to dismiss or act on the alert.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
