Skip to content

Kubescape tool support#38

Merged
EItanya merged 5 commits into
kagent-dev:mainfrom
slashben:kubescape-tool-support
Jan 27, 2026
Merged

Kubescape tool support#38
EItanya merged 5 commits into
kagent-dev:mainfrom
slashben:kubescape-tool-support

Conversation

@slashben

@slashben slashben commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Add Kubescape Security Integration

This PR adds native Kubescape integration to kagent-tools, enabling AI assistants to analyze Kubernetes security posture directly from the cluster.

What is Kubescape?

Kubescape is a CNCF Kubernetes security platform that provides vulnerability scanning, configuration security analysis, and runtime observability. When deployed as an operator, it continuously monitors your cluster and stores security findings as Custom Resources.

New Capabilities

Security Scanning

  • List and inspect vulnerability manifests to find CVEs in container images
  • Review configuration scans to identify security misconfigurations (RBAC issues, missing security contexts, etc.)
  • Get detailed remediation guidance for specific vulnerabilities

Runtime Observability

  • Analyze ApplicationProfiles to see actual container behavior: running processes, file access patterns, syscalls, and Linux capabilities
  • Inspect NetworkNeighborhoods to understand real network traffic patterns (ingress/egress connections, DNS, ports)

New Tools

Tool Description
kubescape_check_health Verify Kubescape operator is installed and operational
kubescape_list_vulnerability_manifests List CVE scan results by image or workload
kubescape_list_vulnerabilities Get all CVEs in a specific manifest with severity breakdown
kubescape_get_vulnerability_details Deep dive into a specific CVE
kubescape_list_configuration_scans List security configuration scan results
kubescape_get_configuration_scan Get detailed misconfigurations for a workload
kubescape_list_application_profiles List runtime behavior profiles
kubescape_get_application_profile Inspect what a workload actually executes
kubescape_list_network_neighborhoods List network communication patterns
kubescape_get_network_neighborhood Analyze actual network connections

Dependency

Install Kubescape operator with desired capabilities:

helm upgrade --install kubescape kubescape/kubescape-operator -n kubescape --create-namespace
--set capabilities.vulnerabilityScan=enable
--set capabilities.continuousScan=enable
--set capabilities.runtimeObservability=enable

@dimetron

dimetron commented Jan 25, 2026

Copy link
Copy Markdown
Collaborator

@slashben - thanks for contributing, could you please rebase with latest main to resolve CI and linter errors

see slashben@d822411

- Introduced Kubescape tool support, including registration of various tools for health checks, vulnerability manifests, and configuration scans.
- Implemented specific error handling for Kubescape-related operations, providing detailed suggestions based on error types.

Signed-off-by: Ben <ben@armosec.io>
- Introduced checks for ApplicationProfiles and NetworkNeighborhoods CRDs in health checks, with corresponding recommendations for enabling runtime observability.
- Added handlers for listing and retrieving ApplicationProfiles and NetworkNeighborhoods, capturing runtime behavior and network communication patterns of workloads.

Signed-off-by: Ben <ben@armosec.io>
…ed test warnings

Signed-off-by: Ben <ben@armosec.io>
@slashben
slashben force-pushed the kubescape-tool-support branch from 1e705ef to 0a285b7 Compare January 26, 2026 07:09
@slashben

Copy link
Copy Markdown
Contributor Author

@slashben - thanks for contributing, could you please rebase with latest main to resolve CI and linter errors

see slashben@d822411

@dimetron done!

Signed-off-by: Ben <ben@armosec.io>
@slashben

Copy link
Copy Markdown
Contributor Author

@dimetron I have increased the timeout for golinter, can you re-run tests?

@EItanya
EItanya merged commit d7a3324 into kagent-dev:main Jan 27, 2026
5 checks passed
@slashben

Copy link
Copy Markdown
Contributor Author

@EItanya @dimetron thanks for the cooperation and the cool project!

mesutoezdil pushed a commit to mesutoezdil/tools that referenced this pull request Jun 14, 2026
* Add Kubescape integration
- Introduced Kubescape tool support, including registration of various tools for health checks, vulnerability manifests, and configuration scans.
- Implemented specific error handling for Kubescape-related operations, providing detailed suggestions based on error types.

Signed-off-by: Ben <ben@armosec.io>

* Enhance Kubescape tool by adding runtime observability features

- Introduced checks for ApplicationProfiles and NetworkNeighborhoods CRDs in health checks, with corresponding recommendations for enabling runtime observability.
- Added handlers for listing and retrieving ApplicationProfiles and NetworkNeighborhoods, capturing runtime behavior and network communication patterns of workloads.

Signed-off-by: Ben <ben@armosec.io>

* Fix linter errors: remove unused SBOM functions and suppress deprecated test warnings

Signed-off-by: Ben <ben@armosec.io>

* ci: increase golangci-lint timeout to 5m to prevent context deadline errors
Signed-off-by: Ben <ben@armosec.io>

* Updating timeouts for golint
Signed-off-by: Ben <ben@armosec.io>

---------

Signed-off-by: Ben <ben@armosec.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants