Back to skill

Security audit

alibabacloud-idaas-ack-m2m-federated-credential

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports broad optional permissions, credential exposure risk, and access to ECS inventory outside the described federation workflow; part of the analysis was incomplete.

Consider the reported credential exposure and broad permissions before installing. The scan was partial, so it cannot establish that the uninspected portion is safe; the verdict is suspicious, not a claim that the author acted maliciously.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (54)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Selecting a CLI profile is a supporting implementation detail, but the commands themselves query ECS instances rather than ACK clusters, Kubernetes workloads, IDaaS federation resources, or PAM/STS access. The supplied chunk establishes no connection between this ECS inventory access and the declared workflow. It therefore accesses resources outside the stated scope, although it performs no visible destructive actions.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
88% confidence
Finding

The concern is not the kubeconfig keyword, but the explicit requirement to request permissions for the complete workflow even when only M2M is requested. Granting optional PAM authorization, cluster preparation and cleanup capabilities unnecessarily expands the selected identity's privileges; conversational confirmation before use does not constrain an attacker who compromises that identity.

Content

Scanner excerpt · SKILL.md (reported line 15)May include surrounding context.

md
and continue. For a RAM user or role, give the RAM access request below before any ACK or EIAM calls. If the user already identified the selection as a RAM user or role, give the request before STS. Repeat the applicable checks when the selected identity changes.
3. **Give RAM users and roles one authorization request for the complete Skill.** Use the [complete custom policy JSON](references/ram-policies.md#custom-policy-json-for-m2m-federation). Include discovery, both token sources, temporary kubeconfig, RRSA and webhook preparation, federation, PAM role authorization and STS verification, and cleanup in the initial request, even when the user starts with M2M only. Scope it to the approved resources and provide complete JSON to save in Script Editor and attach to the selected CLI identity. Get separate confirmation at execution time for cloud writes, including the exact PAM role grant and cleanup.

If the user says the selected account has no access, provide the entire checklist and

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 30)May include surrounding context.

md
bernetes access

After cloud discovery, offer choices for how to run Kubernetes commands: **Skill runs on this machine**, **User runs in ACK Workbench**, or **User runs in their own terminal**. In localized questions and options, name the actor explicitly as the **Skill** or the **user**. Avoid first- and second-person pronouns for execution responsibility. For direct access, offer the selected cluster's available public and private API Server endpoints as choices. Use [connection selection and kubeconfig discovery](references/preparation.md#select-how-to-connect) before asking for a file or context. Alibaba Cloud CLI calls to ACK or EIAM use RAM permissions. At the Kubernetes stage, check the actual Kubernetes identity and its existing access before requesting grants. Report each applicable access check as verified, blocked, or pending.

- **Agent-run public or private direct access.** Identify the terminal or runner and its actual kubeconfig identity. For public access, tell the cust

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 32)May include surrounding context.

md
endpoints as choices. Use [connection selection and kubeconfig discovery](references/preparation.md#select-how-to-connect) before asking for a file or context. Alibaba Cloud CLI calls to ACK or EIAM use RAM permissions. At the Kubernetes stage, check the actual Kubernetes identity and its existing access before requesting grants. Report each applicable access check as verified, blocked, or pending.

- **Agent-run public or private direct access.** Identify the terminal or runner and its actual kubeconfig identity. For public access, tell the customer which environment will connect, the API Server endpoint it uses, and the exact access-control resource to check. Report connectivity for the tested environment. [Public API Server access guide](references/preparation.md#public-api-server-access)
- **User-run Kubernetes.** Identify the account or RAM role signed in to ACK Workbench or the identity in the user's chosen terminal. Provide copy-ready commands for that terminal. The agent may u

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 34)May include surrounding context.

md
[Public API Server access guide](references/preparation.md#public-api-server-access)
- **User-run Kubernetes.** Identify the account or RAM role signed in to ACK Workbench or the identity in the user's chosen terminal. Provide copy-ready commands for that terminal. The agent may use a separate CLI identity for OpenAPI calls. [User-run Kubernetes workflow](references/workbench.md)
- **ACK Kubernetes RBAC.** Explain that the owning Alibaba Cloud account has default Kubernetes access with its own kubeconfig. A RAM user or role needs grants on the selected cluster, including when it can already obtain a kubeconfig or access another cluster. Verify using the same identity and context that will run kubectl. For a known workload, start with `get` on the named namespace, ServiceAccount and Pod, plus `pods/exec` on the selected Pod for the in-Pod checks. Request list or workload preparation permissions only when that operation is needed. [Check and grant ACK RBAC](references/preparation.md#kub

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 34)May include surrounding context.

md
s.** Identify the account or RAM role signed in to ACK Workbench or the identity in the user's chosen terminal. Provide copy-ready commands for that terminal. The agent may use a separate CLI identity for OpenAPI calls. [User-run Kubernetes workflow](references/workbench.md)
- **ACK Kubernetes RBAC.** Explain that the owning Alibaba Cloud account has default Kubernetes access with its own kubeconfig. A RAM user or role needs grants on the selected cluster, including when it can already obtain a kubeconfig or access another cluster. Verify using the same identity and context that will run kubectl. For a known workload, start with `get` on the named namespace, ServiceAccount and Pod, plus `pods/exec` on the selected Pod for the in-Pod checks. Request list or workload preparation permissions only when that operation is needed. [Check and grant ACK RBAC](references/preparation.md#kubernetes-access-by-login-identity)

Offer **Select an existing namespace** or **Skill creates a new test name

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 38)May include surrounding context.

md
ew test namespace** in the user's language. For the new path, use agent-run `kubectl`. If a user-run path was selected, let the user choose a direct connection for the agent. Check `create namespaces` for the agent's identity before any write. If it is denied, give the administrator the scoped grant instructions for that identity. After namespace creation, verify the workload binding before creating the ServiceAccount or Pod. [Permissions by workload path](references/preparation.md#choose-permissions-for-the-workload-path)

As soon as the cluster and scope are known, check the applicable Kubernetes access before workload discovery, preparation or verification. For an authentication failure, verify the kubeconfig. For an RBAC denial, report the operator, cluster, resource and verb, and give the ACK administrator the steps to grant that access. Repeat the check with the same Kubernetes identity after the grant. Continue when the existing or updated access passes.

## Other prerequisites

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 17)May include surrounding context.

md
the label when combining execution and network choices, for example **Skill runs on this machine via the public API Server**. Use the cluster session in Workbench. For direct access from either terminal, offer the available **public API Server** and **private API Server** endpoints as choices. Confirm the execution environment can reach the selected endpoint before testing RBAC.

For agent-run access, inspect the files selected by `KUBECONFIG` or the default `~/.kube/config` in that terminal. A kubeconfig stores cluster connection settings and credentials or a credential reference. A context is its named combination of cluster, user and default namespace. Get the current context and list context names locally. Inspect only the endpoint and context metadata needed to match the selected ACK cluster and access path. Use a single verified match or offer multiple verified matches by name. [Kubernetes kubeconfig and contexts](https://kubernetes.io/docs/concepts/configuration/organize-cluster

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 24)May include surrounding context.

kubectl config get-contexts -o name

text

If no matching context is available, offer to obtain a temporary kubeconfig from ACK with the selected cloud CLI identity, use an existing local kubeconfig file the user selects, or switch to a user-run path. The temporary option requires `cs:DescribeClusterUserKubeconfig` on the cluster. Ask for a file location only when the user chooses an existing file that the agent cannot locate. Read the context choices from that file. For a temporary kubeconfig, set `PrivateIpAddress` to match the chosen endpoint, use a short `TemporaryDurationMinutes`, and store the returned config in a private session-local file. Keep the credentials out of chat and command output. Verify connectivity and permissions against the selected context. [ACK temporary kubeconfig API](https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/developer-reference/api-cs-2015-12-15-describeclusteruserkubeconfig)

## Kubernetes access by login identity

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 24)May include surrounding context.

kubectl config get-contexts -o name

text

If no matching context is available, offer to obtain a temporary kubeconfig from ACK with the selected cloud CLI identity, use an existing local kubeconfig file the user selects, or switch to a user-run path. The temporary option requires `cs:DescribeClusterUserKubeconfig` on the cluster. Ask for a file location only when the user chooses an existing file that the agent cannot locate. Read the context choices from that file. For a temporary kubeconfig, set `PrivateIpAddress` to match the chosen endpoint, use a short `TemporaryDurationMinutes`, and store the returned config in a private session-local file. Keep the credentials out of chat and command output. Verify connectivity and permissions against the selected context. [ACK temporary kubeconfig API](https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/developer-reference/api-cs-2015-12-15-describeclusteruserkubeconfig)

## Kubernetes access by login identity

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 24)May include surrounding context.

kubectl config get-contexts -o name

text

If no matching context is available, offer to obtain a temporary kubeconfig from ACK with the selected cloud CLI identity, use an existing local kubeconfig file the user selects, or switch to a user-run path. The temporary option requires `cs:DescribeClusterUserKubeconfig` on the cluster. Ask for a file location only when the user chooses an existing file that the agent cannot locate. Read the context choices from that file. For a temporary kubeconfig, set `PrivateIpAddress` to match the chosen endpoint, use a short `TemporaryDurationMinutes`, and store the returned config in a private session-local file. Keep the credentials out of chat and command output. Verify connectivity and permissions against the selected context. [ACK temporary kubeconfig API](https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/developer-reference/api-cs-2015-12-15-describeclusteruserkubeconfig)

## Kubernetes access by login identity

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 24)May include surrounding context.

kubectl config get-contexts -o name

text

If no matching context is available, offer to obtain a temporary kubeconfig from ACK with the selected cloud CLI identity, use an existing local kubeconfig file the user selects, or switch to a user-run path. The temporary option requires `cs:DescribeClusterUserKubeconfig` on the cluster. Ask for a file location only when the user chooses an existing file that the agent cannot locate. Read the context choices from that file. For a temporary kubeconfig, set `PrivateIpAddress` to match the chosen endpoint, use a short `TemporaryDurationMinutes`, and store the returned config in a private session-local file. Keep the credentials out of chat and command output. Verify connectivity and permissions against the selected context. [ACK temporary kubeconfig API](https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/developer-reference/api-cs-2015-12-15-describeclusteruserkubeconfig)

## Kubernetes access by login identity

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ram-policies.md (reported line 18)May include surrounding context.

md
uster | `cs:DescribeRegions` and, for the regional list, `cs:DescribeClustersForRegion`. Provide a known cluster ID to skip these lookups. | None for the cloud lists. |
| Select an EIAM instance | `eiam:ListInstances` in the selected EIAM region. Provide a known EIAM region and instance ID to skip the list. | None. |
| Check RRSA and injection webhook readiness | `cs:DescribeClusterDetail` on the selected cluster. Add `cs:GetClusterAddonInstance` for webhook mode. | None. |
| Obtain a temporary kubeconfig from ACK | `cs:DescribeClusterUserKubeconfig` on the selected cluster. Include when requesting a temporary kubeconfig. | Check the resulting Kubernetes identity before using the configuration. |
| Prepare missing RRSA prerequisites after approval | Readiness Actions plus `cs:ModifyCluster` to enable RRSA, or `cs:ListAddons` and `cs:InstallClusterAddons` to install the missing webhook. | None for these ACK OpenAPI calls. |
| List resources to select a workload | The cloud discovery Act

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/ram-policies.md (reported line 18)May include surrounding context.

md
skip these lookups. | None for the cloud lists. |
| Select an EIAM instance | `eiam:ListInstances` in the selected EIAM region. Provide a known EIAM region and instance ID to skip the list. | None. |
| Check RRSA and injection webhook readiness | `cs:DescribeClusterDetail` on the selected cluster. Add `cs:GetClusterAddonInstance` for webhook mode. | None. |
| Obtain a temporary kubeconfig from ACK | `cs:DescribeClusterUserKubeconfig` on the selected cluster. Include when requesting a temporary kubeconfig. | Check the resulting Kubernetes identity before using the configuration. |
| Prepare missing RRSA prerequisites after approval | Readiness Actions plus `cs:ModifyCluster` to enable RRSA, or `cs:ListAddons` and `cs:InstallClusterAddons` to install the missing webhook. | None for these ACK OpenAPI calls. |
| List resources to select a workload | The cloud discovery Actions apply if choosing the ACK cluster. | `list` on namespaces, then `list` on ServiceAccounts and Pods in the selecte

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/workflow.md (reported line 5)May include surrounding context.

Run the helper from the skill root. Use a private writable directory for state, for example an existing private session directory outside the repository. Keep shell variables in the current terminal and never include credential material.

Use the user-run Kubernetes workflow if the user executes the kubectl commands. The examples below use the agent's local kubeconfig.

bash
export ALIBABA_CLOUD_PROFILE=approved-cli-profile

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 33)May include surrounding context.

md
y use a separate CLI identity for OpenAPI calls. [User-run Kubernetes workflow](references/workbench.md)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 70)May include surrounding context.

md
xisting Pod. For a new workload, use [explicit ServiceAccount token projection](references/workbench.md#create-a-pod-with-an-explicit-token-projection). Namespa

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 42)May include surrounding context.

md
## Other prerequisites

Run the helper on Linux or macOS with Alibaba Cloud CLI 3.5.1 or later and Python 3.9 or later. The Kubernetes execution terminal needs compatible kubectl and a usable kubeconfig. See [preparation and troubleshooting](references/preparation.md) and [required RAM and Kubernetes permissions](references/ram-policies.md).

1. An existing ACK managed cluster running Kubernetes 1.22 or later with RRSA OIDC enabled, and a running Pod using the intended namespace and ServiceAccount. It needs an explicit token projection or the existing ACK webhook token mount. An active RRSA webhook is required for the webhook path. The verification container must have Python 3.
2. A running EIAM Enterprise instance with a valid license and machine identity management (M2M) enabled. Use the EIAM instance selection below.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 79)May include surrounding context.

md
re reporting verification. An EIAM configuration readback or successful Token mount alone cannot establish M2M issuance.
3. For optional STS, use `roles` to list the managed Alibaba Cloud accounts in PAM and let the user select one. List the existing enabled user roles for that account and let the user select a target by name and ARN. Confirm the exact role, M2M application, and single-role data rule before writing. Run `grant` with `--expected-role-arn` set to that confirmed ARN, then `verify --sts`. The final identity check must identify the target role. The target role is distinct from the RRSA injection role. If the user also requests business API validation, use only the explicitly authorized read-only operation and honor the selected role's scope.
4. Report the selected resources, verified stages, relevant request IDs and any unfinished step. Keep JWTs, bearer tokens, AKs, secrets, kubeconfig and STS components out of the conversation and command output.

## Recovery and cleanup

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 17)May include surrounding context.

example Skill runs on this machine via the public API Server. Use the cluster session in Workbench. For direct access from either terminal, offer the available public API Server and private API Server endpoints as choices. Confirm the execution environment can reach the selected endpoint before testing RBAC.

For agent-run access, inspect the files selected by KUBECONFIG or the default ~/.kube/config in that terminal. A kubeconfig stores cluster connection settings and credentials or a credential reference. A context is its named combination of cluster, user and default namespace. Get the current context and list context names locally. Inspect only the endpoint and context metadata needed to match the selected ACK cluster and access path. Use a single verified match or offer multiple verified matches by name. Kubernetes kubeconfig and contexts

bash
kubectl config current-context

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 17)May include surrounding context.

example Skill runs on this machine via the public API Server. Use the cluster session in Workbench. For direct access from either terminal, offer the available public API Server and private API Server endpoints as choices. Confirm the execution environment can reach the selected endpoint before testing RBAC.

For agent-run access, inspect the files selected by KUBECONFIG or the default ~/.kube/config in that terminal. A kubeconfig stores cluster connection settings and credentials or a credential reference. A context is its named combination of cluster, user and default namespace. Get the current context and list context names locally. Inspect only the endpoint and context metadata needed to match the selected ACK cluster and access path. Use a single verified match or offer multiple verified matches by name. Kubernetes kubeconfig and contexts

bash
kubectl config current-context

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 24)May include surrounding context.

kubectl config get-contexts -o name

text

If no matching context is available, offer to obtain a temporary kubeconfig from ACK with the selected cloud CLI identity, use an existing local kubeconfig file the user selects, or switch to a user-run path. The temporary option requires `cs:DescribeClusterUserKubeconfig` on the cluster. Ask for a file location only when the user chooses an existing file that the agent cannot locate. Read the context choices from that file. For a temporary kubeconfig, set `PrivateIpAddress` to match the chosen endpoint, use a short `TemporaryDurationMinutes`, and store the returned config in a private session-local file. Keep the credentials out of chat and command output. Verify connectivity and permissions against the selected context. [ACK temporary kubeconfig API](https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/developer-reference/api-cs-2015-12-15-describeclusteruserkubeconfig)

## Kubernetes access by login identity

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 29)May include surrounding context.

md
## Kubernetes access by login identity

- **Owning Alibaba Cloud account.** Use the kubeconfig issued to the primary account for the selected cluster. ACK grants this account cluster access by default, so the operator can proceed without a separate Kubernetes RBAC grant. [ACK authorization overview](https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/user-guide/authorization-overview/)
- **RAM user or RAM role.** Check the identity in the actual execution context, such as the user's Workbench session or the role used to obtain the runner's temporary kubeconfig. RAM policy governs cloud OpenAPI calls such as `cs:DescribeClusterUserKubeconfig`. Kubernetes RBAC on the selected cluster governs kubectl. A successful kubeconfig request or an administrator's successful connection leaves the operator's RBAC pending until checked.

### Grant and verify ACK RBAC

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 29)May include surrounding context.

md
## Kubernetes access by login identity

- **Owning Alibaba Cloud account.** Use the kubeconfig issued to the primary account for the selected cluster. ACK grants this account cluster access by default, so the operator can proceed without a separate Kubernetes RBAC grant. [ACK authorization overview](https://help.aliyun.com/zh/ack/ack-managed-and-ack-dedicated/user-guide/authorization-overview/)
- **RAM user or RAM role.** Check the identity in the actual execution context, such as the user's Workbench session or the role used to obtain the runner's temporary kubeconfig. RAM policy governs cloud OpenAPI calls such as `cs:DescribeClusterUserKubeconfig`. Kubernetes RBAC on the selected cluster governs kubectl. A successful kubeconfig request or an administrator's successful connection leaves the operator's RBAC pending until checked.

### Grant and verify ACK RBAC

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · references/preparation.md (reported line 67)May include surrounding context.

kubectl --context "$CONTEXT" --request-timeout=10s -n "$NS" auth can-i create "pods/$POD" --subresource=exec

text

Check `get` on the exec subresource when required by the client transport. Confirm actual exec during the selected Pod's probe. For `Unauthorized`, check the selected kubeconfig, credential identity and expiration. For `Forbidden`, identify the missing RBAC verb and resource scope. If the helper reports a combined authentication or RBAC error, use the direct check to distinguish them. A timeout or TLS error calls for a connection check from that terminal. Repeat the failed operation with the same identity after the issue is resolved. [kubectl auth can-i](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_auth/kubectl_auth_can-i/)

### Create a new test namespace