Skip to content

Title: feat: Implement XDR Inspection Sandbox #68#284

Merged
adams813 merged 2 commits intobenelabs:mainfrom
Hillzo:fix-xdr
May 3, 2026
Merged

Title: feat: Implement XDR Inspection Sandbox #68#284
adams813 merged 2 commits intobenelabs:mainfrom
Hillzo:fix-xdr

Conversation

@Hillzo
Copy link
Copy Markdown

@Hillzo Hillzo commented Apr 29, 2026

closes #68
Summary of changes:

XDR Inspection Service: Introduced the XdrInspector service (src/services/inspector.ts) to parse and evaluate Stellar transactions against a strict set of security rules.
New MCP Tool: Added the inspect_xdr tool (src/tools/inspect_xdr.ts) to provide a structured risk report to AI assistants before any simulation or submission occurs.
Security Rule Engine: The engine actively flags dangerous operations such as AccountMerge (drain risk), SetOptions (signer manipulation), and Clawback as HIGH or CRITICAL risk. It also detects anomalous transaction fees.
Architecture Updates: Registered the tool and added input validation schemas (InspectXdrInputSchema) to ensure inputs are clean and properly decoded.
Documentation: Updated README.md with detailed explanations of the inspection tool's capabilities and response formats.
Reason for the changes: To provide a secure "pre-flight" validation layer (Issue #68). AI agents or users can now automatically verify that generated or provided XDR blobs do not contain hidden, malicious operations before interacting with the live network or spending simulation resources.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@Hillzo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@adams813
Copy link
Copy Markdown
Collaborator

adams813 commented May 3, 2026

Nice Implementation, LGTM!

@adams813 adams813 merged commit cbaf038 into benelabs:main May 3, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement XDR Inspection Sandbox

3 participants