Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Future Work
Conclusion
SETCHAIN
AI-Powered Cybersecurity
Automation Platform
An AI-Driven Pipeline Integrating Multi-Layer Machine Learning,
Blockchain Immutability & Decentralized Storage for Real-Time
Threat Detection and Active Response
Supervised by:
Prof. Dr. Mahmoud Ghanem
Alexandria National University
2025–2026
Table of Contents
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Table of Contents
What We Are?
2.
What We Are?
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
Youssef Said Thabet 2205064 Cyber Security
Karim Abdelaziz Elsayed 2205037 Cyber Security
Taha Abdelwadoud Hassan 2205030 Cyber Security
Mohamed Nasser Elmasry 2205052 Cyber Security
Karim Walid Saad 2205076 Cyber Security
Touqa Ahmed Abdelmonem 2205175 Intelligence Systems
3.
TABLE OF CONTENTS
01Introduction
Background, problems, motivation, aims
& scope
02 System Architecture
Three-tier design, network topology, lab
setup
03 AI Pipeline
5-layer: Isolation Forest → XGBoost →
Groq LLM
04 Smart Alert Filter
Flood prevention: NEVER/ALWAYS
forward, rate limits
05 Blockchain & IPFS
Triple-anchor forensic integrity model
06 n8n Workflow
11-node orchestration, STIX 2.1, active
response
07 RAG AI Chatbot
Natural language queries of live pipeline
logs
08 Testing & Results
20 TCs, 91% precision, 6–12s latency
benchmarks
09 Challenges
13 technical challenges documented and
resolved
10 Future Work & Conclusion
TLS, Kubernetes, TAXII, ML feedback
loop
Introduction
Background & Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Future Work
Conclusion
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
What We Are?
Table of Contents
Cover
4.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Chapter 01
INTRODUCTION
Background, Problems, Motivation & Aims
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
5.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
BACKGROUND & CONTEXT
The global cybersecurity landscape has undergone fundamental transformation. APTs, cloud migration, and
expanded attack surfaces demand automated, intelligent defence.
APT Threat Actors
Nation-state and organised criminal
groups conduct long-term multi-stage
campaigns.
Modern SOC Stack
NIDS (Suricata), SIEM (Wazuh),
EDR, and threat intel feeds generate
enormous telemetry hundreds of
thousands of alerts per day at a
single network segment.
Wazuh SIEM
Open-source fork of OSSEC.
Integrates host-based IDS, file
integrity, vulnerability assessment,
and compliance checking.
Suricata IDS
Multi-threaded NIDS using Emerging
Threats Open ruleset. Generates
structured eve.json alert records
forwarded to Wazuh
6.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
PROBLEM STATEMENT (1 & 2)
P1 : Alert Volume Overload & Alert Fatigue
The combined output of Suricata IDS and Wazuh SIEM generates alert volumes
that far exceed human analyst capacity. . Alert fatigue leads analysts to dismiss
alerts by pattern rather than analysis, dramatically increasing the probability of
missing genuine threats.
P2 : Absence of Automated Contextual Intelligence
Raw SIEM alerts contain operational telemetry rule identifiers, severity levels,
decoded log lines but minimal contextual intelligence.manual enrichment is
inconsistent across skill levels and does not scale to modern alert volumes.
7.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
PROBLEM STATEMENT (3 & 4)
P3: Mutable and Forensically Fragile Evidence
Records
Security event logs in traditional relational databases or flat-file systems are
fundamentally mutable. This undermines forensic value during post-incident
investigations and weakens evidential position in legal or regulatory proceedings
where organisations need cryptographic proof of log integrity and timeline
accuracy.
P4: Static and Non-Adaptive Active Response
Most automated response systems apply static, pre-programmed rules treating all
matching alerts identically regardless of confidence level or threat characteristics.
This causes both over-response (unnecessary service disruption) and under-
response (insufficient action against critical threats).
8.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
MOTIVATION & AIMS
The primary barrier is not a lack of individual tools it is the absence of systematic integration into a unified
automated platform.
Isolation Forest
Unsupervised anomaly detection
detects zero-day threats without
labelled training data.
XGBoost
State-of-the-art tabular classification
calibrated probability confidence
scoring (Chen & Guestrin, 2016)
Groq LLM
llama3-70b-8192 generates structured
MITRE ATT&CK playbooks at 300–
800ms. Free tier API available.
STIX 2.1 / MITRE
Globally recognised machine-readable
threat intelligence standard —
interoperable with MISP, OpenCTI,
Splunk SOAR
Hyperledger Fabric
Permissioned blockchain Raft ordering,
X.509 identity, no cryptocurrency
overhead, enterprise-grade integrity
IPFS & n8n
Content-addressed decentralised
storage + visual declarative workflow
automation no custom middleware
required
9.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
SCOPE & LIMITATIONS
Scope
Complete design, implementation, integration, testing, and documentation of 10-component
pipeline
Real network security events from Suricata IDS through all pipeline stages to active response
enforcement
Known Limitations
Plain HTTP between components (no TLS) : intentional lab constraint; TLS is top production
prerequisite
AI pipeline Layer 4 depends on Groq external API internet connection required
10.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Chapter 02
SYSTEM
ARCHITECTURE
Three-tier microservices design, network topology & lab environment
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
11.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
SYSTEM OVERVIEW
Microservices-inspired: each component is independently deployable with a well-defined HTTP/JSON interface.
Detection Tier
Suricata IDS (ET Open
Rules)
Wazuh SIEM (Agent +
Manager)
Smart Alert Filter (Python)
Intelligence &
Orchestration
n8n 11-node Workflow
AI Engine (FastAPI)
AbuseIPDB IP Reputation
Persistence & Response
IPFS Decentralised Storage
Hyperledger Fabric
Blockchain
Wazuh Active Response
API
→ →
12.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
SYSTEM OVERVIEW
13.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Chapter 06
N8N WORKFLOW
11-node declarative orchestration · STIX 2.1 generation · Active response execution
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Chapter 03
AI PIPELINE
5-layer sequential processing: anomaly detection → confidence scoring → playbook
generation
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
28.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
29.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Chapter 07
RAG AI CHATBOT
Natural language querying of live pipeline logs — grounded answers, not hallucinated
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
30.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
RAG AI CHATBOT
How It Works
1. Analyst POSTs natural language query
to /chat FastAPI endpoint
2. get_n8n_executions() reads last 5
records from n8n_executions.jsonl
3. Records formatted as structured text
block (n8n_text)
4. n8n_text injected into Groq LLM system
prompt as RAG context
5. LLM instructed: answer ONLY from
provided data, no speculation
6. Response includes alert_id, tactic,
confidence, ipfs_cid, wazuh_response from
actual logs
Critical: field names in n8n Edit Fields node MUST match
Python parsing code field names exactly — mismatches
cause all values to appear as N/A.
Example Interactions
Analyst:
Trace the last alert processed.
SetChain:
Last: SSH Brute-Force (T1110), conf 0.91,
firewall-drop0 for 7200s. IPFS: QmXz...
Blockchain: ALERT_1720000123.
Analyst:
Was any alert flagged for human review?
SetChain:
Yes — ALERT_1719998045 (conf 0.72) →
NEEDS_HUMAN_REVIEW. Conservative
300s block applied.
Analyst:
What MITRE technique was used in the last
alert?
SetChain:
T1110 (Brute Force) under Credential
Access. Mitigation: enforce lockout after 5
failed attempts.
Grounded answers only — model cannot hallucinate fields
absent from actual execution logs.
31.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
PERFORMANCE METRICS
0.91
Precision
0.87
Recall
0.89
F1-Score
6–12s
E2E Latency
Pipeline Stage Latency Breakdown
Pipeline Stage Min Median Max
Wazuh alert generation → n8n Webhook 800ms 1400ms 3200ms
AI Engine — Layers 0–3 (local ML inference) 120ms 280ms 450ms
AI Engine — Layer 4 (Groq LLM API) 280ms 520ms 920ms
AbuseIPDB API lookup 150ms 380ms 780ms
STIX bundle generation (Code node) 8ms 22ms 48ms
IPFS upload (local Docker node) 80ms 210ms 440ms
SHA-256 hash computation 1ms 3ms 8ms
Hyperledger Fabric transaction commit 1800ms 3200ms 5400ms
Wazuh JWT authentication 220ms 480ms 920ms
Wazuh Active Response API call 180ms 360ms 640ms
Execution log write (/n8n-log) 30ms 80ms 180ms
Total — ACTION_REQUIRED branch 4200ms 7800ms 13600ms
Total — IGNORE branch 1200ms 2400ms 4800ms
32.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
AI MODEL PERFORMANCE METRICS
Metric Layer 1
(Logistic Reg.)
Layer 2
(XGBoost)
Layer 3
(Hybrid)
Notes
Precision 84.62% 95.47% 91.89% % of
ACTION_REQUIRED
decisions that were
genuine threats
Recall 100.00% 92.12% 94.82% % of genuine threats
correctly classified
F1-Score 91.67% 93.77% 93.33% Harmonic mean of
precision and recall
Accuracy 97.33% 93.26% 92.54% Overall correct
classifications on test
set
False Positive Rate 15.38% 4.53% 8.11% Benign alerts
misclassified as threats
Test Set Size 750 alerts
(Wazuh)
82,332 alerts
(UNSW-NB15)
82,332 alerts
(UNSW-NB15)
Evaluation data
Training Set Size Wazuh operational
alerts
UNSW-NB15
training set
UNSW-NB15
training set
Training data
SetChain vs. Compared Systems Unique Differentiation
SetChain is the ONLY system combining: 5-layer AI classification · STIX 2.1 output · IPFS storage ·
Blockchain anchoring · Alert flood protection · RAG chatbot · at ZERO licensing cost.
Splunk SOAR / IBM QRadar SOAR: no AI triage, no blockchain, no IPFS, $30K–$100K+/yr.
TheHive+Cortex: no blockchain, no active response. Academic proposals: no AI, no automation.
33.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Chapter 05
BLOCKCHAIN & IPFS
Triple-anchor forensic integrity · Hyperledger Fabric · IPFS content-addressing
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
34.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
BLOCKCHAIN & IPFS
Triple-Anchor Forensic Integrity Model
SHA-256 Hash
crypto.createHash('sha256').
update(JSON.stringify(bundl
e)).digest('hex'). Computed
once before IPFS upload.
64-char hex fingerprint of the
full STIX bundle.
IPFS CID
CID derived from SHA-256
of content via Multihash.
kubo-rpc-client ipfs.add()
uploads bundle. Any content
modification → completely
different CID. Substitution
immediately detectable.
Hyperledger Fabric
contract.submitTransaction('r
ecordAlert', ...). Stored as:
'IPFS_CID:[cid]|HASH:
[sha256]'. Immutable
append-only ledger. Cannot
be modified or deleted.
→ →
Forensic Integrity Verification (TC-20 Validated)
1. Query Fabric ledger with alertId → retrieve IPFS_CID and SHA-256 hash
2. Fetch STIX bundle from IPFS using CID
3. Recompute SHA-256 of retrieved file and compare with on-chain hash — exact match proves no
tampering
TC-20 result: Manually modifying a stored STIX bundle changed its CID — original CID could not
serve modified content. Hash mismatch detected immediately.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Chapter 08
TESTING & RESULTS
20 test cases · All PASS · Unit → Integration → End-to-End validation
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
41.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
Our Proof Of Work
“We Are SetChain Turning Cyber Threats Into Immutable Truth”
https://drive.google.com/file/d/11mJm8uKB7p0ECxU0
DB6ZByPDDN1gXe_1/view
AI Model Metrics
Challenges 1–7
SetChain Unique Differentiation
42.
Cover
Table of Contents
Introduction
Background& Context
Problem 1 & 2
Problem 3 & 4
Motivation & Aims
Scope & Limitations
System Architecture
Three-Tier Detail
Network Communication
Lab Environment
AI Pipeline Overview
Layers 0 & 1
Layers 2, 3 & 4
Smart Alert Filter
Filter Config Table
Blockchain & IPFS
Hyperledger Fabric
IPFS & Data Stores
n8n Workflow
STIX 2.1 Bundle
Active Response
RAG AI Chatbot
Chatbot Architecture
Testing Strategy
Test Cases
Performance Metrics
AI Model Metrics
Challenges 1–7
Challenges 8–13
Literature Review
Gap Analysis
Future Work
Conclusion
CONCLUSION
End-to-End Automated Pipeline
Detection → AI → STIX → Blockchain → Active
Response. No human intervention for routine threats.
First open-source system combining all these stages in
a single platform.
5-Layer AI + Confidence-Scored AR
Conservative <0.85 (300–600s) vs. full >0.85
enforcement scaled by MITRE tactic severity. More
nuanced and explainable than any single-model
approach.
Triple-Anchor Forensic Integrity
SHA-256 + IPFS content-addressing + Hyperledger
Fabric. Three independent tamper-evidence layers.
Computationally infeasible to falsify all three
simultaneously.
Smart Alert Filter
NEVER/ALWAYS forward + global + per-rule rate limiting
with persistent state. Practical flood protection making
raw NIDS-to-automation integration viable in real
deployments.
RAG Chatbot Integration
Factually grounded natural language queries of live
execution logs. Answers verified against actual JSONL
records. Capability entirely absent from all compared
systems.
13 Challenges Documented
Reusable knowledge base: Docker networking, Fabric
determinism, n8n expression mode, Wazuh AR naming,
self-signed TLS — none well-documented in official
sources.
SetChain: Fully open-source · Zero enterprise cost · Complete detection-to-response automation · All 8
objectives delivered · 20/20 test cases passed