6 Commits

Author SHA1 Message Date
portbuster1337 a90bf015fd feat: encrypt implant-to-operator payloads with NaCl box
Add X25519 box keypair (operator.boxkey/operator.boxpub) for end-to-end
encryption of all implant->operator message Data fields via
box.SealAnonymous. Prevents eavesdropping on GossipSub traffic.

- Encrypt env.Data before signing in sendEnvelopeDirect and SignAndSend
- Build local wire envelope in sendEnvelopeDirect (avoids mutating caller's
  env on send failure, preventing double-encryption on PubSub fallback)
- Serialize beacon stream writes with beaconWriteMu mutex
- Decrypt in operator handleMessage before dispatching to handlers
- Embed box pubkey in implant during arachne generate
- Generate box keys on first operator run, persist to disk
- Add stub files for development compilation
2026-06-13 03:06:34 +10:00
portbuster1337 f4fc743ffd add SOCKS5 proxy: operator-side server, implant-side stream handler, CLI subcommands
Operator runs a SOCKS5 server on 127.0.0.1 that forwards traffic to implants
via direct /x/sk/1.0.0 libp2p streams. Supports username/password auth (RFC
1929) with SHA-256 hashed credentials saved to ~/.arachne/socks.json.

CLI: socks start <idx|random> <port>, socks list, socks stop <port>,
     socks reset-creds
Implant: handleSocksStream registered for SocksProtocolID
Operator: socksProxies map, socksMu mutex, beacon stream noise suppression

Build fix: prune *Stub.go except antivm_stub.go from embedded source tree.
2026-06-09 05:18:50 +10:00
portbuster 5611626d1a Add release/ to gitignore 2026-06-03 23:01:47 +08:00
portbuster 98b87a51d6 Unified binary, embedded source, cover traffic, persistent implant keys, regenerate command
- Single cmd/arachne entry point replaces server, implant, build-implant
- Implant source embedded in operator binary at build time (self-contained)
- generate command embeds unique keypair per implant build (persistent PeerID)
- cover traffic: random noise messages mask beacon timing
- regenerate command: rotate operator keys with warning
- auto-install Go when missing during generate
- liner-based CLI with command history and per-command --help
2026-06-03 22:45:59 +08:00
portbuster b22580c2a8 new stuff 2026-06-03 02:13:31 +10:00
portbuster 365c9663d2 Initial commit: Arachne C2 framework
Decentralized C2 framework built on libp2p (IPFS networking stack).
No servers, no domains, no IPs to block - cryptographic peer identities
communicating over the global p2p network.

Includes:
- Architecture, protocol, implant, server, and security model docs
- Protobuf message definitions (commonpb, arachnepb, rpcpb)
- Cryptography package (Ed25519 keys, signing, PeerID)
- Transport package (libp2p host, GossipSub pubsub, relay)
- Config package with shared types
2026-06-03 00:18:10 +10:00