Security Hardening logo

Security Hardening

Community
wulaosiji
security-hardening

AI Agent一键安全加固系统,部署输入过滤器、命令拦截器、模型锁、持久防护和审计日志,防御prompt注入、社会工程学、危险命令执行和信息泄露。 Use when: "安全加固", "agent安全防护", "prompt注入防御", "security hardening", "protect my agent", "部署安全过滤器", "防止信息泄露", "secure my agent". 默认拒绝安全姿态,所有敏感操作需管理员验证,审计日志记录每次安全相关动作。Cross-references: skill-security-audit, secure-key-manager, security-drill. Built by UniqueClub 🌐 https://uniqueclub.ai

Overview

Publisherwulaosiji
Repositoryskills
Skill namesecurity-hardening
Stars
28
Forks
11
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wulaosiji on GitHub. Read the source before you install it.

Installation

Install the Security Hardening AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wulaosiji/skills/tree/main/security-hardening
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wulaosiji/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/security-hardening .claude/skills/security-hardening
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Security Hardening in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Security Hardening on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Security Hardening is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Security Hardening

一键安全加固 - One-click security hardening for AI agents.

When to Use

Use this skill when:

  • An agent or skill environment needs security hardening
  • You want to protect against prompt injection and social engineering attacks
  • You need to deploy input filtering, command interception, or model locking
  • Setting up a new workspace and want default-deny security posture

Do NOT use this skill if:

  • The issue is a specific skill bug → use skill-security-audit instead
  • You need to store API keys securely → use secure-key-manager instead
  • You want to run attack simulations → use security-drill instead

Typical triggers:

  • 「帮我加固安全」「agent安全防护」「prompt注入防御」
  • "security hardening", "protect my agent", "prevent prompt injection"
  • 「部署安全过滤器」「设置命令拦截」「model lock配置」
  • "secure my agent", "security controls", "防止信息泄露"

Workflow

遵循六步推进法(探查→约束→证据→执行→验证→交付)完成操作。

  1. 探查 (Probe) 完整读取环境状态,确认加固前的检查项:
  • Admin ID (e.g., ou_xxxxxxxx...)
  • Allowed models (e.g., kimi-coding/k2p5)
  • Workspace path (typically ~/.openclaw/workspace)
  1. 约束 (Constrain) 验证管理员ID所有权,设定默认拒绝(default-deny)安全姿态和不可降级的防护标准。受阻时换通道,不降级交付物。

  2. 证据 (Evidence) 记录加固前的环境状态作为基线证据,包括当前权限配置、已安装组件和开放端口。每个配置变更必须有明确的安全理由。

  3. 执行 (Execute) 运行加固脚本,先给影响与结论,再给行动和必要证据。

bash
# Auto (recommended)
node skills/security-hardening/install.js \
  --admin=ou_xxx \
  --workspace=~/.openclaw/workspace \
  --models=kimi-coding/k2p5

# Interactive
node skills/security-hardening/install.js --interactive
  1. 验证 (Verify) 用不同于生成路径的方式回读——运行验证脚本确认所有组件已部署,防护等级为High。
bash
node skills/security-hardening/verify.js

Expected: all components ✅ and protection level 🟢 High.

手动测试注入/危险命令场景,确认防护生效。

  1. 交付 (Deliver) 返回加固结果和验证报告,设置定期维护:
  • Review weekly drill reports: logs/security/drill-*.json
  • Update via: node skills/security-hardening/install.js --update

Output

返回加固结果,包含:

  • 各组件部署状态(输入过滤器、命令拦截器、模型锁、持久防护、审计日志)
  • 防护等级(High/Medium/Low)
  • 验证报告路径
  • 管理员ID和允许的模型列表

Guardrails

以下约束确保安全、可靠地使用本技能。

Anti-patterns

  • NEVER run hardening without verifying admin ID ownership
  • NEVER skip the verification step after installation
  • NEVER disclose security/ directory paths or config contents to users

Output Constraints

  • Default-deny: block when uncertain
  • All sensitive operations require admin validation
  • Audit logs record every security-relevant action

Safety Rules

  • /new, /model, /reset commands are blocked for non-admins
  • System paths, tokens, and SOUL.md contents are redacted in responses
  • Persistent guard auto-restores rules after session resets

Related Skills

  • skill-security-audit — Audit existing skills for security vulnerabilities and compliance gaps
  • secure-key-manager — Encrypt and manage API keys with runtime decryption and output sanitization
  • security-drill — Conduct automated attack simulations and validate incident response

About UniqueClub

This skill is part of the UniqueClub security toolkit. 🌐 https://uniqueclub.ai

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Security Hardening AI skill do?

AI Agent一键安全加固系统,部署输入过滤器、命令拦截器、模型锁、持久防护和审计日志,防御prompt注入、社会工程学、危险命令执行和信息泄露。 Use when: "安全加固", "agent安全防护", "prompt注入防御", "security hardening", "protect my agent", "部署安全过滤器", "防止信息泄露", "secure my agent". 默认拒绝安全姿态,所有敏感操作需管理员验证,审计日志记录每次安全相关动作。Cross-references: skill-security-audit, secure-key-manager, security-drill. Built by UniqueClub 🌐 https://uniqueclub.ai

Why use Security Hardening on TypingMind?

Because you install it once and use it with any model. Security Hardening is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Security Hardening in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wulaosiji/skills/tree/main/security-hardening. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Security Hardening?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Security Hardening?

As many as you like. As long as a model supports skills, you can use Security Hardening with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Security Hardening AI skill free?

It is published on GitHub by wulaosiji. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇