/security-agent-skills:hunting-helm-template-and-values-injectionfrom security-agent-skills
Hunts injection vulnerabilities in Helm charts where untrusted values render into Kubernetes manifests without quoting, enabling YAML structure injection, command injection, or privilege escalation.
Ships in security-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Kubernetes packaging templates turn a values file into manifests, and that rendering is a text transformation with the same injection hazards as any templating: a value spliced in without quoting can break out of its intended field and inject new YAML structure, and a value that flows into a sensitive field can grant more than the author intended. When the values come from a place a tenant, a pipeline, or a user can influence, an override that self-service platforms and multi-tenant chart deployments commonly allow, the rendered manifest can gain a privileged security context, a host mount, an extra RBAC rule, or an altered container command. The manifest looks authored by the chart, but part of it was supplied by the caller. You hunt this by tracing untrusted values into the template and finding where they become structure or reach a sensitive field.
Test chart rendering only against charts and clusters you own or are authorized to assess, on non-production namespaces. A confirming override can create a privileged workload, so render and inspect manifests rather than applying them where possible, and stay inside the authorized cluster. If you can't name the authorization, stop.
Establish which values are untrusted first. Determine which values a caller (tenant, pipeline, user) can set or override versus which are fixed by the chart author. This is the false-positive killer: a value hardcoded by the author and never overridable is not an injection source no matter how it is rendered. Name the untrusted values, then trace them.
Trace untrusted values into the template render. Follow each caller-influenceable value into the templates. The key distinction is whether the value is rendered as a quoted scalar into one field, or spliced in unquoted where it can introduce YAML structure, new keys, list items, or nested objects. An unquoted untrusted value is the structural-injection vector.
Find sensitive fields the value can reach. Identify where a value renders into a security-relevant field: the security context (privileged, run-as-root, capabilities), host mounts and host networking, container command and args, service-account binding, RBAC rules, and annotations that drive controllers. A value reaching any of these can widen permission or alter execution even without structural injection.
Check quoting and constraint at each render. A value rendered through proper quoting into a fixed field is safe; a value rendered raw, or into a field whose whole content it controls, is not. Confirm the chart quotes untrusted scalars, constrains which fields a value can populate, and does not let a value select or append privileged settings. Schema validation on the values, if present, is part of this.
Assess the rendered manifest, not just the template. Render the chart with a crafted override and read the resulting manifest: did the value stay in its field, or did it inject a new key, flip a security context, or add an RBAC rule? The rendered output is the ground truth for whether the boundary held.
Confirm and record. Confirm by supplying an in-scope override that injects YAML structure or renders a privileged setting into the manifest, inspecting the rendered output without applying a privileged workload to a real cluster. Kill the lead if every untrusted value is quoted into a fixed field, no value reaches a security-sensitive field it can widen, and values are schema-validated. Record the value, the template sink, and the injected structure or widened permission.
Confirm. A multi-tenant platform lets each tenant supply values to a shared chart. A pod annotation field renders a tenant value unquoted, and a crafted value injects an additional key that sets a privileged security context on the container. Rendering the chart with the override shows the privileged context in the manifest. Confirmed values injection to privileged workload,
high, remediation = quote every tenant-supplied scalar, constrain tenant values to a validated schema that cannot reach the security context or host fields, and render security-sensitive fields only from author-fixed values.Kill. Tenant values are validated against a schema that permits only non-privileged fields, every value is rendered quoted into a fixed field, and the security context, host settings, and RBAC rules are set entirely from author-controlled values a tenant cannot override. A crafted override renders inertly inside its field. Killed,
kill_reason= "untrusted values schema-constrained and quoted into fixed fields with security-sensitive settings author-controlled; no override injects structure or widens permission."
You need which values are caller-influenceable, how each is rendered (quoted scalar versus raw), the security-sensitive fields a value can reach, and any values schema. For each untrusted value, render the chart with a crafted override and inspect the manifest for injected structure or widened permission. Reading the template shows the intent; the rendered manifest shows whether the boundary held.
auditing-kubernetes-workload-and-rbac-hardening - the manifest-level companion; this skill finds how a
value injects a privileged setting, that one audits the setting itself.hunting-orm-and-query-builder-injection - the same value-versus-structure distinction applied to queries;
here the structure is YAML, not SQL.auditing-iac-module-and-provider-supply-chain - the chart's own supply chain: where the chart and its
subcharts come from, alongside the values that drive them.adjudicating-taint-paths - use it to confirm a caller-supplied value reaches a security-sensitive template
field through subchart and values indirection.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
194 skills in this plugin
/adjudicating-dependency-cve-reachabilityDecide whether a CVE in a dependency actually exposes your application before you scramble to patch: is the vulnerable function on a real call path from your code, do the trigger preconditions hold, and can an attacker control the input that reaches it. Use when an advisory, SCA scan, or dependency bot flags a CVE and you must separate a genuine exposure from unreachable noise, or justify why you are or are not affected. Covers pinning the vulnerable symbol, call-path reachability, precondition checks, and taint from your entry points./adjudicating-taint-pathsDecide whether a whitebox lead is a real bug by tracing taint from an untrusted source to a dangerous sink and confirming every hop against live source. Use after a scanner, a candidate list, or your own reading surfaces a "this looks dangerous" sink (SQL exec, system/exec, file open, deserialize, template render, redirect target, memcpy) and you must decide whether attacker- controlled input actually reaches it - or kill the lead with evidence. Covers forward and reverse taint, witness paths, sanitizer analysis, and the evidence rules that separate a finding from a false positive./auditing-account-abstraction-and-paymaster-trustAudit an ERC-4337 account-abstraction deployment for trust misplaced in the user-operation lifecycle: a smart account whose validation accepts a signature or nonce it should reject, a paymaster that agrees to sponsor gas for operations it should not so an attacker drains its deposit, a bundler or entry-point assumption that lets a user operation be replayed or reordered for gain, and validation logic that reads mutable state or reaches outside its allowed scope. Covers smart-contract wallets, paymasters, bundlers, and the entry point in an account-abstraction stack where a user operation is validated and sponsored before it executes. Use when a user operation is validated, paid for, and executed by separate parties and that trust split is the boundary. The crafted user operation is the source, the drained paymaster or unauthorized execution is the sink, and the over-permissive validation or sponsorship rule is the bug./auditing-account-recovery-and-reset-trustAudit password reset and account recovery flows for the trust that lets an attacker take over an account: a reset token that is guessable, long-lived, reusable, or not bound to the account it was issued for, a recovery path that verifies a weaker factor than login and bypasses multi-factor, a reset link whose host comes from an attacker-controllable header so the token leaks, and a recovery that trusts an unverified email or phone change to redirect the reset. Covers the recovery surface of authentication systems, where resetting a credential or recovering access is the alternate door into an account. Use when an application offers password reset or account recovery and that flow is a path to authentication. The attacker-driven recovery request is the source, the account it takes over is the sink, and the weak token, bypassed factor, or leaked reset link that grants it is the bug./auditing-admission-control-policy-gapsAudit cluster admission control for gaps that let a non-compliant or hostile workload through: a validating webhook that fails open when its backend is unreachable, a policy that scopes by namespace or label and misses the namespaces that matter, a mutating webhook whose changes are trusted downstream, and an ordering or exemption that lets a privileged pod bypass the checks meant to stop it. Covers Kubernetes admission webhooks and policy engines that are supposed to enforce workload security at create and update time. Use when admission policies are the control that keeps privileged, unsigned, or over-permissioned workloads out of the cluster. The workload submitted for admission is the source, the admitted resource is the sink, and the policy gap that let it through is the bug./auditing-ai-agent-permissionsAudit what an AI agent is actually allowed to do versus what its task needs. Covers excessive agency (tools, scopes, and autonomy beyond the job), missing human-in-the-loop gates on irreversible actions, over-broad credentials and their blast radius, sandbox and code-interpreter escape, unfiltered egress, and unbounded resource or spend (denial-of-wallet). Use when granting an agent a tool or scope, reviewing an agent's permission posture, or deciding which actions need approval. The model's restraint is not a control; permissions are.npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skillsOther plugins' skills for the same job