Credential Access
High
- Category
- Privilege Escalation
- Content
import { Keypair } from "@solana/web3.js"; import fs from "fs"; // keypairPath from user message, or WALLET_KEYPAIR from .env const wallet = Keypair.fromSecretKey( Uint8Array.from(JSON.parse(fs.readFileSync(keypairPath, "utf-8"))), );- Confidence
- 89% confidence
- Finding
- .env
