Back to skill

Security audit

solana-light-sdk

Security checks for vulnerabilities and agentic risk

Overview

This Light SDK documentation skill is mostly coherent, but it asks agents to use mutable external install paths and load unreviewed external skills/MCP access during work.

Review before installing. Prefer a pinned commit or signed release instead of the unpinned `npx` command, keep any subagents limited to the intended project directory, and do not expose wallet files, tokens, or unrelated private repositories to DeepWiki MCP or dynamically loaded skills. Treat the Jito example as an explicit third-party transaction submission path.

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:35
Finding

Unpinned External Package Installation and Dynamic Skill Loading

Content
View full analysis
Remediation
View remediation
add Lightprotocol/skills ``` 2. Pin the installed GitHub source to a reviewed commit SHA rather than a mutable branch or repository head. 3. Record and verify package integrity hashes, release signatures, or checksums before installation. 4. Do not automatically load `skills/ask-mcp`. Vendor it into the reviewed package or require a separate security review and explicit user approval before activation. 5. Treat MCP responses and remotely sourced Skill instructions as untrusted input. Do not permit them to override system constraints, expand filesystem scope, or initiate execution without confirmation. 6. Run installation and external Skill operations in a sandbox with: - Access limited to the intended project directory. - No wallet files, signing keys, tokens, or unrelated environment variables. - Restricted outbound network access. - No elevated operating-system privileges. 7. Change the workflow so local documentation and read-only repository inspection are attempted first. External Skill loading should be optional rather than a default recovery step. 8. Maintain a dependency lockfile or reviewed manifest documenting the exact npm package version, Git commit, external Skill revision, and MCP endpoint configuration. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (9)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| Anchor pattern | [references/anchor.md](references/anchor.md) |

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/router.md (reported line 11)May include surrounding context.

md
| | Hot market (99%+) | Cold market |
|---|---|---|
| Quoting | No change | No change |
| Swap instruction | No change | No change |
| Transaction | No change | Prepend `create_load_instructions` |

## Detecting cold accounts

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/router.md (reported line 45)May include surrounding context.

md
| | Hot market (99%+) | Cold market |
|---|---|---|
| Quoting | No change | No change |
| Swap instruction | No change | No change |
| Transaction | No change | Prepend `create_load_instructions` |

## Detecting cold accounts

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/router.md (reported line 113)May include surrounding context.

md
| | Hot market (99%+) | Cold market |
|---|---|---|
| Quoting | No change | No change |
| Swap instruction | No change | No change |
| Transaction | No change | Prepend `create_load_instructions` |

## Detecting cold accounts

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/router.md (reported line 191)May include surrounding context.

md
## FAQ

**Do I need to change my swap instructions?**

No. Swap instructions are identical. If the market is hot, the transaction
is the same as today. If cold, you prepend `create_load_instructions`.

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/router.md (reported line 193)May include surrounding context.

md
**Do I need to change my swap instructions?**

No. Swap instructions are identical. If the market is hot, the transaction
is the same as today. If cold, you prepend `create_load_instructions`.

**Can I quote cold markets?**

Memory Manipulation

High
Category
Memory Poisoning
Confidence
85% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · references/testing.md (reported line 27)May include surrounding context.

md
// ... build and send init instruction ...

    // 2. Swap (hot path - works normally)
    // ... build and send swap instruction ...

    // 3. Trigger compression (advance time)
    rpc.warp_slot_forward(SLOTS_PER_EPOCH * 30).await.unwrap();

Rp1

Medium
Category
MCP Rug Pull
Confidence
88% confidence
Finding

The skill recommends installation via npx skills add Lightprotocol/skills without pinning a specific package version or immutable commit reference. Because npx resolves and executes remote package code at runtime, a compromised upstream package, dependency, or later package update could cause users to run unexpected code during installation, creating a supply-chain execution risk.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

This markdown file includes example code that posts bundle data to an external Jito endpoint, which is a network operation that transmits transaction data off-box. The surrounding documentation explains how to do it but does not include any warning or disclosure about sending data to a third-party service.

Content

No source excerpt is available for this finding.