Back to skill

Security audit

Typescript Toolkit Free

Security checks for vulnerabilities and agentic risk

Overview

This TypeScript helper appears non-malicious, but it asks for write and command-running access while its instructions are broader and less clearly scoped than its stated advisory purpose.

Install only if you are comfortable granting the skill write and command-running capability for TypeScript projects. Use it in a project you trust, review proposed edits before applying them, prefer project-local `tsc` or `npx --no-install`, and pin or lock npm dependencies when installing TypeScript or ESLint tooling.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Note
Location
SKILL.md:182
Finding

Unpinned npm Dependencies and Implicit Package Execution

Content
View full analysis

Vulnerability Details

File Location: SKILL.md:182, SKILL.md:262-263
Vulnerability Type: Unpinned third-party package installation and execution
Risk Level: Low

Vulnerable Code

At SKILL.md:182:

bash
npx tsc --noEmit

At SKILL.md:262-263:

markdown
| TypeScript | npm package | Recommended | `npm i -D typescript` |
| ESLint + @typescript-eslint | npm package | Optional | `npm i -D eslint @typescript-eslint/eslint-plugin` |

Technical Analysis

The documented npm installation commands do not pin reviewed package versions or require installation from a lockfile. They therefore resolve package versions from the registry at execution time. The effective dependency content can change after this skill has been reviewed.

The npx tsc --noEmit instruction can also download and execute a package when a suitable local executable is unavailable. This creates an implicit remote dependency resolution and code-execution boundary that is not clearly disclosed or restricted. npm package installation may execute package lifecycle scripts under the invoking user's account.

No evidence indicates that the named packages are malicious. The issue is the unsafe, mutable dependency-resolution process rather than a confirmed malicious package.

Attack Path

  1. A user follows the skill's setup instructions without an existing reviewed lockfile.
  2. npm resolves the latest package versions permitted by the registry and local configuration.
  3. Alternatively, the user runs npx tsc --noEmit without a local tsc executable, causing npx to retrieve a package.
  4. If a resolved package, transitive dependency, registry endpoint, or user npm configuration has been compromised, attacker-controlled package installation or lifecycle code executes.
  5. The malicious code runs with the permissions of the user who invoked npm or npx.

Impact Assessment

Successful exploitation could provide cod ...[truncated 511 chars]

Remediation
View remediation

Remediation Suggestions

  1. Pin reviewed dependency versions instead of resolving mutable latest releases:

    bash
    npm install --save-dev --save-exact typescript@5.9.2
    npm install --save-dev --save-exact eslint@9.35.0 @typescript-eslint/eslint-plugin@8.42.0
    

    Replace the example versions with versions that have been reviewed and approved.

  2. Commit package-lock.json and use deterministic installation in automation:

    bash
    npm ci --ignore-scripts
    

    If lifecycle scripts are required, review them before allowing installation without --ignore-scripts.

  3. Prevent npx from downloading missing packages implicitly:

    bash
    npx --no-install tsc --noEmit
    

    Alternatively, invoke the reviewed project-local binary directly:

    bash
    ./node_modules/.bin/tsc --noEmit
    
  4. Document that users should verify the registry source, lockfile integrity, package provenance, and dependency audit results before installation.

  5. Run dependency tooling in a least-privileged development environment without production credentials or unrelated secrets.

Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill markets itself as a Markdown-only TypeScript guidance tool, but the manifest grants write and exec and the content advertises create/modify/delete/save/import behaviors. This mismatch can cause an agent or user to trust the skill as read-only advisory content when it actually has side-effect-capable permissions, increasing the chance of unintended file changes or command execution.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The file states that the skill does not rely on external scripts and is fully Markdown-driven, yet it declares exec and later identifies itself as MD+EXEC. Contradictory claims about execution capability are dangerous because they undermine informed consent and can mask when a skill is able to run local commands despite appearing non-executable.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill describes broad create/query/modify/delete/import/export/save operation modes that are not justified by its stated purpose of TypeScript type-safety guidance. Overbroad operational claims expand the attack surface by normalizing file and state manipulation in a context where users expect analysis and advice, not arbitrary mutation workflows.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The markdown advertises create/modify/delete/save operations but does not prominently warn that these may change local files or project state. In a skill with write and exec capabilities, omission of side-effect warnings can mislead users and orchestrators into treating potentially destructive operations as harmless guidance.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The trigger condition says to use the skill for broad development activities such as code generation, programming assistance, debugging, testing, and deployment. Such expansive routing language can cause the agent to invoke this skill in many contexts outside its narrowly described TypeScript safety role, increasing the chance that its write/exec capabilities are used unexpectedly.

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.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
73% confidence
Finding

The visible name, summary, and the entire instructional content are presented in Chinese, with no indication that users may choose another language. This can constitute a language/locale policy concern when a skill appears to impose a language without opt-in or documented justification.

Content

No source excerpt is available for this finding.