/security-agent-skills:hunting-expression-language-injectionfrom security-agent-skills
Hunts expression-language injection where untrusted input reaches server-side evaluators (SpEL, OGNL, MVEL, JEXL, Jakarta/JSP EL). Use when the application evaluates expressions built from attacker-influenced strings.
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.
Expression languages exist to let configuration, templates, and rules evaluate small snippets at runtime, Spring Expression Language, OGNL, MVEL, JEXL, and the Jakarta and JSP EL contexts among them. Most expose far more than arithmetic: type resolution, method invocation, and a handle to the runtime. When untrusted input is concatenated into, or supplied as, an expression that one of these evaluators compiles, the attacker's text is executed with the evaluator's full power, which typically reaches process execution or reflection. This class caused some of the largest breaches on record. You find it by locating every runtime expression evaluation and asking whether untrusted input shapes the expression rather than only supplying a bound variable.
Test expression evaluation only against applications you own or are authorized to assess, on non-production infrastructure. A confirming expression runs on the target and typically reaches code execution, so treat every proof as a live intrusion inside the authorized scope. If you can't name the authorization, stop.
Establish the expression evaluators first. Inventory every place a string is evaluated as an expression: explicit calls to an expression parser, template engines backed by an EL, framework features that evaluate EL (data binding, view resolution, error templates, routing rules), and rules engines. This is the false-positive killer: an evaluator fed only fixed developer strings with untrusted data passed as bound variables is not injectable. Name the evaluators first.
Separate the expression from its variables. For each evaluator, determine what is the expression (executed as code) and what is a variable (a bound value). Untrusted data as a bound variable is safe; untrusted data that becomes part of the expression text is the vulnerability. This distinction is the entire adjudication.
Trace untrusted input into the expression text. Follow request parameters, headers, path segments, and stored values into any expression that is concatenated, formatted, or supplied wholesale to the evaluator. Framework indirection matters here: a value bound to a field that is later evaluated as EL, or a message rendered through an EL template, is a real path even without an explicit parser call.
Confirm the language reaches a dangerous capability. These languages typically expose type access and method invocation, so an injected expression can reach a runtime exec, a reflective load, or a file operation. Confirm the specific evaluator and context permit type or method access rather than a locked-down subset, because some contexts restrict the available surface.
Check the defenses that actually stop it. The durable fix is to never build the expression from untrusted input: keep expressions as fixed developer strings and pass untrusted data only as bound variables. A restricted evaluation context, a sandboxed EL, or a parser configured without type access also reduces the surface. A denylist of keywords does not, because the languages have many equivalent forms. Determine which stands here.
Confirm and record. Confirm by supplying an in-scope expression that proves evaluation of attacker text, an arithmetic identity that changes the response or an out-of-band signal, without a destructive command. Kill the lead if untrusted input only ever reaches the evaluator as a bound variable, if the expression text is entirely developer-authored, or if the evaluation context is sandboxed without type or method access. Record the source, the evaluator, the expression-versus-variable split, and the capability reached.
Confirm. A routing rule evaluates an expression that includes a request header to decide a redirect target, concatenating the header into the expression text. A crafted header supplies an expression that resolves a type and invokes a method, and a benign arithmetic-and-callback payload confirms the attacker text is evaluated with type access. Confirmed expression-language injection to remote code execution,
critical, remediation = remove untrusted input from the expression text, keep the rule as a fixed expression and pass the header only as a bound variable, and evaluate in a context without type access.Kill. Every evaluator receives a fixed developer-authored expression, and all untrusted values reach it only as named bound variables through the evaluation context; the one templating path uses a sandboxed context without type or method access. No crafted input becomes expression text. Killed,
kill_reason= "expressions are developer-authored and untrusted data enters only as bound variables in a sandboxed context; no attacker text is evaluated as code."
You need every runtime expression evaluation, the split between expression text and bound variables at each, the untrusted inputs that reach the expression text, and the evaluation context's capabilities. For each evaluator, ask whether untrusted data becomes code or stays a value, and whether type and method access are available. Reading the evaluator and its context shows intent; a benign arithmetic-and-callback proof shows attacker text is evaluated.
hunting-template-injection-sandbox-escapes - server-side template injection is the templating-engine
cousin; both evaluate attacker text, and templates often sit on top of an EL.hunting-orm-and-query-builder-injection - the same value-versus-structure distinction applied to
queries rather than expressions.finding-fail-open-flaws - a restricted evaluation context that silently falls back to a full one is a
fail-open path worth checking alongside this.adjudicating-taint-paths - use it to confirm untrusted input reaches the expression text through data
binding and templating indirection.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub unboundcompute/security-agent-skills --plugin security-agent-skills194 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.Other plugins' skills for the same job