Skip to main content

Download File from 0G Storage

Enables downloading and verifying files from 0G decentralized storage with Merkle proof validation for data integrity.

Install this skill

or
50/100

Security score

The Download File from 0G Storage skill was audited on Feb 25, 2026 and we found 14 security issues across 2 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 59

Template literal with variable interpolation in command context

SourceSKILL.md
59throw new Error(`Download failed: ${error.message}`);
medium line 61

Template literal with variable interpolation in command context

SourceSKILL.md
61console.log(`Downloaded to ${outputPath}`);
medium line 98

Template literal with variable interpolation in command context

SourceSKILL.md
98console.log(`Downloaded and verified: ${outputPath}`);
medium line 101

Template literal with variable interpolation in command context

SourceSKILL.md
101console.log(`File size: ${stats.size} bytes`);
medium line 104

Template literal with variable interpolation in command context

SourceSKILL.md
104throw new Error(`File not found for root hash: ${rootHash}`);
medium line 128

Template literal with variable interpolation in command context

SourceSKILL.md
128console.log(`Downloaded: ${files[i].outputPath}`);
medium line 130

Template literal with variable interpolation in command context

SourceSKILL.md
130console.error(`Failed: ${files[i].rootHash} — ${result.reason}`);
medium line 19

Access to .env file

SourceSKILL.md
19- `.env` with `STORAGE_INDEXER`
low line 51

Access to .env file

SourceSKILL.md
51const indexer = new Indexer(process.env.STORAGE_INDEXER!);
low line 77

Access to .env file

SourceSKILL.md
77if (!process.env.STORAGE_INDEXER) {
low line 78

Access to .env file

SourceSKILL.md
78throw new Error('STORAGE_INDEXER not set in .env');
low line 92

Access to .env file

SourceSKILL.md
92const indexer = new Indexer(process.env.STORAGE_INDEXER!);
low line 117

Access to .env file

SourceSKILL.md
117const indexer = new Indexer(process.env.STORAGE_INDEXER!);
medium line 166

Access to .env file

SourceSKILL.md
166| `indexer not available` | Wrong indexer URL | Check `STORAGE_INDEXER` in `.env` |
Scanned on Feb 25, 2026
View Security Dashboard

Install this skill with one command

/learn @0gfoundation/download-file
GitHub Stars 8
Rate this skill
Categorydevelopment
UpdatedMarch 29, 2026
0gfoundation/0g-agent-skills