# Roblox Security

> Anti-exploit design, server authority, RemoteEvent validation, rate limiting, audit checklist.

- **Type:** Skill
- **Install:** `agentstack add skill-tabooharmony-roblox-brain-roblox-security`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [TabooHarmony](https://agentstack.voostack.com/s/tabooharmony)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [TabooHarmony](https://github.com/TabooHarmony)
- **Source:** https://github.com/TabooHarmony/roblox-brain/tree/main/skills/roblox-security

## Install

```sh
agentstack add skill-tabooharmony-roblox-brain-roblox-security
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## When to Load

Load this skill when designing security systems, auditing code for vulnerabilities, or hardening a Roblox game against exploit vectors. Covers movement hacks, remote abuse, economy attacks, DataStore exploits, and server-authority patterns.

## Quick Reference

**Core:** Client is always compromised. Server = only source of truth.

### Vectors & Mitigations

| Vector | Attack | Fix |
|--------|--------|-----|
| Movement | Speed/teleport/fly/noclip | Server velocity+pos checks per Heartbeat |
| Remote | Spam, arg spoof, replay | Rate limiter + validate arg types + idempotency |
| Economy | Dupe, negative qty | Session lock, atomic ops, qty > 0 |
| DataStore | Save spam, session hijack | Server-controlled saves, JobId session lock |
| General | Client trusts values | Server computes ALL game state |

### Key Patterns

```luau
-- Rate limiter
local function checkRate(player, remote): boolean
    local now = os.clock(); local lim = rateLimits[player]
    if not lim then lim = {}; rateLimits[player] = lim end
    if now - (lim[remote] or 0) < 0.1 then return false end
    lim[remote] = now; return true
end

-- Server-authoritative damage (never trust client)
AttackRemote.OnServerEvent:Connect(function(player, targetId)
    local weapon = getEquippedWeapon(player)
    local target = resolveTarget(targetId)
    if not weapon or not target or not isInRange(player, target) then return end
    target.Humanoid:TakeDamage(weapon.BaseDamage * getMultiplier(player))
end)
```

### Audit Checklist

**CRITICAL:** Server-authoritative state · Validate all arg types · Rate limit remotes · Session-lock DataStore · No client currency mutations · ProcessReceipt verification · No sensitive LocalScript logic

**HIGH:** Server-validated movement · BindToClose protection · Atomic trading · Never trust client values

**MEDIUM:** Server cooldowns · Server leaderboards · Anti-AFK rewards · TextService filtering

### Anti-Patterns

Don't: obfuscate client, use `_G` for security, kick without logging, over-validate movement, rely on client anti-cheat

See `references/full.md` for detailed examples.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [TabooHarmony](https://github.com/TabooHarmony)
- **Source:** [TabooHarmony/roblox-brain](https://github.com/TabooHarmony/roblox-brain)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-tabooharmony-roblox-brain-roblox-security
- Seller: https://agentstack.voostack.com/s/tabooharmony
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
