मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)35k · #8070

implementing-log-integrity-with-blockchain

यह क्या करती है

यह टूल एक सुरक्षित लॉग बनाता है जिसमें छेड़छाड़ करना मुश्किल है। लॉग की हर नई एंट्री में पिछली एंट्री का एक यूनिक कोड (hash) होता है, जिससे कोई भी बदलाव आसानी से पकड़ा जा सकता है।

कब इस्तेमाल करें

  • ✓सुरक्षा लॉग भरोसेमंद तरीके से सहेजने के लिए।
  • ✓जब साबित करना हो कि कोई रिकॉर्ड बदला नहीं गया है।
  • ✓ऑडिट और फॉरेंसिक जांच के लिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-log-integrity-with-blockchain/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे वेब सर्वर के लॉग के लिए एक सुरक्षित लॉग बनाओ और जांचो कि उनसे छेड़छाड़ तो नहीं हुई।”

हर हफ़्ते 5 नई skills, 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.

अक्सर पूछे जाने वाले सवाल

'hash' क्या है?

यह हर जानकारी के लिए एक यूनिक फिंगरप्रिंट जैसा है। लिखे हुए टेक्स्ट में ज़रा-सा बदलाव भी पूरी तरह अलग फिंगरप्रिंट बना देता है।

यहां 'blockchain' का विचार क्यों इस्तेमाल हुआ है?

यह पूरा blockchain नहीं है, लेकिन इसमें कोड से जानकारी को एक-दूसरे से जोड़ने का वही तरीका है। हर कड़ी पिछली कड़ी पर निर्भर होती है, इसलिए लॉग में बदलाव करना बहुत मुश्किल हो जाता है।

कैसे पता चलता है कि कुछ बदला गया है?

टूल नए बने कोड की तुलना मूल कोड से करता है। चेन में कहीं भी फर्क मिले, तो वह उसी बिंदु से आगे के लॉग में छेड़छाड़ की चेतावनी देता है।

जानकारी

लेखक का मूल विवरण

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
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills