Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
text4shell-policy — 针对 cve-2022-42889 text4shell 的 ClusterImagePolicy 演示 | Kitploit
工具/GitHubGitHub/chainguard-dev/text4shell-policy
容器安全漏洞分析云安全DevSecOps供应链安全错误配置Archived
GitHubchainguard-dev/text4shell-policy

text4shell-policy

针对 cve-2022-42889 text4shell 的 ClusterImagePolicy 演示

查看仓库
4183年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Text4Shell 演示

本演示展示了如何使用 Sigstore 验证已签名的 SBOM,以在 Kubernetes 或命令行中对照 text4shell 策略进行检查。

选项1:使用 cue 与 cosign 2.0 检查您的远程 OCI 镜像是否受影响

root@kitploit:~
cosign verify-attestation --policy policy/text4shell.cue --type https://cyclonedx.org/bom --certificate-identity-regexp=.* --certificate-oidc-issuer-regexp=.* ghcr.io/chainguard-dev/text4shell-policy:main

选项2:使用 Enforce for Kubernetes 并使用此仓库构建的镜像进行检查

root@kitploit:~
chainctl policies create --group $DEMO_GROUP -f policy/text4shell-policy.yaml
kubectl label ns default policy.sigstore.dev/include=true --overwrite
kubectl run text4shell --image=ghcr.io/chainguard-dev/text4shell-policy:main

text4shell 诊断

清理

root@kitploit:~
kubectl delete pod text4shell --grace-period=0
chainctl policy delete -y $(chainctl policy list -o json | jq -r '[.items[] | select(.name == "vuln-cve-2022-42889-text4shell")][0].id')
kubectl label ns default policy.sigstore.dev/include-
下载工具