Add Kokosh plugin (wallet-hygiene audit via x402)#148
Open
Kajko25 wants to merge 1 commit into
Open
Conversation
Kokosh is a wallet-hygiene sentinel agent for Base mainnet: tracks token/Permit2 allowance exposure and flags scam-airdrop tokens by name/URL/homoglyph heuristics, with a paid /audit report ($0.01 USDC via x402). - integration: http-api, chains: [base], risk: [irreversible] - Documents a real smart-account-signature incompatibility with x402's exact scheme (Base MCP's default smart wallet returns an ERC-1271/6492 signature, but standard USDC transferWithAuthorization only accepts raw ecrecover) rather than glossing over it — hand-verified working end to end with an EOA signer, not yet verified with a smart wallet. - Adds `wallet-hygiene` to the shared tag vocabulary (net-new tag). Self-reviewed against the plugin spec with the plugin-review skill; report at https://github.com/Kajko25/kokosh/blob/main/docs/base-mcp-plugin/kokosh-review.md
Collaborator
🟡 Heimdall Review Status
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/auditreport ($0.01 USDC via x402).integration: http-api,chains: [base],risk: [irreversible].wallet-hygiene) to the shared vocabulary inplugin-spec.md, per Contribution Scope.Notable finding
## Submissiondocuments a real compatibility gap rather than a happy-path-only flow: Base MCP's default wallet is a smart contract account, whosesign()returns an ERC-1271/6492-shaped signature. Standard USDCtransferWithAuthorization(used by x402'sexactscheme) verifies with plainecrecoveronly, so it will reject that signature. The plugin was hand-verified working end-to-end (real mainnet USDC settlement) with an EOA signer, and explicitly instructs the agent to stop rather than submit a payment authorization likely to fail settlement when the active wallet is a smart contract. Flagging for maintainers in case this is relevant to other x402-paying plugins.Self-review
Ran the
plugin-reviewskill against the current spec before opening this PR — verdict 🟡 approve with minor changes (both addressed: file relocated to the correct path,wallet-hygienetag flagged/added). Full report: https://github.com/Kajko25/kokosh/blob/main/docs/base-mcp-plugin/kokosh-review.mdTest plan
integration,shell,auth,risk)/audit,/exposure,/drops,/healthzendpoints live-tested against the deployed agent (https://kokosh-agent.vercel.app)