Configuration
Environment Variables
All agent parameters can be controlled via environment variables. Variables are evaluated when the agent starts.
| Variable | Default | Description |
|---|---|---|
API_URL | https://socsuite.dev.imvee.de/api/v1 | Backend URL for REST calls |
OPENSEARCH_URL | https://siem.dev.imvee.de | OpenSearch endpoint for event writes |
IMVEE_API_KEY | — | API key (recommended method, see token priority) |
IMVEE_QUEUE | /var/lib/imvee-satellite/queue.jsonl | Path to the event queue file |
IMVEE_HEARTBEAT_INTERVAL | 60s | Interval between heartbeat requests |
METRICS_INTERVAL | 30s | System metrics collection interval |
IMVEE_INVENTORY_INTERVAL | 15m | System inventory scan interval |
IMVEE_CONFIG_SYNC_INTERVAL | 5m | Config sync interval from backend |
BATCH_SIZE | 4000 | Maximum number of events per batch on OpenSearch push (DEV-465: raised from 100 to 4000; 413-split recursion protects against body-limit overflow) |
POLL_INTERVAL | 5s | Queue rotation interval (queue.jsonl → .work → OpenSearch) |
IMVEE_OPENSEARCH_INSECURE_SKIP_VERIFY | false | Disable TLS certificate verification (development only) |
IMVEE_ALWAYS_ON_SOURCES | shell_commands | Mission-independent active log sources (comma-separated source keys, DEV-130) |
IMVEE_SELF_INTEGRITY_INTERVAL | 5m | Anti-tamper check interval (self-integrity, DEV-131) |
IMVEE_EDR_SCAN_INTERVAL | 5m | EDR indicator scan interval, 0 = disabled (DEV-132) |
IMVEE_EDR_SUID_PATHS | /bin /sbin /usr/* /usr/local/* | SUID/SGID scan paths, comma-separated (DEV-132) |
IMVEE_UNIFIEDLOG_LEVEL | default | macOS Unified Log level, debug = 1000+ events/s (DEV-133) |
IMVEE_UNIFIEDLOG_BACKFILL | 5m | macOS Unified Log: history backfilled at start (DEV-133) |
IMVEE_PCAP_RETENTION | 24h | Retention of PCAP captures before cleanup (DEV-134) |
IMVEE_COMPLIANCE_INTERVAL | 1h | Compliance scan interval, 0 = disabled (DEV-135) |
IMVEE_UPDATE_CHECK_INTERVAL | 1h | Self-update check interval (initial check 60 s after start) |
IMVEE_UPDATE_CHANNEL | stable | Update channel (stable, none = off) |
IMVEE_UPDATE_REQUIRE_SIGNATURE | 0 | 1 = Ed25519 release signature required for self-update (missing .sig = abort, not warning; DEV-169) |
IMVEE_ENROLLMENT_TOKEN | — | Enrollment token for first boot / re-enrollment (alternative to IMVEE_API_KEY, see token priority) |
IMVEE_AGENT_ID_FILE | platform-specific | Path to the agent ID file (persistent identity) |
IMVEE_UPLOAD_GZIP | (on) | 0/false/off = disable gzip upload compression even if the backend advertises it (DEV-465) |
IMVEE_FILTER_DEDUP_WINDOW | 60s | Dedup/aggregation window for repeating process events, 0 = off (DEV-466) |
IMVEE_FILTER_RATE_LIMIT | 600 | Hard cap events/minute per event.category, 0 = off (DEV-466) |
IMVEE_FILTER_ALLOWLIST | — | Comma-separated drop patterns (substring or re:regex), e.g. for log floods (DEV-466) |
OTEL_ENABLED | (off) | true = enable OTLP export of self-metrics/traces (default endpoint: https://observability.gitlab.com/v1/otlp) |
OTEL_EXPORTER_OTLP_ENDPOINT | https://observability.gitlab.com/v1/otlp | OTLP HTTP endpoint for metrics/traces (own collector/sidecar possible) |
OTEL_EXPORTER_OTLP_HEADERS | — | HTTP headers for OTLP export, comma-separated, e.g. Authorization=Bearer <token> (for authenticated endpoints) |
:::warn [IMVEE_OPENSEARCH_INSECURE_SKIP_VERIFY]
This variable must never be set to true in production.
It disables TLS certificate validation and exposes the connection to man-in-the-middle attacks.
:::
Token Priority and agent.key Encryption
Token Priority
The agent resolves the API key in the following priority order:
1. IMVEE_API_KEY (environment variable — recommended)
2. AGENT_TOKEN / API_KEY (environment variables — deprecated)
3. agent.key (encrypted file — default after enrollment):::info [Recommendation]
For automated deployments (e.g. Kubernetes), inject IMVEE_API_KEY as a secret into the
environment. The file-based agent.key method is the standard for classic endpoint
installations.
:::
:::info [First boot without agent.key]
On a fresh install (no agent.key yet), the agent registers with the enrollment token —
either via IMVEE_ENROLLMENT_TOKEN or (since v0.4.1-dev.a0e0f4c, DEV-170) also solely
via IMVEE_API_KEY. After successful registration the real API key is persisted
encrypted in agent.key; the enrollment token can then be removed from the environment.
:::
agent.key Encryption
The agent.key file is stored encrypted with AES-256-GCM after enrollment.
The encryption key is derived machine-specifically:
Encryption Key = SHA256(machineID + agentID + "imvee-satellite-v1")
MachineID sources (in this order):
1. /etc/machine-id (Linux systemd)
2. /var/lib/dbus/machine-id (Linux dbus fallback)
3. ioreg (macOS)
4. hostname (last fallback):::warn [agent.key is NOT portable]
The agent.key file is bound to the machine ID of the host.
It cannot be copied or migrated to another system —
on a different host it cannot be decrypted and the agent
cannot authenticate.
When migrating a system, the agent must be re-enrolled
(delete existing agent.id and agent.key).
:::
Config Sync
The agent synchronises its configuration regularly from the backend:
- Interval: every 5 minutes (default, configurable via
IMVEE_CONFIG_SYNC_INTERVAL) - The
configSyncLoopruns as its own goroutine in parallel with the other agent loops - Configuration changes in SOCSuite are applied without restarting the agent
Enterprise Collectors (DEV-130–136)
Beyond the base collectors, the agent provides enterprise features for hardening, threat detection and compliance. Depending on the feature they are always-on (active independent of the mission config) or mission-gated (started via the mission config):
| Feature | Activation | ECS event.dataset |
|---|---|---|
| Always-on baseline sources (DEV-130) | env var, default shell_commands | (affected source collectors) |
| Self-integrity / anti-tamper (DEV-131) | always-on | self_integrity |
| EDR indicator scan (DEV-132) | always-on, Linux/Windows, 0 = off | edr_indicators |
| macOS Unified Log (DEV-133) | mission-gated (darwin) | macos_unified_log |
| On-demand PCAP (DEV-134) | remote command via WebSocket | — (file, chunked fetch) |
| Compliance scan (DEV-135) | mission-gated (Linux) | compliance |
| App-level inventory (DEV-136) | part of the vulnerability scan | (InstalledSoftware payload) |
| Network connections (DEV-1359) | always-on or mission ("Network Connections"), Linux/Windows | netconn |
Always-on baseline sources (DEV-130)
IMVEE_ALWAYS_ON_SOURCES (default: shell_commands, comma-separated) keeps the
named log sources active independent of the mission config. This keeps the local
queue continuously populated even without assigned missions, and makes the
no-mission drop path (DEV-80) unreachable with the default configuration.
Available source keys:
auditd, compliance, database_monitor, dns_monitoring, docker_events,
docker_logs, eventlog, file_logs, fim, journald_logs, netconn_monitoring,
network_scanner, remote_commands, service_integration, shell_commands,
syslog_proxy, unified_log, vulnerability_scanning, windows_inventory,
windows_vulnerability
:::info [Example]
IMVEE_ALWAYS_ON_SOURCES=shell_commands,journald_logs — the agent delivers
shell commands and journald events even when SOCSuite has not assigned a mission
(e.g. before first enrollment or after de-provisioning).
:::
Self-integrity / anti-tamper (DEV-131)
Always active (mission-independent): at startup a SHA-256 baseline of the agent's
own binary plus the permissions/owner of the install and data directories are
recorded. The periodic check (IMVEE_SELF_INTEGRITY_INTERVAL, default 5m) reports:
event.action | Severity | Meaning |
|---|---|---|
self_binary_modified | high | binary hash differs from the baseline |
self_binary_missing | critical | binary missing or unreadable |
install_dir_permission_changed / data_dir_permission_changed | medium | permissions/owner changed |
self_binary_replaced_by_update | info | binary swap by auto-update (deliberately not a tamper alarm) |
The auto-update window is set by the agent itself — a legitimate binary change appears as an audit event, not as an alarm.
EDR indicator scan (DEV-132)
Userland near-detection of classic malware/rootkit/injection indicators (always-on, Linux + Windows; macOS = follow-up):
- process from a deleted binary (
process_from_deleted_file) - execution from temp directories (
process_from_temp_dir) - rwx mapping of a world-writable file (
world_writable_exe_mapping) - new/changed SUID/SGID binaries (
new_suid_binary,world_writable_suid— silent baseline on first scan, delta reporting afterwards)
Interval: IMVEE_EDR_SCAN_INTERVAL (default 5m, 0 = disabled).
SUID scan paths: IMVEE_EDR_SUID_PATHS (default /bin /sbin /usr/* /usr/local/*,
comma-separated).
macOS Unified Log (DEV-133)
Mission-gated collector (mission keys: unified_log), reads
log stream --style json and maps the fields to ECS:
| Unified Log | ECS |
|---|---|
process / pid | process.name / process.pid |
subsystem | log.logger |
category | event.module |
senderBinary | log.origin |
activityID | event.hash |
Level (fault/error/default/info/debug) | log.level (critical/error/info/debug) |
IMVEE_UNIFIEDLOG_LEVEL(defaultdefault;debugproduces 1000+ events/s — deliberately not the default)IMVEE_UNIFIEDLOG_BACKFILL(default5m) — history backfilled at start
On-demand PCAP capture (DEV-134)
Via remote command over WebSocket (only with an active remote-commands mission),
Linux (AF_PACKET; requires root or CAP_NET_RAW):
| Command | Parameters | Response |
|---|---|---|
start_capture | interface, duration_seconds (1–300, default 60), max_bytes (1–50 MB, default 10 MB) | capture_result with ok, file, sha256, packets, bytes, truncated |
fetch_capture | file, offset | capture_chunk (Base64, 256 KB/chunk, eof flag) |
- The file name is generated by the agent (
pcap-<ts>-<iface>.pcap) — the client never picks the path - Retention:
IMVEE_PCAP_RETENTION(default24h), then cleanup - Windows/macOS: not supported in v1 (follow-up: Npcap/BPF)
Compliance scan (DEV-135)
Mission-gated (mission keys: compliance, Compliance, compliance_scanning),
Linux profile imvee-linux-hardening-v1 with 26 CIS-like checks in 5 categories:
sshd, accounts, file_permissions, kernel, services.
- Interval:
IMVEE_COMPLIANCE_INTERVAL(default1h,0= disabled) - 1 ECS event per check (
compliance.profile,compliance.check,compliance.category,outcome: success/failure/informational,event.severityon failure numeric (critical=1, high=2, medium=4, low=6) + label inevent.severity_label)- 1 summary event
compliance_scan_summary(pass/fail/unknown)
- 1 summary event
- Missing input data =
unknown(informational) — no false positives
App-level vulnerability inventory (DEV-136)
The vulnerability scan additionally captures application-level software and flows into the same InstalledSoftware payload (no backend/API change):
| Ecosystem | Source | Software type |
|---|---|---|
| Python | pip list --format=json | python |
| Node.js | npm list -g --depth=0 --json | node |
| .NET | dotnet --list-sdks / --list-runtimes | dotnet-sdk / dotnet-runtime |
| Container | local Docker image metadata | container-image |
Missing tools produce an empty result (no error); all scans run with timeouts (15–30 s).
Network connections collector (DEV-1359)
Captures active network connections (who talks to whom — source/destination IP+port, transport, process) as a 60-second sample. This makes login paths ("user X from host Y to host Z") and threat-hunting relationships reconstructable in the SIEM.
| Platform | Source |
|---|---|
| Linux | ss -tunap poll (iproute2, hard dependency) |
| Windows | netstat -ano poll + PID→name cache (tasklist, max. 1/min) |
Activation: always-on (IMVEE_ALWAYS_ON_SOURCES=...,netconn_monitoring) or
mission log source "Network Connections" (optional: interval).
Event fields (ECS, event.dataset = netconn, event.action = netconn_observed):
| Field | Meaning |
|---|---|
network.direction | in (local port < 1024 = server side) / out |
source.ip / source.port | local address |
destination.ip / destination.port | peer address |
network.transport | tcp / udp (tcp6/udp6 → tcp/udp) |
process.name / process.pid | only when resolvable (root / local admin) |
Behavior: new connections (10-minute dedup window) are reported once; LISTEN sockets and UDP without peer are skipped. Rate limit: max. 250 events per poll (overflowing connections are picked up on the next poll if still active). The Windows alternative (5156/5157 firewall events) is intentionally not the default (requires Advanced Audit Policy; the netstat poll is deterministically available).
Heartbeat Backoff & Re-Registration
On heartbeat failures the agent uses a staged backoff strategy:
| Failure count | Wait time |
|---|---|
| 1st failure | 10 seconds |
| 2nd failure | 30 seconds |
| 3rd failure | 1 minute |
| 4th failure | 2 minutes |
| 5th failure | 5 minutes |
| 6th failure | 10 minutes |
:::warn [Re-registration after 6 failures]
After 6 consecutive heartbeat failures the agent attempts a
re-registration with the backend (POST /api/v1/ingest/enroll).
This overwrites the existing agent.id and agent.key.
A new asset entry is created in SOCSuite.
:::
See Also
- Requirements — Platforms, ports, permissions
- Installation — Install and register the agent
- Circuit Breaker — Resilience pattern and configuration
- Troubleshooting — Common issues and solutions