Overview

FieldValue
ID1096
NameUpdate Deployment Scale (Resource Abuse/DoS)
Risk CategoryDenial of Service
Risk LevelHigh
Role TypeRole
API Groupsapps
Resourcesdeployments/scale
Risky Verb Combinations[update] · [patch]
TagsDenialOfService ResourceModification Tampering WorkloadLifecycle

Description

Allows updating the ‘scale’ subresource of Deployments within a namespace. This can be abused to significantly increase or decrease the number of replicas for a deployment, potentially leading to resource exhaustion, denial of service, or unexpected operational costs.

Abuse Scenarios

  1. Scale a deployment to a very high number of replicas (resource exhaustion).
kubectl scale deployment <deployment-name> -n <namespace> --replicas=1000
# Example: kubectl scale deployment my-web-app -n default --replicas=1000
  1. Scale a deployment to zero replicas (denial of service).
kubectl scale deployment <deployment-name> -n <namespace> --replicas=0
# Example: kubectl scale deployment my-api -n production --replicas=0