Repository navigation
Add ScorpioSync optional addon for cover traffic generation and traffic-level camouflage - #7
Conversation
Co-authored-by: LashSesh <34846584+LashSesh@users.noreply.github.com>
…sync addon Co-authored-by: LashSesh <34846584+LashSesh@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| cover_msg = f"[COVER:{frame.get('type', 'cover')}]" | ||
| _active_node.send_fragment( | ||
| cover_msg, | ||
| _peer_config["ip"], |
There was a problem hiding this comment.
Keep cover traffic out of the chat stream
The adapter converts every cover frame to the string "[COVER:…]" and forwards it with send_fragment. On the receiving side, SpectralNode.start_listening treats any incoming fragment as a normal chat message and prints/appends it, so enabling cover traffic will spam peers with visible [COVER:cover] messages instead of silently camouflaging traffic. This defeats the purpose of the addon and advertises that cover traffic is being generated. Either embed a distinguishable frame type that the receiver can ignore or add filtering on receive so cover packets are not surfaced to users.
Useful? React with 👍 / 👎.
Overview
Integrates the independent
scorpiosync_generators.pymodule (from external repo) into n'éccrit as an optional addon for cover traffic generation, HTTP-mimicry, and zero-width steganography — without altering any cryptographic core.🎯 Motivation
This addon provides traffic-level camouflage capabilities to help obfuscate communication patterns while maintaining all core security properties:
🔒 Security Architecture
What This Addon Does
✅ Adds traffic pattern obfuscation on top of existing encryption
✅ Formats payloads to resemble HTTP API requests
✅ Provides optional zero-width steganography (disabled by default)
What This Addon Does NOT Do
❌ Does not replace or weaken core cryptography
❌ Does not bypass authentication or key derivation
❌ Does not modify Tripolar masking or resonance validation
❌ Does not alter replay/DoS protection mechanisms
All cover traffic passes through the same Fernet-AEAD + X25519/HKDF encryption pipeline as regular messages.
📦 Changes
New Files
addons/scorpiosync_generators_complete.py- Core generator functions for fake API requests, HTTP formatting, and steganographyaddons/scorpiosync_adapter.py- Integration adapter with n'éccrit's SpectralNode transport layerconfig.py- Configuration flags for optional features (cover traffic enabled by default, steganography disabled)tests/test_addons_generators.py- 10 unit tests for generator functionstests/test_cover_traffic.py- 11 integration tests for cover traffic functionalitydocs/ADDON_SCORPIOSYNC.md- Complete 370-line documentation with API reference and usage guideexample_cover_traffic_integration.py- Working example demonstrating integrationModified Files
README.md- Added ScorpioSync section to features, architecture, and file structure🧪 Testing
Added comprehensive test suite with 21 new tests, all passing:
Test Coverage:
All existing tests still pass - zero breaking changes.
🔧 Configuration
Users can enable/disable features via
config.py:📚 Documentation
Complete documentation provided in
docs/ADDON_SCORPIOSYNC.mdincluding:🚀 Usage Example
⚖️ Responsible Use
These functions can be dual-use technologies. They are provided for:
Steganography is DISABLED by default and should only be enabled for lawful purposes. Users are responsible for compliance with applicable laws.
📊 Statistics
✅ Checklist
Related Documentation: See
docs/ADDON_SCORPIOSYNC.mdfor complete API reference and usage guide.Original prompt
Integrate the independent module
scorpiosync_generators.py(from external repo) into n’éccrit as an optional add-on for cover-traffic generation, HTTP-mimicry, and zero-width steganography — without altering any cryptographic core.🧠 CONTEXT
🧱 STRUCTURE TO ADD
1. Create new folder
2. Add file
addons/scorpiosync_generators_complete.pyPaste exactly the following implementation:
3. Add adapter
addons/scorpiosync_adapter.py4. Config additions (
config.py)5. Hook at session start
✅ TASKS FOR AGENT
Create files exactly as shown.
Add Pytest tests:
Add documentation file docs/ADDON_SCORPIOSYNC.md
Create commits and PR as specified.
Ensure all tests pass and code quality gates are met.
⚖️ RESPONSIBLE USE
These functions can be dual-use. They are provided for legitimate research, QA, and defensive privacy work only. Steganog...
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.