Back to skill

Security audit

XRPL Token Minting

Security checks for vulnerabilities and agentic risk

Overview

This XRPL token/NFT skill is purpose-aligned, but it gives live blockchain transaction templates without enough safety scoping for irreversible asset-affecting actions.

Review carefully before installing or using. Use only testnet/devnet until you have explicitly confirmed the network, wallet, account ownership, issuer and destination addresses, amounts, fees, flags, and consequences of each transaction. Pin and review the `xrpl` package version in real projects.

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

Warning
Location
SKILL.md:11
Finding
Unpinned Third-Party npm Dependency## Vulnerability Details **File Location**: `SKILL.md`, line 11 **Vulnerability Type**: Unpinned third-party dependency installation **Risk Level**: Medium ### Vulnerable Code ```bash npm install xrpl ``` ### Technical Analysis The installation command does not specify an exact, reviewed version of the `xrpl` package. Consequently, npm may resolve a different package release over time, and the resulting dependency tree can vary between installations. The project also contains no reviewed lockfile that would constrain transitive dependency versions. npm packages may define lifecycle scripts that execute during installation. If the package, its registry account, or a transitive dependency is compromised, following this instruction could execute attacker-controlled code during installation. This finding does not establish that the current `xrpl` package is malicious; it identifies the absence of controls needed to make dependency installation reproducible and resistant to future supply-chain compromise. ### Attack Path 1. An attacker compromises the npm account, publication process, or dependency chain associated with the named package. 2. The attacker publishes a malicious release or introduces a malicious transitive dependency. 3. A user follows the documented `npm install xrpl` instruction after the compromised release becomes resolvable. 4. npm downloads the attacker-controlled package or dependency because no exact version and reviewed lockfile constrain resolution. 5. Malicious lifecycle scripts may execute during installation, or malicious package logic may execute when the installed library is subsequently imported and used. ### Impact Assessment Successful exploitation could execute arbitrary code with the operating-system privileges of the user running npm or the application using the dependency. Depending on those privileges and the environment, the attacker could access project files and user-readable credentials, alter source code or instal ...[truncated 247 chars]
Remediation
## Remediation Suggestions 1. Pin `xrpl` to a reviewed exact version rather than resolving the latest available release: ```bash npm install --save-exact xrpl@REVIEWED_VERSION ``` 2. Generate, review, and commit `package-lock.json` so both direct and transitive versions are reproducible. 3. In automated and production environments, install from the lockfile with: ```bash npm ci ``` 4. Verify package provenance, maintainers, release history, and integrity before approving dependency updates. 5. Use automated dependency scanning and review all lockfile changes before merging updates. 6. Where package functionality permits, reduce installation-time execution risk with: ```bash npm ci --ignore-scripts ``` 7. Run dependency installation and application workloads as a non-privileged user in an isolated environment with limited filesystem, credential, and network access.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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 (1)

Missing User Warnings

Medium
Confidence
94% confidence
Finding
The skill provides ready-to-use XRPL transaction examples for trust lines, issued currency payments, and NFT minting/offers without clearly warning that submitting these transactions creates irreversible on-ledger state changes and can affect real assets. A user or agent could treat this as harmless sample content and unintentionally create trust relationships, mint tokens, or post NFT offers on mainnet, leading to financial loss, unwanted asset issuance, or persistent account configuration changes.

Static analysis

No suspicious patterns detected.