implementing-log-integrity-with-blockchain
/implementing-log-integrity-with-blockchain
Buduje łańcuch integralności logów oparty na haszach SHA-256, który wykrywa manipulację, i weryfikuje, czy wpisy nie zostały zmienione.
- Autor
- mukul975 ↗
- Repozytorium
- Anthropic-Cybersecurity-Skills ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 31.08.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 4
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 31.08.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/agent.py
Co robi i kiedy
Buduje łańcuch integralności logów oparty na haszach SHA-256, który wykrywa manipulację, i weryfikuje, czy wpisy nie zostały zmienione.
Oryginalny opis (EN)
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 verify whether log entries were altered.
Jak działa
- When to Use
- Prerequisites
- Instructions
- Examples
Podgląd SKILL.md
---
name: implementing-log-integrity-with-blockchain
description: >-
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 verify whether log entries were altered.
domain: cybersecurity
subdomain: security-operations
tags:
- log-integrity
- tamper-detection
- hash-chaining
- sha-256
- audit-logging
- security-operations
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- DE.CM-01
- RS.MA-01
- GV.OV-01
- DE.AE-02
mitre_attack:
- T1078
- T1190
- T1059
---
# 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.
```bash
python scripts/agent.py --log-file /var/log/syslog --chain-file log_chain.json --verify --output integrity_report.json
```
## Examples
### Chain Entry Structure
```json
{"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.
Pliki w paczce (4)
- LICENSE 11 KB
- SKILL.md 2 KB
- references/api-reference.md 1 KB
- scripts/agent.py 8 KB
Wersje
W bazie nie ma innych skilli o nazwie implementing-log-integrity-with-blockchain.
Migawka bazy z 13.11.2026 · wersja paczki fbc729fa9109 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90markup-detection
Ocenia wiarygodność obrazów, wideo i dokumentów pod kątem śladów manipulacji oraz metadanych i pochodzenia treści (C2PA). - 96sec-audit
Wyświetla raport audytu bezpieczeństwa projektu Peephole, w tym tryb pracy, integralność plików i stan logów. - 100audit-logging
Buduje odporne na manipulacje dzienniki audytowe dla SOC 2, HIPAA i PCI DSS: tabelę PostgreSQL z łańcuchem hashy, zapytanie weryfikujące i archiwum CloudTrail z S3 Object Lock. - 90audit-logging
Zapisuje zdarzenia istotne dla bezpieczeństwa w odpornym na manipulacje dzienniku tylko do dopisywania, który mówi, kto co i kiedy zrobił. - 100integrity
Przegląda kod i potoki pod kątem awarii integralności oprogramowania i danych zgodnie z OWASP Top 10 2021 A08: deserializacja, łańcuch dostaw, bezpieczeństwo CI/CD, SRI i podpisywanie kodu. - 100agent-supply-chain
Weryfikuje integralność łańcucha dostaw wtyczek, narzędzi i zależności agentów AI: manifesty SHA-256, wykrywanie zmodyfikowanych plików, przypinanie zależności i łańcuchy pochodzenia.