Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

install-kube-agents

Latest version: vgit:cdfc2de8a77e4baa4a73776205468b5af0fb295d

Overview

Last scanned
24 Nov 2026
AI: Benign Agent skill Publisher: gke-labs
130 Stars
47 Forks
1 Versions
Python Repo language

Scan summary

install-kube-agents was last scanned on 24 Nov 2026 at commit cdfc2de8. Risk score 39 of 100 (low). High-severity rules fired. The AI review did not flag it.

  • Releases: Single version.
  • Findings: 1 rule fired in commit cdfc2de8 (4 instances: 4 high). The score describes this commit only.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
cdfc2de8 1 rule fired

Rules fired in cdfc2de8: 1

Findings

4 High

Findings for commit cdfc2de8. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Instructs fetching and running remote code

The skill's instructions or bundled files tell the agent to download content from a remote location and run it. This pattern can be used to change behavior after a review, but it also appears in legitimate installers. Check the source.

HIGH
Checking access…

🔒 Create a free account to see all 4 findings with descriptions and instance counts

The score describes cdfc2de8; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

install-kube-agents Skill

Install kube-agents for an operator: detect their environment and interview them for the choices that shape the install, preview it with --dry-run, and apply only after they confirm. Follow Install workflow.

What install.sh actually does

It is a front-end, not a second provisioner. It loads install.env (the install's hand-authored configuration), collects anything still missing, generates terraform/examples/full-install/terraform.tfvars from the result, and then runs the composition's lifecycle.sh apply — the Terraform root in terraform/examples/full-install/ owns every GCP resource and installs the Helm chart (charts/kube-agents) that owns every Kubernetes one. The chart installs the operator and the PlatformAgent into the kubeagents-system namespace (DEFAULT_NAMESPACE; --agent-namespace overrides it). Terraform state goes to a GCS bucket (<project>-kube-agents-tfstate, versioned, prefix kube-agents/<cluster>), so uninstall.sh and upgrade.sh can find the install from a fresh clone. The installer sources scripts/installer/installer_common.sh before its first prompt, so its defaults and accepted values are the ones defined there; that file is where a default changes.

Order of operations: resolve the image/source ref → check CLI prerequisites (including terraform, which it offers to install; make is not needed) → put the repository on disk and verify it against that ref → load install.env → interview for what is missing → generate terraform.tfvars → refuse a service account another install in the project owns (check_service_account_ownership, before the summary and the dry-run exit) → run lifecycle.sh apply. The source check happens before the interview, so a bad ref fails in seconds rather than after a dozen answers. Some steps stay gcloud calls outside the apply — before it, CMEK, the Workload Identity pool and NetworkPolicy enforcement on a pre-existing cluster; after it, the managed-OTel scope on a cluster it created — and the GitHub App PEM import runs through the Minty CLI so the key never enters Terraform state. Re-running the installer (or its --menu Day-2 panel's Save & Apply) reconciles every change through one terraform apply.

Install workflow

Run the three stages in order. Stages 1 and 2 create and change nothing in the project or cluster; nothing is applied until the operator confirms in stage 3. Pass --non-interactive to every install.sh call: a tool call has no terminal for the installer's /dev/tty prompts, so the interview happens in chat instead.

After every install.sh call, read the exit code before /tmp/kube-agents-install-report.json. Several exits (the service-account ownership check, input validation, a missing tool under --dry-run, the GitHub App PEM import) write no report and leave an earlier run's in place.

Resolve the latest stable release tag from GitHub Releases (e.g. 0.4.0; a GitLab install needs 0.9.0 or later, a Bitbucket install 0.29.0 or later) first, and substitute it for <RELEASE_VERSION> in every command you run or hand over; never leave the placeholder unrendered.

Stage 1: Detect and interview

Read the environment; change nothing:

gcloud config get-value project
gcloud config get-value compute/region
gcloud auth application-default print-access-token >/dev/null && echo "ADC: ok"
gcloud container clusters list --project <PROJECT_ID>
gcloud storage ls gs://<PROJECT_ID>-kube-agents-tfstate/kube-agents/

No ADC: ok means no Application Default Credentials. Stage 3 cannot run without them unless one of the google provider's credential variables is set — GOOGLE_OAUTH_ACCESS_TOKEN, GOOGLE_CREDENTIALS, GOOGLE_CLOUD_KEYFILE_JSON or GCLOUD_KEYFILE_JSON, which Terraform reads before ADC (stage 2 says why). With none of them set, have the operator run gcloud auth application-default login now.

A prefix in that bucket means an install already exists in the project, and so does an install.env where the installer looks for one: $KUBE_AGENTS_INSTALL_ENV, beside install.sh, the current directory, or $HOME/kube-agents/ (where the curl | bash form clones). Ask whether the operator wants upgrade-kube-agents instead. A re-run reads that install.env; scripts/installer/README.md owns the precedence between it, flags and defaults.

Propose the detected value or the default for each decision below, and have the operator confirm or change it. Never ask for a secret in chat: the installer reads each one from the environment it runs in, where the operator sets it.

  1. Project and region — --gcp-project-id, --gcp-region. Defaults: the active gcloud project, and its compute/region or, when that is unset, DEFAULT_REGION.
  2. Cluster — create one (--gke-cluster-name, default DEFAULT_CLUSTER_NAME; Autopilot unless --gke-cluster-mode=standard or a zonal region) or install onto one from the list. An existing cluster can need changes; stage 2 lists them.
  3. Model provider — --model-provider. vertex_ai authenticates through Workload Identity and needs no API key; gemini, anthropic and openai read GEMINI_API_KEY, ANTHROPIC_API_KEY or OPENAI_API_KEY, and gemini also finds a key stored in Secret Manager. The default is DEFAULT_MODEL_PROVIDER; pass the flag for any other choice. openai_compatible points the gateway at the operator's own OpenAI-compatible server and has no defaults: ask for the served model name (--model-default-name), the base URL with /v1 (--openai-compatible-api-base), and the server pod's port for an in-cluster Service (--openai-compatible-target-port) or the CIDRs of a private address (--openai-compatible-egress-cidrs). The key (OPENAI_COMPATIBLE_API_KEY) and a CA Secret for a private CA are optional. sap (SAP AI Core) and any other LiteLLM provider slug read their credentials from a Secret the operator creates in the agent's namespace and names with --litellm-env-secret (never ask for the service key itself); a slug outside the menu also needs --model-default-name. The same flag names the Secret holding an openai_compatible gateway's OAuth2 client credentials.
  4. How the operator reaches the agent — a terminal when no chat flag is passed (see Handing over a chat-less install), --enable-google-chat, or --enable-slack (tokens in SLACK_BOT_TOKEN and SLACK_APP_TOKEN). --enable-web-console adds a browser chat page for chat-less installs, reached by port-forward (Web console). --enable-hermes-dashboard=true adds the Hermes Web UI, which a port-forward cannot reach under gVisor; the PlatformAgent reference gives its access path.
  5. Where the GitOps repository lives, only if the operator wants GitOps pull requests. Ask which forge holds it. On GitHub, pass --gitops-org, --gitops-repo and --github-app-id; see GitOps Repository & GitHub Token Minter Configuration. On GitLab (gitlab.com or a self-managed instance), pass --gitops-forge=gitlab, --gitops-repo and, for a self-managed instance, --gitops-host; see GitOps Repository on GitLab. Never combine the GitHub App flags with --gitops-forge=gitlab: the installer refuses them. On Bitbucket Cloud or a Bitbucket Data Center instance, pass --gitops-forge=bitbucket or --gitops-forge=bitbucket-datacenter, --gitops-repo and, for Data Center, --gitops-host; see GitOps Repository on Bitbucket. On a GitHub Enterprise Server, pass the GitHub flags and --gitops-host (and --gitops-ca-file for a private CA); see GitHub Enterprise Server.
  6. Whether scale-up failures get investigated — --enable-stockout-investigator (non-interactive default false; interactive ./install.sh prompts and defaults to yes when a Google Chat or Slack home channel is set, and no otherwise; turns on the Pub/Sub adapter too). Always offer it. On, the cluster autoscaler's noScaleUp logs for the install's own cluster reach the Platform Agent, which diagnoses the Pending workload (quota, ComputeClass fallbacks, capacity advice) and opens a remediation pull request. Off, an unschedulable pod is still triaged from its FailedScheduling events, but nothing reads the autoscaler's verdicts or proposes a fix. It adds a Log Router sink, a Pub/Sub topic and subscription, and grants (publisher for the sink, subscriber and viewer for the agent); setting ENABLE_STOCKOUT_INVESTIGATOR=false in install.env removes them on the next run. A pull request needs the GitOps repository from decision 5, and a chat post needs a home channel (--google-chat-home-channel or --slack-home-channel): a proactive post with no home channel is refused and kept for a digest (or goes to Slack when both platforms are on); the gateway logs the refusal and the PlatformAgent carries HomeChannelUnset.

Leave --permission-set at read-only unless the operator asks for custom. The flags in Adopting a cluster the operator already owns are the operator's decision, never a default you fill in.

Stage 2: Dry run

Run the installer with the agreed flags and --dry-run. It validates the Terraform configuration and, when Application Default Credentials exist, runs terraform plan against local state; it creates nothing, the state bucket included:

curl -fsSL https://raw.githubusercontent.com/gke-labs/kube-agents/<RELEASE_VERSION>/install.sh | bash -s -- \
  --dry-run \
  --non-interactive \
  --gcp-project-id="YOUR_GCP_PROJECT_ID" \
  --gke-cluster-name="platform-agent-host" \
  --gcp-region="us-central1" \
  --model-provider="gemini" \
  --permission-set="read-only"

A dry run regenerates terraform.tfvars, so back up a real deployment's copy first. It writes no install.env: a dry run provisions nothing, so it has no install to record, and an existing one is never rewritten. It also installs no missing tool — a machine without any installer prerequisite (terraform, helm, gh, gke-gcloud-auth-plugin and the rest) fails it with Dry-run validation will not install missing tools, naming the tool; install it and re-run.

Go through the output with the operator:

  • DRY_RUN_SUCCESS in /tmp/kube-agents-install-report.json does not clear an existing cluster. The dry run exits before the consent gates, so it never reports REFUSED_*.
  • On an existing cluster, the Existing Cluster Mutations (Adoption) summary and any Dry-run: skipping terraform plan because ... warning are the questions to put to the operator, as Adopting a cluster the operator already owns sets out.
  • No Application Default Credentials; skipping the resource preview means no plan ran, and on an existing cluster the NetworkPolicy and node-pool checks were skipped too, so their warnings are missing. Have the operator run gcloud auth application-default login and repeat stage 2. Do not go to stage 3 without ADC or one of the provider's credential variables (GOOGLE_OAUTH_ACCESS_TOKEN, GOOGLE_CREDENTIALS, GOOGLE_CLOUD_KEYFILE_JSON, GCLOUD_KEYFILE_JSON): the apply's Terraform needs one, the installer's own auth check tests neither, and on an existing cluster the Workload Identity, CMEK and NetworkPolicy changes run before Terraform starts — the install fails after making them. A credential variable does not bring the preview back, since the dry run's plan gate checks ADC alone.
  • No ... API key was provided is a warning, not a failure: the install would finish with an agent that cannot call its model. Resolve the key before stage 3.

When the operator would rather run the apply themselves, use --generate-only instead: it runs the consent gates and reports REFUSED_* itself.

Stage 3: Confirm and apply

When the operator chooses an adoption flag in stage 2, re-run stage 2 with it: the flag changes both the adoption summary and whether terraform plan runs at all, so the first preview no longer shows what will run. Summarize the project, the cluster (new or existing, and each change the run makes to an existing one), the namespace, the model provider and how the operator reaches the agent. Wait for an explicit go-ahead. Then run the last stage 2 command without --dry-run:

curl -fsSL https://raw.githubusercontent.com/gke-labs/kube-agents/<RELEASE_VERSION>/install.sh | bash -s -- \
  --non-interactive \
  --gcp-project-id="YOUR_GCP_PROJECT_ID" \
  --gke-cluster-name="platform-agent-host" \
  --gcp-region="us-central1" \
  --model-provider="gemini" \
  --permission-set="read-only"
  • Non-zero exit: the install did not finish. Relay the error the installer printed. A REFUSED_* status leaves the cluster unchanged — relay the options and stop.
  • SUCCESS, or SUCCESS_PENDING_ROLLOUT (applied, but a deployment had not reported ready; relay the kubectl rollout status command the installer printed): relay how to reach the agent — the terminal commands in Handing over a chat-less install (including the kubectl port-forward command for the web console when --enable-web-console was enabled), which also fetch credentials, or the chat platform the operator enabled — then confirm the pods with kubectl get pods -n kubeagents-system. Relay network_policy_enforcement when it is not enforced (Machine-Readable Results).

The kubectl commands in this skill assume the default namespace; under --agent-namespace, substitute its value.

Local sources and pre-confirmed runs

The same invocation runs from the official release bundle (recommended) or a checkout pinned to the release tag; add --dry-run for stage 2 exactly as above. Run an apply without stages 1 and 2 only when the operator has already confirmed these exact flags, or in CI.

curl -fsSL https://github.com/gke-labs/kube-agents/releases/download/<RELEASE_VERSION>/kube-agents-<RELEASE_VERSION>.tar.gz | tar -xz
cd kube-agents-<RELEASE_VERSION>
./install.sh --non-interactive \
  --gcp-project-id="YOUR_GCP_PROJECT_ID" \
  --gke-cluster-name="platform-agent-host" \
  --gcp-region="us-central1" \
  --model-provider="gemini" \
  --permission-set="read-only"

If a Git checkout is required, clone pinned to the release tag:

git clone --branch <RELEASE_VERSION> https://github.com/gke-labs/kube-agents.git
cd kube-agents
./install.sh --non-interactive \
  --gcp-project-id="YOUR_GCP_PROJECT_ID" \
  --gke-cluster-name="platform-agent-host" \
  --gcp-region="us-central1" \
  --model-provider="gemini" \
  --permission-set="read-only"

Do not clone main to deploy an official release: manifests and CRD schemas on main evolve continuously and diverge from released container images. Running install scripts against a mismatched checkout will fail verify_local_source_ref to prevent deploying incompatible manifests.

Generate-Only Mode

To generate configuration files (install.env and terraform.tfvars), run pre-apply validation checks, and hand off the apply to the operator without creating or mutating cloud resources, use --generate-only:

curl -fsSL https://raw.githubusercontent.com/gke-labs/kube-agents/<RELEASE_VERSION>/install.sh | bash -s -- \
  --generate-only \
  --non-interactive \
  --gcp-project-id="YOUR_GCP_PROJECT_ID" \
  --gke-cluster-name="platform-agent-host" \
  --gcp-region="us-central1"

In --generate-only mode, the installer:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • GitHub gke-labs/kube-agents/install-kube-agents

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229