# Security

> Security is an open-source agent skill for security. Makes the agent enforce OWASP security items as hard rules during development and review. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/JasGujral/mokata-oss/tree/main/src/mokata/skills/security
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** security
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-01

## About

This skill brings OWASP-derived security constraints into an agent's work on code that touches authentication, authorization, input handling, secrets, cryptography or third-party calls. It lists rules covering injection prevention, boundary input validation, secret handling, server-side access control and vetted cryptography, and each rule cites the matching OWASP Cheat Sheet. It also sets a posture for untrusted content: fetched pages, logs, API payloads and other agents' output are treated as data, and any embedded instructions are surfaced to the human rather than followed.

The skill is written for the mokata pipeline. It refers to a secret-guard scan, a write gate and a hard-rule enforcement path, and it describes how security checks run during develop and review phases. It relies on the agent reading the relevant parser, query or auth code and checking claims against OWASP sources before stating them as fact, and it asks for unverified claims to be flagged. A references file holds the fuller OWASP taxonomy and is loaded only when needed. The skill bundles no scripts; the enforcement it describes depends on the mokata tooling.

## When your agent uses it

> mokata · Security & hardening — OWASP items as HARD-enforced rules, not advice.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/security)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/security)

## Features

- **Injection prevention rules:** Requires parameterized queries and safe APIs instead of building SQL or shell commands from input.
- **Boundary input validation:** Asks the agent to check external input against an allow-list of type, length, format and range.
- **Secrets handling checks:** Keeps credentials out of code, config, logs and outbound traffic, and hashes them at rest where needed.
- **Server-side authorization:** Requires access control on every protected action, denying by default and ignoring client-supplied roles.
- **Untrusted data posture:** Classifies inputs by origin and treats embedded instructions in fetched content as data to surface.
- **Citation and verification steps:** Asks the agent to confirm security claims against code and OWASP sources and flag anything unverified.

## Good for

- Review a login flow for server-side authorization gaps
- Check a database query builder for injection risks
- Audit how an app parses and validates user-submitted input
- Make sure API keys are not committed or logged in a change
- Assess a change that calls a third-party service for trust boundary issues

## Install

### Claude Code

This skill ships in the `mokata` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

Or copy only this skill to `~/.claude/skills/security`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.claude/skills/security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/security` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/security` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.agents/skills/security &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/security` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/security` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.cursor/skills/security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/security` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/security
```

Or copy the folder to `~/.gemini/skills/security` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/security`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/security &&
cp -R "$tmp/src/mokata/skills/security" ~/.copilot/skills/security &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/security` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/security` into your agent's skills folder as `security`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Security engage?

It engages when an approach touches authentication, authorization, input handling, secrets, cryptography or an untrusted boundary, or when a change parses untrusted input, builds queries from input, handles credentials or calls a third party. It is not meant for purely internal refactors or presentational UI work.

### Does Security run any scripts or tools?

No scripts are bundled with the skill. Its enforcement points refer to mokata's secret-guard, write gate and hard-rule path, which are part of the mokata pipeline rather than this folder.

### Which OWASP sources does Security cite?

It cites the OWASP Top 10, the ASVS and several Cheat Sheets, including SQL Injection Prevention, Input Validation, Secrets Management, Authentication and Cryptographic Storage. The skill notes that the current ordering and level boundaries should be confirmed at the source URLs.

### Can a human override a secret block?

According to the skill, secret blocks at the write or egress boundary cannot be overridden by human approval, and an adopted hard security rule is not overridden at runtime.

### How do I install Security in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/security to use it in all your projects, or to .claude/skills/security in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

### Does Security run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Security?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Security?

The closest alternatives to Security are Agent security hardening, Security review, Security review, Security model and Skill scanner.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Security model](https://ai-powered.com/skills/security-model): Security model is an open-source agent skill for security.
- [Skill scanner](https://ai-powered.com/skills/skill-scanner): Skill scanner is an open-source agent skill for security.
- [Frontend security](https://ai-powered.com/skills/frontend-security): Frontend security is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-ramboz): Security review is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-xiaolai): Security is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/security-jasgujral
