Skip to content

Conversation

@Sarks0
Copy link
Owner

@Sarks0 Sarks0 commented Jan 20, 2026

  • Add structured error framework with error codes and actionable suggestions
  • Implement conditional breakpoints with logging (bpcnd, bplog, bpcmd support)
  • Add module dump functionality with PE header reconstruction
  • Add API logging breakpoints for monitoring Windows API calls
  • Add breakpoint log retrieval and clearing endpoints
  • Integrate structured errors into address validation and API error handling
  • Export structured error utilities in utils init

New files:

  • src/utils/structured_errors.py: Error codes, structured error classes, factory functions
  • tests/test_structured_errors.py: Comprehensive tests for structured errors
  • tests/test_module_dump.py: Tests for module dump tool formatting

Sarks0 and others added 6 commits January 20, 2026 14:55
- Add structured error framework with error codes and actionable suggestions
- Implement conditional breakpoints with logging (bpcnd, bplog, bpcmd support)
- Add module dump functionality with PE header reconstruction
- Add API logging breakpoints for monitoring Windows API calls
- Add breakpoint log retrieval and clearing endpoints
- Integrate structured errors into address validation and API error handling
- Export structured error utilities in utils __init__

New files:
- src/utils/structured_errors.py: Error codes, structured error classes, factory functions
- tests/test_structured_errors.py: Comprehensive tests for structured errors
- tests/test_module_dump.py: Tests for module dump tool formatting
- Add path traversal protection to x64dbg_dump_memory and x64dbg_dump_module
  using sanitize_output_path() to restrict output to ~/.binary_mcp_output/dumps
- Add 100MB size limit to dump_memory in both dynamic_tools.py and bridge.py
  (defense-in-depth) to prevent memory exhaustion attacks
- Add TestSecurityValidations test class with 4 new tests for security checks
…ndency

Tests now use hardcoded expected values instead of importing constants
from dynamic_tools.py, which has heavy FastMCP dependencies that fail
in CI environments. The bridge.py import test still validates the
actual constant value.
@Sarks0 Sarks0 merged commit cc84fcb into main Jan 20, 2026
4 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.

2 participants