Agent skill

K8s Webhook Abuse

by wgpsec in wgpsec/AboutSecurity

Kubernetes Admission Webhook 滥用与策略引擎利用。当集群存在 Kyverno/OPA Gatekeeper/自定义 Webhook、DNS 扫描发现 kyverno-svc 或 gatekeeper 服务、或需要从 Mutating Webhook 提取注入的 Secret 时使用。核心手法:伪造 AdmissionReview 请求。任何在 K8s 中发现…

No licenceAuto-check passedBackend & APIs

Install K8s Webhook Abuse

skills CLI
$ npx skills add wgpsec/AboutSecurity --skill k8s-webhook-abuse -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wgpsec/AboutSecurity k8s-webhook-abuse --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wgpsec/AboutSecurity.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cloud/k8s-webhook-abuse .claude/skills/k8s-webhook-abuse && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
k8s-webhook-abuse
GitHub stars
1.8k
Token cost
~800 tokens
SKILL.md length
145 words
Files
2 (incl. references)
Skills in repo
64
Repo updated
First seen
Licence
None found

At a glance

Kubernetes Admission Webhook 滥用与策略引擎利用。当集群存在 Kyverno/OPA Gatekeeper/自定义 Webhook、DNS 扫描发现 kyverno-svc 或 gatekeeper 服务、或需要从 Mutating Webhook 提取注入的 Secret 时使用。核心手法:伪造 AdmissionReview 请求。任何在 K8s 中发现…

  • Works in 4 steps: 发现 Webhook 服务 → 构造 AdmissionReview 请求 → 解析返回的 Patch → …
  • Tasks that involve Container orchestration
  • SKILL.md covers Phase 1: 发现 Webhook 服务, Phase 2: 构造 AdmissionReview 请求, Phase 3: 解析返回的 Patch and Phase 4: 其他 Webhook 攻击, plus 2 more sections
  • Calls curl, kubectl and jq

What it does

K8s Webhook Abuse is an agent skill from wgpsec/AboutSecurity. Kubernetes Admission Webhook 滥用与策略引擎利用。当集群存在 Kyverno/OPA Gatekeeper/自定义 Webhook、DNS 扫描发现 kyverno-svc 或 gatekeeper 服务、或需要从 Mutating Webhook 提取注入的 Secret 时使用。核心手法:伪造 AdmissionReview 请求。任何在 K8s 中发现 Webhook 服务或策略引擎的场景都应使用此技能

Its SKILL.md is about 800 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/admission-review-template.md`).

It sits in Backend & APIs, covering Container orchestration and Webhooks. It works with Kubernetes. The repository describes itself as: Everything for pentest. | 渗透测试知识库,以 AI Agent 可执行的格式沉淀安全方法论。

When your agent uses it

  • Tasks that involve Container orchestration
  • Tasks that involve Webhooks

Example prompts

  • “Use the k8s-webhook-abuse skill to kubernete Admission Webhook 滥用与策略引擎利用。当集群存在 Kyverno/OPA Gatekeeper/自定义 Webhook、DNS 扫描发现 kyverno-svc 或 gatekeeper…”
  • “/k8s-webhook-abuse”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. 发现 Webhook 服务
  2. 构造 AdmissionReview 请求
  3. 解析返回的 Patch
  4. 其他 Webhook 攻击

What it can do on your machine

Read from SKILL.md and the folder at commit 914ffb5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • kubectl
    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl and kubectl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

K8s Webhook Abuse loads about 800 tokens when it runs, and up to ~1.4k if it reads all its reference files. Until then it costs about 60 tokens; SKILL.md has 145 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~800
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 145 words (~800 tokens).

“K8s 的 Admission Webhook 是集群安全的守门人,负责在资源创建/修改时执行策略(注入 Secret、环境变量等)。问题在于:很多 Webhook 不验证请求是否来自 API Server。这意味着攻击者可以从任意 Pod 直接向 Webhook 发送伪造的 AdmissionReview 请求,骗取本应注入到特权 Pod 中的 Secret。”

— opening of SKILL.md by wgpsec
name
k8s-webhook-abuse
metadata.tags
k8s,kubernetes,webhook,kyverno,opa,gatekeeper,admission,mutate,validate,策略引擎,准入控制
metadata.category
cloud

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in skills/cloud/k8s-webhook-abuse of wgpsec/AboutSecurity.

  • SKILL.md
  • references/admission-review-template.md

Open the folder on GitHubat commit 914ffb5

Compare with similar skills

K8s Webhook Abuse next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

K8s Webhook Abuse compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
K8s Webhook Abuse this skillwgpsec/AboutSecurity1.8k—~800Automated safety check: PassNone
Kopiur Designhome-operations/kopiur115—~2.4kAutomated safety check: PassAGPL-3.0
Gitops Cluster Debugfluxcd/agent-skills231—~4.2kAutomated safety check: PassApache-2.0
K8s Security PoliciesCybereason-Public/owLSM28012 repos~2kAutomated safety check: PassGPL-2.0
Implementing Image Provenance Verification With Cosignmukul975/Anthropic-Cybersecurity-Skills34k—~2.3kAutomated safety check: NotesApache-2.0
Implementing Opa Gatekeeper For Policy Enforcementmukul975/Anthropic-Cybersecurity-Skills34k—~2.7kAutomated safety check: PassApache-2.0

Similar skills

  • Kopiur Design

    home-operations/kopiur

    Design norms and locked decisions for the Kopiur Kopia-native Kubernetes backup operator (Rust/kube-rs).

    115 GitHub stars~2.4k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Gitops Cluster Debug

    fluxcd/agent-skills

    Debug and troubleshoot Flux CD on live Kubernetes clusters (not local repo files) via the Flux MCP server — inspects Flux resource status, reads controller logs, traces dependency chains, and…

    231 GitHub stars~4.2k tokensUpdated today
    DevOps & CloudAuto-check passed
  • K8s Security Policies

    Cybereason-Public/owLSM

    Comprehensive guide for implementing NetworkPolicy, PodSecurityPolicy, RBAC, and Pod Security Standards in Kubernetes.

    280 GitHub starsUsed in 12 repos~2k tokens
    Backend & APIsAuto-check passed
  • Implementing Image Provenance Verification With Cosign

    mukul975/Anthropic-Cybersecurity-Skills

    Signs and verifies container image provenance with Sigstore Cosign, covering key-based and keyless OIDC signing (Fulcio, Rekor transparency log), SLSA attestations, and enforcing signature…

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    SecurityAuto-check: notes
  • Implementing Opa Gatekeeper For Policy Enforcement

    mukul975/Anthropic-Cybersecurity-Skills

    Deploys OPA Gatekeeper via Helm as a Kubernetes admission controller and writes ConstraintTemplates with Rego plus instantiated Constraints to validate, mutate, or deny resource requests at…

    34k GitHub stars~2.7k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Implementing Rbac Hardening For Kubernetes

    mukul975/Anthropic-Cybersecurity-Skills

    Hardens Kubernetes RBAC by designing least-privilege Roles and ClusterRoles, auditing RoleBindings, eliminating cluster-admin sprawl, separating service accounts, and integrating an external OIDC…

    34k GitHub stars~2k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed

More from wgpsec/AboutSecurity

All 64 skills in this repo
  • A skill your agent uses whenever the user asks to add, absorb, migrate, port, update, merge, compare, or extract security knowledge into the AboutSecurity repository from any external resource such…

    1.8k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Ad Persistence

    wgpsec/AboutSecurity

    AD 域环境持久化技术。当已获取域管/本地管理员权限、需要建立持久访问以确保重启或密码更改后仍能回到目标环境时使用。覆盖主机级持久化(计划任务/注册表Run/COM劫持/WMI事件订阅/Windows服务/启动文件夹)、域级持久化(Golden Ticket/Silver Ticket/Skeleton…

    1.8k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Apt Emulation

    wgpsec/AboutSecurity

    APT 模拟与情报驱动红队方法论。基于已知 APT 组织的 TTP(MITRE ATT&CK)设计红队行动计划。当需要模拟特定威胁组织、设计高仿真攻击演练、或根据威胁情报制定攻击策略时使用

    1.8k GitHub stars~922 tokensUpdated today
    Auto-check passed
  • Argocd Tactics

    wgpsec/AboutSecurity

    ArgoCD 后渗透方法论:Redis缓存投毒集群接管、SSO认证绕过、未授权API枚举、恶意Application部署、Webhook SSRF、默认凭据利用。

    1.8k GitHub stars~510 tokensUpdated today
    Auto-check passed
  • C2 Beacon Analysis

    wgpsec/AboutSecurity

    C2 Beacon 配置提取与分析。当捕获到 Cobalt Strike/Sliver/Havoc 等 C2 框架的 Beacon 样本、内存 dump、或网络流量时使用。提取 C2 地址、通信协议、Malleable Profile、Watermark 等关键情报。红队视角:了解蓝队如何从 Beacon 提取 IOC 以改进 C2 OPSEC

    1.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • C2 Evasion Methodology

    wgpsec/AboutSecurity

    C2框架免杀方法论:分析 C2 源码、搜索检测规则(YARA/Sigma/Snort)、逐规则分析、修改源码绕过检测。当遇到 YARA/Sigma/Snort 规则触发告警、beacon/implant 被杀软检测到时使用。第一步:确认 implant/beacon 语言和架构;第二步:搜索对应检测规则并逐规则分析修改

    1.8k GitHub stars~557 tokensUpdated today
    Auto-check passed

Works with

Questions about K8s Webhook Abuse

What does K8s Webhook Abuse do?

Kubernetes Admission Webhook 滥用与策略引擎利用。当集群存在 Kyverno/OPA Gatekeeper/自定义 Webhook、DNS 扫描发现 kyverno-svc 或 gatekeeper 服务、或需要从 Mutating Webhook 提取注入的 Secret 时使用。核心手法:伪造 AdmissionReview 请求。任何在 K8s 中发现…. K8s Webhook Abuse is an agent skill from wgpsec/AboutSecurity.

When should I use K8s Webhook Abuse?

K8s Webhook Abuse fits situations like: tasks that involve Container orchestration; tasks that involve Webhooks.

How do I install K8s Webhook Abuse in Claude Code?

Run `npx skills add wgpsec/AboutSecurity --skill k8s-webhook-abuse -a claude-code`. Or copy the skill folder (skills/cloud/k8s-webhook-abuse in wgpsec/AboutSecurity) into .claude/skills/k8s-webhook-abuse in your project. Claude Code loads it when a task matches its description.

How do I install K8s Webhook Abuse in Codex?

Run `npx skills add wgpsec/AboutSecurity --skill k8s-webhook-abuse -a codex`. Or copy the skill folder (skills/cloud/k8s-webhook-abuse in wgpsec/AboutSecurity) into .agents/skills/k8s-webhook-abuse in your project. Codex loads it when a task matches its description.

Can I use K8s Webhook Abuse in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wgpsec/AboutSecurity --skill k8s-webhook-abuse -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/k8s-webhook-abuse, .gemini/skills/k8s-webhook-abuse, .github/skills/k8s-webhook-abuse and .opencode/skills/k8s-webhook-abuse in your project.

What does K8s Webhook Abuse need to run?

Going by SKILL.md and its folder, K8s Webhook Abuse needs the command-line tools its instructions call (curl, kubectl and jq).

Does K8s Webhook Abuse access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is K8s Webhook Abuse safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does K8s Webhook Abuse use?

No licence was found for K8s Webhook Abuse or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does K8s Webhook Abuse use?

About 800 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 629 tokens, read only when the agent opens those files.

What are the alternatives to K8s Webhook Abuse?

Skills that share tags, products or a category with K8s Webhook Abuse: Kopiur Design (home-operations/kopiur, 115 stars), Gitops Cluster Debug (fluxcd/agent-skills, 231 stars), K8s Security Policies (Cybereason-Public/owLSM, 280 stars) and Implementing Image Provenance Verification With Cosign (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains K8s Webhook Abuse?

wgpsec (a GitHub organization) maintains it in wgpsec/AboutSecurity, which has 1,778 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on October 10, 2026.

Source: wgpsec/AboutSecurity on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.