security

security is a cursor rule for Cursor from hiromaily/go-crypto-wallet. It costs 263 tokens per session, scanned A, original, MIT.

Security rules for coding agents working on a cryptocurrency wallet that creates keys and signs transactions offline.

In plain words
What is it for?
Use them when working with private keys, seeds, passwords, wallet operations, or other security-critical changes.
Why use it?
They reduce the risk of exposing secrets, accepting unsafe input, or making unreviewed changes in security-sensitive code.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Claude Code.

Good fit Use them when working with private keys, seeds, passwords, wallet operations, or other security-critical changes.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hiromaily/go-crypto-wallet/security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/hiromaily/go-crypto-wallet

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security

README.md
[![agentmods](https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/security/github.svg)](https://agentmods.dev/rules/hiromaily/go-crypto-wallet/security)
Your own site
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/security"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/security/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security

Your own site · 80×15
<a href="https://agentmods.dev/rules/hiromaily/go-crypto-wallet/security"><img src="https://agentmods.dev/badge/rules/hiromaily/go-crypto-wallet/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 263 This file is loaded in full into every session.
When invoked 263 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00263 $0.00263
Opus 5 $0.00131 $0.00131
Sonnet 5 $0.00053 $0.00053
Haiku 4.5 $0.00026 $0.00026

Measured 7d ago against content hash 411b64b2b577, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/security.mdc · 50 lines

What it actually says

Claude Rules - Security

Overview

Security rules for Claude Code when working on go-crypto-wallet. Security is paramount - this project handles private keys and cryptocurrency transactions.

Detailed Rules

Refer to @docs/guidelines/security.md for full security requirements.

Quick Reference

Critical Rules

  1. NEVER log private keys or sensitive information
  2. NEVER commit secrets or credentials
  3. Always validate inputs at system boundaries
  4. Consider offline wallet implications for keygen/sign operations
  5. Security-related changes must be reviewed

Security-Critical Areas

  • internal/infrastructure/wallet/key/ - Key generation
  • internal/domain/key/ - Key value objects
  • Any code handling private keys, seeds, or passwords

Wallet Architecture

Wallet Environment Security Level
Watch Online Public keys only
Keygen Offline Generates private keys
Sign Offline Signs transactions

Verification

Before committing security-related changes:

make go-check-vuln
make go-lint
make go-test
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 50 lines · 263 tokens per session scan A 411b64b2b577

Subscribe to this mod's changes

security is a cursor rule published in the GitHub repository hiromaily/go-crypto-wallet (127 stars, last pushed 4mo ago), licensed MIT. It adds 263 tokens to every session, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.