Every cluster as a graph of what can reach what

Palari links each cluster’s objects by what one lets an attacker do to the next: the Internet reaches a Service, the Service routes to a Pod, the Pod runs as a ServiceAccount that can read Secrets. Your agents ask it where someone could go from here, instead of tracing the hops themselves on every question.

Your agent What can a shell in web’s Pod reach? Tracing by hand · from scratch Pods ServiceAccount Node RoleBinding ClusterRoleBinding Role ClusterRole ? three steps deep again for the next question Asking Palari · one command $ palari posture graph blast-radius po/web-7f9c6d8b5-x2k4q -n payments Pod/payments/web-7f9c6d8b5-x2k4q reaches 3 Secrets in 1 namespace, 1 Pod, 1 ServiceAccount and 1 node within 3 steps. Credentials among them: Secret/payments/stripe-key. reads the graph Palari’s graph Service Pod ServiceAccount Namespace Secret each build Palari’s inventory Your agent What can a shell in web’s Pod reach? Tracing by hand · from scratch Pods ServiceAccount Node RoleBinding ClusterRoleBinding Role ClusterRole ? three steps deep again for the next question Asking Palari · one command $ palari posture graph blast-radius \ po/web-7f9c6d8b5-x2k4q -n payments Pod/payments/web-7f9c6d8b5-x2k4q reaches 3 Secrets in 1 namespace, 1 Pod, 1 ServiceAccount and 1 node within 3 steps. Credentials among them: Secret/payments/stripe-key. reads the graph Palari’s graph Service Pod ServiceAccount Namespace Secret each build Palari’s inventory

Attackers don’t read your clusters as a list

Your scanners hand you lists of the CVEs in each image, the misconfigurations on each object and the benchmark controls that fail, and judge each item by itself. Someone who gets in lands on one object and moves to the next, along links the cluster’s own configuration makes.

Each link can look minor on its own: a Service open to any address, a token mounted by default, a Role that reads Secrets in one namespace. Together they are a path from the Internet to your payment keys, and a list sorted by severity can put its way in last.

The list Open findings on the path’s objects, by severity The path Attack path AP-001, in the sample cluster prod critical K8S-001 Privileged container medium K8S-005 Container may run as root medium K8S-030 Namespace without a NetworkPolicy low K8S-032 LoadBalancer Service open to any address exposes routes to runs as can read Secrets contains Entry point Internet Service web Pod web (2 Pods) ServiceAccount web Namespace payments Secret 3 Secrets in payments K8S-001 K8S-005 K8S-030 K8S-032 the way in The list Open findings on the path’s objects, by severity critical K8S-001 Privileged container on Pod web medium K8S-005 Container may run as root on Pod web medium K8S-030 Namespace without a NetworkPolicy on Namespace payments low K8S-032 LoadBalancer Service open to any address on Service web: the way in The path Attack path AP-001, in the sample cluster prod exposes routes to runs as can read Secrets contains Entry point Internet Service web Pod web (2 Pods) ServiceAccount web Namespace payments Secret 3 Secrets in payments K8S-001 K8S-005 K8S-030 K8S-032
Drawn from palari posture attack-paths show AP-001, on a sample cluster from the CLI’s documentation.

The inventory keeps every object and its links. The graph turns those links into what each object lets an attacker do to the next, so a path is something you can ask about.

Why not let the agent trace the path itself?

Each hop is a different judgement

Following one path means getting each step right, and each works differently:

  • A Service routes to the Pods its selector matches.
  • A Pod mounts its ServiceAccount’s token unless the Pod or the ServiceAccount turns it off, and the Pod’s setting wins.
  • A ServiceAccount can do what every binding that names it, or one of its groups, grants, through roles that may aggregate others.
  • A privileged container, the host’s PID namespace or a sensitive hostPath hands over the node, and every Pod on it.
  • Between the Internet and the Service there can be a load balancer, a gateway, its routes and an Ingress controller, each with its own rules.

One wrong judgement drops a real path or invents one.

Paths multiply with the cluster

Every replica, binding and way in adds paths. An agent opens some of the objects and stops, and the path that matters can be in the ones it didn’t open. Palari runs every query over the whole cluster, counts a workload’s replicas as one path, and says when a query stopped at its cap.

A partial search reads like a full one

An agent that opened some of the objects and found nothing writes the same sentence as one that opened them all, and the reader can’t tell them apart. When Palari finds no path through an object, none of its queries found one anywhere in the latest build, and it says that much and no more.

To say a path closed, you need it before and after

To say a change closed a path, you need the same path before and after. Palari gives each path a key that stays the same across a rollout, and compares each build with the one before to say which paths are new, changed or closed.

Palari rebuilds the graph after the cluster changes, and answers each question from the latest build.

If someone gets into web, what can they reach?

Take the question an agent gets when a threat fires on a Pod:

Someone ran a command in Pod web-7f9c6d8b5-x2k4q in namespace payments. What can they reach from there?

Tracing it from the cluster’s objects, the agent has to:

  1. Token Read the Pod’s ServiceAccount, and whether the Pod or the ServiceAccount turns its token off.
    • Pod web-7f9c6d8b5-x2k4q
    • ServiceAccount web
  2. Grants Find every RoleBinding and ClusterRoleBinding that names the ServiceAccount or its groups, follow each role, expand aggregated ClusterRoles and merge the rules.
    • RoleBinding every one, in every namespace
    • ClusterRoleBinding every one
    • Role, ClusterRole each one they name
  3. Host Check each container for privileged, hostPID, hostPath and the other ways onto the node, then the Pods on that node and their tokens.
    • Pod web-7f9c6d8b5-x2k4q, again
    • Node lke-pool-1-5d8c
    • Pod every one scheduled there
  4. Again Do it all again from everything reached, three steps deep.

    Each step reads more.

With Palari, it’s one command. It walks the graph Palari built from the cluster, where each hop’s judgement is already an edge:

$ palari posture graph blast-radius po/web-7f9c6d8b5-x2k4q -n paymentsPod/payments/web-7f9c6d8b5-x2k4q reaches 3 Secrets in 1 namespace, 1 Pod, 1 ServiceAccount and 1 node within 3 steps. Credentials among them: Secret/payments/stripe-key. STEP   FROM                               HOW            REACHES                       FINDINGS1      Pod/payments/web-7f9c6d8b5-x2k4q   uses_token     ServiceAccount/payments/web   -1      Pod/payments/web-7f9c6d8b5-x2k4q   host_access    Node/lke-pool-1-5d8c          -2      ServiceAccount/payments/web        read_secrets   Namespace/payments            1 medium3      Namespace/payments                 read_secrets   3 Secrets in payments         -
  1. The first line is the answer. It names what the Pod reaches within three steps, and the credentials among it.
  2. Each row is one step: where it starts, how (the graph’s edge) and what it reaches.
  1. The Pod uses its token, and it can take over its node.
  2. The open findings on what each step reaches.
step 1 step 2 step 3 uses its token can take over can read Secrets in contains Pod web-7f9c6d8b5-x2k4q in payments ServiceAccount web Node lke-pool-1-5d8c Namespace payments 1 medium finding Secrets 3 Secrets in payments credentials: stripe-key Pod web-7f9c6d8b5-x2k4q step 1 · ServiceAccount web uses its token step 2 · Namespace payments can read Secrets in 1 medium finding step 3 · Secrets 3 Secrets in payments contains credentials: stripe-key step 1 · Node lke-pool-1-5d8c can take over
Drawn from palari posture graph blast-radius po/web-7f9c6d8b5-x2k4q -n payments, on a sample cluster from the CLI’s documentation.

How Palari builds the graph

Palari builds the graph from its database on your server and keeps it there. It can rebuild the graph from the database at any time, and while the graph database is down, everything the database answers (findings, the list of paths, choke points, access) keeps working.

The graph holds what the configuration allows, not the traffic that flowed, and Palari tries no exploits. A path that a NetworkPolicy blocks stays listed, with the policy named as its guard, since the policy is one kubectl delete away and the network plugin may not enforce it. Each cluster is a graph of its own, so paths don’t cross clusters.

Inventory objects and versions snapshot Palari’s graph Each build rule files wiring judgements, shared with the rules exposure, tokens, RBAC, host access active build previous build compared: new, changed, closed From the active build attack paths blast radius exposure choke points scores API CLI and Agent Skill for agents Web console for people Inventory objects and versions snapshot Palari’s graph Each build rule files wiring judgements, shared with the rules exposure, tokens, RBAC, host access active build previous build compared: new, changed, closed From the active build attack paths blast radius exposure choke points scores API CLI and Agent Skill for agents Web console for people

For agents

Your agent asks Palari for the path

An agent that writes its own graph queries has to learn the schema, can write one that is subtly wrong, and gets back rows that don’t say what they left out.

With Palari, the questions an investigation asks are commands, each one tested.

  • Questions are commands. What a Pod reaches, what the Internet reaches, an object’s edges, a path step by step, the paths by score, where they meet, what a change would close, what changed since the last build. The agent looks each one up in the CLI’s own help.
  • Paths it can cite. Every path has a key that stays the same across rollouts, so the agent can name one in a ticket and check after the next build that it closed.
  • It says what it can’t see. The answer says when a query reached its cap, when Secrets or workloads weren’t collected and when a firewall Palari can’t read sits in the way, and a score then becomes “at least”.
  • Closed only when evaluate says so. The Agent Skill’s “Explain an attack path” workflow ends with the smallest change that breaks the path, and tells the agent to run evaluate before it says the change closes anything.

The agent signs in read-only, as for the inventory, and reaches the graph only through Palari’s API, never the cluster or the graph database. You can’t write your own graph queries, so Palari won’t find a path that none of its queries describes.

$ palari posture attack-paths evaluate --remove po/web-7f9c6d8b5-x2k4q -n payments
Removing Pod/payments/web-7f9c6d8b5-x2k4q in prod closes none of the 2 outcomes it touches; 2 stay reachable on their paths (AP-002, host access on the nodes; AP-001, read the Secrets in payments, through RoleBinding/payments/web-secret-reader).

STATUS      QUERY    PATH                             ENTRY      OUTCOME                        PATHS   STILL THROUGH
reachable   AP-002   Take over node lke-pool-1-5d8c   Internet   host access on the nodes       2 → 1   the path's other members
reachable   AP-001   Read 3 Secrets in payments       Internet   read the Secrets in payments   2 → 1   RoleBinding/payments/web-secret-reader
evaluate only reads, so it can run before anyone deletes the Pod. Its other replica goes round it, and the Deployment would make a new one.

For people

Your team sees the same graph in the console

Every object’s page has its place on the graph, and its blast radius is one click away.

Every object’s neighbours

The Relationships tab draws an object’s neighbours on the graph, what points at it above and what it points at below, each edge in words.

The Relationships tab of Pod vuln-shop/web-c959b87dc-vfxgd on a demo cluster: 8 neighbours. Its Namespace contains it, its ReplicaSet controls it and Service web routes to it; it runs as ServiceAccount web, mounts the Secret db-credentials and two ConfigMaps, and can take over the node it runs on.
On a demo cluster, which is built to be insecure.

What controlling an object would reach

The Blast radius page walks from any object, one to five steps, and sums up what it reaches: Secrets read, nodes taken over, tokens it can use, the Pods it controls or runs code in, and what it is admin of.

The blast radius of Deployment vuln-shop/web on a demo cluster, at three steps: 27 objects reached. It reads 1 Secret in 1 namespace, takes over 1 node, uses 1 ServiceAccount’s token and controls or runs code in 53 Pods; it is admin of nothing.
On a demo cluster, which is built to be insecure.

Every way in, and its guard

The Exposure page starts at the Internet and lists each way in your objects open, what guards it and the workloads behind it.

The Exposure page of a demo cluster: 19 entry points, 17 of them open, reaching 19 workloads in 13 namespaces, with 24 attack paths starting from 14 workloads. The graph runs from the Internet through LoadBalancer Services, an Istio gateway and its VirtualService to the Deployments behind them.
On a demo cluster, which is built to be insecure.

Both products ask the same graph

Palari Posture and Palari Detect read the latest build, so a finding, a threat and an access review of one object name the same paths.

  1. Internet Entry point exposes
  2. web Service routes to
  3. web-7f9c6d8b5-x2k4q Pod Findings K8S-001 Privileged container and 1 more Threat DET-AUD-001 Exec into a container runs as
  4. web ServiceAccount can read
  5. stripe-key Secret
AP-001 · Internet-exposed pod whose ServiceAccount can read Secrets, in namespace payments of a sample cluster from the CLI’s documentation
  • Findings

    Each finding says which attack paths go through its object, and the list filters to them. Its order stays by severity.

  • Exposure management

    Every way in from the Internet, its guard, and the paths from there, ranked by a score that weighs what each path reaches, and how.

  • Attack paths and choke points

    Each path step by step, and the objects the highest-scoring paths go through.

  • Threats

    Palari raises a threat one severity level when its subject is on an attack path, and a path with a recent threat on its way is live.

    Palari Detect, on the path
  • Access

    Each ServiceAccount, User and Group shows the attack paths through it.

    Inventory

See the paths in one of your clusters

Palari installs with Helm in your own cluster and reads it with list and watch only. Connect one cluster, and after its first graph build your agent can say where someone could go from any object, and what a change would close. Put your agent on the first line of defense: it investigates, your team decides.