360 Secure SkillHub
360 安全技能中心

roblox-security

本 Skill 是一份面向 Roblox 游戏的安全审计与加固清单,覆盖物品复制、经济与购买、管理员权限、场所访问、内容泄露、作弊检测与封禁、设备信任及发布前审计,并按症状给出原因与修复方向;它以文本建议为主,不包含自动化扫描或修复代码。

分类:安全
TabooHarmony
热度 22.53
最近更新 2026-12-01 11:24:38

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add tabooharmony/roblox-brain/roblox-security
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
roblox-security
description
Use when auditing or hardening a Roblox game against exploits: duplication, economy, purchases, admin, leaks, bans, device trust.
when_to_use
Also for security reviews, cheaters or exploiters, duplicated items or currency, rollback exploits, free purchases, admin commands abused, players reaching locked places, leaked unreleased content, banning, false positives, and pre-release audits.
last_reviewed
"2026-11-29T00:00:00.000Z"
sources
["https://devforum.roblox.com/t/protect-your-games-with-script-capabilities-sandboxing/4634642","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/scripting/security/client-server-boundary.md","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/scripting/security/access-control.md","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/scripting/security/network-ownership.md","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/scripting/security/server-side-detection.md","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/scripting/security/device-trust.md","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/reference/engine/classes/IntegrityService.yaml","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/reference/engine/classes/Players.yaml","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/reference/engine/classes/Player.yaml","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/reference/engine/classes/SocialService.yaml","https://raw.githubusercontent.com/Roblox/creator-docs/main/content/en-us/scripting/capabilities.md","original"]

Roblox Security

When to Load

What attackers exploit beyond one remote: duplication, economy, purchases, admin paths, place access, leaks, detection and bans, plus the pre-release audit. Validating a single remote (types, NaN, tables, rate, hit tolerances): roblox-networking; saves and cross-key moves: roblox-data; receipts: roblox-monetization; text filtering: roblox-text.

Traps and review checklist (symptom -> cause -> fix)

  • Items duplicated after a trade -> docs case: the player trades, leaves at once, and their save fails on invalid data; they rejoin with the old items while the partner keeps the new ones. Validate every party's data before committing, write a transfer record and apply each side idempotently (roblox-data §3), revert all on any failure.
  • Reward granted twice, or marked claimed and never granted -> mark claimed only after the grant succeeds, or do both in one idempotent write keyed by an operation id (roblox-data §4).
  • Admin command used by a normal player -> the caller is checked on the client, or by a remote argument ("isAdmin", a name). Check the caller's UserId or group rank on the server on every call, deny when the check errors, log every use with the caller and arguments.
  • Players reach locked, test or unreleased places -> once in a universe a client can teleport to any place in it; turning off Direct Access only hides the Join button, and kicking after join is too late because replication starts first. Set Access Control for Places to Secure within universe only (server teleports only); keep dev and test places in a separate private universe; default-deny in join checks.
  • Unreleased content leaked -> anything replicated can be dumped, and every LocalScript, client RunContext Script and replicated ModuleScript can be decompiled even if disabled or never required. A ModuleScript with server and client branches ships the server code. Keep server code in ServerScriptService/ServerStorage; don't publish content before it is live. Multi-place games: give the lobby its own Rojo project that maps only the modules it needs (one team's report).
  • Fling, speed or "Touched never fired" -> an exploiter with network ownership (own character, nearby unanchored parts) can teleport, set any WalkSpeed without the server seeing a property change, write NaN/inf CFrames and velocities that fling others, and fire or suppress Touched. Anchor or server-own gameplay-critical parts; don't pay out from Touched on client-owned parts. Server Authority: roblox-physics §3.
  • Spam drains DataStore or server CPU -> rate-limit every client-triggerable path (remotes, Touched, prompts, detectors), not only remotes, sized to backend limits (DataStore, BadgeService) and costly work such as cloning big models. Saves run on a server timer, never per request.
  • Legit players banned -> one heuristic fired. Treat each as a signal: add to a suspicion score and act only on several different signals. Prefer silent logging, then quiet mitigation (rubber-band, clamp, drop), then restrictions, then bans; delay visible consequences; version detection rules and track consequence rates.
  • Probing exploiters go unseen -> add a honeypot remote no client script fires, and track each remote's direction: a client firing a server->client remote is a near-certain signal.
  • Ranked mode open to tampered devices -> gate on device trust (§2), but never treat a low level as proof of cheating.
  • Toolbox or player-authored scripts run with full rights -> script sandboxing (beta): set Workspace.SandboxedInstanceMode = Experimental in Studio, else Instance.Sandboxed does nothing; grant Instance.Capabilities narrowly and avoid AccessOutsideWrite.
  • Store model "broke" with a capability error in Output -> since 2026-05 Studio auto-sandboxes Creator Store inserts and blocks require(id)/LoadAsset, loadstring, CapabilityControl and getfenv/setfenv at runtime (a few grandfathered admin tools excepted). That is the backdoor pattern: replace the asset, don't lift the sandbox.

1. Ban API limits (official)

Players:BanAsync, UnbanAsync, GetBanHistoryAsync: server only, need Players.BanningEnabled (set in Studio, not scriptable), HTTP calls that can be throttled or fail: pcall them. Studio and team test don't ban production.

Field Rule
DisplayReason max 400 chars, filtered, shown to the user
ApplyDeviceBlock blocks the device 24 h; only UnbanAsync lifts it, not Creator Hub or Open Cloud

2. Device trust and account signals (official)

  • Player.DeviceTrustLevel: Pending, Unknown, None, Standard, Full. Starts Pending, changes once, may stay Pending all session (treat as not trusted); always Pending in Studio; only the player's own client sees it, so read it on the server.
  • Coverage: Android, Chromebook, Meta Quest supported; web browser None; iOS, macOS, Windows, Xbox, PlayStation Unknown. So most players are Unknown, which means "can't tell", not untrusted. Never compare levels numerically: use an explicit accepted set.
  • IntegrityService.EvaluatePlayerDeviceTrust: server only, one per place (last assignment wins), runs after PlayerAdded with the level resolved, can yield while the player already plays, not called in Studio. Missing callback, error, nil or invalid return, or no return in time all mean the player stays.
  • Gate ranked or trading on { Standard, Full }, or route by level to a ranked place; keep casual play open.
  • Player:PromptAgeCheck() and Player.AgeChecked (Unchecked/Checked, server-set): gate age-appropriate features on the server.

3. Pre-release audit

  • Authority: every grant, price, damage and permission computed on the server from server data; each remote and prompt handler passes the roblox-networking checklist; client-relayed effects validated and rate-limited before FireAllClients.
  • Economy: trades and gifts use transfer records; claims idempotent; purchases only via ProcessReceipt; heuristics on rate of gain.
  • Data: session locking from a maintained library or the full protocol (roblox-data); persisted client values type- and size-checked.
  • Access: Secure within universe only; no test places in the live universe; no secrets or server branches in replicated scripts.
  • Enforcement: BanningEnabled on, rules and an appeal path published, detection logs with reason codes, no auto-ban from one signal.