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

EKS Anonymous API Access Detection Rule #1405

Merged
merged 4 commits into from
Nov 4, 2024

Conversation

bcpenta
Copy link
Contributor

@bcpenta bcpenta commented Oct 23, 2024

Background

This change introduces a new detection rule for identifying anonymous API access to the Kubernetes API server in Amazon EKS clusters. Anonymous access should be disabled in production environments to prevent unauthorized access, as it poses a potential security risk. Detecting anonymous requests helps ensure that EKS clusters are properly configured for secure API usage.

Changes

  • Added a new detection rule Amazon.EKS.AnonymousAPIAccess to monitor and detect anonymous API requests to the Kubernetes API server.
  • Included a YAML configuration for the rule with severity set to medium and associated MITRE ATT&CK references.
  • Provided test cases to validate both anonymous and non-anonymous API requests.
  • Documented remediation steps and runbook reference to disable anonymous access in the Kubernetes configuration.

Testing

  • Ran panther_analysis_tool to validate the new detection rule and test cases.
  • Verified that the test cases pass for both anonymous and non-anonymous API access scenarios.
  • Ensured that the rule raises an alert for anonymous API requests and remains silent for authenticated API requests.

@bcpenta bcpenta requested a review from a team as a code owner October 23, 2024 03:49
@ben-githubs
Copy link
Contributor

Thanks for the contribution! I just made some minor changes to formatting and packs to make the checks pass. The test and validate checks are currently broken for external contributions; we have another PR pending that should resolve this!

@arielkr256 arielkr256 added the rules Real-time log data detections label Oct 29, 2024
@arielkr256 arielkr256 merged commit b94c033 into panther-labs:develop Nov 4, 2024
8 checks passed
le4ker added a commit that referenced this pull request Nov 13, 2024
le4ker added a commit that referenced this pull request Nov 13, 2024
arielkr256 added a commit that referenced this pull request Nov 18, 2024
Copy link
Contributor

@arielkr256 arielkr256 left a comment

Choose a reason for hiding this comment

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

Reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rules Real-time log data detections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants