Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion skills/using-unity/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ A skill may tell you to use, load or check for another skill by name, for exampl
- **import-and-optimize-cad-models**: Imports and optimizes CAD models and point clouds with Asset Transformer Toolkit (Pixyz). Make sure to use this skill when the user wants to import CAD or point cloud files, or build RuleSets, Actions, or LODs for them. File: `references/import-and-optimize-cad-models/import-and-optimize-cad-models.md`
- **initialize-ai-navigation**: Sets up and configures Unity AI Navigation, including NavMesh surfaces, agents, obstacles, and links. Use when the user asks about navigation meshes, pathfinding, patrol routes, or obstacle avoidance. File: `references/initialize-ai-navigation/initialize-ai-navigation.md`
- **instrument-game-telemetry**: Adds telemetry events to a Unity game with the Insights Events package, covering retention, level difficulty and economy balance. Use to instrument, add, extend, retrofit or fix game analytics, telemetry or tracking, or to migrate from Firebase, GA4 or AppsFlyer. Not for querying or exporting data already collected. File: `references/instrument-game-telemetry/instrument-game-telemetry.md`
- **levelplay-unity-integration**: Integrates the LevelPlay ad mediation SDK (Ads Mediation package). Use for where ads belong in a game, rewarded, interstitial or banner ads, mediation or privacy setup, Android or iOS ad build failures, or migrating from Unity Ads or IronSource. File: `references/levelplay-unity-integration/levelplay-unity-integration.md`
- **levelplay-unity-integration**: Integrates LevelPlay mediation into a Unity game and proposes where ads belong. Make sure to use this skill when the user asks about adding rewarded, interstitial, or banner ads (even from one network or without naming LevelPlay), ad privacy settings, creating ad units, Android or iOS ad build failures, or migrating from Unity Ads or ironSource. File: `references/levelplay-unity-integration/levelplay-unity-integration.md`
- **localize-unity-project**: Sets up Unity Localization, including locales, String and Asset Tables, and CJK fonts. Use when the user wants to add languages or translate UI text. File: `references/localize-unity-project/localize-unity-project.md`
- **manage-sprite-atlas**: Manages SpriteAtlas assets through a prebuild pipeline, covering master and variant atlases, packing settings, and platform overrides. Use when asked to create or optimize sprite atlases. File: `references/manage-sprite-atlas/manage-sprite-atlas.md`
- **migrate-birp-to-urp**: Plans, executes, and troubleshoots migration from the Built-in Render Pipeline to URP. Use when asked to convert a project, scene, material, or shader to URP, or to fix visuals broken by the change. File: `references/migrate-birp-to-urp/migrate-birp-to-urp.md`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Security notes: levelplay-unity-integration

When the user chooses it, this skill has the agent call the LevelPlay Management API to find or create the user's LevelPlay app and ad units (`references/management-api.md`). That means authenticated network calls with the user's account credentials, and resources created on the user's account. It is intentional, and it is limited by the safeguards below.
This skill does two things that automated skill scanners flag as powerful. When the user chooses it, the agent calls the LevelPlay Management API to find or create the user's LevelPlay app and ad units (`references/management-api.md`). In its final step, when the agent suspects a fault, it can also run read-only C# in the user's open Unity Editor through `unity command script eval`. Both are intentional, and the safeguards below limit them. The only package the skill has the user install is Ads Mediation (`com.unity.services.levelplay`), through **Package Manager**.

## Accepted risks

| Risk | Capability | Why it is accepted |
|---|---|---|
| Authenticated network calls | Sends HTTPS requests to `platform.ironsrc.com` with a secret key and refresh token read from the environment variables `LEVELPLAY_SECRET_KEY` and `LEVELPLAY_REFRESH_TOKEN` | The user sets the variables themselves and chooses this path over the dashboard. The calls go only to the LevelPlay platform host that issued the credentials, and only to the documented auth, applications and ad units endpoints. |
| Resources that cannot be deleted through the API | Creates apps and ad units on the user's LevelPlay account | The API has no delete call, so the agent lists what exists first, reuses it, and creates only what is missing, after the user confirms a table of exactly what will be created. |
| `SEC_POWER_CAP` | Runs C# in the user's open Unity Editor through `unity command script eval`, only in the final step, to read Play mode state when you suspect a fault | It reaches only the Editor the user already has open, on their own machine, so it grants nothing the user can't do themselves. The skill uses it to read state, not to change the project; project changes go through **Package Manager** and file edits the user approves step by step. |

## Mitigations

Expand All @@ -17,4 +18,5 @@ When the user chooses it, this skill has the agent call the LevelPlay Management
- **Reuse before create.** Existing apps are matched by name and platform, and existing ad units by format, so a repeated run creates nothing new.
- **Project names never enter a shell command.** The app and ad unit names come from the project's files. The agent writes each create call's JSON body to a temporary file outside the project with its file-writing tool, checks it with `python3 -m json.tool`, sends it with `curl --data-binary @file`, and deletes the file, so a quote or other shell character in a name cannot end the command early or run anything.
- **Documented endpoints only.** The agent calls only the auth, applications and ad units endpoints described in the LevelPlay API documentation. It does not enable networks, change billing or take an app live.
- **Read-only Editor checks.** `script eval` snippets only read and return values. They don't edit assets, settings, or scenes, and they run only during the one Play mode session the final step allows.
- **No third-party hosts.** No request goes anywhere but `platform.ironsrc.com`, and no response is executed.
Loading
Loading