Back to skill

Security audit

lnget: like wget but for L402 on the web

Security checks for vulnerabilities and agentic risk

Overview

The skill is coherent for using lnget, but it directs users toward real Lightning payments with overbroad node credentials and an unpinned remote install path.

Install only with a pinned, reviewed lnget version, avoid using an LND admin macaroon, prefer a least-privilege Lightning credential or limited wallet with low balance, use --no-pay and conservative --max-cost/--max-fee limits first, and periodically clear cached tokens and revoke unused LNC sessions.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T03 · Remote Payload Retrieval and Execution

Error
Location
scripts/install.sh:48
Finding

Mutable Remote Code Installation Through Unpinned Latest Release

Content
View full analysis
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:157
Finding

Use of LND Administrator Macaroon Violates Least Privilege

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (22)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill explicitly describes automatic Lightning invoice payment and token reuse, but the introductory text does not prominently warn that using the tool can spend real funds and cache paid authorization tokens for future requests. In an agent context, that omission increases the risk of unintended micropayments and silent re-use of previously purchased access against remote services.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The Quick Start demonstrates fetching an L402-protected resource immediately after setup, which may cause automatic payment, but it provides no warning before the example. Because Quick Start snippets are the most likely to be copied verbatim, this materially increases the chance of accidental spending by users or autonomous agents.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

lnget config init

3. Fetch an L402-protected resource

lnget --max-cost 1000 https://api.example.com/paid-data

text

## Installation

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
## Configuration File

Config lives at `~/.lnget/config.yaml`. Run `lnget config init` to create it.

**Note:** `lnget config init` may generate incorrect YAML key names (e.g.,
`tlscertpath` and `macaroonpath` instead of `tls_cert` and `macaroon`) due to

Static analysis

No suspicious patterns detected.