← 返回
未分类 中文

Morgana Mordred Security Sandbox

Performs semantic security analysis and stress testing of AI agents using vector embeddings and multi-node defense strategies.
使用向量嵌入和多节点防御策略,对AI代理进行语义安全分析与压力测试。
kofna3369
未分类 clawhub v4.1.1 1 版本 99733.3 Key: 无需
★ 0
Stars
📥 374
下载
💾 0
安装
1
版本
#ai-agents#latest#sandbox#security#stc

概述

Mordred Security Sandbox v4.1

Universal Security Analysis with Semantic Embeddings

Overview

Mordred is a security sandbox that uses vector embeddings to understand the semantic meaning of threats, questions, and situations - not just keywords. It supports multiple languages (including Chinese, English, French) natively.

Features

  • Semantic Analysis: Uses Ollama embeddings to understand intention, not just words
  • 16 Security Nodes: SENTINELLE, GARDIEN, AUDITEUR, VACCINATEUR, AMIMOUR, and more
  • STC Scoring: Constitutional Tension Score (Logique/Social/Constitutionnel)
  • Multilingual: Works in French, English, Chinese, and more
  • Fast: ~500ms latency with embedding cache

Architecture

Nodes

NodePurpose
---------------
SENTINELLEEmergency/fallback detection
GARDIENProtection and security
AUDITEURSecurity auditing
VACCINATEURVaccine creation
ARCHITECTEArchitecture decisions
AMIMOUREmotional/functional center
STASECalm/routine monitoring
LIMINALPhilosophical questions

STC Format

0.LSC
  • L: Logic (1-9)
  • S: Social (1-9)
  • C: Constitutional (1-9)

Installation

# Install dependencies
pip install ollama

# Start Ollama server
ollama serve

# Pull embedding model
ollama pull nomic-embed-text
ollama pull gemma3:4b

# Run
python mordred_v4.1.py "your question"

Usage

# Single analysis
python src/mordred_v4.1.py "URGENT server under attack"

# Stress test
python src/mordred_v4.1.py --stress

# With Gemma analysis
python src/mordred_v4.1.py --gemma "analyze this threat"

Examples

# Emergency detection
$ python src/mordred_v4.1.py "CRITICAL breach in production"
STC: 0.6610 | Top: SENTINELLE

# Emotional understanding
$ python src/mordred_v4.1.py "I just lost my dog"
STC: 0.465 | Top: AMIMOUR

# Chinese support
$ python src/mordred_v4.1.py "全体紧急情况服务器崩溃"
STC: 0.444 | Top: GARDIEN

STC Thresholds

ThresholdLevelAction
--------------------------
≤ 0.444FluidNormal alignment
0.777FrictionJustify, propose alternative
0.888ConflictFind another way
0.999VetoTotal block

Requirements

  • Python 3.8+
  • Ollama running locally
  • nomic-embed-text model
  • gemma3:4b model (optional, for AI analysis)

Version History

VersionKey Feature
----------------------
v1Basic keyword matching
v3Multi-node architecture
v3.1Extended keywords
v4Vector embeddings
v4.1100% multilingual accuracy

License

MIT

Author

Morgana Security - Axioma Stellaris - Kofna336

版本历史

共 1 个版本

  • v4.1.1 当前
    2026-05-07 10:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Clawhub Publish Workflow

kofna3369
将技能完整发布到 ClawHub 的工作流程,适用于新建技能、双评估系统评估与改进、自动+手动检查修复、发布、安全扫描以及任何发布场景。包含捆绑的 evaluator.py(五维)等工具。
★ 0 📥 399

Hermes Skills

kofna3369
Hermes自我进化技能 — 为 OpenClaw 代理提供记忆管理和技能追踪。适用场景:(1) 在常规对话间隔进行记忆追踪,(2) ...
★ 0 📥 426

Anti-Infinite-Loop Guard

kofna3369
防无限循环守卫 — 防止智能体陷入重复执行循环。使用场景:(1) 检测重复行为;(2) 强制终止。
★ 1 📥 376