rbac

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package rbac analyzes Role/ClusterRole bindings and flags subjects whose effective permissions enable privilege escalation or data exfiltration.

Content for RBAC findings. Each rule has a builder that takes runtime context (namespace, subject, source role/binding) and returns an enriched ruleContent with scope-aware language, an attacker walkthrough, ordered remediation steps, and structured references / MITRE technique citations.

Sources for the content below: Kubernetes RBAC Good Practices, NSA/CISA Kubernetes Hardening Guide v1.2, MITRE ATT&CK Containers matrix, Microsoft Threat Matrix for Kubernetes, kubernetes/kubernetes#119640 (nodes/proxy escalation), Datadog Security Labs (TokenRequest persistence), Aqua Security and SCHUTZWERK RBAC writeups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct{}

Analyzer produces RBAC-focused findings from a snapshot.

func New

func New() *Analyzer

New returns a new RBAC analyzer.

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(_ context.Context, snapshot models.Snapshot) ([]models.Finding, error)

Analyze walks role and cluster role bindings, resolves each subject's effective permissions, and emits findings for wildcard access, secret reads, impersonation, bind/escalate, and similar risks.

func (*Analyzer) Name

func (a *Analyzer) Name() string

Name returns the module identifier used by the engine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL