wrdn-code-execution

Trace untrusted input paths to code-execution sinks in diffs.

Updated Aug 3, 2025
One-click install
npx skills add https://github.com/cschmatzler/nixos-config --skill wrdn-code-execution-cschmatzler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrdn-code-execution
Source: https://github.com/cschmatzler/nixos-config/tree/main/modules/_pi/skills/warden-skills/wrdn-code-execution
Command: npx skills add https://github.com/cschmatzler/nixos-config --skill wrdn-code-execution-cschmatzler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Detects bugs where untrusted input reaches a sink that produces code or command execution on the server. This includes command/shell injection, unsafe deserialization, server-side template injection, eval/Function/vm usage driven by user data, XXE-to-RCE gadgets, and prototype pollution that lands on a code-executing sink. It is designed to trigger on diffs that touch subprocess/exec calls, template rendering, deserialization of bytes, XML parsing, or deep-merge of user-controlled objects.

Core Features & Use Cases

  • Comprehensive coverage of code-execution sinks across languages and runtimes when untrusted data reaches a sink.
  • Traceability of paths from source (request body, headers, uploads, config) to sink, surfacing actionable findings with evidence.
  • Remediation guidance including canonical patterns, safe alternatives, and concrete mitigations for each detected path.

Quick Start

Provide a diff that touches a code-execution sink (for example, untrusted input used in subprocess calls, template rendering, deserialization, XML parsing, or a deep-merge) to trigger analysis and surface the end-to-end path.

Frequently Asked Questions about wrdn-code-execution

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect server-side template injection vulnerabilities in a pull request?

Server-side template injection is detected by tracing untrusted input from sources like request bodies to template rendering sinks. The analysis reviews diffs touching template engines, verifies the end-to-end execution path, and documents safe alternatives.

What causes unsafe deserialization leading to remote code execution?

Unsafe deserialization causes remote code execution when untrusted bytes reach a deserialization sink, triggering gadget chains. The analysis identifies these paths by reviewing diffs that handle byte deserialization and traces input to the executing sink.

How do I trace untrusted input to a command execution sink?

Tracing untrusted input to a command execution sink involves identifying sources like headers or uploads and following the data flow to subprocess or exec calls. The analysis enforces structured verification of these paths and provides remediation steps.

Can I check my code diffs for XXE to RCE gadget chains?

Yes, you can check diffs for XXE to RCE gadget chains by analyzing changes that touch XML parsing. The analysis traces untrusted input through XML parsers to code-executing sinks, surfacing actionable findings with evidence and concrete mitigations.

Does prototype pollution lead to server-side code execution paths?

Prototype pollution leads to server-side code execution when user-controlled objects are deep-merged and land on a code-executing sink. The analysis detects these paths by reviewing deep-merge operations and verifying the end-to-end execution flow.

What is the best way to find eval and vm usage driven by user data?

The best way to find eval and vm usage driven by user data is to trace untrusted input from request bodies or config to eval or Function sinks. The analysis covers these execution sinks across languages and documents safe alternatives.