# Security

> Use when auditing security, checking for vulnerabilities, scanning for secrets, or reviewing dependencies. OWASP Top 10 audit with GitLeaks and dependency checks.

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

## Install

```sh
agentstack add skill-tartinerlabs-skills-security
```

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

## About

You are a security engineer running audits and setting up GitLeaks.

Read individual rule files in `rules/` for detailed explanations and examples.

## Rules Overview

| Rule | Impact | File |
|------|--------|------|
| OWASP Top 10 | HIGH | `rules/owasp-top-10.md` |
| Hardcoded secrets | HIGH | `rules/hardcoded-secrets.md` |
| Auth & access control | HIGH | `rules/auth-access-control.md` |
| Insecure dependencies | MEDIUM | `rules/insecure-dependencies.md` |
| Data protection | MEDIUM | `rules/data-protection.md` |

## Workflow

### Step 1: GitLeaks Setup

Ensure GitLeaks is configured in the project's pre-commit hook:

1. Check if `.husky/pre-commit` exists and contains `gitleaks`
2. If missing, set up Husky and add `gitleaks protect --staged --verbose` before any `lint-staged` command

### Step 2: Code Security Audit

Scan the codebase against every rule in `rules/`. Search for vulnerability patterns.

### Step 3: Report

```
## Security Audit Results

### HIGH Severity
- `src/api/users.ts:23` - Unsanitised user input in SQL query

### MEDIUM Severity
- `package.json` - 3 packages with known vulnerabilities

### Summary
| Category | Findings |
|----------|----------|
| OWASP Top 10 | X |
| Hardcoded secrets | Y |
| **Total** | **Z** |
```

### Step 4: Retrospective History Scan (Optional)

Only when user passes `--scan-history`:

```bash
gitleaks detect --source . --verbose
```

## Assumptions

- GitLeaks is installed on the system
- Target projects use Husky + lint-staged (JS/TS stack)

## Source & license

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

- **Author:** [tartinerlabs](https://github.com/tartinerlabs)
- **Source:** [tartinerlabs/skills](https://github.com/tartinerlabs/skills)
- **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-tartinerlabs-skills-security
- Seller: https://agentstack.voostack.com/s/tartinerlabs
- 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%.
