How rhythm113/eclipse-agent works
Eclipse is a Linux endpoint security agent that monitors hosts, reports telemetry to a security server, and can intervene locally during exploitation. The main runtime path starts at the agent entry point, enrolls an identity, then runs a session that starts collectors and exchanges events with the server. Separately, the memory-forensics sensor can freeze a process in-kernel while the agent evaluates the signal, captures evidence, and applies configured action. The README documents major capabilities not fully sampled; relationships below rely on those statements where source excerpts are unavailable.
Main entry points: session.cpp Session runtime · engine.cpp Signal decisions · main.cpp Agent commands · memforensics.bpf.c Memory sensor
Components 19
Agent runtime
- Agent commands
agent/src/main.cpp - Session runtime
agent/src/transport/session.cpp
Host monitoring
- Collector framework
agent/src/collectors/collector.hpp - Host collectors
agent/src/collectors - Database capture
agent/src/collectors/mysql.cpp - EDR eBPF sensor
agent/bpf/edr.bpf.c - EDR event handling
agent/src/edr/edr.cpp
Exploit defense
- Memory sensor
agent/bpf/memforensics.bpf.c - Signal decisions
agent/src/memf/engine.cpp - Probe control
agent/src/memf/probe_bpf.cpp - Evidence collection
agent/src/memf/collect.cpp
Server connectivity
- Enrollment
agent/src/enroll/enroll.cpp - Secure transport
agent/src/transport/session.cpp - Telemetry spool
agent/src/transport/spool.cpp
Host operations
- Host response
agent/src/actions/runner.cpp - Emergency SSH
agent/src/ssh/master.cpp - Setup wizard
agent/src/setup/wizard.cpp
Other components
- Host operator
- SOC server
Connections 21
- Host operator → Agent commands: runs commands
agent/src/main.cpp - Agent commands → Enrollment: enrolls identity
agent/src/main.cpp - Agent commands → Session runtime: starts session
agent/src/main.cpp - Session runtime → Collector framework: starts collectors
agent/src/transport/session.cpp - Collector framework → Host collectors: runs collection
agent/src/collectors/collector.hpp - Session runtime → Database capture: registers capture
agent/src/transport/session.cpp - EDR eBPF sensor → EDR event handling: emits events
- Session runtime → EDR event handling: starts monitoring
agent/src/transport/session.cpp - Memory sensor → Probe control: freezes process
- Memory sensor → Signal decisions: writes ring events
- Probe control → Signal decisions: feeds records
- Signal decisions → Evidence collection: triggers capture
- Evidence collection → SOC server: uploads bundle
- Signal decisions → Host response: guides response
- Session runtime → Secure transport: exchanges telemetry
agent/src/transport/session.cpp - Secure transport → SOC server: sends events
- Session runtime → Telemetry spool: stores batches
agent/src/transport/session.cpp - SOC server → Session runtime: sends commands
- Session runtime → Host response: dispatches actions
- Host operator → Setup wizard: configures agent
- Session runtime → Emergency SSH: opens console
agent/src/transport/session.cpp