🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
4 messages
4 total messages Started by Gabx Sun, 02 Nov 2025 13:17
fog v1.3.3 - Anonymous SMTP Relay with Sphinx Mixnet
#332804
Author: Gabx
Date: Sun, 02 Nov 2025 13:17
143 lines
5881 bytes
## What is fog?

fog is an anonymous SMTP relay system that uses the Sphinx mixnet 
protocol to provide strong sender anonymity through multi-hop routing 
over Tor hidden services.
Messages are encrypted in layers (onion routing) and forwarded
through 3-6 randomly selected nodes before reaching their destination.

### What Works ✓

- **Sphinx Mixnet Protocol**: Full implementation with AES-256-GCM 
encryption
- **Variable-Hop Routing**: Random 3-6 hops per message
- **Random Route Selection**: Complete shuffling of available nodes
- **Batch Processing**: Messages batched and shuffled to resist timing 
attacks
- **Forward Secrecy**: Ephemeral ECDH keys for each hop
- **Tor Integration**: All inter-node communication over Tor hidden services
- **SMTP Gateway**: Standard SMTP interface for sending messages
- **Persistent Keys**: Node keys saved and reloaded across restarts
- **Multi-Node Network**: Successfully tested with 4 nodes

### Technical Details

Encryption:
   - AES-256-GCM for payload encryption
   - Curve25519 ECDH for shared secrets
   - HKDF for key derivation
   - HMAC-SHA256 for authentication (first hop only)

Security Features:
   - Adaptive padding (512 bytes to 128KB buckets)
   - Exponential timing delays (Poisson distribution)
   - Replay protection (24-hour cache)
   - Rate limiting (100 msg/hour per IP)
   - No metadata retention
   - Key rotation every 24 hours

Performance:
   - Message processing: ~1-5 seconds per hop
   - Batch delay: 5-60 seconds random
   - Total latency: ~30-120 seconds for 3-6 hops
   - Max message size: 10MB

### Known Issues / Limitations

1. **Exit Node Visibility**: Final delivery to clearnet email is not 
encrypted
    (inherent limitation of SMTP protocol)

2. **Node Discovery**: Currently uses static JSON file for node directory
    (no DHT or dynamic discovery yet)

3. **Scalability**: Tested with 4 nodes, larger networks untested

4. **Key Synchronization**: Requires manual distribution of nodes.json
    after key rotation

5. **No Built-in Directory Authority**: PKI management is manual

6. **Limited Error Recovery**: Network failures may cause message loss

7. **Tor Dependency**: Requires properly configured Tor hidden services
    on all nodes

## Future Development Goals

### Short-term (1-3 months)

- **Automated PKI Updates**: Nodes should publish their keys to a
   distributed directory automatically

- **Better Error Handling**: Retry logic and message queue persistence

- **Monitoring Dashboard**: Real-time statistics and health monitoring

- **Testing Tools**: Automated testing suite for multi-node deployments

- **Documentation**: Comprehensive deployment guide and API documentation

## Technical Architecture

Current implementation:
   - Language: Go 1.21+
   - Dependencies: golang.org/x/crypto, golang.org/x/net
   - Transport: Tor SOCKS5 proxy
   - Storage: JSON files (temporary)
   - Configuration: Command-line flags

Code quality:
   - Single-file implementation (~2000 lines)
   - No external databases
   - Minimal dependencies
   - BSD-style license (planned)

## Why Not Just Use Tor?

Good question! Tor provides excellent anonymity, but:

1. **Exit nodes see plaintext**: Tor exit nodes can read SMTP traffic
2. **Timing attacks**: Correlation attacks possible with global adversary
3. **No batching**: Messages forwarded immediately
4. **Limited padding**: Tor cells are fixed 512 bytes
5. **No mixing**: Direct circuit, no message mixing/reordering

fog adds an additional layer:
   - Batch multiple messages together
   - Add variable random delays
   - Shuffle message order
   - Adaptive padding beyond Tor's capabilities
   - No single point sees both sender and content

Think of it as: Tor protects the transport, fog protects the timing.

## Current Deployment

We currently operate a small test network:
   - 4 nodes across different geographic locations
   - All on Tor hidden services
   - Approximately 90% uptime
   - Processing ~10-50 test messages per day

We need feedback on:

1. Is the threat model realistic?
2. Are the security features sufficient?
3. Is the latency (30-120s) acceptable for email?
4. Should we prioritize anonymity or performance?
5. What features are most important?

## Contact & Links

Project status: **Alpha** (use at your own risk)

We're sharing our work openly,
including limitations and bugs. If you're interested in anonymous
communication systems, we'd love your input.

Gabx
-- 
0745 074D FEAA 9CB7 62E9  D89D 3E54 F490 F2CC 5A82
https://yamn.virebent.art
https://news.tcpreset.net
Re: fog v1.3.3 - Anonymous SMTP Relay with Sphinx Mixnet
#332808
Author: Gabx
Date: Sun, 02 Nov 2025 15:44
18 lines
2093 bytes
Gabx wrote:
> We're sharing our work openly,
> including limitations and bugs. If you're interested in anonymous
> communication systems, we'd love your input.

smtp://iycr4wfrdzieogdfeo7uxrj77w2vjlrhlrv3jg2ve62oe5aceqsqu7ad.onion:2525
smtp://ztavxfthfr2fgovxzfg3sudl2ajtbo6db4iw5cx37nzr5jc6q7ma6ryd.onion:2525
smtp://hqahdugpxz7jrmsfxqav5nfl452cvc5rsdhcpyixvcbcpfsopwnznlqd.onion:2525
smtp://dgayvmsxvvofpdxsas22fo7eu5tous6aavzjs6eun6jnouluwqflz7ad.onion:2525

You can think at any of the above smtp addresses as ENTRY node for Fog 
Network.

Gabx
-- 
0745 074D FEAA 9CB7 62E9  D89D 3E54 F490 F2CC 5A82
https://yamn.virebent.art
https://news.tcpreset.net
Re: fog v1.3.3 - Anonymous SMTP Relay with Sphinx Mixnet
#332807
Author: Nomen Nescio
Date: Sun, 02 Nov 2025 16:36
21 lines
1830 bytes
In article <10e7u8e$mv9i$1@news.tcpreset.net>
Gabx <info@tcpreset.invalid> wrote:
>
> Gabx wrote:
> > We're sharing our work openly,
> > including limitations and bugs. If you're interested in anonymous
> > communication systems, we'd love your input.
>
> smtp://iycr4wfrdzieogdfeo7uxrj77w2vjlrhlrv3jg2ve62oe5aceqsqu7ad.onion:2525
> smtp://ztavxfthfr2fgovxzfg3sudl2ajtbo6db4iw5cx37nzr5jc6q7ma6ryd.onion:2525
> smtp://hqahdugpxz7jrmsfxqav5nfl452cvc5rsdhcpyixvcbcpfsopwnznlqd.onion:2525
> smtp://dgayvmsxvvofpdxsas22fo7eu5tous6aavzjs6eun6jnouluwqflz7ad.onion:2525
>
> You can think at any of the above smtp addresses as ENTRY node for Fog
> Network.
>
> Gabx

Just sent a test post using all of them. Now waiting to see if they show 
up in alt.test.test.
Re: fog v1.3.3 - Anonymous SMTP Relay with Sphinx Mixnet
#332810
Author: Gabx
Date: Sun, 02 Nov 2025 18:40
5 lines
1492 bytes
Just for the records,
i have found dizum blockin tor nodes with spamhouse

"Nov 02 17:09:34 my.host fog[14582]: 2025/11/02 17:09:34 [RELAY] FAILED: fe43056a160652ffb27a0b7c4bdc3b82 to remailer@dizum.com: RCPT TO failed: 554 5.7.1 Service unavailable; Client host [23.129.64.205] blocked using sbl.spamhaus.org; Listed by CSS, see https://check.spamhaus.org/query/ip/23.129.64.205"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads