Back to skill

Security audit

Tally Prime CA

Security checks for vulnerabilities and agentic risk

Overview

This skill is for legitimate TallyPrime accounting automation, but it combines sensitive financial write access with broad setup commands and weak endpoint scoping that users should review carefully before installing.

Install only in a controlled environment where TALLY_URL is locked to the intended TallyPrime instance, preferably loopback in production. Do not let the agent run sudo or install global npm packages during normal use; preinstall and pin dependencies through an administrator-controlled process. Treat every create, alter, cancel, master setup, inventory setup, and report export as live financial activity requiring explicit company and user confirmation.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:54
Finding

Mutable third-party packages are downloaded and executed without integrity controls

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:15
Finding

Sensitive accounting requests can be redirected to an arbitrary plaintext endpoint

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (33)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 64)May include surrounding context.

md
blish a newer **breaking** or **must-have** CLI release, **edit this line** in `SKILL.md` to the new minimum and redeploy the skill so agents reinstall if neede

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 200)May include surrounding context.

md
blish a newer **breaking** or **must-have** CLI release, **edit this line** in `SKILL.md` to the new minimum and redeploy the skill so agents reinstall if neede

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 218)May include surrounding context.

md
blish a newer **breaking** or **must-have** CLI release, **edit this line** in `SKILL.md` to the new minimum and redeploy the skill so agents reinstall if neede

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · reference/errors.md (reported line 21)May include surrounding context.

md
| Connection refused / timeout | TallyPrime not running or wrong port | Open TallyPrime; confirm port; check `$TALLY_URL` |
| Response doesn’t contain “Server is Running” | Wrong URL or Tally integration not enabled | Verify TallyPrime is running and integration is enabled |
| XML parser throws `ParseError` / "no element found" | Export Data responses are XML fragments (no single root) — this is by design | Use Python regex instead of `xml.etree.ElementTree`; see parsing guide in `reference/reports.md` |
| `curl ... > file` produces truncated or empty file | Shell redirect can silently truncate in compound commands | Use `curl --output /tmp/file.xml` (the `-o` flag) |
| `Could not find Report 'X'` | Wrong `REPORTNAME` | Use report names in `reference/reports.md`; if still failing, verify in TallyPrime Developer |
| `Could not find Collection 'X'` | Collection not available | Use custom TDL pattern (see `reference/reports.md`) |
| `Ledger 'X' does not exist` | Missing ledger master | Create ledger first (see `reference/masters.md`) |

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · reference/vouchers.md (reported line 50)May include surrounding context.

When CLASSNAME is set, always include all four GST header fields. Missing any one of them will cause Tally to reject the voucher or save it with incorrect GST treatment.

xml
<CLASSNAME>Purchase @ 18 %</CLASSNAME>   <!-- exact name as configured in Tally -->
<CMPGSTIN>COMPANY_GSTIN</CMPGSTIN>
<PARTYGSTIN>PARTY_GSTIN</PARTYGSTIN>
<GSTREGISTRATIONTYPE>Regular</GSTREGISTRATIONTYPE>

Hidden Instructions

High
Category
Prompt Injection
Confidence
70% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · reference/vouchers.md (reported line 394)May include surrounding context.

md
</BILLALLOCATIONS.LIST>
            </LEDGERENTRIES.LIST>

            <!-- Purchase / expense ledger -->
            <LEDGERENTRIES.LIST>
              <LEDGERNAME>PURCHASE_LEDGER</LEDGERNAME>
              <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill description says it only processes structured bridge JSON, but it also instructs the agent to generate PDFs from arbitrary raw text via tallyca. That scope expansion weakens trust boundaries: a deployment expecting tightly validated bridge input may unexpectedly let the agent process untrusted free-form text and invoke a local CLI, increasing prompt-injection and command-construction risk.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill includes npm install -g and npm view upgrade instructions unrelated to the minimal act of posting vouchers to Tally. Giving an agent package-management authority expands its capability to fetch and install remote code, creating avoidable supply-chain and privilege-escalation risk if the environment permits execution.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The file directs installation of OS packages and Playwright browser dependencies, including commands that alter the host system. This materially broadens the skill from Tally interaction into host administration, which is dangerous because an agent following these instructions could modify the machine, increase attack surface, and execute remote installer logic under elevated privileges.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
95% confidence
Finding

The skill content includes sudo yum install -y ..., which is an instruction to perform privileged host modification. In an agent context, any path that encourages or normalizes sudo-level execution is dangerous because it can turn a limited application skill into a root-capable system administrator, enabling broad compromise if abused or prompt-injected.

Content

Scanner excerpt · SKILL.md (reported line 110)May include surrounding context.

Amazon Linux 2 / AL2023

bash
sudo yum install -y \
  alsa-lib atk at-spi2-atk cups-libs libdrm libXcomposite \
  libXdamage libXrandr mesa-libgbm pango gtk3
npx playwright install chromium

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
95% confidence
Finding

This line explicitly instructs sudo apt-get update, a privileged system-management action unrelated to the core accounting task. In context, it increases risk because the skill runs near sensitive financial systems and should not direct the agent to alter package state on the host.

Content

Scanner excerpt · SKILL.md (reported line 120)May include surrounding context.

Ubuntu / Debian

bash
sudo apt-get update
sudo apt-get install -y \
  libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
  libxcomposite1 libxdamage1 libxrandr2 libgbm1 \

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
95% confidence
Finding

The instruction sudo apt-get install -y ... authorizes privileged installation of host packages. If an agent can act on such instructions, the environment's trust boundary is broken, and compromise of the agent or malicious prompting could lead to arbitrary system changes on the machine hosting Tally and financial data.

Content

Scanner excerpt · SKILL.md (reported line 121)May include surrounding context.

bash
sudo apt-get update
sudo apt-get install -y \
  libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
  libxcomposite1 libxdamage1 libxrandr2 libgbm1 \
  libpango-1.0-0 libcairo2 libasound2 libatspi2.0-0

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The 'When to use this skill' section expands the role beyond the declared bridge-posting/report-reading purpose to include PDF generation, master management, and voucher alteration/cancellation. Broader capabilities increase the blast radius of any misuse, especially destructive accounting actions like altering or cancelling vouchers when the deployment may have assumed a narrower, safer role.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The reference file documents creation of stock groups, UOMs, stock items, and godowns, which expands capability beyond the stated manifest scope of posting vouchers and reading reports. In an automation skill that can already send XML to TallyPrime, undocumented master-creation patterns enable broader state-changing actions and increase the chance an agent will create or alter inventory structure without explicit authorization or operator awareness.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The markdown provides ready-to-use XML import templates for creating masters and posting item invoices but does not prominently warn that these operations modify live accounting and inventory data. In this skill context, such examples can be copied directly by an agent or operator into production workflows, increasing the risk of unintended ledger, inventory, or voucher changes with financial reporting consequences.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file documents capabilities to create and alter groups and ledgers, while the stated skill scope is voucher posting and report reading. In an agent setting, undocumented write capabilities materially expand what the skill can do and can be invoked to change accounting masters, creating unauthorized or unexpected modification paths in financial data.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documentation presents Tally 'Import Data' XML for masters without an explicit warning that these actions modify persistent accounting data. In practice, this can cause an agent or operator to treat examples as harmless reference material and execute destructive or irreversible writes without adequate review.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The new-company setup section adds bulk initialization behavior that is outside the declared skill scope and enables creation of multiple accounting ledgers in one run. This broadens the effective authority of the skill and raises the risk of accidental or unauthorized chart-of-accounts changes, especially if the wrong company context is selected.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The instruction to run all setup blocks for a new company omits a warning that this is a bulk write operation that can duplicate ledgers or alter the accounting structure if executed against the wrong company. In a financial system, mistaken bulk initialization can create reconciliation errors, tax misclassification, and operational disruption that are difficult to unwind.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The manifest describes this skill as posting vouchers and reading accounting reports such as day book, trial balance, P&L, balance sheet, outstandings, and GST. This file explicitly states it contains templates for exporting both accounting and inventory reports, and later includes a Stock Summary export, which extends beyond the manifest’s stated read scope.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

This markdown file describes sending report export requests over HTTP POST to $TALLY_URL, and the surrounding templates cover sensitive accounting data such as vouchers, balances, receivables, payables, GST reports, and company lists. Under SQP-2 for markdown files, user-facing documentation should warn about privacy or system-impacting behavior when skill behavior can expose or transfer sensitive data, but no such warning is present here.

Content

No source excerpt is available for this finding.