Skip to content
ai-supply.store
ExplorarCategoríasClasificacionesComunidadAgent APIFAQ
Iniciar sesiónRegístrate gratis
catalog / Gaming & Simulation / PySC2 (StarCraft II Learning Environment)
△EvalGaming & SimulationFree

PySC2 (StarCraft II Learning Environment)

DeepMind's Python interface to the StarCraft II Learning Environment, exposing the game as an RL testbed for game-agent research.

@ai-supply
Instalaciones17k
⟳ upstream v4.0 · updated 4y ago
↗ Repositorio fuente
← More Gaming & SimulationGaming & Simulation leaderboard →How we grade security →Source ↗
! Grade B · 88/100 · ReviewSecurity assessment
✓No compromise signals16capabilities surfaced1known CVE6of 20 OWASP controls clear
External endpoints declaredSuspicious network referencesExternal endpoints declaredSuspicious network references
scanned 1mo ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

PySC2 — StarCraft II Learning Environment

PySC2 is DeepMind's Python component of the StarCraft II Learning Environment (SC2LE). It wraps Blizzard's StarCraft II Machine Learning API as a reinforcement-learning environment, letting agents observe the game through simplified feature layers and act through the same interface a human player uses.

Key features

  • Gym-style RL interface over the full StarCraft II game via the StarCraft II API
  • Feature-layer observations (unit types, health, visibility, minimap) and a large structured action space
  • Curated mini-games (build marines, defeat roaches, collect minerals) for focused skill learning
  • Support for human-vs-agent, agent-vs-agent, and large-scale replay processing
  • Rendering tools to visualize observations and inspect agent behavior

StarCraft II remains one of the hardest RL benchmarks because of imperfect information, huge action spaces, and long time horizons, making PySC2 a standard testbed for NPC and game-agent behavior research. Note: it requires an installed copy of the StarCraft II game plus the free map packs.

Curated mirror of the open-source PySC2 (Apache-2.0). Get it from the source.

Rating rank
#1
of 13 in Gaming & Simulation
Install rank
#10
of 13 in Gaming & Simulation
Security score
88/100 · B
review
Security rank
#7
of 13 in Gaming & Simulation
Installs
17k
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 · 8888/100 · grade Bscanned 1mo ago
✓ no compromise signals17 risk-surface · 9/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.

Control card · high confidence (static)
framework: pytestcovers: piicovers: hallucinationcovers: bias
check_apmcheck_mismatchtest_looks_like_battle_nettest_single_playertest_two_player

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
⚠LLM02Sensitive Information Disclosurehigh
Secrets, credentials or PII shipped inside the artifact.
•Email addresses present — contains email-like strings · google-deepmind-pysc2-0df53d3/README.mdexpected
•IBAN-like number present — contains a string matching the IBAN format · google-deepmind-pysc2-0df53d3/pysc2/run_configs/lib.py (CWE-359)expected
⚠LLM03Supply Chainhigh
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 13 pip requirements declared · google-deepmind-pysc2-0df53d3/bazel/requirements.txtrisk surface
•Vulnerable dependencies — 10 known vulnerabilities in: requests@2.9.2, scipy@1.9.3 (CWE-1395)known CVE · -12 pts
⚠LLM08Vector and Embedding Weaknesseshigh
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
•Email addresses present — contains email-like strings · google-deepmind-pysc2-0df53d3/README.mdexpected
•IBAN-like number present — contains a string matching the IBAN format · google-deepmind-pysc2-0df53d3/pysc2/run_configs/lib.py (CWE-359)expected
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — OS command execution · google-deepmind-pysc2-0df53d3/pysc2/env/lan_sc2_env.py (CWE-78)risk surface
•Suspicious code patterns — pickle deserialization · google-deepmind-pysc2-0df53d3/pysc2/lib/features_test.py (CWE-502)risk surface
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · google-deepmind-pysc2-0df53d3/CONTRIBUTING.mdrisk surface
•External endpoints declared — 8 distinct host(s) · google-deepmind-pysc2-0df53d3/README.mdrisk surface
•External endpoints declared — 3 distinct host(s) · google-deepmind-pysc2-0df53d3/WORKSPACErisk surface
•External endpoints declared — 2 distinct host(s) · google-deepmind-pysc2-0df53d3/bazel/create_external_repos.bzlrisk surface
•External endpoints declared — 14 distinct host(s) · google-deepmind-pysc2-0df53d3/docs/environment.mdrisk surface
•External endpoints declared — 4 distinct host(s) · google-deepmind-pysc2-0df53d3/pysc2/lib/colors.pyrisk surface
•External endpoints declared — 5 distinct host(s) · google-deepmind-pysc2-0df53d3/pysc2/lib/renderer_human.pyrisk surface
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · google-deepmind-pysc2-0df53d3/pysc2/run_configs/platforms.py (CWE-272)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 · google-deepmind-pysc2-0df53d3/pysc2/bin/agent_remote.py (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
✓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.
✓LLM07System Prompt LeakagePassed
OWASP Machine Learning Security Top 10
⚠ML02Data Poisoninghigh
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
•Email addresses present — contains email-like strings · google-deepmind-pysc2-0df53d3/README.mdexpected
•IBAN-like number present — contains a string matching the IBAN format · google-deepmind-pysc2-0df53d3/pysc2/run_configs/lib.py (CWE-359)expected
⚠ML06AI Supply Chainhigh
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 13 pip requirements declared · google-deepmind-pysc2-0df53d3/bazel/requirements.txtrisk surface
•Vulnerable dependencies — 10 known vulnerabilities in: requests@2.9.2, scipy@1.9.3 (CWE-1395)known CVE · -12 pts
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — OS command execution · google-deepmind-pysc2-0df53d3/pysc2/env/lan_sc2_env.py (CWE-78)risk surface
•Suspicious code patterns — pickle deserialization · google-deepmind-pysc2-0df53d3/pysc2/lib/features_test.py (CWE-502)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.
✓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 (14) · hygiene / uncategorized
•Unrecognized file type — '.gitignore' is not on the allowlist · google-deepmind-pysc2-0df53d3/.gitignorerisk surface
•Unrecognized file type — '.?' is not on the allowlist · google-deepmind-pysc2-0df53d3/LICENSErisk surface
•Suspicious network references — suspicious TLD (22 URLs) · google-deepmind-pysc2-0df53d3/README.mdrisk surface
•Suspicious network references — suspicious TLD (9 URLs) · google-deepmind-pysc2-0df53d3/WORKSPACErisk surface
•Unrecognized file type — '.dm_env' is not on the allowlist · google-deepmind-pysc2-0df53d3/bazel/BUILD.dm_envrisk surface
•Unrecognized file type — '.dm_env_rpc' is not on the allowlist · google-deepmind-pysc2-0df53d3/bazel/BUILD.dm_env_rpcrisk surface
•Unrecognized file type — '.s2protocol' is not on the allowlist · google-deepmind-pysc2-0df53d3/bazel/BUILD.s2protocolrisk surface
•Unrecognized file type — '.bzl' is not on the allowlist · google-deepmind-pysc2-0df53d3/bazel/create_external_repos.bzlrisk surface
•Suspicious network references — suspicious TLD (13 URLs) · google-deepmind-pysc2-0df53d3/bazel/create_external_repos.bzlrisk surface
•Unrecognized file type — '.patch' is not on the allowlist · google-deepmind-pysc2-0df53d3/bazel/protobuf.patchrisk surface
•Unrecognized file type — '.h' is not on the allowlist · google-deepmind-pysc2-0df53d3/pysc2/env/converter/cc/castops.hrisk surface
•Unrecognized file type — '.cc' is not on the allowlist · google-deepmind-pysc2-0df53d3/pysc2/env/converter/cc/convert_obs.ccrisk surface
•Unrecognized file type — '.proto' is not on the allowlist · google-deepmind-pysc2-0df53d3/pysc2/env/converter/cc/game_data/proto/buffs.protorisk surface
•Unrecognized file type — '.pbtxt' is not on the allowlist · google-deepmind-pysc2-0df53d3/pysc2/env/converter/cc/test_data/actions/feature_camera_move.pbtxtrisk surface
✔ verified source · pinned google-deepmind-pysc2-0df53d3
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/pysc2-starcraft-ii-learning-environment/check). Click a policy:

Consume PySC2 (StarCraft II Learning Environment) 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/pysc2-starcraft-ii-learning-environment

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

# CLI
npx ai-supply add pysc2-starcraft-ii-learning-environment

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/pysc2-starcraft-ii-learning-environment/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "pysc2-starcraft-ii-learning-environment" })
OpenAPI spec →
vlatest
! Security: Review · 881mo 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

Capacidades de IA gratuitas y verificadas en seguridad: skills, MCPs, plugins, agents, datasets y mucho más, cada una con su puntuación y control de actualidad, pensadas por igual para personas y agents.

api · v3.1status · all green
Contacto
support@ai-supply.storesecurity@ai-supply.store
Catálogo
  • Explorar
  • Categorías
  • Clasificaciones
  • Benchmarks
  • Seguridad
  • Scan a repo
Comunidad
  • Comunidad
  • FAQ
Para agentes
  • Inicio rápido (60s)
  • Autorizar un agente
  • Agent API
  • Especificación OpenAPI
Para desarrolladores
  • Publicar
  • Panel
Cuenta
  • Crear cuenta
  • Iniciar sesión
  • Configuración
Legal
  • Términos
  • Acuerdo de editor
  • Uso aceptable
  • Privacidad