Skip to content

Commit

Permalink
Merge pull request #635 from kubescape/newac
Browse files Browse the repository at this point in the history
feat: Update description of "Initial Access" in workload-unauthentica…
  • Loading branch information
kooomix authored Aug 18, 2024
2 parents 1876df0 + 5d572ae commit eb485a4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
13 changes: 3 additions & 10 deletions attack-tracks/workload-unauthenticated-service.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,11 @@
"version": "1.0",
"data": {
"name": "Initial Access",
"description": "An attacker can access the Kubernetes environment.",
"description": "The service is exposed outside the Kubernetes network.",
"subSteps": [
{
"name": "Execution (Vulnerable Image)",
"description": "An attacker can execute malicious code by exploiting vulnerable images.",
"checksVulnerabilities": true,
"subSteps": [
{
"name": "Data Collection",
"description": "An attacker can gather data."
}
]
"name": "Execution",
"description": "Database access is missing authentication and it can be accessed by anyone"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion controls/C-0274-unauthenticatedservice.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"attackTrack": "workload-unauthenticated-service",
"categories": [
"Data Collection"
"Execution"
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion rules/outdated-k8s-version/raw.rego
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deny[msga] {

has_outdated_version(version) {
# the `supported_k8s_versions` is validated in the validations script against "https://api.github.com/repos/kubernetes/kubernetes/releases"
supported_k8s_versions := ["v1.30", "v1.29", "v1.28"]
supported_k8s_versions := ["v1.31", "v1.30", "v1.29"]
every v in supported_k8s_versions{
not startswith(version, v)
}
Expand Down
4 changes: 2 additions & 2 deletions rules/outdated-k8s-version/test/pass/input/node.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@
"bootID": "85cb3c8a-7d8e-4885-9a9c-e8a340332f21",
"containerRuntimeVersion": "docker://20.10.7",
"kernelVersion": "5.11.0-43-generic",
"kubeProxyVersion": "v1.28.6",
"kubeletVersion": "v1.28.6",
"kubeProxyVersion": "v1.31.6",
"kubeletVersion": "v1.31.6",
"machineID": "b77ec962e3734760b1e756ffc5e83152",
"operatingSystem": "linux",
"osImage": "Ubuntu 20.04.2 LTS",
Expand Down

0 comments on commit eb485a4

Please sign in to comment.