Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update description of "Initial Access" in workload-unauthentica… #635

Merged
merged 4 commits into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading