Skip to content

Keelson v0.19.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 05:39
  • AWS without access keys. In Add accounts, choose how Keelson signs in to AWS: an access key as before, this machine's role when Keelson runs on AWS (an ECS task role, EKS Pod Identity or an EKS service account role, or an EC2 instance profile; nothing to paste or rotate), a certificate through IAM Roles Anywhere, or an OIDC token from Kubernetes, Google Cloud or Azure. Any of them can then assume a role in each account, typed in or listed from your AWS organization, so one Keelson scans every account without a key in each. Add accounts shows the role's trust policy and a CloudFormation template to deploy as a stack or a StackSet. The role trusts Keelson only with the entity's own external ID, which Keelson makes, so a role set up for one entity can't be reached from another; every session is limited to SecurityAudit and the ECR pull actions, whatever else the role allows; and a role that lets Keelson in without the external ID isn't added. Sessions last an hour and are renewed as they run out, so long image scans keep going. Only users who aren't limited to some entities can scan the account of the machine Keelson runs on. Running Keelson on EC2 in Docker needs the instance's metadata hop limit set to 2 (docs/deployment.md, "On AWS, with its role").
  • Google Cloud is the eighth platform. Add a service account's JSON key (paste it, or choose the file) and every project it can see is offered: give the service account the custom role Add accounts shows as gcloud commands, in your organization, a folder or one project. The role lists only read permissions, because most Google Cloud APIs accept only a full-access scope even to read and Google's Viewer role reads data in some services. Keelson signs in at Google's own token endpoint and sends only GET requests, plus the IAM policy reads Google offers only as POST; it never reads an object in a bucket, a secret's value or an API key's string. Each project's IAM is judged with what it inherits from its folders and organization. It checks grants to everyone, service accounts with administrator roles and the default accounts' automatic Editor, downloaded keys (old, unused, or allowed by organization policy), who can act as every service account or as one that can take the project over, custom roles that hand out more, accounts outside your domains and service accounts of projects outside the entity, unrestricted API keys and keys that can call Gemini, workload identity providers for GitHub or GitLab with no attribute condition, firewall rules open to the internet (rated by the instances they reach, deny rules included), public buckets, datasets, topics, keys, secrets, images and Artifact Registry repositories, Cloud SQL open to 0.0.0.0/0 or without TLS, Memorystore without AUTH, GKE control planes anyone can reach and the cluster settings that let pods take the node's credentials, credentials in metadata and environment variables, functions on runtimes Google no longer supports, load balancers that accept TLS 1.0 and web backends without Cloud Armor, and Cloud DNS without DNSSEC. Everything is on the Resources page. An API a project hasn't enabled reads as empty, not as a gap.
  • Google Workspace is the ninth. Add a service account's key with domain-wide delegation and a super administrator's email; the scopes to grant in the Admin console are all read-only, and Keelson asks for one token per scope, so a scope you leave out only leaves its own checks unread. It checks 2-Step Verification (enforced or not, for each organizational unit and group that changes it, and for every administrator and user), super administrators without security keys, how many there are, accounts nobody uses, the password policy, less secure apps, super administrator recovery, session length, which apps may reach Google services and which ones people gave access to their mail and files in the last 30 days, Marketplace installs, Drive, Calendar and Chat sharing outside the organization, groups open to outsiders or that already have them, Gmail forwarding, outside SMTP servers and its spoofing, attachment and link protections, and Google's security alerts. Users, groups and domains are on the Resources page, by organizational unit.
  • Both join the checks that span platforms. A Google Cloud administrator who signs in to Workspace without 2-Step Verification, or whose account is suspended or unused, and a Google Cloud role granted to a Workspace group with members outside the organization (XP-049 to XP-051). CI in any repository, a GitHub organization or GitLab group outside the entity, or anyone who can push to a repository, acting as a Google Cloud service account through workload identity federation (GCI-020, XP-045 to XP-048). Cloudflare, Route 53 and Alibaba Cloud DNS records that point at a Cloud Storage bucket or address the entity's projects no longer have (XP-035, XP-036, XP-038, XP-039), Cloud DNS records that point at Vercel, AWS, Alibaba Cloud, GitHub Pages or GitLab Pages resources the entity doesn't have (XP-040 to XP-044), and a Cloudflare-proxied Compute Engine origin anyone can reach directly (XP-037, and Cloudflare's ATS-001 now rates such an origin by its firewall rules). Container images in Artifact Registry are scanned with Trivy and followed to the Cloud Run services that run them. Sonar starts from Cloud DNS records and Google Cloud addresses too, and a finding's "In your infrastructure" knows them.
  • Known addresses: findings say whose addresses a rule lets in. On the new Known addresses page (under Manage), name the address ranges your rules let in, IPv4 or IPv6, an address or a CIDR range, with one or more tags: a zero trust service's egress ranges, a bank or partner you allowlist, your offices. An entry is for every entity or for one entity only. Paste a vendor's list (addresses, ranges or first-last ranges, with tags and a note on each line if you like) or import a CSV; Export CSV writes a file that reads back in, and every change can be undone. Wherever Keelson judges who a rule lets in (AWS and Alibaba Cloud security groups and their prefix lists, Google Cloud firewall rules, Cloud SQL and GKE authorized networks, EKS public access, ApsaraDB whitelists, Cloudflare IP access and WAF skip rules, Vercel's firewall bypass, and the web origins behind Cloudflare), the finding now shows Who it lets in: "Open to Netskope, ICICI and the internet", with each range under its label. The internet, Cloudflare's ranges and private addresses are always known, and any other public range is Unknown, with a link to name it. The Findings page filters by Lets in, the findings CSV has an admits column, and "In your infrastructure" says when an address a finding names is one you listed. The Resources page has a Lets in column and filter for security groups, instances, databases, firewall rules and clusters (Google Cloud firewall rules that let in any public range are listed now, not only the ones open to the internet), and the Attack surface page shows who each load balancer and address lets in, with the tags of an address you listed beside it. Labels follow the list at once, without a new scan, and never change a finding's severity. Changing the list needs the Manager role; someone limited to some entities keeps only their own entities' entries. Scan your AWS, Alibaba Cloud and Google Cloud accounts again, then Sonar, for their findings and rows to carry the ranges.

Install: docker pull ghcr.io/r4reetik/keelson:0.19.0. Upgrading? See docs/upgrading.md.