security-testing

A security-testing procedure for systems that handle money, payments, or other valuable transfers through infrastructure that cannot be trusted.

In plain words
What is it for?
It helps classify changes, choose required security-test categories, map threats, check invariants, review mechanics, and prepare tooling for continuous integration.
Why use it?
It turns security review into a sequence covering threats, safety conditions, implementation details, and CI checks, while treating AI output as untrusted.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ocentra/ocentra-enforcer/security-testing
Any agent
npx skills add ocentra/ocentra-enforcer --skill security-testing
Clone the repo
git clone --depth 1 https://github.com/ocentra/ocentra-enforcer

Made for: Claude Code, Codex.

Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00062 $0.01283
Opus 5 $0.00031 $0.00642
Sonnet 5 $0.00012 $0.00257
Haiku 4.5 $0.00006 $0.00128

Measured 2d ago against content hash d608f8d4cf88, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-testing 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 2d 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.

skills/security-testing/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Testing (Money-Critical Mandate)

tier: "T3 advisory — no mechanization possible: this SKILL sequences human/agent judgment across
  Track H (h01-h07); it produces no Finding and gates nothing. Mechanized enforcement lives in the
  h01-h07 Rust Validator rows and the profiles/money-critical-security.json profile, not here."
stages: "route -> h01 classify -> h02 required-categories -> h03 threat-map -> h05 invariants -> h06 mechanics -> h07 tooling/CI"
domain: "GENERIC: any system handling money/payments/value behind untrusted infra (Cloudflare/AWS/API
  gateways are NOT security boundaries; internal APIs are hostile). NOT game- or crypto-specific;
  crypto/blockchain is one OPTIONAL instance, never assumed."
doctrine: "AI output is untrusted input. Silence != permission. If a change cannot be proven safe
  under adversarial conditions, it is unsafe. AI cannot waive/simplify/remove tests or downgrade
  security tests to unit tests."
mechanized_home: "profiles/money-critical-security.json (neutral, no branding) + crates/enforcer-security/src/policy_ingest.rs (ingest a project's own spec into that profile shape)"

This SKILL is prose walkthrough, not an enforcement engine. It carries the label above deliberately: nothing in this file emits a Finding, and nothing in this file gates a merge. The T1/T2 mechanized gates live in the Track H Validator rows (crates/enforcer-security/src/rules/*.rs) and the loadable profile (profiles/money-critical-security.json). Use this SKILL to decide WHICH of those gates apply to the change in front of you, in order.

When To Use This

Any change that creates, transfers, modifies, or destroys value; triggers a blockchain instruction; signs a message; computes an economic/reward/credit/ balance/cooldown value; performs a rollback or compensation; depends on time-based state; or touches a kill switch. If unsure whether a unit is money-critical, treat it as money-critical (fail-closed default, doctrine §8.2).

Read the full file on GitHub · 92 lines

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. 2d ago First seen · 92 lines · 62 tokens per session scan A d608f8d4cf88

Subscribe to this mod's changes

security-testing is a skill published in the GitHub repository ocentra/ocentra-enforcer (0 stars, last pushed 6d ago), licensed MIT. It adds 62 tokens to every session and 1,283 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens