ankra security
Read the organisation’s Security Center - the same data the portal shows, for your own reporting and automation. Every finding carries its exploitation intelligence: whether CISA lists the CVE in its Known Exploited Vulnerabilities (KEV) catalog, with CISA’s remediation deadline and required action, and the FIRST EPSS probability that it is exploited in the next 30 days. Findings sort by exploitability by default - CISA listing first, then EPSS, then severity - so the top of the list is what is actually being exploited, not what merely has the highest CVSS score. The reads cover the project you act in (see ‘ankra project current’). Pass--all-projects to read the whole organisation, or the global --project to read
another project. A pinned token or a member limited to projects cannot read past
their project, and --all-projects is refused for them. The compliance frameworks,
report and export and the fix deadlines (‘settings’) are the organisation’s
whatever the project, so they do not take the flag, and neither does
‘report-schedule’.
Pass -o json (or yaml) for the full API document.
ankra security access
Evaluate one cluster’s kube gateway grants and print every failed check, most severe first: a grant whose identity the cluster verified can impersonate, a standing cluster-wide admin or cluster-admin grant, a grant the organisation’s access policy would refuse today, and the creator’s grant left unchanged for 90 days on a GitOps cluster. Each finding names the grant, the grantee, its role and scope, and the commands that fix it. Checks that could not be evaluated are listed after the findings, so a short list is never read as a clean one. A grant absent from both lists passed every check. Grantee emails appear only when you hold kube_access.manage; otherwise the grantee is shown by its Ankra user id. A service account, which has no email, is shown as “service account <name>”. If the platform leaves the summary (or one of its always-sent counts), the findings or the unknowns out of its answer, that part reads “not reported”, whatever was reported is still printed, and the command exits 1: an incomplete answer is never a pass. -o json prints the document as sent, nulls included, and exits 0. The same summary line is the Access column of ‘ankra security clusters’.ankra security addon
One add-on’s security posture on a cluster: the findings attributed to its imagesankra security advisory
Show the platform’s advisory for one CVE: the parsed NVD/OSV record, CISA’s guidance and your exposureankra security benchmarks
Read one cluster’s benchmark compliance through its agent: each ClusterComplianceReport (CIS, NSA/CISA, …) with pass and fail totals and the failing controls, plus the config-audit rollup by namespace and check. A cluster whose agent is offline answers with the reason and a retry hint rather than an empty report. Drill into one failing control with ‘ankra security benchmarks resources’.ankra security benchmarks resources
List the Kubernetes objects failing one control on a cluster and, when the platform could match them, the stack and resource that owns each.--check
is the control id from ‘ankra security benchmarks’; --source is benchmark
(pass --benchmark with the spec id) or config_audit.
Example:
ankra security clusters
List every cluster’s security posture: scanner freshness, actionable and known-exploited findings, and the Access line counting its kube gateway grants (live grants, standing grants above view, grants over the organisation’s access policy, and grants whose identity the cluster verified can impersonate). A count the platform could not establish reads “unknown”, never 0: over policy when the access policy could not be read, impersonate until every live grant has a verified probe answer. A platform that predates the access posture reads “not reported”. Open one cluster’s grant findings and their fixes with ‘ankra security access--cluster <cluster>’.
ankra security code-dispositions
A code disposition records a reviewed Semgrep or Checkov finding of a pipeline repository as a false positive or an accepted risk. The Ankra Pipelines image gate then stops blocking on that rule in that file, and names the disposition on every run it lets through. A CRITICAL finding cannot be disposed of. Container vulnerability dispositions are ‘ankra security dispositions’.ankra security code-dispositions create
Record a reviewed Semgrep or Checkov finding as a false_positive or an accepted_risk. An accepted risk needs--expires-at, at most a year out. A
CRITICAL finding is refused, as is a second active disposition of the same
finding. See what it would cover first with ‘preview’. It asks first; --yes
skips the question and is required when there is no terminal to ask on.
ankra security code-dispositions list
List code finding dispositions, newest firstankra security code-dispositions preview
Show the finding a code disposition would cover, writing nothingankra security code-dispositions revoke
Revoke a code finding disposition. The image gate blocks on the finding again from its next run, and the record is kept for audit. It asks first;--yes
skips the question and is required when there is no terminal to ask on.
ankra security compliance
Show every cluster’s benchmark compliance (CIS, NSA/CISA and the other specs the scanner evaluates) with pass and fail totals and the config-audit posture. A cluster the scanner does not run on, or whose agent could not be reached, reads not_available with the reason rather than as compliant. Subcommands cover the compliance frameworks (GDPR, ISO 27001, SOC 2, NIST CSF): the catalogue, switching one on or off, its control-by-control report, and the evidence export.ankra security compliance export
Download the organisation’s compliance evidence report: cluster posture, findings, dispositions, the audit summary and the attestation, for a window that defaults to the last 90 days. CSV by default;--format json for the
full document. Needs the security.read and audit.read permissions.
The file goes to the name the platform suggests in the current directory,
to --output-file, or to standard output with --output-file -.
Example:
ankra security compliance frameworks
The compliance framework catalogue with each framework’s switch and live scoreankra security compliance frameworks disable
Disable one framework by its key (see ‘ankra security compliance frameworks’). Needs the security.manage permission; asks for confirmation unless--yes.
ankra security compliance frameworks enable
Enable one framework by its key (see ‘ankra security compliance frameworks’). Needs the security.manage permission; asks for confirmation unless--yes.
ankra security compliance frameworks report
Print a framework’s report: the score, every category with its controls and the automated checks behind each, the recorded monthly trend and the months a snapshot exists for.--month YYYY-MM reads a recorded month; the
default is the live evaluation.
ankra security dispositions
List the organisation’s vulnerability-disposition policies. A disposition acknowledges a finding (it stays visible but leaves the actionable set) or accepts its risk, for every occurrence its selector matches - one CVE and package inside one add-on across the organisation, or pinned to one namespace, one workload or one image digest when no add-on owns the image. Each policy has a lifecycle status: active, expiring (the review deadline is near), fix_available (a fixed version exists, so the acceptance should be revisited), mitigated (nothing matches any more), unmatched (nothing ever matched), expired or revoked. Examples:ankra security dispositions create
Write a disposition anchored on one occurrence: acknowledged keeps the finding visible but out of the actionable set; accepted_risk records a decision to live with it, which needs the security.manage permission. The preview prints first and the write asks for confirmation;--yes skips
the prompt. Give a --reason: it is what an auditor reads. --expires-at sets
a review deadline; --expire-when-fix-available ends the disposition the
moment a fixed version appears. --allow-unmatched stores a policy whose
anchor no longer matches anything.
--scope chooses what the policy is pinned to: organisation_addon (the
default) for the add-on that owns the occurrence, or, when no add-on owns
the image, namespace (every workload in the namespace on its cluster,
surviving rollouts and rebuilds), workload (one workload; a Deployment
survives rollouts) or image (one digest; lapses on the next build).
Examples:
ankra security dispositions preview
Compute a disposition’s blast radius without writing anything: how many occurrences, findings, clusters and add-ons the selector would cover, what it deliberately excludes (ambiguous or unattributed occurrences, ones with a fix available when the policy expires on fix), the policies it overlaps, and the actionable total before and after. Anchor a new policy on one occurrence with--occurrence (an id from
‘ankra security finding <id>’), or re-preview an existing policy with
--policy.
--scope chooses what the policy is pinned to. organisation_addon (the
default) covers the add-on that owns the occurrence, on every cluster.
When no add-on owns the image - your own application, operator-managed
pods, plain manifests or control-plane pods - pick one of:
ankra security dispositions revoke
Revoke one policy. Every occurrence it covered returns to the actionable set immediately.--reason is required and is what the audit trail keeps.
Needs the security.manage permission; asks for confirmation unless --yes.
ankra security dispositions update
Edit one policy’s reason, review deadline (--expires-at) or fix trigger
(--expire-when-fix-available). Members left unset stay as they are. Needs
the security.manage permission; the write asks for confirmation unless
--yes is passed.
ankra security enable-baseline
Install the platform’s security baseline on one cluster: Trivy Operator for vulnerability, SBOM and compliance reports, plus the pod-security policy add-ons in audit mode. The stack is committed to the cluster’s GitOps repository and rolled out by the platform; findings appear once the first scan completes. Asks for confirmation unless--yes.
ankra security evidence
Security evidence is a bounded snapshot of what the Security Center knows: a compliance framework’s report when one is asked for, and the SBOM image inventory with known-exploited vulnerabilities first. A destination is where evidence goes: a Vanta document, a Wazuh relay or a webhook that receives signed requests. A delivery is one snapshot sent to one destination. For Vanta, the upload and the submission are separate steps: a delivery reads “uploaded” until ‘deliveries submit’ submits the document.ankra security evidence deliveries
Send security evidence and follow its deliveriesankra security evidence deliveries list
List the organisation’s evidence deliveries newest first (at most 100), for every destination or for one with--destination.
ankra security evidence deliveries send
Capture one bounded evidence snapshot and queue it for the destination, due now: the SBOM image inventory, known-exploited vulnerabilities first (at most 2,000 images), and with--framework that framework’s report. --month YYYY-MM sends a
recorded month instead of current observations. A disabled framework or a
month that was not recorded is refused.
The command returns once the delivery is queued; follow it with
‘ankra security evidence deliveries list’.
ankra security evidence deliveries submit
Submit the Vanta evidence document an uploaded delivery put there. Upload and submission are separate: a delivery to Vanta reads “uploaded”, a draft, until it is submitted. A refused or uncertain submission leaves the delivery uploaded and says why.ankra security evidence destinations
Manage where security evidence is sentankra security evidence destinations create
Create an evidence destination. What it needs depends on--kind:
--secret-stdin,
or run in a terminal to be asked for it with the input hidden. The platform
stores it in its secret store and never returns it.
ankra security evidence destinations list
List the organisation’s evidence destinations, revoked ones included. Credentials are never returned.ankra security evidence destinations revoke
Revoke a destination: the platform disables it, deletes its credential and cancels its deliveries that have not been delivered. The destination stays in the list as revoked, for the history, and cannot be enabled again. It asks first;--yes skips the question and is required when there is no terminal to
ask on.
ankra security finding
Show one finding: its CISA KEV listing and deadline, EPSS probability, occurrence counts by disposition, and every active occurrence. The detail lists active occurrences only. Pass--status resolved to see
where the finding was fixed, --cluster to narrow to one cluster, and
--page/--page-size to walk a large set; any of these switches the table to
the paged occurrence listing.
ankra security finding rebuild
Open one pull request per affected application repository bumping the Dockerfile base image to the advisory’s fixed version, through the application’s own GitHub credential. Every write goes to a new branch and a pull request, never to the default branch; an open Ankra pull request for the same finding and repository is reused. It opens the pull requests only: to have Ankra follow them to a verified fix, use ‘ankra security remediations start’. It asks first;--yes skips the question and is required when there is
no terminal to ask on.
ankra security finding rebuild-plan
Plan the base-image bump pull requests for a finding whose occurrences are application container images: per affected application repository, the Dockerfile FROM lines that would move to the advisory’s fixed version, the branch the pull request would use and the open Ankra pull request already there; per image the lane cannot act on, the reason. A read: nothing is opened.ankra security findings
List the organisation’s logical findings (one row per CVE and package, deduplicated across clusters and workloads). By default the list is the actionable set (open and acknowledged findings) sorted by exploitability. Narrow it with--known-exploited to the CVEs CISA
lists as exploited in the wild, or with --severity, --status, --fixable,
--cluster, --addon and --namespace.
Examples:
ankra security fix-candidates
Find which newer tags of an image carry the fix for one vulnerability, read from the image’s registry and from what Ankra has already scanned. This is the same read Ask Ankra makes when you ask it which tag fixes an image you do not build yourself, such as an add-on’s image or a third-party image in a manifest. Name the image as it runs (repository:tag, or repository:tag@sha256:…, with or without a registry) and the vulnerability with--cve, --finding or
both. --finding supplies the CVE when --cve is left out.
The answer names the smallest step that fixes the issue (the newest tag of
the nearest release line verified to carry the fix) and the newest release,
each pinned as tag@sha256, then lists every newer tag examined with one
verdict:
ankra security fix-performance
Show how fast the organisation fixes critical and high issues over the last--days days (default 90, 1 to 365) - the numbers behind the Security
Dashboard’s goals: per severity, how many issues were fixed, the median days
to fix, how many were fixed within the deadline, how many are open now, how
many of those are past the deadline, and the oldest open one.
An issue is one critical or high CVE on one cluster, from the first scan
that listed it to the first scan without it. The deadlines are the
organisation’s (‘ankra security settings get’). With no issue history yet the
read says so: time to fix is unknown, never zero.
It covers the clusters of the project you act in (--all-projects for the
whole organisation); --cluster narrows it to one. --daily also lists every
day on which an issue was found or fixed.
ankra security history
Without--cluster, list the organisation’s daily security posture for the last
--days days (default 90, 1 to 365) - the history the Security Dashboard draws:
on each day, the clusters that reported, their actionable findings by
severity, those with a fix available, the CVEs CISA lists as used by
attackers and the accepted risks, oldest first, with a one-line trend. It
covers the clusters of the project you act in (--all-projects for the whole
organisation). A day no cluster reported on is absent, never a row of zeros:
it was not measured.
With --cluster, list that cluster’s daily security snapshots instead
(the platform clamps --days to 1..365): findings by severity, what is
actionable once dispositions are applied, the workloads and namespaces
covered and the risk score, oldest first, with a one-line trend between the
first and last snapshot. A day the scanner recorded no snapshot for is
simply absent - it never reads as zero findings.
The two modes answer different documents with -o json: the organisation’s
history (days, clusters_in_scope, items) or the cluster’s snapshots.
ankra security images
Read where an image is used across your clusters: the stacks that declare it and the workloads that run it. To read an image’s bill of materials, use ‘ankra security sbom images’.ankra security images declared
Find where an image is declared across the stacks of the clusters you can read. This is the same read Ask Ankra makes when it tells you where to change an image. Each declaration names its cluster, stack and member (an add-on’s values or a manifest), the key path and the stored line, and how the declaration is changed: through a GitOps pull request, a stack draft or an application. On a cluster with a GitOps repository it also gives the file, and the line when Git holds what Ankra stores. Workloads running the image that no stack declares, and those whose declaration is not known, are listed too. Name the image as a repository such as moby/buildkit or docker:29.0.2-dind, with or without a registry, tag or digest. Every cluster you can read is searched unless you name clusters with--cluster.
When part of the search could not be read (a stack member, a cluster’s
GitOps wiring, the running inventory) the answer says so and lists what it
missed. An empty or short list of declarations then does not mean the image
is declared nowhere else.
Exit codes: 0 the platform answered (check completeness: -o json carries
completeness.is_complete), 2 the image was not accepted, 3 a --cluster is not
a cluster you can read, 1 any other failure. Pass -o json (or yaml) for the
platform’s whole answer.
ankra security namespaces
Break the fleet’s findings down the way a platform team owns it: cluster, then namespace. Each row carries the scanned workloads and images in the namespace, the pods the cluster runs there right now, the actionable findings by severity and the known-exploited count. Cluster-scoped reports (node and control-plane images) keep a row of their own so the rows still add up to the cluster. Drill further with ‘ankra security pods--cluster <cluster> --namespace <ns>’.
ankra security network-exposure
Score one cluster’s NetworkPolicies per direction, 0-100 with higher being tighter: the share of admitting rules that admit a broader peer set than a named identity, and the workloads no policy protects at all. A cluster with no workloads has nothing to score and reads n/a, not 100.ankra security overview
Fleet security summary: totals, CISA KEV exposure, scanner coverage and remediation candidatesankra security pod
Show one running pod with the findings of the scanned workload container behind each of its containers, the CISA KEV exposure, and whether each container’s image has a bill of materials. A container the scanner has no report for is marked “not scanned”, which is not the same as clean. Open the image behind a container with ‘ankra security sbom image <digest>’ and its CVEs with ‘ankra security sbom findings <digest>’.ankra security pods
List the pods a namespace runs right now with the findings of the scanned workload container behind each of their containers. The owner chain is resolved one level up (Pod -> ReplicaSet -> Deployment, Pod -> Job -> CronJob), so narrow to one workload with--workload-uid or --workload-kind/--workload-name.
A container the scanner has no report for is marked “not scanned”, which is
not the same as clean.
ankra security policy-mode
Set the cluster’s pod-security policy mode. audit records violations without blocking; enforce rejects non-compliant workloads at admission; off uninstalls the Kyverno policy engine from the cluster (its admission webhook and reports controller are what load a small control plane) while native pod security keeps observing in audit - audit or enforce afterwards do not reinstall it. Every mode asks for confirmation;--yes skips the
prompt. The change is committed to the cluster’s GitOps repository and
rolled out by the platform.
ankra security remediations
A remediation run is one fix pull request on one application (a finding’s image rebuild, a base-image fix or a dependency bump), the pipeline runs of its commits and the rescan that proves the fix. A run reads “verified” only once every affected cluster was rescanned after the fix with no active occurrence; “uncertain” is a deadline that passed without proof and never means clean.ankra security remediations cancel
Stop a live run. The pull request and any running pipeline are left for their reviewers; a finished run is answered unchanged. It asks first;--yes skips
the question and is required when there is no terminal to ask on.
ankra security remediations get
Show one remediation run with its receipt trailankra security remediations list
List the organisation’s remediation runs newest first (at most 100). A pull request that fixes several of one application’s findings at once, such as a base-image fix or a dependency bump, is a batched run and is listed as one row. In -o json its finding_id is null and finding_ids lists every finding it fixes.--finding also matches a batched run that fixes the finding among
others.
ankra security remediations start
Open or reuse the fix pull request of every application repository the finding affects (the image rebuild lane), start or answer the live remediation run of each, and send the pull request branch through Ankra Pipelines. Repeating the command reuses the live runs; nothing is approved, waived or accepted. You are the one asking, so the organisation’s AI autonomy pause does not hold this start; it holds every step Ankra later takes on its own for the run. It asks first;--yes skips the question and is required when there is no terminal
to ask on. Read what it would do with ‘ankra security finding rebuild-plan’.
ankra security report-schedule
Show one cluster’s scheduled security report - daily, weekly or monthly, who receives it, whether it is enabled, and when it was last sent and is next due. A cluster without a schedule reads “not configured”. Use “report-schedule set” to create or change it and “report-schedule send” to queue one now.ankra security report-schedule send
Queue the cluster’s security report for immediate delivery to the schedule’s recipients. Asks for confirmation unless--yes.
ankra security report-schedule set
Create or replace the cluster’s scheduled security report.--frequency is
daily, weekly or monthly; --recipient is repeatable, at most 20 addresses, and at
least one is required while the schedule is enabled. --disabled keeps the
schedule but pauses sending. Asks for confirmation unless --yes.
ankra security sbom
List every package the scanner found in the fleet’s container images, grouped by name, version and ecosystem, with how many images, workloads and clusters carry it and the findings that name that exact package and version. Search a package to answer “where do we run this” without a rescan. The bill of materials is opt-in per cluster: set the security baseline input trivy_sbom_generation_enabled to true on a cluster with control-plane headroom. The coverage line says how many scanned clusters publish one. Subcommands list the images (‘ankra security sbom images’) and open one image’s full component list (‘ankra security sbom image <digest or reference>’).ankra security sbom component
Follow one exact package - the name,--version and --type a security sbom row shows - to the images whose bill of materials names it, every workload container currently running those images, and the clusters they run on.
ankra security sbom containers
List every container the resource cache says is running on the scoped clusters, init containers included, each joined to the bill of materials of the image it runs - or marked ABSENT when the scanner has none for it. An absent bill of materials is a state to act on, not an empty image: the cluster may have SBOM generation switched off, the scanner may not be able to pull from the image’s registry, or the tag rolled since the last scan. Absent rows sort first by default;--status absent lists only them.
The inventory line counts the scope (cluster, namespace, workload) before
--status and --search narrow the rows, so it holds while you drill.
ankra security sbom export
Download one image’s bill of materials, rebuilt from the components the platform stores: a CycloneDX 1.5 JSON document by default (what Dependency-Track, Grype and licence scanners ingest) or a flat CSV with--format csv. Every component is included, unpaged.
The document goes to the file the platform names (repository_tag.cdx.json)
in the current directory, to --output-file, or to standard output with
--output-file -.
Example:
ankra security sbom findings
List every CVE the scanner names on one image: one row per CVE and installed package version, aggregated across the containers running the image, with the fixed version when one exists, the CISA KEV listing and EPSS probability, and the worst disposition across its occurrences. The image is identified the way the inventories list it: a sha256 digest, or the repository:tag reference when the scanner knew no digest. An image without a bill of materials still answers - the CVEs come from the vulnerability reports - and the header says ABSENT so the gap is visible. The summary line totals the image before--search and --severity narrow the
rows. Read one CVE in full with ankra security finding <finding id>.
ankra security sbom image
One image’s bill of materials: its identity, the workloads running it and every componentankra security sbom images
Images with a bill of materials: OS, component count, where they run and their findingsankra security settings
The organisation’s fix deadlines: how many days a critical and a high issue may stay open. The Security Dashboard’s goals and ‘ankra security fix-performance’ measure against them. Until someone sets them they are the platform’s defaults, 30 days for critical and 90 for high. They are the organisation’s whatever the project you act in.ankra security settings get
Show the organisation’s fix deadlinesankra security settings set
Change one or both fix deadlines, each 1 to 365 days. Only the flags you pass change; the other deadline keeps its current value. The Security Dashboard’s goals and ‘ankra security fix-performance’ measure against the new deadlines from the next read.ankra security stack
Show one stack the way its Security tab does: attribution scope, the findings attributed to it, the CVEs CISA lists as exploited, the bill of materials of its containers, and every member (add-on or manifest) with the posture of the workloads it resolved to. Below the members come the Kubernetes workloads each member deploys, with their pods, scan state, severe actionable findings and SBOM coverage, so the path from an Ankra resource to a pod is one read. Open a pod with ‘ankra security pod <namespace> <pod-name>’.ankra security stacks
List every stack on a cluster with the posture its own Security tab shows: attribution status, scope, actionable and known-exploited findings and the bill-of-materials coverage of its containers, riskiest first, plus a closing “outside any stack” row for everything no stack owns, so the rows add up to the cluster. A stack whose members matched no workload is reported unmatched, which is not the same as clean. Open one stack with ‘ankra security stack <name>’.ankra security violations
Read one cluster’s pod-security policy results: the stored policy mode (audit or enforce; none when the policy add-on is not installed), the pass/fail/warn totals and each policy with its worst namespaces, plus the platform’s own evaluation of the cluster’s workloads from the resource cache, which is present whether or not the policy engine runs.ankra security workloads
List the fleet’s scanned workload containers, riskiest first. Each row carries the observed and actionable severity counts, what is acknowledged or accepted, the fixable severe count and how many of its CVEs CISA lists as exploited. The filters are the findings list’s.--sort defaults to risk_score.
Examples: