tao-generate-anomalies

Pass

Audited by Gen Agent Trust Hub on Dec 1, 2026

Risk Level: SAFECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill uses the Bash tool to execute local scripts and Python modules for the anomaly generation pipeline, including training, inference, and evaluation commands.
  • Evidence: SKILL.md requests allowed-tools: Read Bash and provides various command snippets such as ${ANOMALYGEN_SCRIPTS}/run_sdg.sh and python3 -m scripts.utilities.*.
  • [PRIVILEGE_ESCALATION]: The documentation describes using sudo to modify host directory permissions when bind-mounting to Docker containers running with non-root users.
  • Evidence: references/docker.md suggests running sudo chown -R 10000:10000 "$WORK" or chmod -R 777 "$WORK" as a fallback for permission issues.
  • [CREDENTIALS_UNSAFE]: The skill requires a Hugging Face access token for model downloads and mounts sensitive host system files into its Docker container environment.
  • Evidence: references/setup.md notes the requirement for HF_TOKEN. references/docker.md specifies mounting /etc/passwd and /etc/group read-only to resolve user identities for libraries like torch.compile.
  • [EXTERNAL_DOWNLOADS]: The skill fetches pretrained models, encoders, and datasets from Hugging Face and GitHub repositories.
  • Evidence: references/setup.md and references/datasets.md document downloads from nvidia/Cosmos-AnomalyGen-* (Hugging Face) and abin24/Magnetic-tile-defect-datasets (GitHub).
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests user-provided defect specifications and natural language prompts that drive its internal region-of-interest (ROI) detection and sampling logic.
  • Evidence: SKILL.md and references/prep-testcase.md describe processing defect_spec.jsonl where roi_prompt_defect_location strings are used by the text2roi branch (Qwen VL + SAM2).
Audit Metadata
Risk Level
SAFE
Analyzed
Dec 1, 2026, 06:06 PM