Skip to content

YecoAI/Aegis-Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aegis Engine: High-Performance Moderation & Threat Detection Framework

Official Partnership: Aegis Engine is a high-performance security framework developed by YecoAI Team for the Security Bot team. Designed for seamless integration into the Security Bot core to establish a new standard in proactive community defense.

1. Core Vision

Aegis Engine is a plug-and-play predictive moderation framework. It transcends traditional blacklist filters by utilizing a multi-layered defense architecture that combines Statistical NLP with Behavioral Heuristics to secure high-traffic messaging environments (Discord, Telegram, Web).


2. Capability Showcase

Scenario Input Example Status Engine Logic
Bypass Attempt f.u.c.k.y.o.u / v4ff4ncul0 Blocked Aegis Normalizer + N-gram Analysis
Split Attack You -> are -> trash Blocked Aegis Temporal History (3-msg window)
Phishing/NSFW discord.gg/invite-link Blocked Deep Metadata Inspection (Server Name)
Mass Media Spam Multi-channel media flood Blocked Cross-channel Behavioral Heuristics
Technical Context Kill the parent process Allowed Context-Aware NLP Engine

3. Technical Architecture

3.1 Aegis Core (Intelligence)

A Logistic Regression model optimized for microsecond-latency inference:

  • Feature Extraction: Char-level TfidfVectorizer (1-4 n-grams) to neutralize orthographic obfuscation.
  • Classification: 5 distinct risk tiers (Clean, Offensive, Highly Offensive, Spam, Severe).

3.2 Aegis Normalizer (Synthesis)

An advanced pre-processing pipeline that reconstructs intent:

  • Leet-Translation: Real-time translation of symbolic alphabets.
  • Structural Reconstruction: De-spacing and de-repetition algorithms to normalize fragmented intent.

4. Multi-Layer Defense

  1. Statistical Layer: Probabilistic analysis with adaptive confidence scoring (40% floor).
  2. Temporal Layer: User history correlation to detect distributed toxicity.
  3. Metadata Layer: Deep invite inspection via server-side metadata fetching.
  4. Behavioral Layer: Real-time monitoring of media distribution patterns across channels.

5. Performance Metrics

  • Throughput: ~2,400 msg/sec
  • Latency: < 0.50ms (Local Inference)
  • Accuracy: ~91% in real-world adversarial scenarios.

6. Implementation & Licensing

Integration

Aegis Engine is designed as a modular Python package:

from core.moderator import AegisModerator, SecurityLevel

aegis = AegisModerator(level=SecurityLevel.MEDIUM)

is_threat, reason = aegis.check_message(
    text="Target content",
    user_id=12345,
    channel_id=6789,
    attachments_count=0
)

Licensing

  • Personal/Open Source: Free usage with mandatory attribution to Aegis Engine of YecoAI.com
  • Commercial/Verified Bots: Integration into commercial or Discord-Verified bots requires a Commercial License. Please contact the repository owner for approval.

Aegis Engine: The unbreakable shield for digital communities.

About

A high-performance, multi-layered moderation framework for Discord and messaging platforms. Powered by NLP and behavioral heuristics to neutralize toxicity, mass spam, and adversarial bypass attempts. Official framework for SecurityBot.gg.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages