rmagent-windows

Warn

Audited by Gen Agent Trust Hub on Oct 24, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONPERSISTENCEDATA_EXFILTRATION
Full Analysis
  • [COMMAND_EXECUTION]: Executes remote PowerShell commands on target Windows witnesses using pywinrm and pypsrp. It also performs remote execution on jump hosts via SSH using dynamically generated Python payloads as seen in scripts/trace_merge.py. Local execution is performed in scripts/laya_decide.py to run a decision helper binary resolved at runtime.\n- [DYNAMIC_EXECUTION]: The skill contains multiple scripts designed for self-modification; scripts/tmp_add_psrp.py and scripts/apply_psrp_msgcap.py perform in-place edits of the scripts/lib.py library using string replacement. Furthermore, scripts/needle_drift.py and scripts/needle_extract.py generate Python source code, write it to a temporary file in the system temp directory, and execute it via subprocess. The core library scripts/lib.py also uses importlib.util to dynamically load logic from a path calculated at runtime (rmagent-core/scripts/loader.py).\n- [INDIRECT_PROMPT_INJECTION]:\n
  • Ingestion points: Captured output from system event logs, including Process Spawns (4688) and PowerShell Script Blocks (4104), enters the agent context through scripts/lib.py.\n
  • Boundary markers: Implements a global 32 KB cap on command output and utilizes field-level truncation constants (MsgCap), but does not use explicit delimiters to isolate untrusted content.\n
  • Capability inventory: The skill possesses extensive capabilities for remote and local command execution, file system interaction, and network communication via Telegram and OpenTelemetry.\n
  • Sanitization: No sanitization or instruction-filtering logic is applied to the captured log data before it is interpolated into the agent context.\n- [PERSISTENCE]: The operation utility scripts/ops/rmagent-ops.ps1 creates and configures a persistent scheduled task named RMAgent-RingWatchdog on target Windows systems.\n- [DATA_EXFILTRATION]: Configured to transmit operational digests, findings, and diagnostic spans to external destinations, including the Telegram Bot API and configurable OpenTelemetry HTTP gateways.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 24, 2026, 10:40 AM