본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)35k · #8070

implementing-log-integrity-with-blockchain

하는 일

이 도구는 변조되지 않은 안전한 로그를 만듭니다. 로그의 각 새 항목에는 이전 항목의 고유 코드(해시)가 포함되어, 어떤 수정이든 쉽게 탐지할 수 있습니다.

사용하는 경우

  • ✓보안 로그를 안정적으로 보관할 때.
  • ✓기록이 변경되지 않았음을 증명해야 할 때.
  • ✓감사와 포렌식 조사를 위한 경우.

스킬 링크

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-log-integrity-with-blockchain/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-log-integrity-with-blockchain/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 웹 서버 로그를 안전하게 만들고, 변조되었는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 도구는 새로운 정보(로그)마다 이전 정보의 고유 코드와 타임스탬프를 더해 새 코드를 만듭니다. 누군가 무엇인가를 바꾸면 코드가 더 이상 맞지 않게 되어 변조가 드러납니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Implementing Log Integrity with Blockchain

When to Use

  • When deploying or configuring implementing log integrity with blockchain capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Familiarity with security operations concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Instructions

  1. Install dependencies: pip install requests
  2. Ingest log entries from syslog, JSON, or plain text files.
  3. For each entry, compute SHA-256 hash of: previous_hash + timestamp + log_content.
  4. Store the chain as a JSON ledger with entry index, timestamp, content hash, previous hash, and chain hash.
  5. Verify chain integrity by recomputing all hashes and detecting breaks.
  6. Optionally anchor checkpoint hashes to an external timestamping service.
python scripts/agent.py --log-file /var/log/syslog --chain-file log_chain.json --verify --output integrity_report.json

Examples

Chain Entry Structure

{"index": 42, "timestamp": "2024-01-15T10:30:00Z", "content_hash": "a1b2c3...",
 "prev_hash": "d4e5f6...", "chain_hash": "SHA256(prev_hash + timestamp + content_hash)"}

Tamper Detection

If entry 42 is modified, chain_hash[42] will not match SHA256(chain_hash[41] + ...), and all entries from 42 onward will be flagged as invalid.

자주 묻는 질문

‘해시’란 무엇인가요?

각 정보의 고유한 지문과 같습니다. 텍스트의 아주 작은 변화도 완전히 다른 지문을 만듭니다.

여기서 ‘블록체인’을 사용하는 이유는 무엇인가요?

완전한 블록체인은 아니지만, 정보를 코드로 연결하는 개념을 사용합니다. 각 고리가 이전 고리에 의존하는 사슬처럼, 변경에 매우 강합니다.

무엇인가 변경되었는지 어떻게 알 수 있나요?

도구가 계산된 코드와 원래 코드를 비교합니다. 체인의 어느 지점이라도 차이가 있으면, 그 지점부터 로그가 변조되었다고 경고합니다.

상세 정보

작성자의 원본 설명

Builds an append-only log integrity chain using SHA-256 hash chaining, where each entry incorporates the previous entry's hash so tampering invalidates all subsequent hashes; covers log ingestion (syslog/JSON/plain text), chain verification, pinpoint tamper detection, and checkpoint anchoring to external timestamping services. Use for tamper-evident log storage for compliance or forensics, or to v

repo: mukul975/Anthropic-Cybersecurity-Skills

인기도

GitHub 스타
35k
순위
#8070
라이선스
Apache-2.0
업데이트
2026. 8. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬