K8s Security Review
简介
K8s Security Review
原始描述
Analyzes Kubernetes YAML manifests for security misconfigurations, best practices violations, and compliance risks.
通过你的 Agent 添加
安装目录:k8s-security-review/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Kubernetes Security Review 是一个面向云原生基础设施的安全分析工具,通过调用 ToolWeb 提供的专业安全 API,对用户提交的 Kubernetes YAML 清单进行静态安全扫描。使用时,用户只需将待检测的 YAML 内容(支持单资源或多资源文件)作为参数传入,工具即可返回包含风险等级、问题分类、修复建议的结构化分析报告。
该工具覆盖 Pod、Deployment、Service、ConfigMap、Secret、RBAC、Network Policy 等全量 Kubernetes 资源类型,检测规则涵盖安全上下文缺失、特权容器运行、latest 标签使用、资源限制违规、敏感信息暴露等 20+ 类常见配置缺陷。输出结果按 HIGH/MEDIUM/LOW 三级 severity 分级,并附带合规评分(compliance_score),便于团队量化安全水位。
显著优点
专业深度:检测规则基于 Kubernetes 安全最佳实践(CIS Benchmark、NSA/CISA 加固指南)设计,能识别特权模式、root 用户运行、可写根文件系统等高危配置。
流程集成:无本地依赖的纯 API 架构使其天然适配 CI/CD 流水线,可在代码提交阶段(pre-commit)或镜像构建前自动触发安全门禁。
成本可控:提供免费档位(5 次/天、50 次/月),适合个人开发者和小团队验证;付费方案阶梯清晰,企业级需求可弹性扩展。
透明可信:服务方 ToolWeb 拥有 CISSP/CISM 认证背景,API 端点采用 TLS 1.2+ 加密,且具备完整的公开文档和视频教程支持。
潜在局限
数据外传风险:YAML 内容需发送至外部 API(api.mkkpro.com),可能暴露 Secret 值、私有仓库路径、内部主机名等敏感信息,需用户自行脱敏。
外部依赖单点:核心功能完全依赖商业 API 服务,若服务端故障、接口变更或终止运营,工具将不可用;免费额度对大型团队可能吃紧。
离线场景受限:无本地扫描能力,无法在无外网环境(如 air-gapped 数据中心)使用,敏感场景需配合 kube-score、kube-linter 等开源工具替代。
适合群体
- DevOps 工程师与 SRE:在 GitOps 流程中嵌入安全检测门禁
- 平台安全团队:批量审计多集群基线配置合规性
- 云原生初学者:通过实时反馈学习 K8S 安全配置规范
- 中小型企业:快速获得专业级扫描能力而无需自建安全平台
使用风险
性能与稳定性:API 调用存在网络延迟,大体积 YAML 可能触发超时;建议设置重试机制并监控服务可用性。
数据隐私合规:传输内容可能含 GDPR 管辖的个人信息或企业机密,需确认服务方数据处理条款(DPA)并获取用户明确授权。
误报与漏报:静态分析无法覆盖运行时行为(如动态注入的 sidecar),高危生产环境建议结合 Admission Controller、Falco 等运行时防护形成纵深防御。
技能正文
name: Kubernetes Security Review
description: Analyzes Kubernetes YAML manifests for security misconfigurations, best practices violations, and compliance risks.
Overview
Kubernetes Security Review is a specialized security analysis tool that scans Kubernetes YAML manifests for vulnerabilities, misconfigurations, and deviations from industry security best practices. Organizations using Kubernetes in production environments can leverage this tool to identify and remediate security gaps before deployment.
The tool performs comprehensive static analysis on Kubernetes resources, detecting issues such as missing security contexts, overly permissive RBAC configurations, exposed secrets, resource limits violations, and container image best practices. This proactive approach helps prevent common Kubernetes security incidents and ensures compliance with organizational security policies.
Ideal users include DevOps engineers, platform security teams, Kubernetes administrators, and organizations implementing security-as-code practices. The tool integrates seamlessly into CI/CD pipelines, policy enforcement workflows, and infrastructure-as-code validation processes.
Usage
Sample Request
{
"yaml_content": "apiVersion: v1\nkind: Pod\nmetadata:\n name: web-app\n namespace: production\nspec:\n containers:\n - name: nginx\n image: nginx:latest\n ports:\n - containerPort: 80\n securityContext:\n runAsNonRoot: false\n privileged: true\n resources:\n requests:\n memory: \"64Mi\"\n cpu: \"250m\"\n volumeMounts:\n - name: config\n mountPath: /etc/config\n volumes:\n - name: config\n secret:\n secretName: db-credentials"
}
Sample Response
{
"manifest_valid": true,
"findings": [
{
"severity": "HIGH",
"rule_id": "K8S-001",
"category": "Security Context",
"message": "Container running in privileged mode - potential security risk",
"resource": "Pod/web-app/containers/nginx",
"recommendation": "Set privileged: false and use specific capabilities instead"
},
{
"severity": "HIGH",
"rule_id": "K8S-002",
"category": "Container Image",
"message": "Using image tag 'latest' is not recommended in production",
"resource": "Pod/web-app/containers/nginx",
"recommendation": "Pin image to a specific version tag (e.g., nginx:1.25.3)"
},
{
"severity": "MEDIUM",
"rule_id": "K8S-003",
"category": "Security Context",
"message": "Container should run as non-root user",
"resource": "Pod/web-app/containers/nginx",
"recommendation": "Set runAsNonRoot: true and specify a non-zero uid"
},
{
"severity": "MEDIUM",
"rule_id": "K8S-004",
"category": "Pod Security",
"message": "Pod does not enforce read-only root filesystem",
"resource": "Pod/web-app",
"recommendation": "Set readOnlyRootFilesystem: true where possible"
}
],
"summary": {
"total_findings": 4,
"high_severity": 2,
"medium_severity": 2,
"low_severity": 0,
"compliance_score": 65
}
}
Endpoints
POST /review-k8s
{
"manifest_valid": true,
"findings": [
{
"severity": "HIGH",
"rule_id": "K8S-001",
"category": "Security Context",
"message": "Container running in privileged mode - potential security risk",
"resource": "Pod/web-app/containers/nginx",
"recommendation": "Set privileged: false and use specific capabilities instead"
},
{
"severity": "HIGH",
"rule_id": "K8S-002",
"category": "Container Image",
"message": "Using image tag 'latest' is not recommended in production",
"resource": "Pod/web-app/containers/nginx",
"recommendation": "Pin image to a specific version tag (e.g., nginx:1.25.3)"
},
{
"severity": "MEDIUM",
"rule_id": "K8S-003",
"category": "Security Context",
"message": "Container should run as non-root user",
"resource": "Pod/web-app/containers/nginx",
"recommendation": "Set runAsNonRoot: true and specify a non-zero uid"
},
{
"severity": "MEDIUM",
"rule_id": "K8S-004",
"category": "Pod Security",
"message": "Pod does not enforce read-only root filesystem",
"resource": "Pod/web-app",
"recommendation": "Set readOnlyRootFilesystem: true where possible"
}
],
"summary": {
"total_findings": 4,
"high_severity": 2,
"medium_severity": 2,
"low_severity": 0,
"compliance_score": 65
}
}
POST /review-k8s
Analyzes a Kubernetes YAML manifest for security issues, misconfigurations, and best practices violations.
Method: POST
Path: /review-k8s
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
yaml_content |
string | Yes | Complete Kubernetes YAML manifest as a string. Can include single or multiple resources (Pods, Deployments, Services, ConfigMaps, Secrets, RBAC definitions, Network Policies, etc.). |
Request Body:
{
"yaml_content": "<kubernetes-yaml-manifest>"
}
Response (200 OK): Returns a comprehensive security analysis report including:
manifest_valid: Boolean indicating if YAML is syntactically validfindings: Array of security findings, each containing:severity: One of HIGH, MEDIUM, LOWrule_id: Unique identifier for the security rulecategory: Type of finding (e.g., Security Context, Container Image, Pod Security, RBAC, Secrets Management)message: Detailed description of the issueresource: Kubernetes resource path affectedrecommendation: Remediation guidance
summary: Aggregate statistics including total findings, severity breakdown, and compliance score
Response (422 Validation Error): Returned when the request payload fails validation.
{
"detail": [
{
"loc": ["body", "yaml_content"],
"msg": "field required",
"type": "value_error.missing"
}
]
}
Pricing
Plan
Calls/Day
Calls/Month
Price
Free
5
50
Free
Developer
20
500
$39/mo
Professional
200
5,000
$99/mo
Enterprise
100,000
1,000,000
$299/mo
About
| Plan | Calls/Day | Calls/Month | Price |
|---|---|---|---|
| Free | 5 | 50 | Free |
| Developer | 20 | 500 | $39/mo |
| Professional | 200 | 5,000 | $99/mo |
| Enterprise | 100,000 | 1,000,000 | $299/mo |
ToolWeb.in - 200+ security APIs, CISSP & CISM, platforms: Pay-per-run, API Gateway, MCP Server, OpenClaw, RapidAPI, YouTube.
- toolweb.in
- portal.toolweb.in
- hub.toolweb.in
- toolweb.in/openclaw/
- rapidapi.com/user/mkrishna477
- youtube.com/@toolweb-009
References
- Kong Route: https://api.mkkpro.com/security/k8s-security-review
- API Docs: https://api.mkkpro.com:8022/docs
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。