plugin skill for clawchain agent to use pancake exchange

PendingStatic analysis audit pending.

Overview

No static analysis result has been recorded yet. Pattern checks will appear here once the artifact has been analyzed.

Findings (0)

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

What this means

If the agent, host, or wallet file is misused or compromised, funds sent to this wallet could be swapped or moved irreversibly.

Why it was flagged

This gives the agent persistent signing authority over a BSC wallet holding user-sent funds. The provided artifacts show a plaintext JSON private-key file and do not show encryption, spending caps, or a declared primary credential.

Skill content
The agent needs one file that stores both the private key and public address so it can sign transactions... Default file location: `~/.config/bsc_agent/wallet.json`.
Recommendation

Use only a new, low-balance or testnet wallet; never reuse an existing wallet/private key. Require explicit approval for every transaction, store keys with stronger protection, and declare the wallet/private key as a primary credential.

ConcernMedium Confidence
ASI02: Tool Misuse and Exploitation
What this means

A mistaken or manipulated agent action could trade into the wrong token, accept unsafe pricing, or spend more funds than intended.

Why it was flagged

For a real-money trading skill, broad token discovery and swap authority is risky unless bounded by explicit user confirmation, token allowlists, quote review, slippage limits, and maximum spend controls, which are not visible in the provided artifacts.

Skill content
This skill lets the AI agent ... swap tokens... The agent is not limited to specific tokens — it can resolve token addresses and check which pairs have liquidity.
Recommendation

Add hard guardrails: require user confirmation with transaction details before signing, enforce max spend and slippage limits, prefer testnet by default, and use allowlists for tokens/contracts.

What this means

The skill can link the BSC wallet public key/address to the user's ClawChain agent account, which may affect account state and privacy.

Why it was flagged

The public-key registration flow uses local ClawChain/Chromia credentials to submit an authenticated transaction. This appears purpose-aligned, but it is sensitive account authority and is not declared in the registry requirements.

Skill content
You must have an authenticated session (FT4 session from MetaMask or Chromia Vault)... `--ft-auth --secret ~/.config/clawchain/credentials.json`
Recommendation

Make this credential requirement explicit, explain exactly what the registration transaction changes, and ask the user to approve it before running.

What this means

Users depend on their local package manager and npm resolution for code that will generate and handle wallet keys.

Why it was flagged

The dependency is expected for Ethereum/BSC wallet operations, but the skill is instruction-only and does not provide a lockfile or pinned exact package version.

Skill content
Prerequisite: Node.js 18+ with `ethers` (v6): `npm install ethers`
Recommendation

Pin an exact ethers version, provide a lockfile or verified install instructions, and encourage users to install from trusted package sources.

What this means

Running the command creates a private-key file on disk that must be protected from other processes, backups, and accidental sharing.

Why it was flagged

The skill asks the user to run a local Node.js one-liner that writes a wallet file. This is a disclosed setup step and aligned with the skill purpose, but it executes local code and creates a sensitive secret file.

Skill content
`node -e "... ethers.Wallet.createRandom(); ... fs.writeFileSync(file, JSON.stringify({ privateKey: wallet.privateKey, address: wallet.address, publicKey: wallet.publicKey }, null, 2));"`
Recommendation

Review the command before running it, restrict file permissions, and prefer a dedicated secrets manager or hardware/software wallet workflow where possible.