aegis-re
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aegis-reinspect ./target.so and report its NX, PIE, and stack canary status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π‘οΈ AegisRe: Autonomous Binary Analysis & Vulnerability Triaging Copilot
AegisRe is a lightweight, zero-dependency binary diagnostics and vulnerability triaging copilot engineered for reverse engineers, security auditors, and AI coding assistants like Claude Code.
ποΈ System Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Claude Code / AI Coding Agents β
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ
β (JSON-RPC 2.0 via stdio)
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AegisRe MCP Gateway Server β
ββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ€
β aegis_inspect_binary β aegis_triage_vulnerabilitiesβ
βββββββββββββββ¬βββββββββββββ΄βββββββββββββββ¬βββββββββββββββ
β β
βββββββββββββΌβββββββββββββ βββββββββββββΌβββββββββββββ
β Binary Analyzer Engine β β Vulnerability Triager β
ββββββββββββββββββββββββββ€ ββββββββββββββββββββββββββ€
β - ELF / PE Header Parseβ β - CWE-120 Buffer Oflow β
β - NX / PIE / Canaries β β - CWE-134 Format Str β
β - Shannon Entropy Calc β β - CWE-78 Command Inj β
β - Dangerous Symbol Scanβ β - CWE-798 Hardcoded Keyβ
βββββββββββββ¬βββββββββββββ βββββββββββββ¬βββββββββββββ
β β
βββββββββββββββ¬ββββββββββββββ
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Markdown & JSON Report Generator β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββRelated MCP server: Ghidra MCP server for Cline
β‘ Key Capabilities
1. π Binary Hardening & Mitigation Auditing
Inspects executable formats (ELF, PE, Mach-O) across x86, x86_64, ARM, and AArch64 (ARM64) architectures without requiring external binary parser libraries:
NX / DEP: Detects non-executable stack flags (
PT_GNU_STACK).PIE / ASLR: Position Independent Executable verification.
Stack Canaries: Identifies
__stack_chk_failprotections.Entropy Analysis: Calculates Shannon entropy (0.0 to 8.0) to flag packed or encrypted payloads.
High-Risk Symbols: Flags dangerous C library calls (
strcpy,gets,sprintf,system,popen,mprotect).
2. π‘οΈ Source & Decompiled Code Vulnerability Triaging
Automatically maps static vulnerabilities directly to the MITRE CWE Catalog:
CWE-120: Unbounded string copies (
strcpy,strcat).CWE-242: Inherently dangerous functions (
gets).CWE-134: Uncontrolled format strings (
printf(variable)).CWE-78: OS command injections (
system,popen).CWE-338: Insecure pseudo-random number generation (
rand()).CWE-798: Hardcoded secrets, API tokens, and credentials.
CWE-416: Use-after-free and double-free anti-patterns.
3. π€ Model Context Protocol (MCP) for Claude Code
AegisRe ships with a native MCP server running over stdio. Once configured, Claude Code can autonomously invoke Aegis tools directly inside your terminal session.
π Quick Start
Installation
Clone the repository and install in editable mode:
git clone https://github.com/cloudauraa/aegis-re.git
cd aegis-re
pip install -e .Note: AegisRe runs entirely on standard library modules. Zero external dependencies required for core analysis.
π» CLI Usage Guide
1. Inspect a Binary
# Run security analysis on a Linux shared object or executable
aegis inspect ./target.so --stringsExample Output:
[*] Inspecting: libtarget.so
Format: ELF (Linux / Android Shared Object / Executable)
Architecture: AArch64 (ARM64) (64-bit, Little)
Size: 5,689,536 bytes
Entropy: 6.4586 [NORMAL]
SHA-256: 85d3bda458c9dda73d0d5f539991ed785d2c1e86c5a2e8d6b69061cc2839ea01
[*] Mitigations & Protections:
[+] NX / DEP: ENABLED
[+] PIE / ASLR: ENABLED
[+] Stack Canary: ENABLED
[+] RELRO: None
[+] Stripped: NO
[!] Detected High-Risk APIs:
- strcpy - Unbounded string copy (CWE-120)
- sprintf - Potential format string / buffer overflow (CWE-134)
- system - Command execution via shell interpreter (CWE-78)2. Triage Decompiled C / Source Code
# Scan decompiled C file and export Markdown audit report
aegis triage ./decompiled.c -o audit_report.md3. Comprehensive Scan
# Full spectrum inspection + vulnerability triage exported as JSON
aegis scan ./target_binary -o scan_results.jsonπ Connecting to Claude Code (MCP Setup)
Add AegisRe to your Claude Code or Claude Desktop MCP configuration (mcp_config.json):
{
"mcpServers": {
"aegis-re": {
"command": "python",
"args": ["-m", "aegis.cli", "mcp"]
}
}
}Now you can instruct Claude Code:
"Audit target.so using AegisRe and verify if stack canaries and NX are enabled."
π§© IDA Pro Integration
To use Aegis inside IDA Pro 7.x, 8.x, or 9.x:
Copy
aegis/integrations/ida_bridge.pyinto your IDA plugins folder:Windows:
%APPDATA%\Hex-Rays\IDA Pro\plugins\Linux:
~/.idapro/plugins/
In IDA Pro, highlight any decompiled function in Hex-Rays and press:
πCtrl + Alt + AAegisRe will instantly analyze the AST and print a CWE risk breakdown in the IDA output console.
π§ͺ Testing
Run the included unit test suite:
python -m unittest discover -s tests -vAll 9 test cases pass verifying entropy calculation, ELF/PE header heuristics, CWE rule matching, and CLI parsing.
π License
This project is licensed under the MIT License - see the LICENSE file for details.
Maintained by Sagar Beniwal.
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Zero-install security baseline for AI coding agents β OWASP/CWE-cited rules over MCP.
AI-security knowledge as MCP: standards-mapped tools (OWASP, NIST, MITRE) for AI agents.
Enrich, search, assess, and manage threat intelligence through 80+ typed MCP tools.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables LLM clients to access DevSecOps tooling such as CI/CD pipeline status, vulnerability triage, log search, and dependency scanning through MCP, turning AI copilots into security-aware engineering partners.46MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to import binaries into Ghidra, trigger analysis, browse functions, symbols, strings, and imports, and read decompiled C code and disassembly via MCP tools.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to locally analyze and reverse engineer binaries through a compact 12-tool MCP interface for triage, function discovery, disassembly/decompilation, cross-references, strings/imports, call graphs, memory reads, annotations, and binary diffs.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents and LLMs to query a codebaseβs structure and data flow by building Joern Code Property Graphs and exposing CPGQL queries, taint tracking, program slicing, and vulnerability analysis over MCP.-