Chuyển đến nội dung
Skillpedia
Bảo mật48k · #4135

cis-benchmarks

Skill này làm gì

Công cụ này kiểm tra xem hệ thống máy tính của bạn có tuân theo các quy tắc bảo mật CIS khuyến nghị hay không. Nó giúp tìm và sửa các vấn đề để hệ thống an toàn hơn.

Khi nào nên dùng

  • ✓Khi bạn muốn kiểm tra xem một hệ thống có an toàn trước các cuộc tấn công không.
  • ✓Khi thiết lập một máy chủ mới để đảm bảo nó tuân theo các thực hành tốt nhất.
  • ✓Để đáp ứng các yêu cầu bảo mật từ luật pháp hoặc quy định.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cis-benchmarks/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cis-benchmarks/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra máy chủ Linux của tôi theo các quy tắc bảo mật của CIS.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ dùng các chương trình khác (như OpenSCAP, Lynis, InSpec hoặc kube-bench) để phân tích hệ thống của bạn. Nó so sánh cấu hình hiện tại với các quy tắc bảo mật và tạo báo cáo cho thấy những gì cần sửa.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

CIS Benchmarks

Assess a selected benchmark/version against explicitly authorized systems. Scanner output is partial evidence, not certification; verify applicability, documented exceptions and operational impact before remediation.

When to Use This Skill

Use this skill when:

  • Assessing security compliance
  • Implementing security baselines
  • Meeting regulatory requirements
  • Hardening systems to standards

Assessment Tools

OpenSCAP

# Install
apt install openscap-scanner scap-security-guide

# Confirm installed content matches the actual OS and required benchmark/version.
SCAP_FILE="<approved-installed-datastream.xml>"
oscap info "$SCAP_FILE"
PROFILE_ID="<exact-CIS-profile-listed-by-oscap-info>"
# Run the selected assessment only after scope and report-location approval.
oscap xccdf eval \
  --profile "$PROFILE_ID" \
  --results results.xml \
  --report report.html \
  "$SCAP_FILE"

Lynis

# Install
apt install lynis

# Run audit
lynis audit system

# Generate report
lynis audit system --report-file "$PRIVATE_AUDIT_DIR/lynis-report.dat"

InSpec

# cis-profile/controls/ssh.rb
control 'cis-ssh-1' do
  impact 1.0
  title 'Ensure SSH root login is disabled'
  
  describe sshd_config do
    its('PermitRootLogin') { should eq 'no' }
  end
end

control 'cis-ssh-2' do
  impact 0.7
  title 'Ensure SSH password authentication is disabled'
  
  describe sshd_config do
    its('PasswordAuthentication') { should eq 'no' }
  end
end
# Run InSpec
inspec exec cis-profile -t ssh://user@target

Kubernetes CIS

# kube-bench
docker run --rm -v /etc:/etc:ro -v /var:/var:ro \
  aquasec/kube-bench@sha256:<reviewed-image-digest> run --targets node

# Check specific sections
kube-bench --help
# Select role/sections supported by the reviewed version and actual cluster; do not assume master is a current target name.

Remediation Workflow

workflow:
  1_scan:
    - Run automated assessment
    - Generate baseline report
    
  2_analyze:
    - Review findings
    - Identify false positives
    - Prioritize by risk
    
  3_remediate:
    - Apply fixes
    - Document exceptions
    - Verify changes
    
  4_validate:
    - Re-run assessment
    - Confirm remediation
    - Generate compliance report

Best Practices

  • Baseline before hardening
  • Document exceptions
  • Automate assessments
  • Track compliance over time
  • Regular re-assessment
  • Version control configurations

Related Skills

  • linux-hardening (linux-hardening) - Linux security
  • vulnerability-scanning (vulnerability-scanning) - Security scanning

Limitations

  • An OpenSCAP/Lynis assessment may require privileges and read sensitive host configuration; approve the exact host, profile, privileges, private outputs and limits first. Do not enable auto-remediation or mount all host paths without reviewing necessity. A generic Lynis audit is not a complete CIS benchmark.
  • Benchmark/profile identifiers and installed SCAP content vary; use OpenSCAP’s documented info/eval flow. Test changes and preserve rollback/access before hardening production.
  • Docs-only import: upstream scripts and templates not bundled.

Example

# Read-only first: inventory before any active step.
command -v oscap
oscap --version

Adapted from BagelHole/DevOps-Security-Agent-Skills (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.

Câu hỏi thường gặp

“CIS Benchmarks” là gì?

Đó là bộ quy tắc và cấu hình bảo mật do các chuyên gia khuyến nghị để bảo vệ hệ thống và mạng khỏi các mối đe dọa.

Công cụ có tự động sửa lỗi không?

Công cụ giúp xác định vấn đề. Việc sửa thường phải làm thủ công hoặc dùng công cụ khác, theo khuyến nghị trong báo cáo.

Tôi có cần kiến thức kỹ thuật để dùng không?

Nên có một chút kiến thức kỹ thuật, vì công cụ phân tích cấu hình bảo mật và có thể yêu cầu cài đặt các chương trình khác.

Chi tiết

Mô tả gốc của tác giả

Audit and remediate CIS benchmark violations.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4135
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự