跳到主要内容
知仓学习社ZHICANG

container-security-scanner

Container image and Kubernetes security scanning for CVEs, misconfigurations, and compliance

不碰外部(只输出文字)无严重或高危命中a5c-ai/babysitter

它会碰到什么

扫了多少2 个文本文件,6 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Container Security Scanner Skill

Purpose

Automated container image and Kubernetes security scanning to identify vulnerabilities, misconfigurations, secrets, and compliance issues in containerized environments.

Capabilities

Image Vulnerability Scanning

  • Scan container images for known CVEs using Trivy, Grype, or Anchore
  • Detect vulnerabilities in OS packages and application dependencies
  • Generate SBOM (Software Bill of Materials) in CycloneDX or SPDX format
  • Track vulnerability severity (Critical, High, Medium, Low)

Dockerfile Security Analysis

  • Check Dockerfile best practices and security issues
  • Identify privileged container configurations
  • Detect hardcoded secrets in Dockerfiles
  • Verify base image security and freshness

Kubernetes Security Scanning

  • Run Kubernetes CIS benchmark checks using kube-bench
  • Analyze pod security policies and standards
  • Check RBAC configurations for over-permissive access
  • Detect insecure network policies

Secrets Detection

  • Scan images for embedded secrets and credentials
  • Identify API keys, tokens, and passwords in layers
  • Check environment variable configurations

Image Signature Verification

  • Verify container image signatures using cosign
  • Validate image provenance and attestations
  • Check image registry security configurations

Compliance Reporting

  • Generate compliance reports (CIS, NIST, PCI-DSS)
  • Map findings to compliance controls
  • Track remediation status and timelines

Integrations

  • Trivy: Comprehensive vulnerability scanner for containers
  • Grype: Container image vulnerability scanner
  • Syft: SBOM generation tool
  • kube-bench: Kubernetes CIS benchmark checker
  • Falco: Runtime security monitoring
  • Anchore: Enterprise container security platform
  • cosign: Container image signing and verification

Target Processes

  • Container Security Scanning Process
  • DevSecOps Pipeline Integration
  • IaC Security Scanning
  • Kubernetes Security Hardening
  • Container Image Build Pipeline

Input Schema

{
  "type": "object",
  "properties": {
    "imageName": {
      "type": "string",
      "description": "Container image name with tag"
    },
    "registry": {
      "type": "string",
      "description": "Container registry URL"
    },
    "dockerfilePath": {
      "type": "string",
      "description": "Path to Dockerfile for static analysis"
    },
    "kubeManifestPath": {
      "type": "string",
      "description": "Path to Kubernetes manifests"
    },
    "scanType": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": ["vulnerability", "config", "secrets", "compliance", "sbom"]
      }
    },
    "severityThreshold": {
      "type": "string",
      "enum": ["CRITICAL", "HIGH", "MEDIUM", "LOW"]
    }
  },
  "required": ["imageName"]
}

Output Schema

{
  "type": "object",
  "properties": {
    "scanId": {
      "type": "string"
    },
    "imageName": {
      "type": "string"
    },
    "scanTimestamp": {
      "type": "string",
      "format": "date-time"
    },
    "vulnerabilities": {
      "type": "object",
      "properties": {
        "critical": { "type": "integer" },
        "high": { "type": "integer" },
        "medium": { "type": "integer" },
        "low": { "type": "integer" },
        "findings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "cveId": { "type": "string" },
              "severity": { "type": "string" },
              "package": { "type": "string" },
              "fixedVersion": { "type": "string" },
              "description": { "type": "string" }
            }
          }
        }
      }
    },
    "misconfigurations": {
      "type": "array"
    },
    "secrets": {
      "type": "array"
    },
    "complianceStatus": {
      "type": "object"
    },
    "recommendations": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}

Usage Example

skill: {
  name: 'container-security-scanner',
  context: {
    imageName: 'myapp:v1.2.3',
    registry: 'registry.example.com',
    scanType: ['vulnerability', 'config', 'secrets'],
    severityThreshold: 'HIGH'
  }
}

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,796
本站分层T1
该仓技能数2115
原文件路径library/specializations/security-compliance/skills/container-security-scanner/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 2115 个技能