Skip to content
AI / LLM Write-up Intermediate

Prompt Injection in Munshi AI Assistant Exposed Internal Backend Security Details

The Munshi AI Assistant initially claimed it had no backend visibility, but when asked for a formal gap analysis, it returned detailed internal security findings about its Tally ERP integration. The vendor later verified these findings as genuine backend weaknesses and remediated them.

TheWildEye Follow

Published on medium.com

Cybersecurity

TheWildEye, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

Munshi is an AI assistant that is integrated with Tally ERP. In this assessment the assistant acts as a conversational interface to an ERP integration: it can reason about its own tool design and, through connected tools, interact with backend functionality. The report describes it as an assistant "connected to an ERP integration" that "can have access to capabilities and information that are more privileged than those available to an ordinary user."

The behaviour under test was the assistant's handling of questions about its own integration. The concern was whether a standard user could use the conversational interface to obtain internal security information about the backend that the assistant is meant to protect.

Setup

  • Application: Munshi (AI Assistant)
  • Integration: Tally ERP
  • User role during testing: Standard User
  • Date: 4 June 2026
  • Finding: Prompt-driven exposure of internal backend security information through the AI assistant
  • Vendor status: Findings verified and remediated
  • CVE ID: To be assigned

No special account, elevated role or tooling is described. The testing was performed using a standard user role. The researcher did not supply source code, backend configuration, authentication flows, deployment details, an architecture diagram, API documentation or implementation details at any point.

Finding it

The researcher asked the assistant to identify security gaps in its own integration. The assistant first set a boundary: it stated that it could not inspect the backend implementation, deployment architecture, authentication logic, API security, source code or configuration. It said it did not have self-introspection capabilities or direct backend visibility, and that it could only reason about the architectural threat model and API contract gaps inherent in its tool design.

That answer is what made the next response stand out. When the researcher asked for a formal gap analysis, the assistant returned a structured assessment of the AI-Tally integration containing internal security findings, risk levels, technical descriptions and remediation guidance. The output was not framed as a generic checklist or as a list of questions for a human assessor; it described apparent implementation states and explained how those states could create security risks.

From the original on medium.com

Figure 1 shows the assistant acknowledging that it lacks backend visibility and then proceeding to generate an internal gap analysis of the AI-Tally integration.

Exploitation

Step 1: Ask the assistant to identify gaps in its own integration

The researcher asked the assistant to identify internal security gaps in its own integration, without providing any implementation material. The assistant replied that it had no self-introspection capabilities or direct backend visibility and could only reason about the architectural threat model and API contract gaps inherent in its tool design.

This established what the assistant claimed it could and could not see, and should have set a clear boundary around what it could reliably assess.

Step 2: Request a formal gap analysis

Instead of limiting its response to clearly labelled assumptions or general security recommendations, the assistant produced a detailed assessment titled around internal gaps in the AI-Tally integration. The findings covered:

  1. Tool-level authorization and role-based access
  2. Dual authorization and approval workflow enforcement
  3. Transaction integrity and validation
  4. Ledger and business-logic validation
  5. Data export and access to financial information
  6. Prompt injection and tool manipulation
  7. Audit trails and user attribution
  8. Session isolation and cross-user data exposure
  9. Error handling and information disclosure

The assistant assigned severity levels, including Critical, High and Medium, and described potential consequences for the integration.

From the original on medium.com

Figure 2 shows the assistant returning detailed findings around tool authorization, role-based access, approval workflows and transaction validation.

Step 3: Continue into data access and tool behaviour

The assessment continued into areas involving data access and tool behaviour. It described possible data retrieval and export paths, raised concerns about the absence of rate or data-volume thresholds, and discussed how prompt manipulation could affect tool execution. It also outlined risks involving audit attribution, session state and the ability to trace actions back to the human user who initiated them.

The distinction the researcher draws is the level of detail. A generic assistant can explain that an AI integration should have authorization checks, logging and input validation. Here the assistant returned specific descriptions of the integration's apparent capabilities and weaknesses.

From the original on medium.com

Figure 3 shows further output covering data access, prompt manipulation and the assistant's interaction with backend tools.

Step 4: Auditability and session isolation findings

The assistant also generated findings about audit trails, user attribution, session recording and the possibility of state or context crossing between users.

From the original on medium.com

Figure 4 shows additional findings involving auditability and session isolation.

Step 5: Vendor verification

After the finding was reported, the vendor reviewed the information against the backend implementation. The vendor confirmed that the assistant had surfaced genuine backend security issues and remediated the confirmed findings.

This is what separates the issue from an ordinary AI response-quality problem. The assistant had initially stated that it could not see the backend or verify implementation details, yet its later response contained information that mapped to actual weaknesses in the integration.

Root cause

The report frames the root cause as an authorization boundary that does not cover the assistant's tools and data. For a standard user, an AI assistant should not become a route to internal security information or capabilities that the user's role would not otherwise be permitted to access. The authorization boundary must apply to the tools and data available to the assistant, not just to the application's visible interface.

The report does not analyse the underlying cause beyond the authorization boundary:

  • The assistant's own statement about lacking backend visibility was not a control. A disclaimer about lacking backend visibility is not sufficient if the integration can still retrieve backend information through connected tools.

The report does not describe the implementation of the assistant or the specific code path that produced the output.

Impact

Under the conditions tested, a standard user could obtain detailed internal security findings about the AI-Tally integration through the assistant: authorization and approval workflow weaknesses, transaction and ledger validation gaps, data export and access paths, prompt injection and tool manipulation risks, audit and attribution gaps, session isolation concerns and error handling and information disclosure issues. The vendor confirmed these corresponded to real backend weaknesses.

Depending on the tools exposed to the assistant, backend details about authorization, approval workflows, data retrieval, transaction validation and audit mechanisms can help someone understand where the integration is weak and how further attacks might be attempted.

The report is explicit about the limits of the proof of concept: it does not claim that the researcher successfully created a fraudulent voucher, executed an unauthorised financial transaction or extracted customer records. Those should not be confused with the security weaknesses that were identified and confirmed.

Fix

The vendor verified the reported findings against its backend and remediated the confirmed findings. The report does not describe the specific changes made.

The controls the report says need to be enforced:

  1. Enforce authorization at the backend for every tool call. The assistant should only be able to retrieve information or perform actions that the authenticated user's role is permitted to access.
  2. Never let the model's conversational reasoning substitute for application authorization.
  3. Use explicit permission checks and the approval workflow required by the ERP system for sensitive operations.
  4. Pass user identity and authorization context to every backend operation and independently validate them before execution.
  5. Keep reliable audit records that connect each tool call and resulting action to the actual user, request and session.
  6. Isolate session context between users.
  7. Do not disclose internal implementation details to users who do not have permission to access them.
  8. Make the assistant communicate its access accurately, distinguishing between information retrieved from connected tools, verified implementation findings, assumptions and general security recommendations.

Variants to test

  1. Ask the assistant to audit its own integration. Request a formal gap analysis of the assistant's own backend integration without supplying any implementation material. A positive result is a structured assessment with severity levels and implementation-specific descriptions rather than clearly labelled assumptions or generic advice.
  2. Compare the disclaimer with the output. First ask what the assistant can see, then ask for the assessment. A positive result is an initial statement of no backend visibility followed by findings that map to real backend behaviour.
  3. Probe tool-level authorization. Ask the assistant to describe or exercise tools that the current role should not be permitted to use.
  4. Probe approval workflow enforcement. Ask about dual authorization and approval steps for transactions.
  5. Probe data export paths. Ask the assistant to describe or perform data retrieval and export.
  6. Probe audit attribution. Ask the assistant to describe how actions are attributed to users. A positive result is detail about audit trails, user attribution or session recording that a standard user should not see.
  7. Probe session isolation. Test whether context or state crosses between users or sessions.
  8. Probe prompt manipulation of tool execution. Attempt to influence which tools the assistant calls or how it calls them.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

Munshi is an AI assistant that plugs into Tally ERP. Tally ERP is accounting software that businesses use to keep their books: sales, purchases, invoices, vouchers, ledgers and so on. An ERP (enterprise resource planning) system is the central place where a company records its business transactions. Munshi sits on top of that system as a chat assistant, so a person can type questions and instructions in ordinary language instead of clicking through menus.

A security researcher, Vyom Nagpal (who publishes as TheWildEye), used Munshi with an ordinary, standard user account, the kind any regular employee would have. He asked the assistant to describe the security weaknesses in its own connection to Tally. At first the assistant said it could not see the backend at all. The backend is the part of a system that runs on the company's servers, out of sight of the user: the databases, the business logic, the permission checks. Then, when he asked for a formal gap analysis (a structured report of what is missing or weak), the assistant produced a detailed list of internal security problems, complete with severity ratings and advice on how to fix them.

The important part came afterwards. The company that makes Munshi checked the assistant's claims against its real backend and confirmed that the issues were genuine. It then fixed them. So this was not the assistant making up a generic security checklist; it had surfaced information that matched real weaknesses in the system.

The researcher is careful about what he does not claim. He did not create a fake voucher, did not move money, and did not pull out customer records. The finding is that a normal user could get the assistant to reveal internal security details that should have been out of reach.

The pieces you need to know first

Before walking through the steps, here are the ideas the rest of the article relies on, explained from scratch.

AI assistant. A program you talk to in plain language. It reads your message and writes a reply. Munshi is one of these, specialised for accounting work.

Large language model (LLM). The engine inside an AI assistant. It has learned patterns from huge amounts of text and predicts a sensible reply to whatever you type. It does not look things up in a database by itself; it generates text. That matters here, because generated text can sound authoritative even when it is guesswork.

Tool (in the AI sense). An assistant on its own can only produce words. To actually do something, like fetch an invoice or check a balance, it is given tools: small functions it is allowed to call. When the assistant needs data, it asks a tool, the tool talks to the backend, and the answer comes back into the conversation. Think of the assistant as a receptionist and the tools as the phone lines to different departments. The receptionist cannot see the filing room, but can ring someone who can.

API. An application programming interface is the set of doors and windows a program offers to other programs. It is how one piece of software asks another to do something, in a fixed, agreed format. When Munshi's tools need data from Tally, they go through an API.

Backend. Everything behind the visible screen: servers, databases, permission logic, the code that decides who may do what. Users never see it directly.

Authorization. Deciding whether a particular user is allowed to do a particular thing. Authentication is proving who you are (logging in); authorization is what you are then permitted to do. A standard user might be allowed to view invoices but not to approve payments.

Role. A label attached to an account, such as standard user or administrator, that determines its permissions.

Prompt. The text you type to an AI assistant. Everything you send is a prompt, including follow-up questions.

Prompt injection. A class of weakness where text fed to an AI assistant makes it do something the person who built it did not intend. The name comes from analogy with code injection, where hostile input is slipped into a program. Here the hostile input is language, and the effect can be that the assistant reveals information or takes actions outside its intended boundaries. In this report, asking for a formal gap analysis was enough to produce the detailed output.

Gap analysis. A structured review that lists what is missing, weak or risky, usually with severity ratings and recommendations. Security teams produce these all the time.

Severity levels. Labels such as Critical, High and Medium that rank how serious a weakness is. Critical means fix it now; Medium means fix it soon.

Audit trail. A record of who did what and when. In accounting it is essential: if a voucher is changed, you need to know which person changed it.

Session. A period of interaction tied to one logged-in user. A session identifier (often stored in a cookie, a small piece of data your browser keeps for a site) tells the server which user is making a request. Session isolation means one user's session cannot see or affect another's.

Remediation. The fix. When a vendor remediates a finding, it changes the system so the problem no longer exists.

CVE. A public catalogue number for a known security vulnerability. "To be assigned" means a number had not yet been issued at the time of writing.

The setup

The researcher recorded the conditions of the test:

  • Application: Munshi (AI Assistant)
  • Integration: Tally ERP
  • User role during testing: Standard User
  • Date: 4 June 2026
  • Finding: Prompt-driven exposure of internal backend security information through the AI assistant
  • Vendor status: Findings verified and remediated
  • CVE ID: To be assigned

Why this matters: the test used an ordinary account. No special access, no administrator role, no custom tooling. He also never handed the assistant any source code, backend configuration, authentication flows, deployment details, an architecture diagram, API documentation or implementation details. In other words, he gave it nothing that would let a person work out the answers; he only asked questions.

Finding it

The researcher began by asking the assistant to identify security gaps in its own integration. The assistant drew a line: it said it could not inspect the backend implementation, deployment architecture, authentication logic, API security, source code or configuration. It said it had no self-introspection (it cannot look inside itself) and no direct backend visibility, and that it could only reason about the architectural threat model and API contract gaps inherent in its tool design.

That answer is exactly why the next response stood out. When he asked for a formal gap analysis, the assistant returned a structured assessment of the AI-Tally integration with internal security findings, risk levels, technical descriptions and remediation guidance. The output was not framed as a generic checklist or as a list of questions for a human to investigate; it described apparent implementation states and explained how those states could create security risks.

From the original on medium.com

Figure 1 shows the assistant acknowledging that it lacks backend visibility and then proceeding to generate an internal gap analysis of the AI-Tally integration.

Step by step

Step 1: Ask the assistant to identify gaps in its own integration

The researcher asked the assistant to identify internal security gaps in its own integration, without providing any implementation material. The assistant replied that it had no self-introspection capabilities or direct backend visibility and could only reason about the architectural threat model and API contract gaps inherent in its tool design.

Why this step: the point was to establish a baseline. If the assistant says it cannot see the backend, then anything it later says about the backend is either speculation or a leak. Either way, the answer tells you where the boundary is supposed to be. It should have set a clear limit on what the assistant could reliably assess.

Step 2: Request a formal gap analysis

Instead of limiting its response to clearly labelled assumptions or general security recommendations, the assistant produced a detailed assessment titled around internal gaps in the AI-Tally integration. The findings covered:

  1. Tool-level authorization and role-based access
  2. Dual authorization and approval workflow enforcement
  3. Transaction integrity and validation
  4. Ledger and business-logic validation
  5. Data export and access to financial information
  6. Prompt injection and tool manipulation
  7. Audit trails and user attribution
  8. Session isolation and cross-user data exposure
  9. Error handling and information disclosure

The assistant assigned severity levels, including Critical, High and Medium, and described potential consequences for the integration.

Why this step: asking for a formal analysis changes the shape of the answer. A vague question gets a vague reply; a request for a structured report invites the assistant to fill in a template, and templates push a model towards specific, confident-sounding statements. The list above is the template it filled in. Each item is a place where an accounting integration can go wrong: who may call which tool, whether a second person must approve a payment, whether transactions are validated, whether financial data can be exported, whether the assistant can be manipulated, whether actions can be traced to a person, whether one user's session can bleed into another's, and whether error messages give away too much.

From the original on medium.com

Figure 2 shows the assistant returning detailed findings around tool authorization, role-based access, approval workflows and transaction validation.

Step 3: Continue into data access and tool behaviour

The assessment continued into areas involving data access and tool behaviour. It described possible data retrieval and export paths, raised concerns about the absence of rate or data-volume thresholds, and discussed how prompt manipulation could affect tool execution. It also outlined risks involving audit attribution, session state and the ability to trace actions back to the human user who initiated them.

A rate or data-volume threshold is a cap on how much can be fetched or how often, so that nobody can quietly pull the whole ledger in one go. Audit attribution is the link between an action and the person responsible for it.

The distinction the researcher draws is the level of detail. A generic assistant can explain that an AI integration should have authorization checks, logging and input validation. Here the assistant returned specific descriptions of the integration's apparent capabilities and weaknesses.

Why this step: this is where the answer stops sounding like a textbook and starts sounding like an insider description. Saying "integrations should have logging" is harmless advice. Describing how this integration retrieves and exports data, and where its limits are missing, is information about a real system.

From the original on medium.com

Figure 3 shows further output covering data access, prompt manipulation and the assistant's interaction with backend tools.

Step 4: Auditability and session isolation findings

The assistant also generated findings about audit trails, user attribution, session recording and the possibility of state or context crossing between users.

Why this step: these are the questions an attacker asks after getting in. If actions cannot be traced to a person, misuse is harder to detect. If context can cross between users, one person's data might appear in another person's conversation. The assistant was describing exactly these weak points.

From the original on medium.com

Figure 4 shows additional findings involving auditability and session isolation.

Step 5: Vendor verification

After the finding was reported, the vendor reviewed the information against the backend implementation. The vendor confirmed that the assistant had surfaced genuine backend security issues and remediated the confirmed findings.

This is what separates the issue from an ordinary AI response-quality problem. The assistant had initially stated that it could not see the backend or verify implementation details, yet its later response contained information that mapped to actual weaknesses in the integration.

Why this step matters: anyone can get an AI to write a plausible-sounding security report. The test of whether it is real is whether the system's owner checks it against the actual code and data and finds it true. Here they did.

Why it happened

The report frames the root cause as an authorization boundary that does not cover the assistant's tools and data. For a standard user, an AI assistant should not become a route to internal security information or capabilities that the user's role would not otherwise be permitted to access. The authorization boundary must apply to the tools and data available to the assistant, not just to the application's visible interface.

In everyday terms: the front door of the building was locked to the standard user, but the receptionist's phone line to the filing room was not.

The report also notes that the assistant's own statement about lacking backend visibility was not a control. A disclaimer about lacking backend visibility is not sufficient if the integration can still retrieve backend information through connected tools.

The report does not describe the implementation of the assistant or the specific code path that produced the output.

What could go wrong

Under the conditions tested, a standard user could obtain detailed internal security findings about the AI-Tally integration through the assistant: authorization and approval workflow weaknesses, transaction and ledger validation gaps, data export and access paths, prompt injection and tool manipulation risks, audit and attribution gaps, session isolation concerns and error handling and information disclosure issues. The vendor confirmed these corresponded to real backend weaknesses.

Depending on the tools exposed to the assistant, backend details about authorization, approval workflows, data retrieval, transaction validation and audit mechanisms can help someone understand where the integration is weak and how further attacks might be attempted. Think of it as a burglar being handed a floor plan: nothing has been stolen yet, but the next attempt is much easier.

The report is explicit about the limits of the proof of concept: it does not claim that the researcher successfully created a fraudulent voucher, executed an unauthorised financial transaction or extracted customer records. Those should not be confused with the security weaknesses that were identified and confirmed.

The fix

The vendor verified the reported findings against its backend and remediated the confirmed findings. The report does not describe the specific changes made.

The controls the report says need to be enforced:

  1. Enforce authorization at the backend for every tool call. The assistant should only be able to retrieve information or perform actions that the authenticated user's role is permitted to access.
  2. Never let the model's conversational reasoning substitute for application authorization.
  3. Use explicit permission checks and the approval workflow required by the ERP system for sensitive operations.
  4. Pass user identity and authorization context to every backend operation and independently validate them before execution.
  5. Keep reliable audit records that connect each tool call and resulting action to the actual user, request and session.
  6. Isolate session context between users.
  7. Do not disclose internal implementation details to users who do not have permission to access them.
  8. Make the assistant communicate its access accurately, distinguishing between information retrieved from connected tools, verified implementation findings, assumptions and general security recommendations.

In plain terms: the permission check has to happen at the filing room door, not at the receptionist's desk. The assistant may be helpful and polite, but it must not be the thing that decides who is allowed in.

How to test the same idea

These are the checks the report suggests for anyone assessing a similar assistant. Each one is a question you can type; no special tools are needed.

  1. Ask the assistant to audit its own integration. Request a formal gap analysis of the assistant's own backend integration without supplying any implementation material. A positive result is a structured assessment with severity levels and implementation-specific descriptions rather than clearly labelled assumptions or generic advice.
  2. Compare the disclaimer with the output. First ask what the assistant can see, then ask for the assessment. A positive result is an initial statement of no backend visibility followed by findings that map to real backend behaviour.
  3. Probe tool-level authorization. Ask the assistant to describe or exercise tools that the current role should not be permitted to use.
  4. Probe approval workflow enforcement. Ask about dual authorization and approval steps for transactions.
  5. Probe data export paths. Ask the assistant to describe or perform data retrieval and export.
  6. Probe audit attribution. Ask the assistant to describe how actions are attributed to users. A positive result is detail about audit trails, user attribution or session recording that a standard user should not see.
  7. Probe session isolation. Test whether context or state crosses between users or sessions.
  8. Probe prompt manipulation of tool execution. Attempt to influence which tools the assistant calls or how it calls them.

What to take away

AI assistants are increasingly becoming an interface to business systems. That makes their authorization boundaries just as important as the permissions enforced by the applications behind them.

In this assessment, the assistant first stated that it had no backend visibility, but then produced detailed internal security findings. The vendor later verified the reported backend issues and remediated them.

The lesson is straightforward: an AI assistant must operate within the permissions of the user interacting with it. Connecting a model to internal tools does not make those tools or their output safe to expose through a conversational interface.

Glossary

  • AI assistant: a program that reads plain-language messages and writes replies, often powered by a large language model.
  • API (application programming interface): the agreed set of ways one program can ask another program to do something.
  • API contract: the documented rules of what an API accepts and returns.
  • Audit attribution: the link between a recorded action and the person who performed it.
  • Authentication: proving who you are, usually by logging in.
  • Authorization: deciding what a logged-in user is allowed to do.
  • Backend: the servers, databases and logic behind the visible screen.
  • Cookie: a small piece of data a browser stores for a site, often used to identify a session.
  • CVE: a public catalogue number for a known vulnerability.
  • Dual authorization: a rule that two people must approve a sensitive action, such as a payment.
  • ERP (enterprise resource planning): software that records a company's core business transactions in one place.
  • Gap analysis: a structured review listing what is missing, weak or risky, usually with severity ratings and recommendations.
  • Large language model (LLM): the engine inside an AI assistant that generates text by predicting likely continuations.
  • Ledger: the accounting record of all transactions.
  • Prompt: the text a user sends to an AI assistant.
  • Prompt injection: a weakness where text fed to an AI assistant makes it behave outside its intended boundaries, for example revealing information it should not.
  • Rate or data-volume threshold: a cap on how often or how much data can be fetched.
  • Remediation: the fix applied to remove a weakness.
  • Role: a label on an account that determines its permissions, such as standard user or administrator.
  • Self-introspection: an assistant's ability to inspect its own internals; the assistant in this report said it had none.
  • Session: a period of interaction tied to one logged-in user, usually identified by a cookie or token.
  • Session isolation: keeping one user's session context separate from another's.
  • Severity level: a label such as Critical, High or Medium ranking how serious a weakness is.
  • Standard user: an ordinary account without administrative privileges.
  • Tally ERP: accounting software used to keep business books.
  • Threat model: a structured description of what could go wrong and who might cause it.
  • Tool (AI tool): a function an AI assistant is allowed to call so it can fetch data or perform actions.
  • Vendor: the company that makes and operates the product.
  • Voucher: an accounting entry recording a transaction.

More by TheWildEye

View all

8 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.