Skillpedia
النشر والسحابة (DevOps)35k · #8070

implementing-log-integrity-with-blockchain

ما الذي تفعله

تُنشئ هذه المهارة سجلًا آمنًا لا يمكن العبث به. كل إدخال جديد يحتوي على رمز فريد (hash) للإدخال السابق، مما يجعل أي تعديل سهل الكشف.

متى تستخدمها

  • ✓عندما تريد تخزين سجلات الأمان بموثوقية.
  • ✓عندما تحتاج إلى إثبات أن سجلًا لم يُعدَّل.
  • ✓عندما تحتاج إلى التدقيق والتحقيقات الجنائية الرقمية.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-log-integrity-with-blockchain/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أنشئ سجلًا آمنًا لسجلات خادم الويب لدي، وتحقق من أنه لم يُعبث به.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تأخذ المهارة كل معلومة (سجل) جديدة، وتضيف إليها الرمز الفريد للمعلومة السابقة والطابع الزمني، ثم تولّد رمزًا جديدًا. إذا حاول أحد تغيير أي شيء، فلن تتطابق الرموز، فيظهر التلاعب.

المحتوى التقني (ملف 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

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة