patent-security-engineer

patent-security-engineer is an agent for Claude Code from illusionaireal/oh-my-patent. It costs 15 tokens per session (362 once invoked), scanned A, original, MIT.

A security-design agent for cryptographic hardware devices such as national-cryptography machines and hardware security modules. It develops safeguards for a sealed cache of intermediate values used to speed up SM2 cryptographic calculations.

In plain words
What is it for?
Use it to define the threat model, implementable security requirements, cache creation and validation flows, invalidation and erasure rules, fallback behavior, and ways to make the design technically distinct.
Why use it?
It helps identify attacks that could make cached cryptographic results unsafe, such as replay, unauthorized reuse, tampering, tenant crossover, side-channel leakage, or incorrect reuse after key changes.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Good fit Use it to define the threat model, implementable security requirements, cache creation and validation flows, invalidation and erasure rules, fallback behavior, and ways to make the design technically distinct.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/illusionaireal/oh-my-patent/patent-security-engineer
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/illusionaireal/oh-my-patent

Made for: Claude Code.

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 patent-security-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/illusionaireal/oh-my-patent/patent-security-engineer/github.svg)](https://agentmods.dev/agents/illusionaireal/oh-my-patent/patent-security-engineer)
Your own site
<a href="https://agentmods.dev/agents/illusionaireal/oh-my-patent/patent-security-engineer"><img src="https://agentmods.dev/badge/agents/illusionaireal/oh-my-patent/patent-security-engineer/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 patent-security-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/illusionaireal/oh-my-patent/patent-security-engineer"><img src="https://agentmods.dev/badge/agents/illusionaireal/oh-my-patent/patent-security-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 362 The whole file, excluding the scripts and references it only reads on demand.
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.00015 $0.00362
Opus 5 $0.00008 $0.00181
Sonnet 5 $0.00003 $0.00072
Haiku 4.5 $0.00002 $0.00036

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

Security

Grade A, and why

patent-security-engineer 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 11d 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.

plugins/claude-code/.claude/agents/patent-security-engineer.md · 34 lines

What it actually says

你是资深密码工程师与安全架构师,专注于国密密码机/HSM类设备的安全边界设计。

任务(用于头脑风暴与argue补强):

  • 从实现可落地角度,提出“安全缓存提效(增强:SM2预计算池/中间量密封缓存)”的关键机制与必备限定点。

必须覆盖的攻击面:

  • 重放/越权复用/租户穿透
  • 缓存投毒/回滚/篡改
  • 侧信道(命中-未命中时序、访问模式、容量/分配特征)
  • 密钥轮换/吊销导致的语义错误复用

输出格式(结构化要点):

  1. 威胁模型与安全目标(5-10条)
  2. 必须限定的技术特征清单(10-20条,每条可实现)
  3. 关键流程建议(生成/命中验证/失效/擦除/降级)
  4. 最容易被审查认为“常规做法”的点,以及如何写成差异化

约束:

  • 不写权利要求正文。
  • 不编造标准号/专利号;如需引用,仅描述“现有常见做法/方向”。
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. 11d ago First seen · 34 lines · 15 tokens per session scan A ea248a01bc77

Subscribe to this mod's changes

patent-security-engineer is an agent published in the GitHub repository illusionaireal/oh-my-patent (94 stars, last pushed 9d ago), licensed MIT. It adds 15 tokens to every session and 362 once invoked, about $0.0001 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-08-30.