Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

anomalydetection-run-gensim-scenario

Latest version: vgit:352b6b0a6175b0d4cc01d0278bffc1baeb39654e

Overview

Last scanned
25 Nov 2026
AI: Benign Agent skill Publisher: DataDog
3,775 Stars
1,540 Forks
1 Versions
Go Repo language

Scan summary

anomalydetection-run-gensim-scenario was last scanned on 25 Nov 2026 at commit 352b6b0a. Risk score 40 of 100 (medium). No malicious behavior was detected. The AI review did not flag it.

  • Releases: Single version.
  • Findings: 2 rules fired in commit 352b6b0a (1 medium, 1 low). The score describes this commit only.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
352b6b0a 2 rules fired

Rules fired in 352b6b0a: 2

Findings

1 Medium 1 Low

Findings for commit 352b6b0a. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

A bundled script writes to a persistence or credential location

A script shipped with the skill writes to a place that survives the session or holds credentials (a shell startup file, an SSH key file, cron, a scheduled task), or reads the shell history. It asks for a closer look because an installer can write the same places for a good reason.

MEDIUM

Requests broad command-line access

LOW
Checking access…

🔒 Create a free account to see all 2 findings with descriptions and instance counts

The score describes 352b6b0a; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Record gensim episodes (VM or EKS)

Owner: Agent Anomaly Detection (@DataDog/agent-anomaly-detection).

Accept --backend vm|eks. If the user does not specify a backend, ask them to choose between eks and vm:

  • eks is for benchmark recordings on a disposable AWS sandbox stack and automatically uploads the recorded archive to S3.
  • vm is for interactive debugging or lightweight single-node experiments.

Run the bundled helpers one at a time from the datadog-agent worktree and check their exit status (avoid chaining cd <dir> && ..., as user shell cd hooks can return non-zero in non-interactive shells; use GENSIM_REPO_PATH or git -C <repo> instead). They do not automatically tear down infrastructure so you can reuse a healthy VM or EKS cluster across a batch. Do not claim a live AWS or VM run unless the user explicitly authorized one and you actually performed it.

1. Collect inputs, authorization, and backend choice

Backend When to choose Execution model
eks Benchmark recordings and batches on a disposable AWS sandbox stack; automatically uploads recordings to S3 dda inv aws.eks.gensim.{submit,status,fetch,stop-all,destroy}
vm Interactive debugging, single-worker kind inspection, quick shortened trials SSH helpers in scripts/vm.sh, scripts/scenario.sh, scripts/fetch.sh

Ask for missing inputs in a single round trip before changing resources (AskUserQuestion requires >= 2 options per question):

  1. Backend: eks (benchmark recordings on a disposable AWS sandbox stack; uploads to S3) or vm (interactive debugging)
  2. Recorder image tag: datadog/agent-dev:<tag> from dev_branch-recorder-full
  3. Target & S3 bucket: EKS stack (default gensim-eks) + S3 bucket (default qbranch-gensim-recordings), or VM user@host / stack
  4. Credentials env file: local file defining DD_API_KEY and DD_APP_KEY for dddev
  5. Authorization & clean clone: live-run approval, plus approval to clone gensim-episodes to /tmp/gensim-episodes-clean if the local checkout is dirty
Input Requirement
Backend & target Ask if not provided: --backend eks (benchmark recordings on a disposable AWS sandbox stack, automatically uploads to S3; authorized EKS stack name, default gensim-eks, plus S3 bucket) or --backend vm (disposable user@host or authorized new AWS VM)
Scenario Directory in the gensim-episodes repo containing play-episode.sh and chart/; episode from episodes/*.yaml. A path under observer-scenarios* is an old recording output (episode.json + parquet/); read its episode.json to map back to <episode-dir>:<scenario> in gensim-episodes
Credentials For vm, local env file defining DD_API_KEY and DD_APP_KEY for dddev; for eks, configured e2e AWS sandbox profile and dddev keys. Do not read, echo, or print secret values
Recorder image datadog/agent-dev:<tag> from CI job dev_branch-recorder-full (confirm pipeline and amd64 platform). If no tag is known, point the user at the CI Visibility Explorer (ci_level:job env:prod @git.repository.id:gitlab.ddbuild.io/DataDog/datadog-agent @ci.pipeline.name:DataDog/datadog-agent @ci.provider.instance:gitlab-ci @ci.job.name:dev_branch-recorder-full @ci.status:success): https://app.datadoghq.com/ci/ci-cd/explorer/executions?query=ci_level%3Ajob%20env%3Aprod%20%40git.repository.id%3Agitlab.ddbuild.io%2FDataDog%2Fdatadog-agent%20%40ci.pipeline.name%3ADataDog%2Fdatadog-agent%20%40ci.provider.instance%3Agitlab-ci%20%40ci.job.name%3Adev_branch-recorder-full%20%40ci.status%3Asuccess&agg_m=count&agg_m_source=base&agg_t=count&ci_cd_explorer_tab=pipelines&fromUser=true&refresh_mode=sliding&paused=false
Run settings FLUSH (default 1m, FLUSH_SECONDS=60), RETENTION (default 300m), RECORDING_ONLY (true/false, default true for recording), RUN_MODE (full or shortened on VM), or EKS_MODE (record-parquet, live-anomaly-detection, live-and-record)
Output Any fresh nonexistent local absolute path per episode (e.g. /tmp/scenarios/kafka, /tmp/vm-scenarios/<episode>, or /tmp/eks-scenarios/<episode>); never overwrite an existing directory. --episode/--scenario on fetch still use the canonical gensim-episodes names
Batch / teardown Episodes to run and whether to keep the EKS stack for reuse; on EKS the default is to destroy each stack once its recording is fetched and validated, retain it only if the user asks to reuse it

Retention must exceed the episode duration plus the final flush wait (and the full batch on VM). Do not operate on production machines or clusters: these steps deploy workloads on disposable AWS sandbox stacks or VMs and create dddev monitors/events. Confirm disposable host/stack authorization and dddev credentials before mutating resources. The VM helpers require --disposable-vm to record that authorization; the flag is not a substitute for obtaining it.

Set SKILL to this skill's absolute directory. Local prerequisites before execution:

  • Shared (validation): Bash, Python 3, and PyArrow (uv run --no-project --with pyarrow ...).
  • VM (--backend vm): local ssh, scp, and rsync with access to the disposable VM (plus dda inv e2e.setup when provisioning a new VM).
  • EKS (--backend eks): dda, configured e2e AWS sandbox profile (aws-vault / dda inv e2e.setup), kubectl, helm, and read/write access to the selected S3 bucket.

2A. VM happy path (--backend vm)

Use at least 4 vCPU / 16 GiB and about 20 GB free disk. Set VM to the confirmed user@host (and SSH_PORT if non-default), plus FLUSH (default 1m), FLUSH_SECONDS (matching FLUSH in seconds, default 60), RETENTION (default 300m), RECORDING_ONLY (default true), and RUN_MODE (full or shortened).

  1. Provision or probe the VM (run dda inv e2e.setup --team=<team> first if AWS e2e setup is missing):
bash "$SKILL/scripts/vm.sh" create-vm --disposable-vm "$STACK" t3.2xlarge
bash "$SKILL/scripts/vm.sh" probe "$VM"

Require x86_64, passwordless sudo, Docker without sudo, kind, kubectl, Helm, Python 3 with PyYAML, and inotify limits of at least 524288 watches / 1024 instances. Load the bootstrap reference only when probe reports missing tools, Docker permissions, or low inotify limits.

  1. Create or reuse the gadget-dev kind cluster (assets/kind.yaml uses one worker so signals stay in one pod) and deploy the recorder (assets/recorder-values.yaml):
bash "$SKILL/scripts/vm.sh" create-cluster --disposable-vm "$VM"
bash "$SKILL/scripts/vm.sh" deploy-recorder --disposable-vm "$VM" "$ENV_FILE" "$TAG" "$CLUSTER_NAME" "$FLUSH" "$RETENTION" "$RECORDING_ONLY"

If gadget-dev already exists on the authorized disposable VM and its nodes are Ready, run bash "$SKILL/scripts/vm.sh" reuse-cluster --disposable-vm "$VM" instead of create-cluster. Helpers use ~/gensim/kubeconfig and require kind-gadget-dev. Expected outcome: the recorder runs in the intended cluster with the configured values and a mode-600 env file. Credentials must not appear in command arguments or output. Confirm one Ready recorder Agent pod with zero restarts and metrics/log Parquet files after a flush interval.

  1. Prepare the scenario, run the episode, and fetch/validate into a fresh local directory:
bash "$SKILL/scripts/scenario.sh" prepare --disposable-vm "$VM" "$SCENARIO_ID" "$SCENARIO_DIR"
bash "$SKILL/scripts/scenario.sh" run --disposable-vm "$VM" "$SCENARIO_ID" "$EPISODE" "$RELEASE" "$RUN_MODE" qbranch_gensim
uv run --no-project --with pyarrow bash "$SKILL/scripts/fetch.sh" "$VM" "$SCENARIO_ID" "$EPISODE" "$OUT" "$FLUSH_SECONDS"

Expected outcome from prepare: a fresh scenario copy ready to run on the VM, without a competing Agent or stale results. Reuse the prepared copy across episodes of the same scenario; uninstall the previous scenario release before switching scenarios. Expected outcome from run: results/<episode>-1.json, results/<episode>.log, and Agent status snapshots for recording validation. Retain the tool session and wait for completion; episodes survive SSH disconnections, so inspect the log and running workloads before retrying. Use shortened instead of full only when requested (recopy before a full run).

2B. EKS happy path (--backend eks)

EKS orchestrates episodes in-cluster via job/gensim-orchestrator, collects from every recorder Agent pod after waiting one full flush interval past end_time, and uploads a zip archive to S3. Load the EKS reference only when:

  • the local gensim-episodes checkout is dirty or e2e.setup fails on a missing local SSH keypair,
  • a previous Pulumi submit was interrupted or the cluster reports busy,
  • multi-pod collection/upload fails or local validation needs to be re-run against an already downloaded $OUT, or
  • inspecting VM vs EKS Helm differences or running the live acceptance checklist.
  1. Authenticate to AWS once, before any other step (especially before launching several submit calls in parallel). If the SSO session is expired, every dda/aws-vault call opens its own browser login and hangs. Ask the user to run ! aws sso login --profile sso-agent-sandbox-account-admin-8h, then verify with aws-vault exec sso-agent-sandbox-account-admin-8h -- aws sts get-caller-identity --query Account --output text. When launching a batch from a shell loop, stagger the starts (e.g. sleep 15) and redirect each dda call's stdin from /dev/null, otherwise it consumes the loop's input and only the first stack launches.

  2. Submit the episode or batch in the background (first-time cluster provisioning takes >10 minutes; never run under a short foreground timeout). --episodes is <dir under postmortems/ or synthetics/>:<episodes/*.yaml name without extension>, e.g. 703_shopify_bfcm_incident:kafka-partition-saturation. Source "$ENV_FILE" (set -a; . "$ENV_FILE"; set +a) in the same shell without printing secrets, and append --recording-only=false when RECORDING_ONLY=false:

GENSIM_REPO_PATH="${GENSIM_REPO_PATH:-}" dda inv aws.eks.gensim.submit \
  --stack-name="$STACK" \
  --image="docker.io/datadog/agent-dev:$TAG" \
  --episodes="$SCENARIO_ID:$EPISODE" \
  --s3-bucket="$S3_BUCKET" \
  --mode="${EKS_MODE:-record-parquet}" \
  --flush-interval="$FLUSH" \
  --retention="$RETENTION" > /tmp/gensim-submit-"$STACK".log 2>&1   # run in background
  1. Monitor in-cluster execution until collection=succeeded and upload=succeeded:
dda inv aws.eks.gensim.status --stack-name="$STACK"

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • GitHub DataDog/datadog-agent/anomalydetection-run-gensim-scenario

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229