本文へスキップ
Skillpedia
セキュリティ48k · #4135

cis-benchmarks

できること

このツールは、コンピューターシステムがCISの推奨するセキュリティルールに沿っているかを確認します。問題点を見つけて修正するのに役立ち、システムをより安全にできます。

使う場面

  • ✓システムが攻撃に対して安全かどうかを確認したいとき。
  • ✓新しいサーバーを構築する際に、ベストプラクティスに従っているかを確認したいとき。
  • ✓法律や規制によるセキュリティ要件を満たす必要があるとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cis-benchmarks/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Linuxサーバーが、CISのセキュリティルールに沿っているか確認してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、OpenSCAP、Lynis、InSpec、kube-benchなどの他のプログラムを使ってシステムを分析します。現在の設定とセキュリティルールを比較し、修正が必要な箇所をまとめたレポートを作成します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

よくある質問

「CISベンチマーク」とは何ですか?

システムやネットワークを脅威から守るために、専門家が推奨するセキュリティルールと設定のセットです。

このツールは問題を自動で修正しますか?

このツールは問題を見つけることを目的としています。修正は通常、レポートの推奨事項に従って手動で行うか、別のツールを使って行う必要があります。

使うのに専門的な知識は必要ですか?

セキュリティ設定を分析し、ほかのプログラムのインストールが必要になる場合があるため、ある程度の技術的な知識があることをおすすめします。

詳細

作者による元の説明

Audit and remediate CIS benchmark violations.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4135
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル