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

add new attack paths for security risks #598

Merged
merged 2 commits into from
Mar 5, 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
20 changes: 20 additions & 0 deletions attack-tracks/external-wl-unauthenticated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"apiVersion": "regolibrary.kubescape/v1alpha1",
"kind": "AttackTrack",
"metadata": {
"name": "external-database-without-authentication"
},
"spec": {
"version": "1.0",
"data": {
"name": "Initial Access",
"description": "An attacker can access the Kubernetes environment.",
"subSteps": [
{
"name": "Unauthenticated Access",
"description": "An unauthenticated attacker can access resources."
}
]
}
}
}
20 changes: 20 additions & 0 deletions attack-tracks/external-wl-with-cluster-takeover-roles.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"apiVersion": "regolibrary.kubescape/v1alpha1",
"kind": "AttackTrack",
"metadata": {
"name": "external-workload-with-cluster-takeover-roles"
},
"spec": {
"version": "1.0",
"data": {
"name": "Initial Access",
"description": "An attacker can access the Kubernetes environment.",
"subSteps": [
{
"name": "Cluster Access",
"description": "An attacker has access to sensitive information and can leverage them by creating pods in the cluster."
}
]
}
}
}
12 changes: 12 additions & 0 deletions controls/C-0256-exposuretointernet.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@
"categories": [
"Initial Access"
]
},
{
"attackTrack": "external-workload-with-cluster-takeover-roles",
"categories": [
"Initial Access"
]
},
{
"attackTrack": "external-database-without-authentication",
"categories": [
"Initial Access"
]
}
]
},
Expand Down
14 changes: 13 additions & 1 deletion controls/C-0267-workloadwithclustertakeoverroles.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "Workload with cluster takeover roles",
"attributes": {},
"attributes": {
"controlTypeTags": [
"security"
],
"attackTracks": [
{
"attackTrack": "external-workload-with-cluster-takeover-roles",
"categories": [
"Cluster Access"
]
}
]
},
"description": "Cluster takeover roles include workload creation or update and secret access. They can easily lead to super privileges in the cluster. If an attacker can exploit this workload then the attacker can take over the cluster using the RBAC privileges this workload is assigned to.",
"remediation": "You should apply least privilege principle. Make sure each service account has only the permissions that are absolutely necessary.",
"rulesNames": [
Expand Down
18 changes: 18 additions & 0 deletions frameworks/security.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@
"name": "Authenticated user has sensitive permissions"
}
},
{
"controlID": "C-0267",
"patch": {
"name": "Workload with cluster takeover roles"
}
},
{
"controlID": "C-0270",
"patch": {
Expand All @@ -193,6 +199,18 @@
"patch": {
"name": "Ensure memory limits are set"
}
},
{
"controlID": "C-0272",
"patch": {
"name": "Workload with administrative roles"
}
},
{
"controlID": "C-0273",
"patch": {
"name": "Outdated Kubernetes version"
}
}
]
}
Loading