[CKS] 1-1. CIS Benchmarks

시스템 보안 강화를 위한 CIS 벤치마크 활용과 자동화된 보안 감사로 서버 및 K8s(kube-bench) 취약점을 점검하고 해결합니다.

개요

시스템 보안을 강화, 점검, 업데이트 하며 지속적인 운영을 위해 보안 벤치마크의 의미를 이해해야합니다.

Notion Image

Security Benchmark

Hands-on

--------------------------------------------------------------------------------------
   ,o88888o.    8888    d888888o.          ,o88888o.           8.    8888888888888888 
  8888    `88.  8888  .`8888:' `88.       8888    `88.        .88.         8888       
,88888      `8. 8888  8.`8888.   Y8     ,88888      `8.      .8888.        8888       
888888          8888  `8.`8888.         888888              .`88888.       8888       
888888          8888   `8.`8888.   888  888888             .8.`88888.      8888       
888888          8888    `8.`8888.  888  888888            .8`8.`88888.     8888       
888888          8888     `8.`8888.      888888           .8' `8.`88888.    8888       
`88888      .8' 8888 8b   `8.`8888.     `88888      .8' .8'   `8.`88888.   8888       
  8888    ,88'  8888 `8b.  ;8.`8888       8888    ,88' .888888888.`88888.  8888       
   `888888P'    8888  `Y8888P ,88P'        `888888P'  .8'       `8.`88888. 8888       
--------------------------------------------------------------------------------------
         Welcome to CIS-CAT Pro Assessor; built on 11/20/2024 15:17 PM
--------------------------------------------------------------------------------------
  This is the Center for Internet Security Configuration Assessment Tool, v4.48.0
          At any time during the selection process, enter 'q!' to exit.
--------------------------------------------------------------------------------------

Verifying application

Configured report output directory to '/var/www/html/'
Configured report naming prefix to 'index'
Attempting to load the default sessions.properties, bundled with the application.
Started Assessment 1/1

Loading Benchmarks/Data-Stream Collections

Available Benchmarks/Data-Stream Collections:
 1. CIS Controls Assessment Module - Implementation Group 1 for Windows 10 v1.0.3
 2. CIS Controls Assessment Module - Implementation Group 1 for Windows Server v1.0.0
 3. CIS Google Chrome Benchmark v3.0.0
 4. CIS Microsoft Windows 10 Enterprise Benchmark v3.0.0
 5. CIS Microsoft Windows 10 Stand-alone Benchmark v3.0.0
 6. CIS Microsoft Windows 11 Enterprise Benchmark v3.0.0
 7. CIS Ubuntu Linux 20.04 LTS Benchmark v2.0.1
 > Select Content # (max 7): 7

Selected 'CIS Ubuntu Linux 20.04 LTS Benchmark'

Assessment File CIS_Ubuntu_Linux_20.04_LTS_Benchmark_v2.0.1-xccdf.xml has a valid Signature.
Profiles:
1. Level 1 - Server
2. Level 2 - Server
3. Level 1 - Workstation
4. Level 2 - Workstation
 > Select Profile # (max 4): 1

Selected Profile 'Level 1 - Server'

Obtaining session connection --> Local
Connection established.  
Selected Checklist 'CIS Ubuntu Linux 20.04 LTS Benchmark'
Selected Profile 'Level 1 - Server'

...
Starting Assessment
Notion Image
Notion Image

CIS Benchmark - Kubernetes

k8s를 사용하여 솔루션을 개발 배포, 평가하려는 사람들에게 마찬가지로 CIS Benchmark를 제공합니다.

다만 CIS Benchmark는 k8s를 평가하기 위해선 Pro 플랜이 필요합니다.

따라서 대체할 수 있는 방안을 정리하였습니다.

kube-bench

Aqua Security에서 제공하는 오픈 소스 도구로 k8s가 보안 모범 사례에 따라 배포되었는지 확인하기 위해 사용합니다. 자동화된 평가를 수행할 수 있습니다. Kube-Bench는 쿠버네티스 배포가 CIS 벤치마크에 명시된 모범 사례를 준수하는지 자동으로 검증하는 오픈소스 도구입니다.

Kube-Bench를 배포하고 실행하는 데 사용할 수 있는 방법은 여러 가지가 있습니다.