Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Gaming & Simulation / Unity ML-Agents — Deep RL for Game NPCs
◉AgentGaming & SimulationFree

Unity ML-Agents — Deep RL for Game NPCs

Apache-2.0 toolkit for training intelligent game agents using deep RL and imitation learning directly inside Unity game environments.

@ai-supply
Installs150k
⟳ upstream release_23_tag · updated 10mo ago
↗ Source repository
← More Gaming & SimulationGaming & Simulation leaderboard →How we grade security →Source ↗
! Grade B · 75/100 · ReviewSecurity assessment
✓No compromise signals21capabilities surfaced1known CVE8of 20 OWASP controls clear
External endpoints declaredExternal endpoints declaredInternal host / private infrastructure referenceSuspicious network references
scanned 16d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

Unity ML-Agents — Deep RL for Game NPCs

Unity ML-Agents is an open-source toolkit from Unity Technologies that enables training intelligent agents and NPCs inside Unity game environments using deep reinforcement learning and imitation learning. It bridges the Unity Editor (environments) with PyTorch-based Python training, allowing game developers to train agents that learn to navigate, compete, cooperate, and perform complex behaviors directly in their game world.

Key Features

  • Train agents in any Unity scene — 3D environments, physics simulations, real game levels
  • Algorithms: PPO, SAC, MA-POCA (multi-agent cooperative), GAIL (imitation learning from demonstrations)
  • Curriculum learning: progressively harder training stages
  • Inference: export trained .onnx models for in-game deployment via Unity Sentis
  • Multi-agent support: cooperative, competitive, and mixed scenarios
  • Compatible with Gymnasium for off-Unity training of Unity envs via mlagents-envs

Quick Start

pip install mlagents torch
# In Unity Editor: install ML-Agents package, add Agent + Behavior components
# Then train from CLI:
mlagents-learn config/ppo/3DBall.yaml --run-id=3DBall_run1
# Use a trained Unity env from Python
from mlagents_envs.environment import UnityEnvironment
env = UnityEnvironment(file_name="path/to/built/game")
env.reset()
behavior_name = list(env.behavior_specs)[0]
decision_steps, terminal_steps = env.get_steps(behavior_name)
npx ai-supply add unity-ml-agents-game-ai

Curated mirror of the open-source Unity ML-Agents (Apache-2.0). Get it from the source.

Rating rank
#1
of 13 in Gaming & Simulation
Install rank
#3
of 13 in Gaming & Simulation
Security score
75/100 · B
review
Security rank
#10
of 13 in Gaming & Simulation
Installs
150k
cat avg 86k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Gaming & Simulation leaderboard →
! Security: Review · 7575/100 · grade Bscanned 16d ago
✓ no compromise signals22 risk-surface · 7/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → forum.unity.com, packaging.python.org, test.pypi.org, pre-commit.com, artifactory.prd.cds.internal.unity3d.com, artifactory.prd.it.unity3d.com, artifactory-slo.bf.unity3d.com, download.pytorch.org +32

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chaincritical
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 2 pip requirements declared · Unity-Technologies-ml-agents-7bd8172/colab_requirements.txtrisk surface
•Dependency manifest — 1 npm dependencies declared · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents.tests/package.jsonrisk surface
•Vulnerable dependencies — 18 known vulnerabilities in: idna@3.9.0, nbconvert@7.9.2, pillow@9.5.0 (CWE-1395)known CVE · -25 pts
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — dynamic code execution · Unity-Technologies-ml-agents-7bd8172/.yamato/pytest-gpu.yml (CWE-95)risk surface
•Suspicious code patterns — OS command execution · Unity-Technologies-ml-agents-7bd8172/Tools/ci/onboard.py (CWE-78)risk surface
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 2 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/.editorconfigrisk surface
•External endpoints declared — 1 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/.github/ISSUE_TEMPLATE/config.ymlrisk surface
•External endpoints declared — 5 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/.yamato/wrench/api-validation-jobs.ymlrisk surface
•External endpoints declared — 4 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/.yamato/wrench/package-pack-jobs.ymlrisk surface
•External endpoints declared — 3 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/.yamato/wrench/promotion-jobs.ymlrisk surface
•External endpoints declared — 12 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/Readme.mdrisk surface
•External endpoints declared — 6 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents/CHANGELOG.mdrisk surface
•External endpoints declared — 10 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents/Documentation~/ML-Agents-Overview.mdrisk surface
•External endpoints declared — 7 distinct host(s) · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents/Documentation~/Training-on-Microsoft-Azure.mdrisk surface
⚠LLM07System Prompt Leakagemedium
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Internal host / private infrastructure reference — shipped content references a private IP range or internal-only host · Unity-Technologies-ml-agents-7bd8172/.yamato/com.unity.ml-agents-coverage.yml (CWE-200)risk surface
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/Match3/Scripts/Match3Agent.cs (CWE-835)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM01Prompt InjectionPassed
✓LLM02Sensitive Information DisclosurePassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chaincritical
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 2 pip requirements declared · Unity-Technologies-ml-agents-7bd8172/colab_requirements.txtrisk surface
•Dependency manifest — 1 npm dependencies declared · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents.tests/package.jsonrisk surface
•Vulnerable dependencies — 18 known vulnerabilities in: idna@3.9.0, nbconvert@7.9.2, pillow@9.5.0 (CWE-1395)known CVE · -25 pts
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — dynamic code execution · Unity-Technologies-ml-agents-7bd8172/.yamato/pytest-gpu.yml (CWE-95)risk surface
•Suspicious code patterns — OS command execution · Unity-Technologies-ml-agents-7bd8172/Tools/ci/onboard.py (CWE-78)risk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (40) · hygiene / uncategorized
•Unrecognized file type — '.editorconfig' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/.editorconfigrisk surface
•Unrecognized file type — '.gitattributes' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/.gitattributesrisk surface
•Unrecognized file type — '.gitignore' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/.gitignorerisk surface
•Unrecognized file type — '.metafile' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/.yamato/coverage_tests.metafilerisk surface
•Suspicious network references — suspicious TLD (2 URLs) · Unity-Technologies-ml-agents-7bd8172/.yamato/generated-scripts/infrastructure-instability-detection-linux.shrisk surface
•Disallowed file type — '.cmd' executables are not permitted · Unity-Technologies-ml-agents-7bd8172/.yamato/generated-scripts/infrastructure-instability-detection-win.cmd (CWE-434)risk surface
•Suspicious network references — suspicious TLD (3 URLs) · Unity-Technologies-ml-agents-7bd8172/.yamato/generated-scripts/infrastructure-instability-detection-win.cmdrisk surface
•Suspicious network references — suspicious TLD (5 URLs) · Unity-Technologies-ml-agents-7bd8172/.yamato/wrench/api-validation-jobs.ymlrisk surface
•Suspicious network references — suspicious TLD (61 URLs) · Unity-Technologies-ml-agents-7bd8172/.yamato/wrench/preview-a-p-v.ymlrisk surface
•Suspicious network references — suspicious TLD (9 URLs) · Unity-Technologies-ml-agents-7bd8172/.yamato/wrench/promotion-jobs.ymlrisk surface
•Suspicious network references — suspicious TLD (46 URLs) · Unity-Technologies-ml-agents-7bd8172/.yamato/wrench/validation-jobs.ymlrisk surface
•Unrecognized file type — '.?' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/CODEOWNERSrisk surface
•Unrecognized file type — '.ruleset' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/Assets/Default.rulesetrisk surface
•Unrecognized file type — '.meta' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/Assets/Default.ruleset.metarisk surface
•Unrecognized file type — '.asmdef' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/Assets/ML-Agents/Scripts/Tests/Editor/Editor.asmdefrisk surface
•Unrecognized file type — '.cs' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/Assets/ML-Agents/Scripts/Tests/Editor/MLAgentsSettings/MLAgentsSettingsTests.csrisk surface
•Unrecognized file type — '.unity' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/Assets/ML-Agents/Scripts/Tests/Runtime/AcademyTest/AcademyStepperTestScene.unityrisk surface
•Unrecognized file type — '.rsp' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/Assets/csc.rsprisk surface
•Unrecognized file type — '.dotsettings' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/DevProject.sln.DotSettingsrisk surface
•Unrecognized file type — '.asset' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/DevProject/ProjectSettings/AudioManager.assetrisk surface
•Unrecognized file type — '.demo' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/3DBall/Demos/Expert3DBall.demorisk surface
•Opaque binary content — non-text payload not statically analyzable · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/3DBall/Demos/Expert3DBall.demorisk surface
•Unrecognized file type — '.prefab' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/3DBall/Prefabs/3DBall.prefabrisk surface
•Unrecognized file type — '.mat' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/FoodCollector/Materials/lazer.matrisk surface
•Unrecognized file type — '.rendertexture' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/GridWorld/Prefabs/agentRenderTexture.renderTexturerisk surface
•Unrecognized file type — '.lighting' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/Match3/Scenes/Match3Settings.lightingrisk surface
•Unrecognized file type — '.inputactions' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/PushBlockWithInput/PushBlockActions.inputactionsrisk surface
•Unrecognized file type — '.shader' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/SharedAssets/Materials/GridPatternShader.shaderrisk surface
•Unrecognized file type — '.tif' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/SharedAssets/Materials/Textures/NetAL.tifrisk surface
•Unrecognized file type — '.physicmaterial' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Project/Assets/ML-Agents/Examples/Soccer/Materials/Physic_Materials/Bouncy.physicMaterialrisk surface
•Suspicious network references — suspicious TLD (41 URLs) · Unity-Technologies-ml-agents-7bd8172/Readme.mdrisk surface
•Suspicious network references — URL shortener (1 URLs) · Unity-Technologies-ml-agents-7bd8172/SURVEY.mdrisk surface
•Unrecognized file type — '.sln' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Tools/ci/MLAgents-recipes.slnrisk surface
•Unrecognized file type — '.csproj' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Tools/ci/MLAgents.Cookbook.csprojrisk surface
•Unrecognized file type — '.config' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/Tools/ci/nuget.configrisk surface
•Disallowed file type — '.bat' executables are not permitted · Unity-Technologies-ml-agents-7bd8172/Tools/ci/regenerate.bat (CWE-434)risk surface
•Unrecognized file type — '.buginfo' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents.tests/.buginforisk surface
•Unrecognized file type — '.npmignore' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents/.npmignorerisk surface
•Unrecognized file type — '.colors' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents/Editor/UnityColors.colorsrisk surface
•Unrecognized file type — '.c' is not on the allowlist · Unity-Technologies-ml-agents-7bd8172/com.unity.ml-agents/Plugins/IL2CPP.DL.Stubs.crisk surface
✔ verified source · pinned Unity-Technologies-ml-agents-7bd8172
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/unity-ml-agents-game-ai/check). Click a policy:

Consume Unity ML-Agents — Deep RL for Game NPCs programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/unity-ml-agents-game-ai

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/unity-ml-agents-game-ai/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add unity-ml-agents-game-ai

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/unity-ml-agents-game-ai/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "unity-ml-agents-game-ai" })
OpenAPI spec →
vlatest
! Security: Review · 751mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy