IMVEEDev Portal

Installation

:::info [Aktuelle Version] Derzeitige stabile Version: v0.4.1 (2026-07-12, siehe CHANGELOG). :::

Enrollment Token holen

Bevor der Agent installiert werden kann, wird ein Enrollment Token aus der SOCSuite benötigt.

  1. SOCSuite öffnen
  2. Navigation: Orbit → Agents → Neuer Agent
  3. Token kopieren — er wird nur einmalig angezeigt

:::warn [Token ist einmalig] Der Enrollment Token ist nach erfolgreicher Registrierung wertlos. Nach der Installation wird er nicht mehr benötigt und kann nicht wiederverwendet werden. :::


One-Liner Installation

Die empfohlene Installationsmethode ist der Remote-Installer:

curl -fsSL https://<DOWNLOADS-DOMAIN>/satellite/latest/remote-install.sh \
  | sudo IMVEE_ENROLLMENT_TOKEN="<TOKEN>" bash -s -- \
      --server=https://<API-URL> --force

Ersetze die Platzhalter mit den Werten deiner SOCSuite-Umgebung (→ Credentials-JSON bzw. Umgebungs-Daten deiner Demoinstanz):

PlatzhalterBedeutungBeispiel (IMVEE-Dev)
<DOWNLOADS-DOMAIN>Download-Host für Agent-Binariesdownloads.dev.imvee.de
<API-URL>SOCSuite-Backend (Apex-URL)socsuite.dev.imvee.de
<TOKEN>Enrollment Token (siehe oben)—

:::warn [Self-Hosted: --server ist Pflicht] Ohne --server registriert sich der Agent gegen das IMVEE-Dev-Backend (Skript-Default) — bei Self-Hosted-Installationen immer --server=https://<API-URL> setzen. Der Download-Host wird automatisch aus --server abgeleitet (https://downloads.<host>/satellite) und kann über die Env DOWNLOAD_BASE_URL übersteuert werden. :::

:::info [Beispiel: Demoinstanz]

curl -fsSL https://<TS>.demo.imvee.de/satellite/latest/remote-install.sh \
  | sudo bash -s -- --server=https://<TS>.demo.imvee.de --token=<TOKEN>

<TS> = Demo-Timestamp (z. B. 20261117-105748). Der Download-Host (downloads.<TS>.demo.imvee.de) wird aus --server abgeleitet — keine zusätzliche Option nötig. :::

:::info [Version anpassen] Ersetze latest durch eine spezifische Version wie v0.4.1 für eine fixe Version. Die aktuellste stabile Version steht unter latest (→ CHANGELOG). :::


Windows Installation

Zero-Touch-Installer (empfohlen, DEV-1092)

Der Windows-Installer lädt die Binary, prüft die SHA-256-Summe, installiert den Agent, persistiert die Konfiguration und startet den Dienst — alles in einem Aufruf (PowerShell als Administrator):

# 1. Installer herunterladen und ausführen
for ($i = 1; $i -le 3; $i++) {
  try {
    Invoke-WebRequest -Uri "https://<DOWNLOADS-DOMAIN>/satellite/latest/install-windows.ps1" `
      -OutFile "$env:TEMP\install-windows.ps1" -TimeoutSec 120 -UseBasicParsing
    break
  } catch {
    if ($i -eq 3) { throw }
    Write-Host "Download-Versuch $i fehlgeschlagen, retry in 5 s ..."; Start-Sleep -Seconds 5
  }
}
powershell -ExecutionPolicy Bypass -File "$env:TEMP\install-windows.ps1" `
  -Token "<TOKEN>" `
  -Server "https://<API-URL>"          # SOCSuite-Base-URL ohne /api/v1
ParameterDefaultBeschreibung
-Token—Enrollment Token (Pflicht, alternativ via IMVEE_ENROLLMENT_TOKEN)
-Serverhttps://socsuite.dev.imvee.deSOCSuite-Base-URL (Script hängt /api/v1 an)
-DownloadBasehttps://downloads.dev.imvee.deDownloads-Server (bei Demos: https://<TS>.demo.imvee.de)
-VersionlatestVersions-Pin, z. B. v0.4.1
-ForcefalseBestehende Installation neu installieren
-SkipStartfalseOhne Service-Start installieren

Exit-Code 2 bedeutet: installiert, aber der Dienst läuft noch nicht — jetzt neu starten (der Dienst startet nach dem Reboot automatisch und meldet sich beim Backend an).

:::warning [Env-Scope-Falle (Windows-Service)] Der Service-Prozess läuft als LocalSystem und sieht weder $env: (Session) noch setx (User-Scope) gesetzt.

  • Der Installer persistiert IMVEE_API_KEY/API_URL automatisch via persist-env nach C:\ProgramData\IMVEE-Satellite\agent.env (DEV-1086; DEV-1572).
  • Manuelle Installationen ohne Installer brauchen setx /M (Machine-Scope) + Reboot (SCM-Env-Snapshot), sonst bricht der Agent im First-Boot ab.
  • Das First-Boot-Gate erwartet den Enrollment-Token in IMVEE_API_KEY (nicht IMVEE_ENROLLMENT_TOKEN — die wird erst im Enrollment-Step danach gelesen). :::

Manuelle Installation

# 1. Binary herunterladen
Invoke-WebRequest -Uri "https://<DOWNLOADS-DOMAIN>/satellite/latest/imvee-satellite-agent-windows-amd64.exe" -OutFile "imvee-satellite.exe"

# 2. Token + Backend-URL setzen und persistieren
#    (persist-env schreibt C:\ProgramData\IMVEE-Satellite\agent.env —
#    der Service-Prozess erbt die Shell-Env sonst NICHT, DEV-1086)
$env:IMVEE_API_KEY = "<TOKEN>"
$env:API_URL = "https://<API-URL>/api/v1"
.\imvee-satellite.exe persist-env

# 3. NSSM-Service anlegen (DEV-1572: Service-Host = NSSM 2.24, https://nssm.cc)
#    nssm.exe nach C:\Program Files\IMVEE-Satellite\ legen (Win64)
nssm install IMVEESatellite "$PWD\imvee-satellite.exe"
nssm set IMVEESatellite AppStdout  "C:\ProgramData\IMVEE-Satellite\logs\service-stdout.log"
nssm set IMVEESatellite AppStderr  "C:\ProgramData\IMVEE-Satellite\logs\service-stderr.log"
nssm set IMVEESatellite AppRotateFiles 1
nssm set IMVEESatellite AppExit Default Restart 1000
nssm set IMVEESatellite AppExit Clean Restart 1000
nssm set IMVEESatellite AppEnvironmentExtra "IMVEE_SERVICE_MANAGER=nssm"

# 4. Dienst starten
Start-Service IMVEESatellite

Ersetze <TOKEN> durch den zuvor kopierten Enrollment Token und <DOWNLOADS-DOMAIN>/<API-URL> durch deine Werte (Platzhalter-Tabelle oben). Der Agent lädt IMVEE_API_KEY und API_URL beim Service-Start aus C:\ProgramData\IMVEE-Satellite\agent.env (dort wird auch der post-Enrollment-Key in agent.key gespeichert; nssm remove IMVEESatellite entfernt den Dienst, remove-service das Legacy-Go-Service).

:::info [Windows-Service: Hosting, Logs, Restart (DEV-1572)] Seit DEV-1572 hostet NSSM 2.24 den Windows-Dienst (Zero-Touch-Installer installiert es automatisch mit SHA256-Pin; C:\ProgramData\IMVEE-Satellite\tools\nssm.exe):

  • Logs: Agent-Stdout/Stderr landen in C:\ProgramData\IMVEE-Satellite\logs\ service-stdout.log / service-stderr.log (Rotation: 10 MB, AppRotateFiles).
  • Restart-Hardening: AppExit Default/Clean Restart 1000 — der Agent wird bei jedem Exit (Crash oder Self-Update) nach 1 s neu gestartet. IMVEE_SERVICE_MANAGER=nssm teilt dem Agent das mit (Self-Update-Restart = einfacher Exit statt SCM-Failure-Recovery). :::

:::info [Integrität prüfen] Die SHA-256-Summe des Binaries kann gegen checksums.txt im selben Verzeichnis geprüft werden:

(Get-FileHash imvee-satellite.exe -Algorithm SHA256).Hash

:::


Installations-Optionen

OptionDefaultBeschreibung
--token=<TOKEN>—Enrollment Token (Pflicht, alternativ via IMVEE_ENROLLMENT_TOKEN)
--server=<URL>https://socsuite.dev.imvee.de (Dev-Default)SOCSuite Backend-URL (Pflicht bei Self-Hosted, Default = IMVEE-Dev)
DOWNLOAD_BASE_URL (Env)automatisch aus --server: https://downloads.<host>/satelliteBasis-URL für den Binary-Download (nur als Override)
--version=<VER>latestSpezifische Agent-Version installieren
--skip-startfalseAgent nach Installation nicht automatisch starten
--forcefalseBestehende Installation überschreiben

Was bei der Installation passiert

1. remote-install.sh wird heruntergeladen und ausgeführt
2. Korrekte Binary für die aktuelle Plattform wird ermittelt
   (linux-amd64 / linux-arm64 / darwin-amd64 / darwin-arm64 / darwin-universal)
3. Binary wird vom Download-Host geladen (aus `--server` abgeleitet:
   `https://downloads.<host>/satellite`, Override: Env `DOWNLOAD_BASE_URL`)
4. Agent wird als Systemdienst registriert
5. Enrollment:
     POST /v1/ingest/enroll  (Agent-API, CSRF-frei)
       Body: { enrollment_token, hostname, os_name, os_version, agent_version }
       Response: { agent_id, api_key }
6. agent_id  → /var/lib/imvee-satellite/agent.id  (0644)
   api_key   → /var/lib/imvee-satellite/agent.key  (0600, AES-256-GCM)
7. Agent wird gestartet (sofern --skip-start nicht gesetzt)

:::info [Idempotentes Enrollment] Ist bereits eine agent.id-Datei vorhanden, überspringt der Agent das Enrollment und verwendet die bestehenden Credentials — es wird kein neues Gerät in SOCSuite angelegt. Um einen Agent neu zu registrieren, muss agent.id und agent.key vorher gelöscht werden (oder --force beim Installer verwenden). :::


Verifikation

Nach der Installation kann der Agent-Status wie folgt geprüft werden:

# Systemd (Linux)
sudo systemctl status imvee-satellite

# Prozess-Check (alle Plattformen)
ps aux | grep imvee-satellite

Der Agent erscheint nach kurzer Zeit in der SOCSuite unter Orbit → Agents mit Status online.


Deinstallation

sudo /var/lib/imvee-satellite/uninstall.sh

Das Uninstall-Script stoppt den Dienst, entfernt die Binaries und bereinigt die Systemdienst-Registrierung.

:::info Die Datei /var/lib/imvee-satellite/agent.id kann nach der Deinstallation manuell gelöscht werden, um den Agent-Eintrag in SOCSuite als offline zu markieren. Das Löschen des Assets aus SOCSuite erfolgt separat in der UI. :::


Remote-Installation (Enterprise-Guide)

🚀 Quick Installation

Prerequisites

  • macOS 10.15+ or Linux (Ubuntu 20.04+, RHEL 8+, etc.)
  • Root/sudo access
  • Network connectivity to your SOCsuite instance

One-Line Installation

curl -fsSL https://raw.githubusercontent.com/IMVEE-SOCsuite/imvee.satellite/main/scripts/remote-install.sh | \
  sudo bash -s -- --token=YOUR_ENROLLMENT_TOKEN

With custom server:

curl -fsSL https://raw.githubusercontent.com/IMVEE-SOCsuite/imvee.satellite/main/scripts/remote-install.sh | \
  sudo bash -s -- \
    --token=YOUR_ENROLLMENT_TOKEN \
    --server=https://socsuite.dev.imvee.de

Getting an Enrollment Token

  1. Log into your SOCsuite instance: https://socsuite.dev.imvee.de
  2. Navigate to Orbit → Enrollment Tokens
  3. Click "Create New Token"
  4. Copy the generated token
  5. Use it in the installation command above

📦 Manual Installation

If you prefer to install manually or need more control:

Step 1: Download Binary

Download the appropriate binary for your platform from the latest release:

macOS (Universal):

curl -fsSL -o imvee-satellite-agent \
  https://github.com/IMVEE-SOCsuite/imvee.satellite/releases/latest/download/imvee-satellite-agent-darwin-universal

macOS (Intel):

curl -fsSL -o imvee-satellite-agent \
  https://github.com/IMVEE-SOCsuite/imvee.satellite/releases/latest/download/imvee-satellite-agent-darwin-amd64

macOS (Apple Silicon):

curl -fsSL -o imvee-satellite-agent \
  https://github.com/IMVEE-SOCsuite/imvee.satellite/releases/latest/download/imvee-satellite-agent-darwin-arm64

Linux (x86_64):

curl -fsSL -o imvee-satellite-agent \
  https://github.com/IMVEE-SOCsuite/imvee.satellite/releases/latest/download/imvee-satellite-agent-linux-amd64

Linux (ARM64):

curl -fsSL -o imvee-satellite-agent \
  https://github.com/IMVEE-SOCsuite/imvee.satellite/releases/latest/download/imvee-satellite-agent-linux-arm64

Step 2: Verify Checksum

# Download checksums
curl -fsSL -o checksums.txt \
  https://github.com/IMVEE-SOCsuite/imvee.satellite/releases/latest/download/checksums.txt

# Verify (macOS)
shasum -a 256 -c checksums.txt

# Verify (Linux)
sha256sum -c checksums.txt

Step 3: Install

sudo mkdir -p /usr/local/imvee-satellite
sudo mv imvee-satellite-agent /usr/local/imvee-satellite/agent
sudo chmod +x /usr/local/imvee-satellite/agent

Step 4: Configure

Create configuration file:

sudo mkdir -p /var/lib/imvee-satellite /var/log/imvee-satellite
sudo tee /usr/local/imvee-satellite/agent.env > /dev/null <<EOF
# SOCsuite Configuration
SOCSUITE_SERVER=https://socsuite.dev.imvee.de
ENROLLMENT_TOKEN=YOUR_TOKEN_HERE

# Agent Configuration
IMVEE_QUEUE=/var/lib/imvee-satellite/queue.jsonl
IMVEE_LOG_DIR=/var/log/imvee-satellite
IMVEE_DEBUG=0

# Note: The agent ships logs to the backend ingest API (API_URL) using the
# enrollment-issued token. No OpenSearch URL/credentials are needed on the agent;
# the backend pins the index and writes to OpenSearch internally.
EOF

sudo chmod 0640 /usr/local/imvee-satellite/agent.env

Step 5: Install Service

macOS (launchd):

sudo tee /Library/LaunchDaemons/com.imvee.satellite.plist > /dev/null <<'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.imvee.satellite</string>

    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/imvee-satellite/agent</string>
    </array>

    <key>RunAtLoad</key>
    <true/>

    <key>KeepAlive</key>
    <true/>

    <key>StandardOutPath</key>
    <string>/var/log/imvee-satellite/agent.out.log</string>

    <key>StandardErrorPath</key>
    <string>/var/log/imvee-satellite/agent.err.log</string>

    <key>EnvironmentVariables</key>
    <dict>
        <key>PATH</key>
        <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
    </dict>
</dict>
</plist>
EOF

sudo launchctl bootstrap system /Library/LaunchDaemons/com.imvee.satellite.plist

Linux (systemd):

sudo tee /etc/systemd/system/imvee-satellite.service > /dev/null <<'EOF'
[Unit]
Description=IMVEE Satellite Agent
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/usr/local/imvee-satellite/agent
Restart=on-failure
RestartSec=10s
StandardOutput=append:/var/log/imvee-satellite/agent.out.log
StandardError=append:/var/log/imvee-satellite/agent.err.log
EnvironmentFile=/usr/local/imvee-satellite/agent.env

# Security
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable imvee-satellite
sudo systemctl start imvee-satellite

🔍 Verification

Check Agent Status

macOS:

sudo launchctl list com.imvee.satellite
tail -f /var/log/imvee-satellite/agent.out.log

Linux:

sudo systemctl status imvee-satellite
sudo journalctl -u imvee-satellite -f

Verify Enrollment

Check the logs for enrollment success:

# macOS
grep "Enrollment successful" /var/log/imvee-satellite/agent.out.log

# Linux
journalctl -u imvee-satellite | grep "Enrollment successful"

You should see:

Enrollment successful: agent_id=<ID> org_id=<ORG>

Test Event Collection

Generate a test event:

echo "test command" | bash

Check the queue:

cat /var/lib/imvee-satellite/queue.jsonl

🛠️ Advanced Configuration

Installation Options

The remote install script supports several options:

curl -fsSL https://raw.githubusercontent.com/IMVEE-SOCsuite/imvee.satellite/main/scripts/remote-install.sh | \
  sudo bash -s -- \
    --token=TOKEN \
    --server=https://socsuite.dev.imvee.de \
    --version=v1.0.0 \
    --skip-start \
    --debug

Options:

  • --token=TOKEN - Enrollment token (required)
  • --server=URL - SOCsuite server URL
  • --version=VERSION - Specific version to install (default: latest)
  • --skip-start - Don't start service after installation
  • --force - Force reinstallation
  • --debug - Enable debug output

Environment Variables

Configure the agent by editing /usr/local/imvee-satellite/agent.env:

# SOCsuite Integration
SOCSUITE_SERVER=https://socsuite.dev.imvee.de
ENROLLMENT_TOKEN=your_token
SOCSUITE_AGENT_ID=auto_assigned
SOCSUITE_API_KEY=auto_assigned

# Event Queue
IMVEE_QUEUE=/var/lib/imvee-satellite/queue.jsonl
BATCH_SIZE=50
POLL_INTERVAL=10s

# Logging
IMVEE_LOG_DIR=/var/log/imvee-satellite
IMVEE_DEBUG=0
IMVEE_LOG_STDOUT=0

# Logs are shipped to the backend ingest API (API_URL) with the enrollment
# token; the backend pins the index and writes to OpenSearch internally.

After changes, restart the service:

# macOS
sudo launchctl bootout system /Library/LaunchDaemons/com.imvee.satellite.plist
sudo launchctl bootstrap system /Library/LaunchDaemons/com.imvee.satellite.plist

# Linux
sudo systemctl restart imvee-satellite

🔧 Troubleshooting

Agent Not Starting

Check logs:

# macOS
tail -50 /var/log/imvee-satellite/agent.err.log

# Linux
sudo journalctl -u imvee-satellite -n 50

Enrollment Failed

Common issues:

  1. Invalid token - Generate a new token in SOCsuite UI
  2. Network connectivity - Verify curl https://socsuite.dev.imvee.de/health
  3. Firewall - Ensure port 443 is accessible

Events Not Appearing

  1. Check queue file:

    ls -lh /var/lib/imvee-satellite/queue.jsonl
  2. Enable debug logging:

    echo "IMVEE_DEBUG=1" | sudo tee -a /usr/local/imvee-satellite/agent.env
    # Restart service
  3. Test OpenSearch connectivity:

    curl -u admin:password https://socsuite.dev.imvee.de/opensearch/_cluster/health

🗑️ Uninstallation

macOS:

sudo launchctl bootout system /Library/LaunchDaemons/com.imvee.satellite.plist
sudo rm /Library/LaunchDaemons/com.imvee.satellite.plist
sudo rm -rf /usr/local/imvee-satellite
sudo rm -rf /var/lib/imvee-satellite
sudo rm -rf /var/log/imvee-satellite

Linux:

sudo systemctl stop imvee-satellite
sudo systemctl disable imvee-satellite
sudo rm /etc/systemd/system/imvee-satellite.service
sudo systemctl daemon-reload
sudo rm -rf /usr/local/imvee-satellite
sudo rm -rf /var/lib/imvee-satellite
sudo rm -rf /var/log/imvee-satellite

🆘 Support

For issues or questions:


Security Note: Always verify the installation script and binaries before running on production systems. Check checksums and review the code at https://github.com/IMVEE-SOCsuite/imvee.satellite

Private Deployment (Build & Deployment)

This guide explains how to build and deploy the IMVEE Satellite Agent for a private repository setup where GitHub releases are not publicly accessible.

🏗️ Architecture

┌─────────────────────────────────────┐
│  Developer Machine                  │
│  ├── make build-all (builds)       │
│  └── make deploy (copies to infra) │
└────────────┬────────────────────────┘
             │
             v
┌─────────────────────────────────────┐
│  infrastructure/downloads/          │
│  └── satellite/                     │
│      └── v0.1.0/                   │
│          ├── agent-darwin-*        │
│          ├── agent-linux-*         │
│          ├── checksums.txt         │
│          └── install.sh            │
└────────────┬────────────────────────┘
             │
             v (Docker volume mount)
┌─────────────────────────────────────┐
│  downloads.dev.imvee.de (nginx)      │
│  serves /downloads/satellite/*      │
└────────────┬────────────────────────┘
             │
             v
┌─────────────────────────────────────┐
│  Client Systems                     │
│  curl downloads.dev.imvee.de/...     │
└─────────────────────────────────────┘

🚀 Quick Start

1. Build Release

cd imvee.satellite
make release VERSION=v0.2.0

Output:

dist/
├── imvee-satellite-agent-darwin-amd64
├── imvee-satellite-agent-darwin-arm64
├── imvee-satellite-agent-darwin-universal
├── imvee-satellite-agent-linux-amd64
├── imvee-satellite-agent-linux-arm64
├── checksums.txt
└── RELEASE_NOTES.md

2. Deploy to Infrastructure

# Default: ../infrastructure/downloads/satellite/v0.2.0
make deploy VERSION=v0.2.0

# Custom location:
make deploy VERSION=v0.2.0 DEPLOY_DIR=/path/to/downloads/satellite/v0.2.0

Output:

infrastructure/downloads/satellite/v0.2.0/
├── imvee-satellite-agent-darwin-amd64
├── imvee-satellite-agent-darwin-arm64
├── imvee-satellite-agent-darwin-universal
├── imvee-satellite-agent-linux-amd64
├── imvee-satellite-agent-linux-arm64
├── checksums.txt
├── install.sh  (copy of remote-install.sh)
└── VERSION     (contains "v0.2.0")

3. Setup Download Server (nginx)

Option A: Docker Compose (Recommended)

Create infrastructure/docker-compose.yml:

version: "3.8"

services:
  downloads:
    image: nginx:alpine
    container_name: imvee-downloads
    ports:
      - "8080:80"
    volumes:
      - ./downloads:/usr/share/nginx/html/downloads:ro
      - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
    restart: unless-stopped

Create infrastructure/nginx.conf:

server {
    listen 80;
    server_name downloads.dev.imvee.de;

    root /usr/share/nginx/html;
    autoindex on;  # Directory listing

    location /downloads/ {
        alias /usr/share/nginx/html/downloads/;
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;
    }

    # CORS for curl access
    add_header Access-Control-Allow-Origin *;

    # Cache control
    location ~* \.(sh|txt)$ {
        add_header Cache-Control "no-cache, must-revalidate";
    }
}

Start server:

cd infrastructure
docker-compose up -d

Option B: System nginx

# macOS
brew install nginx
sudo ln -s $(pwd)/infrastructure/downloads /usr/local/var/www/downloads

# Linux
sudo apt install nginx
sudo ln -s $(pwd)/infrastructure/downloads /var/www/html/downloads

4. Client Installation

# Standard installation
curl -fsSL https://downloads.dev.imvee.de/satellite/v0.2.0/install.sh | \
  sudo bash -s -- --token=YOUR_TOKEN

# Or with explicit download URL
export DOWNLOAD_BASE_URL=https://downloads.dev.imvee.de/satellite
curl -fsSL https://downloads.dev.imvee.de/satellite/v0.2.0/install.sh | \
  sudo bash -s -- --token=YOUR_TOKEN

📋 Complete Workflow

Development → Production Release

# 1. Development & Testing
make build                    # Quick local build
make test                     # Run tests
make lint                     # Run linter

# 2. Create Release
git tag v0.2.0
make release VERSION=v0.2.0   # Build all platforms

# 3. Deploy to Infrastructure
make deploy VERSION=v0.2.0

# 4. Commit Infrastructure Changes
cd ../infrastructure
git add downloads/satellite/v0.2.0
git commit -m "Release: Satellite Agent v0.2.0"
git push

# 5. Sync to Production Server (if separate)
rsync -av infrastructure/downloads/ \
  production:/var/www/downloads/

🛠️ Makefile Targets

make help                     # Show all available targets

# Building
make build                    # Build for current platform only
make build-all                # Build for all platforms (darwin/linux, amd64/arm64)
make release VERSION=v0.2.0   # Full release build

# Deployment
make deploy VERSION=v0.2.0    # Build + deploy to infrastructure/downloads/

# Testing
make test                     # Run tests
make lint                     # Run linter
make clean                    # Remove build artifacts

# Local Installation (for testing)
make install-local            # Install to /usr/local/imvee-satellite
make uninstall-local          # Uninstall

🔧 Configuration

Environment Variables

Build-time:

export VERSION=v0.2.0                    # Release version
export DEPLOY_DIR=/custom/path           # Custom deployment directory

Client-side (installation):

export DOWNLOAD_BASE_URL=https://downloads.dev.imvee.de/satellite
export SOCSUITE_SERVER=https://socsuite.dev.imvee.de

Custom Download Server

Edit scripts/remote-install.sh defaults:

# Change default download URL
DOWNLOAD_BASE_URL="${DOWNLOAD_BASE_URL:-https://downloads.dev.imvee.de/satellite}"

Or set at runtime:

curl -fsSL https://downloads.dev.imvee.de/satellite/v0.2.0/install.sh | \
  DOWNLOAD_BASE_URL=https://custom.server/path \
  sudo -E bash -s -- --token=TOKEN

📁 Directory Structure

imvee.satellite/              # Agent repository
├── Makefile                  # Build orchestration
├── scripts/
│   ├── build-release.sh      # Multi-platform build script
│   └── remote-install.sh     # Client installation script
├── agent/                    # Agent source code
└── dist/                     # Build artifacts (gitignored)

infrastructure/               # Separate infrastructure repo
├── downloads/
│   └── satellite/
│       ├── v0.1.0/
│       ├── v0.2.0/
│       └── latest -> v0.2.0
├── docker-compose.yml        # Download server
└── nginx.conf                # nginx config

🔐 Security Best Practices

1. Signed Binaries (Future Enhancement)

# Sign with Apple Developer ID (macOS)
codesign --sign "Developer ID Application" \
  dist/imvee-satellite-agent-darwin-universal

# Sign with GPG (Linux)
gpg --detach-sign --armor dist/imvee-satellite-agent-linux-amd64

2. HTTPS Only

Always serve downloads over HTTPS:

server {
    listen 443 ssl http2;
    ssl_certificate /path/to/cert.pem;
    ssl_certificate_key /path/to/key.pem;
    # ...
}

3. Access Control

Option A: Basic Auth

location /downloads/ {
    auth_basic "IMVEE Downloads";
    auth_basic_user_file /etc/nginx/.htpasswd;
}

Option B: IP Whitelist

location /downloads/ {
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
}

🧪 Testing the Setup

1. Verify Build

make release VERSION=v0.2.0
ls -lh dist/

Expected: 5 binaries + checksums.txt

2. Verify Deployment

make deploy VERSION=v0.2.0
ls -lh ../infrastructure/downloads/satellite/v0.2.0/

Expected: Binaries + install.sh + VERSION

3. Verify Download Server

# Local test
curl -I http://localhost:8080/downloads/satellite/v0.2.0/install.sh

# Should return: 200 OK

4. Test Installation

# On a clean test system
curl -fsSL http://downloads.dev.imvee.de/satellite/v0.2.0/install.sh | \
  sudo bash -s -- \
    --token=test_token \
    --server=https://socsuite.dev.imvee.de \
    --debug

🆘 Troubleshooting

Binary Download Fails (404)

Check:

# 1. File exists?
ls ../infrastructure/downloads/satellite/v0.2.0/

# 2. nginx serving correctly?
curl -I http://downloads.dev.imvee.de/satellite/v0.2.0/checksums.txt

# 3. Docker container running?
docker ps | grep imvee-downloads

Wrong Architecture Downloaded

Fix: Install script auto-detects. Override:

curl ... | sudo bash -s -- --token=TOKEN --arch=amd64

Checksum Mismatch

Regenerate checksums:

cd dist
shasum -a 256 imvee-satellite-agent-* > checksums.txt
make deploy VERSION=v0.2.0

🎯 Production Checklist

  • Build tested on clean system
  • All platforms build successfully
  • Checksums verified
  • Deploy to staging infrastructure
  • Test installation from staging
  • Deploy to production infrastructure
  • Update documentation with new version
  • Test production installation
  • Create release notes
  • Notify customers

  • Agent Development (Quelle: ../README.md)
  • Installation Guide (Quelle: ./REMOTE_INSTALLATION.md)
  • SOCsuite Documentation

Last Updated: December 14, 2025 Maintained by: IMVEE SOCsuite Team

Plattform: Linux

Plattform: Linux (systemd/Debian-Unterfamilie zuerst, generic-unix-kompatibel) · Auth-Events: seit 0.4.x (DEV-1360)

Übersicht Linux-Datenquellen

CollectorQuelleDataset
File-Collector (system_logs)/var/log/syslog, /var/log/auth.log, … (Tail, konfigurierbar)system_logs (raw)
Journald-Collectorjournalctl -f -o json (optional, systemd)system.journal (raw)
Auth-Collector (DEV-1360)Auth-Zeilen aus dem File-Tail (sshd / systemd-logind / sudo / pam_unix)system.auth (strukturiert)
NetConn, FIM, Compliance, …s. AGENTS.md / Code—

Auth-Events (DEV-1360)

Login-/Logoff-/sudo-Events auf Linux-Assets werden aus dem normalen /var/log/auth.log-Tail zusätzlich als strukturierte Auth-Docs extrahiert (Ergänzungs-Docs — die rohen syslog-Docs bleiben unverändert, dataset=system_logs). Dedup-Modell: 1 rohes Doc + 1 strukturiertes Doc pro Auth-Zeile; nicht-Auth-Zeilen erzeugen nur das rohe Doc.

Quellen & Events:

Quelle (process.name)Musterevent.actionevent.outcomeauth.method
sshdAccepted password/publickey [for] <user> from IP port Nloginsuccesspassword / key
sshdFailed password [for] (invalid user )?<user> from IP port Nloginfailurepassword
sshdDisconnected from [authenticating ]user <user> IP port Nlogout——
systemd-logindNew session N of user Xlogin—local
systemd-logindSession N logged out. uid U gonelogout—local (nur auth.user.id)
sudouser : [TTY=… ; ] PWD=… ; USER=target ; COMMAND=…sudo—sudo
pam_unix(<svc>:auth)authentication failure; … rhost=IP user=Xloginfailurepam
pam_unix(<svc>:session)session opened/closed for user Xlogin / logout—pam

Format-Abdeckung (E2E-verifiziert auf ubuntu-server 24.04, DEV-1360):

  • Timestamp-Präfix: BSD-syslog (Nov 12 01:21:50 host …) und rsyslog-ISO (2026-11-12T01:21:50.391932+00:00 host …, Ubuntu 24.04-Default) — Offset → UTC.
  • OpenSSH ≥ 9 loggt Accepted … for <user> from … (Wort for) — wird erkannt.
  • sudo-Records mit und ohne TTY=-Feld (neueres sudo-Format ohne TTY).
  • PAM-Zeilen, die rsyslog unter dem sshd-/login-Tag verschachtelt (sshd[pid]: pam_unix(sshd:session): …) — werden erkannt; sudo-/cron-PAM- Byprodukte werden bewusst nicht als Auth-Events emittiert.
  • Referenz-E2E: 32.938 reale auth.log-Zeilen → 4.243 system.auth-Docs (2.180 sudo, 462 login-failure, 321 success, 642 login, 638 logout).

Voraussetzung (Betrieb): Auth-Erkennung läuft im File-Collector (system_logs). Damit ein Asset Auth-Events liefert, muss sein zentrales system_logs-Mission-Config /var/log/auth.log (bzw. /var/log/secure auf RHEL) in den getailten Paths enthalten — andernfalls erreichen die Auth-Zeilen den Parser nicht. (Default-Paths ohne zentrale Config beinhalten auth.log bereits.)

Hinweis: Derselbe Login kann aus mehreren Quellen dokumentiert sein (sshd + pam_unix + logind) — wie bei Winlog (EVT + PAM). Filtern nach process.name filtert die Duplikate weg. Bewusst konservativ: unklare Zeilen erzeugen kein strukturiertes Doc (kein false positive).

Felder (ECS-kompatibel, additive — keine Breaking Change im Index):

dataset=system.auth          event.category=authentication
event.kind=event             event.type=start|end|info
event.action=login|logout|sudo
event.outcome=success|failure  (nur bei login)
auth.user                    auth.user.id   (nur uid bekannt)
auth.method                  auth.source.domain
source.ip                    auth.target.user  (sudo)
host.hostname                process.name     process.command (sudo)
@timestamp                   message          log.file.path
agent.name=imvee-agent

@timestamp = Zeilen-Zeitstempel aus dem syslog-Präfix (Mon DD HH:MM:SS, ohne Jahr → aktuelles Jahr, Jahreswechsel-Rollback >2 h in der Zukunft). Syslog-Präfixes tragen kein TZ-Offset → als UTC behandelt (konsistent).

Beispiel-Doc (sshd-Login):

{
  "dataset": "system.auth",
  "event.category": "authentication",
  "event.action": "login",
  "event.outcome": "success",
  "auth.user": "alice",
  "auth.method": "password",
  "source.ip": "203.0.113.5",
  "host.hostname": "ubuntu-server",
  "process.name": "sshd",
  "message": "Nov 11 21:00:00 ubuntu-server sshd[12345]: Accepted password alice from 203.0.113.5 port 51222 ssh2"
}

Abgrenzung: Windows-Pendant = Winlog-Collector (winlog.*-Felder, DEV-1358) — die Feld-Familien sind bewusst getrennt (auth.* vs. winlog.*), gemeinsame Suche über event.category=authentication.

Plattform: macOS

Übersicht

Der IMVEE Agent ist ein System-Daemon, der kontinuierlich läuft und:

  • System-Metriken sammelt
  • Vulnerability Scans durchführt
  • Docker-Container überwacht
  • Fehler an das Backend meldet
  • Nach Neustarts und Sleep-Modus automatisch startet

Installation

Erstinstallation

cd agent/macos
sudo ./installer/install.sh

Agent aktualisieren (Update)

cd agent/macos
sudo ./installer/update.sh

Agent deinstallieren

cd agent/macos
sudo ./installer/uninstall.sh

Konfiguration

Die Agent-Konfiguration befindet sich in:

/usr/local/imvee-satellite/agent.env

Wichtige Umgebungsvariablen:

  • API_URL - Backend-API-URL (default: http://localhost:8080/api/v1)
  • IMVEE_HEARTBEAT_INTERVAL - Heartbeat-Intervall (default: 60s)
  • IMVEE_METRICS_INTERVAL - Metrics-Intervall (default: 30s)
  • IMVEE_CONFIG_SYNC_INTERVAL - Config-Sync-Intervall (default: 5m)

LaunchD Service Management

Status prüfen

sudo launchctl list | grep imvee

Service neu starten

sudo launchctl unload /Library/LaunchDaemons/com.imvee.satellite.plist
sudo launchctl load /Library/LaunchDaemons/com.imvee.satellite.plist

Service stoppen

sudo launchctl unload /Library/LaunchDaemons/com.imvee.satellite.plist

Logs anzeigen

# Standard Output
tail -f /var/log/imvee-satellite/agent.out.log

# Error Output
tail -f /var/log/imvee-satellite/agent.err.log

Robustheit-Features

Automatischer Neustart

Der Agent startet automatisch neu bei:

  • System-Neustart (RunAtLoad=true)
  • Abstürzen/Panics (KeepAlive.Crashed=true)
  • Netzwerk-Reconnect (KeepAlive.NetworkState=true)
  • Sleep/Wake-Zyklen (LaunchOnlyOnce=false)

Panic Recovery

Alle Goroutinen sind mit safeGo() geschützt:

  • Fängt Panics ab
  • Loggt Fehler
  • Sendet Fehlerberichte an Backend
  • Verhindert kompletten Agent-Crash

Error Reporting

Der Agent sendet automatisch Fehlerberichte an:

POST /api/v1/agent/error
{
  "error_type": "panic",
  "error_message": "PANIC in heartbeatLoop: ...",
  "timestamp": "2025-12-09T12:00:00Z",
  "hostname": "CVMacBook",
  "agent_version": "1.0.0"
}

Rate-Limit: Max. 1 Fehlerbericht pro Minute

Throttling

Bei wiederholten Fehlern wartet der Service 10 Sekunden vor Neustart (ThrottleInterval=10)

Troubleshooting

Agent läuft nicht

# Prüfen ob Service geladen ist
sudo launchctl list | grep imvee

# Service manuell laden
sudo launchctl load /Library/LaunchDaemons/com.imvee.satellite.plist

# Logs prüfen
tail -100 /var/log/imvee-satellite/agent.err.log

Keine Scans im Backend

# Prüfen ob Agent registriert ist
curl http://localhost:8080/api/v1/agents

# Agent-ID prüfen
cat /usr/local/var/imvee-satellite/agent.id

# Heartbeat manuell testen
curl -X POST http://localhost:8080/api/v1/agent/heartbeat \
  -H "X-Agent-Token: $(cat /usr/local/imvee-satellite/agent.env | grep AGENT_TOKEN | cut -d'=' -f2)" \
  -d '{"agent_id":"...", "ip_address":"127.0.0.1"}'

Docker-Monitoring funktioniert nicht

# Docker-Zugriff testen
docker ps

# Mission-Config prüfen
curl http://localhost:8080/api/v1/agent/config

# Logs auf Docker-Fehler prüfen
grep -i docker /var/log/imvee-satellite/agent.out.log

Deinstallation

# Service stoppen und entladen
sudo launchctl unload /Library/LaunchDaemons/com.imvee.satellite.plist

# Service-Datei entfernen
sudo rm /Library/LaunchDaemons/com.imvee.satellite.plist

# Agent-Dateien entfernen
sudo rm -rf /usr/local/imvee-satellite
sudo rm -rf /usr/local/var/imvee-satellite
sudo rm -rf /var/log/imvee-satellite

Architektur

┌─────────────────────────────────────────┐
│     macOS LaunchD (System Daemon)       │
└─────────────────┬───────────────────────┘
                  │
                  ▼
┌─────────────────────────────────────────┐
│      IMVEE Agent (Main Process)         │
│  - Panic Recovery für alle Goroutinen   │
│  - Error Reporting an Backend           │
│  - Automatisches Reconnect              │
└────┬────────┬────────┬─────────┬────────┘
     │        │        │         │
     ▼        ▼        ▼         ▼
┌────────┐ ┌──────┐ ┌──────┐ ┌──────────┐
│Metrics │ │Heart │ │Vuln  │ │Inventory │
│Loop    │ │beat  │ │Scan  │ │Loop      │
└────────┘ └──────┘ └──────┘ └──────────┘
     │        │        │         │
     └────────┴────────┴─────────┘
                  │
                  ▼
          ┌──────────────┐
          │   Backend    │
          │   API        │
          └──────────────┘

Monitoring

Der Agent sendet regelmäßig:

  • Heartbeats (alle 60s) - Zeigt an, dass der Agent läuft
  • Metrics (alle 30s) - CPU, RAM, Disk, Network
  • Inventory (alle 5min) - Installierte Software, Systeminformationen
  • Vulnerability Scans (alle 30min) - Gefundene Schwachstellen
  • Error Reports (bei Fehlern) - Crash-Berichte, Fehlerdetails

Alle Daten sind im Backend-Dashboard sichtbar.

Plattform: Windows (Details)

Complete Windows Support | Version 0.3.0+ | Full Feature Parity

🪟 Windows Agent Overview

The IMVEE Satellite Agent for Windows provides comprehensive security monitoring with full feature parity to Unix/Mac agents. Built using native Windows APIs and integrated into the unified agent architecture.

🚀 Quick Installation

Prerequisites:

  • Windows 11 or Windows Server 2025+
  • PowerShell 5.1 or newer
  • Administrator privileges
  • Network connectivity to SOCSuite backend

Step 1: Get Enrollment Token

  1. Open SOCSuite UI: https://<API-URL>/orbit/enrollment-tokens (Self-Hosted: deine SOCSuite-Domain)
  2. Create new token and copy it

Step 2: Install via PowerShell (Zero-Touch, DEV-1092)

# Open PowerShell as Administrator
# Installer: Download + SHA256-Pruefung + Installation + Env-Persistenz + Service-Start
# Bootstrap-Download mit Retry (DEV-1092 WP5: ohne Timeout/Retry haengt IWR bei
# instabilen Verbindungen endlos — verifiziert 2026-11-10, 55 min Stall):
for ($i = 1; $i -le 3; $i++) {
  try {
    Invoke-WebRequest -Uri "https://<DOWNLOADS-DOMAIN>/satellite/latest/install-windows.ps1" `
      -OutFile "$env:TEMP\install-windows.ps1" -TimeoutSec 120 -UseBasicParsing
    break
  } catch {
    if ($i -eq 3) { throw }
    Write-Host "Download-Versuch $i fehlgeschlagen, retry in 5 s ..."; Start-Sleep -Seconds 5
  }
}
powershell -ExecutionPolicy Bypass -File "$env:TEMP\install-windows.ps1" `
  -Token "<YOUR_TOKEN>" `
  -Server "https://<API-URL>"          # SOCSuite-Base-URL, ohne /api/v1
# Der Installer selbst retryt den 56-MB-EXE-Download (curl.exe, 3x + Backoff).
ParameterBedeutung
-TokenEnrollment-Token (Pflicht; Alternativ Env IMVEE_ENROLLMENT_TOKEN)
-ServerSOCSuite-Base-URL (Default https://socsuite.dev.imvee.de; Script fuegt /api/v1 hinzu)
-DownloadBaseDownloads-Server (Default https://downloads.dev.imvee.de; bei Demos: https://<TS>.demo.imvee.de)
-Versionlatest (Default) oder Pin, z. B. v0.4.1
-ForceUeber bestehende Installation installieren (entfernt alten Service zuerst)
-SkipStartInstallieren ohne Service-Start

Exit-Codes: 0 = installiert & online · 1 = Fehler (Download/Checksum/Rechte) · 2 = installiert, aber Service noch nicht running → jetzt neu starten (Service startet nach dem Reboot automatisch, Enrollment erfolgt beim First-Boot).

Env-Scope-Falle (Windows-Service): Der Service-Prozess läuft als LocalSystem und sieht weder $env: (Session) noch setx (User-Scope). Der Installer setzt die Env deshalb in seiner eigenen Session und persistiert sie via install-service nach C:\ProgramData\IMVEE-Satellite\agent.env (DEV-1086). Manuelle Umgebungen ohne Installer brauchen setx /M (Machine-Scope) + Reboot (SCM-Env-Snapshot).

First-Boot-Gate: Der Agent erwartet den Enrollment-Token in IMVEE_API_KEY (Gate loadAgentToken) — IMVEE_ENROLLMENT_TOKEN wird erst im Enrollment-Step danach gelesen. Deshalb: IMVEE_API_KEY=<enroll_…> setzen.

Manual Installation

# Download binary
Invoke-WebRequest -Uri "https://<DOWNLOADS-DOMAIN>/satellite/latest/imvee-satellite-agent-windows-amd64.exe" -OutFile "imvee-satellite.exe"

# Create installation directory
New-Item -ItemType Directory -Path "C:\Program Files\IMVEE-Satellite" -Force
Copy-Item "imvee-satellite.exe" "C:\Program Files\IMVEE-Satellite\"

# 1) Env VOR der Installation setzen (DEV-1086): `install-service` persistiert
#    sie nach C:\ProgramData\IMVEE-Satellite\agent.env — der Service-Prozess
#    (LocalSystem) erbt die Shell-Env NICHT.
$env:IMVEE_API_KEY = "<YOUR_TOKEN>"           # Enrollment-Token (ak-/enroll_-Prefix)
$env:API_URL = "https://<API-URL>/api/v1"     # deine SOCSuite-URL

# 2) Install Windows Service (persistiert Env + setzt SYSTEM-Leserecht)
cd "C:\Program Files\IMVEE-Satellite"
.\imvee-satellite.exe install-service

# 3) Start service
Start-Service IMVEESatellite

📊 Windows Collectors

The Windows agent includes 5 specialized collectors that provide comprehensive system monitoring:

1. Event Log Collector

Purpose: Real-time Windows Event Log monitoring Data Sources: Security, System, Application Event Logs Technology: Win32 Event Log API (advapi32.dll)

Configuration:

{
  "eventlog": {
    "enabled": true,
    "channels": ["Security", "System", "Application"],
    "interval": "10s"
  }
}

Events Collected:

  • Login/logout events (Event ID 4624, 4634)
  • Privilege escalation (Event ID 4672)
  • Service start/stop (Event ID 7036)
  • Application crashes and errors
  • Security policy changes

2. Inventory Collector

Purpose: System inventory and asset tracking Data Sources: Windows Registry, WMI Technology: Registry API, Windows Management Instrumentation

Features:

  • Software Inventory: Installed programs from Registry (HKLM\Software)
  • Services Inventory: All Windows services via WMI
  • Patch Inventory: Installed hotfixes and updates
  • System Information: OS details, hardware info

Configuration:

{
  "inventory": {
    "enabled": true,
    "interval": "15m",
    "collect": ["software", "services", "patches", "system"]
  }
}

3. Network Scanner

Purpose: Network connection monitoring and port scanning Data Sources: TCP/UDP connection tables Technology: IP Helper API (GetExtendedTcpTable/UDP)

Features:

  • Active TCP/UDP connections
  • Process-to-port mapping
  • Network service discovery
  • Connection state monitoring

Configuration:

{
  "network_scan": {
    "enabled": true,
    "targets": ["192.168.1.0/24"],
    "ports": ["22,80,443,135,139,445,3389"],
    "interval": "30m"
  }
}

4. DNS Collector

Purpose: DNS query monitoring and cache analysis Data Sources: Windows DNS Cache, Network connections Technology: DNS API (DnsGetCacheDataTable)

Features:

  • DNS cache enumeration
  • DNS query monitoring via connection analysis
  • DNS resolution tracking
  • Suspicious domain detection

5. Vulnerability Scanner

Purpose: Security vulnerability assessment Data Sources: Registry, WMI, Network scans Technology: Integrated Windows APIs

Features:

  • Installed software vulnerability assessment
  • Open port security analysis
  • System configuration security review
  • Security patch status

🔧 Configuration

Default Paths

Installation: C:\Program Files\IMVEE-Satellite\
Data:         C:\ProgramData\IMVEE-Satellite\
Queue:        C:\ProgramData\IMVEE-Satellite\queue.jsonl
Agent ID:     C:\ProgramData\IMVEE-Satellite\agent.id
API Key:      C:\ProgramData\IMVEE-Satellite\agent.key
Env-File:     C:\ProgramData\IMVEE-Satellite\agent.env   # via install-service persistiert (DEV-1086)

Service-Env (DEV-1086): Windows-Service-Prozesse laufen als LocalSystem und erben die User-PowerShell-Env nicht. Deshalb: Env-Variablen VOR install-service setzen — der Befehl persistiert IMVEE_API_KEY, IMVEE_ENROLLMENT_TOKEN, API_URL, IMVEE_WS_BASE_URL, IMVEE_CA_FILE, IMVEE_CLIENT_CERT, IMVEE_CLIENT_KEY, IMVEE_INSECURE_SKIP_VERIFY in agent.env (SYSTEM-Leserecht via icacls). Der Agent lädt das File bei Start (Prozess-Env gewinnt). remove-service entfernt agent.env wieder (enthält Token).

Environment Variables

# VOR install-service setzen (siehe Service-Env-Hinweis oben)
$env:IMVEE_API_KEY = "your-enrollment-token"   # war IMVEE_ENROLLMENT_TOKEN (legacy)
$env:API_URL = "https://<API-URL>/api/v1"
$env:IMVEE_QUEUE = "C:\ProgramData\IMVEE-Satellite\queue.jsonl"
$env:IMVEE_HEARTBEAT_INTERVAL = "60s"
$env:METRICS_INTERVAL = "30s"
$env:IMVEE_INVENTORY_INTERVAL = "15m"
$env:IMVEE_DEBUG = "0"  # Set to "1" for debug logging

Mission Configuration

Windows collectors are dynamically configured via WebSocket mission config from the SOCSuite backend. Changes take effect without restart.

🛠️ Service Management

Check Service Status

Get-Service IMVEESatellite
sc query IMVEESatellite

Start/Stop Service

Start-Service IMVEESatellite
Stop-Service IMVEESatellite
Restart-Service IMVEESatellite

Service Logs

# Windows Event Log
Get-WinEvent -LogName Application -Source "IMVEESatellite" -MaxEvents 20

# Service status
Get-Service IMVEESatellite | Format-List *

# Queue file (recent events)
Get-Content "C:\ProgramData\IMVEE-Satellite\queue.jsonl" | Select-Object -Last 10

Uninstall Service

Stop-Service IMVEESatellite
cd "C:\Program Files\IMVEE-Satellite"
.\imvee-satellite.exe remove-service

🔍 Monitoring & Troubleshooting

Health Check

# Test agent execution
cd "C:\Program Files\IMVEE-Satellite"
.\imvee-satellite.exe --version
.\imvee-satellite.exe --config-test

# Check network connectivity
Test-Connection socsuite.dev.imvee.de
Test-NetConnection siem.dev.imvee.de -Port 443

Debug Mode

# Enable debug logging
$env:IMVEE_DEBUG = "1"
Restart-Service IMVEESatellite

# Manual execution for debugging
Stop-Service IMVEESatellite
cd "C:\Program Files\IMVEE-Satellite"
.\imvee-satellite.exe

Common Issues

Issue: Service won't start

# Check Event Log for details
Get-WinEvent -LogName System | Where-Object {$_.ProviderName -eq "Service Control Manager" -and $_.LevelDisplayName -eq "Error"} | Select-Object -First 5

# Check permissions
icacls "C:\ProgramData\IMVEE-Satellite"

Issue: No events in queue

# Check collector configuration
Get-Content "C:\ProgramData\IMVEE-Satellite\queue.jsonl" | Measure-Object -Line

# Test collectors manually
$env:IMVEE_DEBUG = "1"
.\imvee-satellite.exe --config-test

Issue: Permission denied

# Run as Administrator
# Check UAC settings
# Verify service account permissions

📈 Performance

Resource Usage (Typical)

  • Memory: 30-50MB
  • CPU: <5% average, <15% during scans
  • Disk: <1MB/day queue files
  • Network: <100KB/minute to backend

Optimization

# Adjust collection intervals
$env:IMVEE_INVENTORY_INTERVAL = "30m"  # Default: 15m
$env:METRICS_INTERVAL = "60s"          # Default: 30s

# Disable collectors if not needed (via mission config)
# Configure Windows Defender exclusions for better performance

🔒 Security

Permissions Required

  • Event Log Reading: Requires appropriate log access permissions
  • Registry Access: Read access to software registry keys
  • WMI Access: WMI query permissions for system information
  • Network Access: Raw socket access for network scanning (admin)
  • Service Installation: Administrator privileges

Windows Defender

Add exclusions to prevent interference:

# Add directory exclusion
Add-MpPreference -ExclusionPath "C:\Program Files\IMVEE-Satellite"
Add-MpPreference -ExclusionPath "C:\ProgramData\IMVEE-Satellite"

# Add process exclusion
Add-MpPreference -ExclusionProcess "imvee-satellite.exe"

Firewall Configuration

# Allow outbound HTTPS to SOCSuite
New-NetFirewallRule -DisplayName "IMVEE Satellite HTTPS" -Direction Outbound -Protocol TCP -LocalPort Any -RemotePort 443 -Action Allow

# Allow outbound WebSocket to SOCSuite
New-NetFirewallRule -DisplayName "IMVEE Satellite WebSocket" -Direction Outbound -Protocol TCP -LocalPort Any -RemotePort 443 -Action Allow

🔧 Development & Building

Build from Source

# Prerequisites: Go 1.23+
git clone https://gitlab.com/imvee/satellite.git
cd satellite

# Build for Windows
$env:GOOS = "windows"
$env:GOARCH = "amd64"
go build -o imvee-satellite-windows.exe ./cmd/agent

# Test build
.\imvee-satellite-windows.exe --version

Cross-Compilation

# From Linux/macOS
GOOS=windows GOARCH=amd64 go build -o imvee-satellite-windows.exe ./cmd/agent

📊 ECS Data Schema

All Windows collectors produce events following the Elastic Common Schema (ECS):

Event Log Events

{
  "@timestamp": "2024-04-29T12:00:00Z",
  "data_stream.dataset": "winlog",
  "event.kind": "event",
  "winlog.channel": "Security",
  "winlog.event_id": 4624,
  "winlog.record_id": 12345,
  "message": "An account was successfully logged on",
  "host.hostname": "WIN-PC-01"
}

Inventory Events

{
  "@timestamp": "2024-04-29T12:00:00Z",
  "data_stream.dataset": "host",
  "event.kind": "state",
  "package.name": "Microsoft Office",
  "package.version": "16.0.5",
  "host.hostname": "WIN-PC-01"
}

Network Events

{
  "@timestamp": "2024-04-29T12:00:00Z",
  "data_stream.dataset": "network",
  "event.kind": "state",
  "network.transport": "tcp",
  "destination.port": 443,
  "process.pid": 1234
}

🔗 Integration

SOCSuite Dashboard

Windows events automatically appear in:

  • Security Dashboard: Event Log security events
  • Inventory Dashboard: Software and system inventory
  • Network Dashboard: Connection monitoring
  • Vulnerability Dashboard: Security scan results

Alerting Rules

Common Windows alerting scenarios:

  • Failed login attempts (Event ID 4625)
  • Privilege escalation (Event ID 4672)
  • Service installation (Event ID 7045)
  • Suspicious network connections
  • Missing security patches

📞 Support

Logs and Diagnostics

# Collect diagnostic information
cd "C:\Program Files\IMVEE-Satellite"
.\imvee-satellite.exe status > diagnostic-report.txt

# Include in support request:
# - diagnostic-report.txt
# - Windows Event Log entries for IMVEESatellite
# - Last 50 lines of queue.jsonl
# - System specifications

Common Commands Reference

# Service management
Get-Service IMVEESatellite | Format-List *
Start-Service IMVEESatellite
Stop-Service IMVEESatellite
Restart-Service IMVEESatellite

# Status and diagnostics
.\imvee-satellite.exe --version
.\imvee-satellite.exe --config-test
.\imvee-satellite.exe status

# Service installation/removal
.\imvee-satellite.exe install-service
.\imvee-satellite.exe remove-service

# Queue and logs
Get-Content "C:\ProgramData\IMVEE-Satellite\queue.jsonl" | Select-Object -Last 10
Get-WinEvent -LogName Application -Source "IMVEESatellite" -MaxEvents 10

Note: This documentation covers Windows agent version 0.3.0+. For older versions or Unix/Mac documentation, see the main README.md.

Nächste Schritte

Auf dieser Seite

Enrollment Token holenOne-Liner InstallationWindows InstallationZero-Touch-Installer (empfohlen, DEV-1092)Manuelle InstallationInstallations-OptionenWas bei der Installation passiertVerifikationDeinstallationRemote-Installation (Enterprise-Guide)🚀 Quick InstallationPrerequisitesOne-Line InstallationGetting an Enrollment Token📦 Manual InstallationStep 1: Download BinaryStep 2: Verify ChecksumStep 3: InstallStep 4: ConfigureStep 5: Install Service🔍 VerificationCheck Agent StatusVerify EnrollmentTest Event Collection🛠️ Advanced ConfigurationInstallation OptionsEnvironment Variables🔧 TroubleshootingAgent Not StartingEnrollment FailedEvents Not Appearing🗑️ Uninstallation📚 Related Documentation🆘 SupportPrivate Deployment (Build & Deployment)🏗️ Architecture🚀 Quick Start1. Build Release2. Deploy to Infrastructure3. Setup Download Server (nginx)4. Client Installation📋 Complete WorkflowDevelopment → Production Release🛠️ Makefile Targets🔧 ConfigurationEnvironment VariablesCustom Download Server📁 Directory Structure🔐 Security Best Practices1. Signed Binaries (Future Enhancement)2. HTTPS Only3. Access Control🧪 Testing the Setup1. Verify Build2. Verify Deployment3. Verify Download Server4. Test Installation🆘 TroubleshootingBinary Download Fails (404)Wrong Architecture DownloadedChecksum Mismatch🎯 Production Checklist📚 Related DocumentationPlattform: LinuxÜbersicht Linux-DatenquellenAuth-Events (DEV-1360)Plattform: macOSÜbersichtInstallationErstinstallationAgent aktualisieren (Update)Agent deinstallierenKonfigurationLaunchD Service ManagementStatus prüfenService neu startenService stoppenLogs anzeigenRobustheit-FeaturesAutomatischer NeustartPanic RecoveryError ReportingThrottlingTroubleshootingAgent läuft nichtKeine Scans im BackendDocker-Monitoring funktioniert nichtDeinstallationArchitekturMonitoringPlattform: Windows (Details)🪟 Windows Agent Overview🚀 Quick InstallationAutomated Installation (Recommended)Manual Installation📊 Windows Collectors1. Event Log Collector2. Inventory Collector3. Network Scanner4. DNS Collector5. Vulnerability Scanner🔧 ConfigurationDefault PathsEnvironment VariablesMission Configuration🛠️ Service ManagementCheck Service StatusStart/Stop ServiceService LogsUninstall Service🔍 Monitoring & TroubleshootingHealth CheckDebug ModeCommon Issues📈 PerformanceResource Usage (Typical)Optimization🔒 SecurityPermissions RequiredWindows DefenderFirewall Configuration🔧 Development & BuildingBuild from SourceCross-Compilation📊 ECS Data SchemaEvent Log EventsInventory EventsNetwork Events🔗 IntegrationSOCSuite DashboardAlerting Rules📞 SupportLogs and DiagnosticsCommon Commands ReferenceNächste Schritte