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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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
- Install dependencies:
pip install requests - Ingest log entries from syslog, JSON, or plain text files.
- For each entry, compute SHA-256 hash of: previous_hash + timestamp + log_content.
- Store the chain as a JSON ledger with entry index, timestamp, content hash, previous hash, and chain hash.
- Verify chain integrity by recomputing all hashes and detecting breaks.
- 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
लोकप्रियता
- GitHub स्टार
- 35k
- रैंकिंग में स्थान
- #8070
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।