Skip to content

Conversation

@imays11
Copy link
Contributor

@imays11 imays11 commented Sep 13, 2022

Issue

#2040

Summary

This rule detects when a service account makes an unauthorized request for resources from the API server. Service accounts follow a very predictable pattern of behavior. A service account should never send an unauthorized request to the API server. This behavior is likely an indicator of compromise or of a problem within the cluster. An adversary may have gained access to credentials/tokens and this could be an attempt to access or create resources to facilitate further movement or execution within the cluster.

Details

image

## Issue #2040 ## Summary This rule detects when a service account makes an unauthorized request for resources from the API server. Service accounts follow a very predictable pattern of behavior. A service account should never send an unauthorized request to the API server. This behavior is likely an indicator of compromise or of a problem within the cluster. An adversary may have gained access to credentials/tokens and this could be an attempt to access or create resources to facilitate further movement or execution within the cluster.
@imays11 imays11 added blocked OS: Linux Rule: New Proposal for new rule Integration: Kubernetes Kubernetes Integration v8.5.0 labels Sep 13, 2022
@imays11 imays11 self-assigned this Sep 13, 2022
@imays11 imays11 linked an issue Sep 13, 2022 that may be closed by this pull request
updated the query after testing to reduce false positives
Copy link
Contributor

@DefSecSentinel DefSecSentinel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@terrancedejesus terrancedejesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

imays11 and others added 2 commits September 19, 2022 13:14
…_request.toml Co-authored-by: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com>
@imays11 imays11 merged commit a9364be into main Sep 19, 2022
@imays11 imays11 deleted the 2040-new-rule-kubernetes-denied-service-account-request branch September 19, 2022 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration: Kubernetes Kubernetes Integration OS: Linux Rule: New Proposal for new rule v8.5.0

4 participants