IMVEEDev Portal

Configuration

Environment Variables

All agent parameters can be controlled via environment variables. Variables are evaluated when the agent starts.

VariableDefaultDescription
API_URLhttps://socsuite.dev.imvee.de/api/v1Backend URL for REST calls
OPENSEARCH_URLhttps://siem.dev.imvee.deOpenSearch endpoint for event writes
IMVEE_API_KEY—API key (recommended method, see token priority)
IMVEE_QUEUE/var/lib/imvee-satellite/queue.jsonlPath to the event queue file
IMVEE_HEARTBEAT_INTERVAL60sInterval between heartbeat requests
METRICS_INTERVAL30sSystem metrics collection interval
IMVEE_INVENTORY_INTERVAL15mSystem inventory scan interval
IMVEE_CONFIG_SYNC_INTERVAL5mConfig sync interval from backend
BATCH_SIZE4000Maximum number of events per batch on OpenSearch push (DEV-465: raised from 100 to 4000; 413-split recursion protects against body-limit overflow)
POLL_INTERVAL5sQueue rotation interval (queue.jsonl → .work → OpenSearch)
IMVEE_OPENSEARCH_INSECURE_SKIP_VERIFYfalseDisable TLS certificate verification (development only)
IMVEE_ALWAYS_ON_SOURCESshell_commandsMission-independent active log sources (comma-separated source keys, DEV-130)
IMVEE_SELF_INTEGRITY_INTERVAL5mAnti-tamper check interval (self-integrity, DEV-131)
IMVEE_EDR_SCAN_INTERVAL5mEDR 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_LEVELdefaultmacOS Unified Log level, debug = 1000+ events/s (DEV-133)
IMVEE_UNIFIEDLOG_BACKFILL5mmacOS Unified Log: history backfilled at start (DEV-133)
IMVEE_PCAP_RETENTION24hRetention of PCAP captures before cleanup (DEV-134)
IMVEE_COMPLIANCE_INTERVAL1hCompliance scan interval, 0 = disabled (DEV-135)
IMVEE_UPDATE_CHECK_INTERVAL1hSelf-update check interval (initial check 60 s after start)
IMVEE_UPDATE_CHANNELstableUpdate channel (stable, none = off)
IMVEE_UPDATE_REQUIRE_SIGNATURE01 = 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_FILEplatform-specificPath 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_WINDOW60sDedup/aggregation window for repeating process events, 0 = off (DEV-466)
IMVEE_FILTER_RATE_LIMIT600Hard 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_ENDPOINThttps://observability.gitlab.com/v1/otlpOTLP 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 configSyncLoop runs 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):

FeatureActivationECS event.dataset
Always-on baseline sources (DEV-130)env var, default shell_commands(affected source collectors)
Self-integrity / anti-tamper (DEV-131)always-onself_integrity
EDR indicator scan (DEV-132)always-on, Linux/Windows, 0 = offedr_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/Windowsnetconn

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.actionSeverityMeaning
self_binary_modifiedhighbinary hash differs from the baseline
self_binary_missingcriticalbinary missing or unreadable
install_dir_permission_changed / data_dir_permission_changedmediumpermissions/owner changed
self_binary_replaced_by_updateinfobinary 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 LogECS
process / pidprocess.name / process.pid
subsystemlog.logger
categoryevent.module
senderBinarylog.origin
activityIDevent.hash
Level (fault/error/default/info/debug)log.level (critical/error/info/debug)
  • IMVEE_UNIFIEDLOG_LEVEL (default default; debug produces 1000+ events/s — deliberately not the default)
  • IMVEE_UNIFIEDLOG_BACKFILL (default 5m) — 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):

CommandParametersResponse
start_captureinterface, duration_seconds (1–300, default 60), max_bytes (1–50 MB, default 10 MB)capture_result with ok, file, sha256, packets, bytes, truncated
fetch_capturefile, offsetcapture_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 (default 24h), 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 (default 1h, 0 = disabled)
  • 1 ECS event per check (compliance.profile, compliance.check, compliance.category, outcome: success/failure/informational, event.severity on failure numeric (critical=1, high=2, medium=4, low=6) + label in event.severity_label)
    • 1 summary event compliance_scan_summary (pass/fail/unknown)
  • 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):

EcosystemSourceSoftware type
Pythonpip list --format=jsonpython
Node.jsnpm list -g --depth=0 --jsonnode
.NETdotnet --list-sdks / --list-runtimesdotnet-sdk / dotnet-runtime
Containerlocal Docker image metadatacontainer-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.

PlatformSource
Linuxss -tunap poll (iproute2, hard dependency)
Windowsnetstat -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):

FieldMeaning
network.directionin (local port < 1024 = server side) / out
source.ip / source.portlocal address
destination.ip / destination.portpeer address
network.transporttcp / udp (tcp6/udp6 → tcp/udp)
process.name / process.pidonly 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 countWait time
1st failure10 seconds
2nd failure30 seconds
3rd failure1 minute
4th failure2 minutes
5th failure5 minutes
6th failure10 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

On this page