Skip to content
Back to skills

Cis Aks V180 2.1.1

ASecurity

Enable audit Logs (Manual)

  • 3,518 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
securitygonodedockerkubernetesazureapisecurity

Works with

  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-aks-v180-2.1.1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Aks V180 2.1.1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Aks V180 2.1.1
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-aks-v180-2-1-1/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-aks-v180-2-1-1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-aks-v180-2.1.1
description: "Enable audit Logs (Manual)"
category: cis-aks
version: "1.8.0"
author: cyberstrike-official
tags: [cis, aks, kubernetes, azure, control-plane, logging, audit-logs]
cis_id: "2.1.1"
cis_benchmark: "CIS Azure Kubernetes Service (AKS) Benchmark v1.8.0"
tech_stack: [kubernetes, azure, aks]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# 2.1.1 Enable audit Logs (Manual)

## Profile Applicability

- Level 1

## Description

With Azure Kubernetes Service (AKS), the control plane components such as the kube-apiserver and kube-controller-manager are provided as a managed service. You create and manage the nodes that run the kubelet and container runtime, and deploy your applications through the managed Kubernetes API server. To help troubleshoot your application and services, you may need to view the logs generated by these control plane components.

To help collect and review data from multiple sources, Azure Monitor logs provides a query language and analytics engine that provides insights to your environment. A workspace is used to collate and analyze the data, and can integrate with other Azure services such as Application Insights and Security Center.

## Rationale

Exporting logs and metrics to a dedicated, persistent datastore ensures availability of audit data following a cluster security event, and provides a central location for analysis of log and metric data collated from multiple sources.

## Impact

What is collected from Kubernetes clusters Container insights includes a predefined set of metrics and inventory items collected that are written as log data in your Log Analytics workspace. All metrics listed below are collected by default every one minute.

Node metrics collected (24 metrics per node): cpuUsageNanoCores, cpuCapacityNanoCores, cpuAllocatableNanoCores, memoryRssBytes, memoryWorkingSetBytes, memoryCapacityBytes, memoryAllocatableBytes, restartTimeEpoch, used (disk), free (disk), used_percent (disk), io_time (diskio), writes (diskio), reads (diskio), write_bytes (diskio), write_time (diskio), iops_in_progress (diskio), read_bytes (diskio), read_time (diskio), err_in (net), err_out (net), bytes_recv (net), bytes_sent (net), Kubelet_docker_operations (kubelet).

Container metrics (8 metrics per container): cpuUsageNanoCores, cpuRequestNanoCores, cpuLimitNanoCores, memoryRssBytes, memoryWorkingSetBytes, memoryRequestBytes, memoryLimitBytes, restartTimeEpoch.

Cluster inventory collected by default: KubePodInventory (1 per minute per container), KubeNodeInventory (1 per node per minute), KubeServices (1 per service per minute), ContainerInventory (1 per container per minute).

## Audit Procedure

Azure audit logs are enabled and managed in the Azure portal.

## Remediation

Azure audit logs are enabled and managed in the Azure portal. To enable log collection for the Kubernetes master components in your AKS cluster, open the Azure portal in a web browser and complete the following steps:

1. Select the resource group for your AKS cluster, such as myResourceGroup. Don't select the resource group that contains your individual AKS cluster resources, such as `MC_myResourceGroup_myAKSCluster_eastus`.
2. On the left-hand side, choose Diagnostic settings.
3. Select your AKS cluster, such as myAKSCluster, then choose to Add diagnostic setting.
4. Enter a name, such as myAKSClusterLogs, then select the option to Send to Log Analytics.
5. Select an existing workspace or create a new one. If you create a workspace, provide a workspace name, a resource group, and a location.
6. In the list of available logs, select the logs you wish to enable. For this example, enable the kube-audit and kube-audit-admin logs. Common logs include the kube-apiserver, kube-controller-manager, and kube-scheduler. You can return and change the collected logs once Log Analytics workspaces are enabled.
7. When ready, select Save to enable collection of the selected logs.

## Default Value

By default, cluster control plane logs aren't sent to be Logged.

## References

1. https://kubernetes.io/docs/tasks/debug-application-cluster/audit/
2. https://docs.microsoft.com/en-us/azure/aks/view-master-logs
3. https://docs.microsoft.com/security/benchmark/azure/security-controls-v2-logging-threat-detection#lt-4-enable-logging-for-azure-resources

## CIS Controls

| Controls Version | Control                                                    | IG 1 | IG 2 | IG 3 |
| ---------------- | ---------------------------------------------------------- | ---- | ---- | ---- |
| v8               | 8.1 Establish and Maintain an Audit Log Management Process | X    | X    | X    |
| v8               | 8.2 Collect Audit Logs                                     | X    | X    | X    |
| v7               | 6 Maintenance, Monitoring and Analysis of Audit Logs       |      |      |      |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.