ralphctl-security-and-hardening

ralphctl-security-and-hardening is a skill for Claude Code, Codex from lukas-grigis/ralphctl. It costs 116 tokens per session (2,218 once invoked), scanned A, original, MIT.

A security guide for code that handles untrusted input, secrets, permissions, external systems, or personal data. It uses threat modelling and requires checks such as input validation, authorization, and safe handling of secrets.

In plain words
What is it for?
Reviewing authentication and access changes, protecting secrets, checking destructive operations, assessing dependencies, and limiting sensitive data exposure.
Why use it?
It helps find security problems before code reaches users, especially where data crosses a trust boundary.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reviewing authentication and access changes, protecting secrets, checking destructive operations, assessing dependencies, and limiting sensitive data exposure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lukas-grigis/ralphctl/ralphctl-security-and-hardening
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.

Any agent
npx skills add lukas-grigis/ralphctl --skill ralphctl-security-and-hardening
Clone the repo
git clone --depth 1 https://github.com/lukas-grigis/ralphctl

Made for: Claude Code, Codex.

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 ralphctl-security-and-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-security-and-hardening/github.svg)](https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-security-and-hardening)
Your own site
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-security-and-hardening"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-security-and-hardening/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 ralphctl-security-and-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-security-and-hardening"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-security-and-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,218 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.00116 $0.02218
Opus 5.5 $0.00046 $0.00887
Sonnet 5.5 $0.00023 $0.00444
Haiku 4.5 $0.00012 $0.00222

Measured 4d ago against content hash 15a34b61f228, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ralphctl-security-and-hardening 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 4d 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.

src/integration/ai/skills/bundled/ralphctl-security-and-hardening/SKILL.md · 160 lines

How it starts

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

Security and Hardening

Adapted from addyosmani/agent-skills — "Security and Hardening" (MIT). Adapted for ralphctl's harness contract.

Treat every external input as hostile, every secret as sacred, and every authorization check as mandatory. Security is not a phase — it is a constraint on every line that touches untrusted data, credentials, or an external system. The concrete controls differ by stack (a web service, a CLI, a library, a data pipeline); the principles below do not. Apply the ones that match what the code actually does and skip the ones for surfaces it does not have.

When this applies

  • Plan — map the trust boundaries a ticket touches and turn abuse cases into verification criteria within the ticket's scope. A task that changes authentication, stores a new class of sensitive data, adds an external integration, or loosens an access rule should say so explicitly in its steps, so the implementing session is authorised to make that change rather than having to stop and escalate it.
  • Execute — when writing code, apply the tiers below as you go. When reviewing a change (the evaluator), use them as the security lens: a reachable vulnerability blocks completion, and a sensitive change the task never asked for is a finding even when the code itself is sound.

Threat model first

Controls bolted on without a threat model are guesses. Before hardening — or before judging someone else's hardening — spend a few minutes thinking like an attacker:

  1. Map the trust boundaries. Where does untrusted data enter? Network requests, form fields, uploaded files, webhooks, third-party APIs, message queues, CLI arguments, config files, and LLM output — plus local values that only look internal because the OS handed them to you: another process's command line or environment, filenames on a shared volume, a path inside a job payload. Trust follows who wrote a value, not which channel delivered it.
  2. Name the assets. What is worth stealing or breaking? Credentials, personal data, payment data, privileged actions, the integrity of files on disk.
  3. Run STRIDE over each boundary — a quick lens, not a ceremony:

Read the full file on GitHub · 160 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed · -100 lines 15a34b61f228
  2. 1mo ago First seen · 260 lines · 116 tokens per session scan A 360cbf39ca00

Subscribe to this mod's changes

ralphctl-security-and-hardening is a skill published in the GitHub repository lukas-grigis/ralphctl (24 stars, last pushed yesterday), licensed MIT. It adds 116 tokens to every session and 2,218 once invoked, about $0.0005 per session on Opus 5.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-10-13.

Related

ralphctl-security-and-hardening compared with skills from other repositories

ralphctl-security-and-hardening next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ralphctl-security-and-hardeninglukas-grigis/ralphctlSkill24yesterdayMITA116Claude Code, Codex
reviewdevoxx/DevoxxGenieIDEAPluginSkill697yesterdayMITA90Claude Code
web-accessopen-octo/octo-agentSkill1592d agoMITA139Claude Code, Codex
skill-creatoropen-octo/octo-agentSkill1592d agoMITA123Claude Code, Codex
atomic-tdddamusix/atomic-claudeSkill1172d agoMITA142Claude Code, Codex
save-learningcaliber-ai-org/ai-setupSkill1.3k2mo agoMITA71Claude Code, Codex
repothewaltero/mythos-routerSkill3105d agoMITA11Claude Code, Codex