Neutral Consciousness Engine is a safety-critical research project implementing consciousness substrate transfer protocols. Security is paramount due to the nature of neural data handling and brainjacking defense.
Current Phase: Research & Prototyping (pre-v1.0)
| Version | Supported | Status |
|---|---|---|
| main | β | Active development |
| < 1.0 | Pre-release, experimental security |
Email: security@todosloscobardesdelvalle.com
Subject: [SECURITY-CRITICAL] NCE - Brief Description
| Type | Priority | Example |
|---|---|---|
| Brainjacking Attack Vector | CRITICAL | Neural firewall bypass, frequency attack |
| Encryption Weakness | CRITICAL | Homomorphic encryption flaw, key exposure |
| ROS 2 Security | HIGH | Topic hijacking, service spoofing |
| Input Validation | HIGH | Malformed neural data, buffer overflow |
| Information Disclosure | MEDIUM | Log leakage, timing attacks |
| DoS/Resource Exhaustion | MEDIUM | Memory exhaustion, CPU spike |
The Neutral Consciousness Engine implements:
- The Mind: ROS 2-based spiking neural network
- The Body: Unity 6 digital twin
- The Bridge: TCP/IP corpus callosum interface
- The Guardian: Neural Firewall with hybrid TEE
- Neural Data Integrity: Spike trains must not be corrupted
- Consciousness Continuity: <50ms latency must be maintained
- User Safety: No excitotoxicity or seizure induction
- Privacy: Neural patterns are sensitive biometric data
- System Availability: Consciousness transfer cannot tolerate downtime
| Actor | Capability | Motivation | Likelihood |
|---|---|---|---|
| Nation State | Advanced persistent threat | Espionage, sabotage | Low (research phase) |
| Cybercriminals | Ransomware, data theft | Financial | Low (no value yet) |
| Researchers | Protocol analysis | Validation | High |
| Insiders | Full system access | Sabotage, curiosity | Medium |
| Script Kiddies | Automated tools | Disruption | Medium |
Definition: Malicious manipulation of neural data to induce harm.
Scientific Foundation:
Pycroft, L., et al. (2016). "Brainjacking: Implant Security Issues in Invasive Neuromodulation." World Neurosurgery, 92, 454-462. DOI: 10.1016/j.wneu.2016.05.010
Attack Types:
- High-Frequency Attack: >150 Hz gamma synchrony to induce seizures
- Over-Voltage Attack: >100 mV spikes causing excitotoxicity
- Timing Attack: Spike injection at Libet's 350ms window
- Pattern Injection: Malicious spike patterns to disrupt cognition
Defenses:
- Neural Firewall with frequency analysis (traffic_monitor.py)
- Voltage limiting and spike amplitude capping
- Kill switch with physical disconnect
- Redundant safety monitoring
Threat: Compromise of Hybrid TEE architecture.
Attack Types:
- Key Extraction: Steal AES-256 keys from memory
- Homomorphic Attack: Exploit CKKS encryption weaknesses
- Man-in-the-Middle: Intercept neural stream during handshake
- Replay Attack: Re-inject recorded neural patterns
Defenses:
- AES-256-GCM for neural stream (<1ms latency)
- TenSEAL homomorphic encryption for identity handshake
- Secure key storage (future: hardware security module)
- Nonce-based replay protection (future)
Threat: DDS (Data Distribution Service) lacks built-in authentication.
Attack Types:
- Topic Hijacking: Publish malicious data to
/neural_data/prediction_error - Service Spoofing: Fake
/cortex/dream_mode_switchservice - Eavesdropping: Sniff neural data on unencrypted DDS topics
- Resource Exhaustion: Flood topics with high-frequency messages
Defenses:
- ROS 2 Security (SROS2) with permissions (future)
- Network isolation (localhost-only deployment)
- Topic whitelist and validation
- Rate limiting on critical topics
Threat: TCP/IP bridge between ROS 2 and Unity is unauthenticated.
Attack Types:
- Sensor Spoofing: Send fake camera data to Visual Cortex
- Desynchronization: Inject latency to break <50ms requirement
- Command Injection: Manipulate Unity scene state
- Data Exfiltration: Extract proprioceptive feedback
Defenses:
- Mutual TLS authentication (future)
- Message signing with HMAC (future)
- Latency monitoring and kill switch
- Input validation on all Unity messages
-
No Authentication on ROS 2 Topics
- Status: Known issue, accepted risk for research phase
- Impact: Any process can publish to neural topics
- Mitigation: Deploy only on trusted, isolated systems
- Fix Target: v0.9 (SROS2 integration)
-
Limited Kill Switch Testing
- Status: Kill switch implemented but not stress-tested
- Impact: May not trigger fast enough under attack
- Mitigation: Conservative safety thresholds
- Fix Target: v0.8 (full attack simulation)
-
Plaintext Neural Data on Localhost
- Status: ROS 2 topics unencrypted on loopback
- Impact: Local eavesdropping possible
- Mitigation: Keep untrusted processes off the system
- Fix Target: v1.0 (encrypted DDS transport)
-
No Rate Limiting on Neural Topics
- Status: DoS attack possible via topic flooding
- Impact: CPU exhaustion, latency spike
- Mitigation: Monitor system resources
- Fix Target: v0.9
-
Unity Connection Lacks Auth
- Status: Any Unity instance can connect
- Impact: Fake digital twin could feed malicious data
- Mitigation: Bind to localhost only
- Fix Target: v0.9
- Limited Input Validation
- Status: Some ROS message shapes not validated
- Impact: Malformed messages could crash nodes
- Mitigation: Exception handling in callbacks
- Fix Target: v0.8
β Must Have:
- Network isolation (no internet exposure)
- Trusted execution environment
- Updated dependencies (no known CVEs)
- Audit logging enabled
- Kill switch tested
β Must NOT:
- Deploy on public networks
- Use default ROS 2 domain ID (0)
- Disable neural firewall
- Ignore latency warnings
- Run with elevated privileges unnecessarily
# Verify no external network access
ifconfig | grep inet # Should only see 127.0.0.1
# Set ROS 2 to localhost only
export ROS_LOCALHOST_ONLY=1
export ROS_DOMAIN_ID=$(shuf -i 1-101 -n 1) # Random domain ID# Ubuntu/Debian firewall
sudo ufw enable
sudo ufw default deny incoming
sudo ufw default deny outgoing
sudo ufw allow from 127.0.0.1# Generate security keys (future)
ros2 security create_keystore ~/sros2_keys
ros2 security create_key ~/sros2_keys /neutral_consciousness_engine
# Set environment variables
export ROS_SECURITY_KEYSTORE=~/sros2_keys
export ROS_SECURITY_ENABLE=true
export ROS_SECURITY_STRATEGY=Enforceβ
Neural Firewall (neural_firewall/traffic_monitor.py)
- Frequency analysis (>150 Hz detection)
- Voltage limiting (>100 mV threshold)
- Kill switch with redundant publishing (3x)
- Health monitoring heartbeat
β Homomorphic Encryption (in development)
- TenSEAL CKKS scheme for identity handshake
- Computation on encrypted neural data
- Future: Secure multi-party computation
β
Latency Monitoring (latency_injector.py)
- Tracks round-trip time (RTT)
- Alerts if >50ms (Libet buffer requirement)
- Automatic degradation if latency unsafe
β Exception Handling
- Try-catch blocks in critical callbacks
- Graceful degradation on errors
- Error logging with context
- Full input validation for all ROS messages
- Attack simulation test suite
- Security documentation and threat modeling
- Audit logging for all critical events
- SROS2 integration with topic permissions
- Unity bridge authentication (mutual TLS)
- Rate limiting on neural topics
- Session management and replay protection
- Hardware Security Module (HSM) integration
- Encrypted DDS transport
- Intrusion detection system
- Formal security audit
- Compliance with medical device standards (if applicable)
-
Immediate: Trigger kill switch
ros2 topic pub /kill_switch std_msgs/msg/Bool "{data: true}" -
Isolate: Disconnect network
sudo ifconfig eth0 down
-
Document: Save logs
ros2 bag record -a -o incident_$(date +%Y%m%d_%H%M%S) -
Report: Email security@todosloscobardesdelvalle.com
-
Analyze: Review ROS logs
cat ~/.ros/log/*/rosout.log | grep "ERROR\|WARN"
Run security tests:
# Unit tests for neural firewall
pytest test/test_neural_firewall.py -v
# Attack simulation (coming soon)
pytest test/security/test_brainjacking_defense.py
# Fuzzing tests (coming soon)
pytest test/security/test_fuzzing.pyPlanned penetration testing:
- v0.8: Internal team testing
- v0.9: External security researcher review
- v1.0: Professional penetration test
- Report Received: Acknowledge within 24 hours (critical) or 48 hours (others)
- Triage: Assess severity within 48 hours
- Fix Development:
- Critical: 7 days
- High: 30 days
- Medium: 60 days
- Public Disclosure: 90 days after patch, or coordinated earlier
Security researchers will be:
- Credited in CONTRIBUTORS.md
- Acknowledged in release notes
- Listed in Security Hall of Fame
- Co-authors on security papers (if applicable)
Brainjacking:
- Pycroft et al. (2016). World Neurosurgery, 92, 454-462.
- Denning et al. (2009). "Neurosecurity." IEEE Technology and Society Magazine.
Medical Device Security:
- FDA (2014). "Content of Premarket Submissions for Management of Cybersecurity in Medical Devices."
- IEC 62443: Industrial automation and control systems security
Consciousness Safety:
- Libet, B. (1983). "Time of conscious intention to act." Brain, 106(3), 623-642.
- Used for latency budget (500ms Libet buffer)
Security Issues: security@todosloscobardesdelvalle.com
General Questions: GitHub Discussions
Bug Reports: GitHub Issues
Last Updated: January 22, 2026 Version: 1.0.0 Next Security Review: March 2026