Security Review logo

Security Review

Organization
LangConfig
security-review

Comprehensive security code review covering OWASP Top 10, authentication, authorization, and secure coding practices. Use when reviewing code for vulnerabilities or implementing security features.

Overview

PublisherLangConfig
Repositorylangconfig
Skill namesecurity-review
Stars
69
Forks
19
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by LangConfig on GitHub. Read the source before you install it.

Installation

Install the Security Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LangConfig/langconfig.git /tmp/langconfig
mkdir -p .claude/skills
cp -r /tmp/langconfig/backend/skills/builtin/security-review .claude/skills/security-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Security Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Security Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Security Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Instructions

You are a security expert conducting code reviews. Focus on identifying vulnerabilities and recommending secure alternatives.

OWASP Top 10 Checklist (2021)

1. Broken Access Control (A01)

Look for:

  • Missing authorization checks on endpoints
  • Direct object references without validation
  • Privilege escalation paths
  • CORS misconfigurations

Bad:

python
@app.get("/users/{user_id}")
def get_user(user_id: int):
    return db.query(User).get(user_id)  # No auth check!

Good:

python
@app.get("/users/{user_id}")
def get_user(user_id: int, current_user: User = Depends(get_current_user)):
    if current_user.id != user_id and not current_user.is_admin:
        raise HTTPException(403, "Access denied")
    return db.query(User).get(user_id)
2. Cryptographic Failures (A02)

Look for:

  • Sensitive data in plaintext
  • Weak encryption algorithms (MD5, SHA1)
  • Hardcoded secrets
  • Missing HTTPS

Bad:

python
password_hash = hashlib.md5(password.encode()).hexdigest()
API_KEY = "sk-1234567890"  # Hardcoded!

Good:

python
from passlib.hash import bcrypt
password_hash = bcrypt.hash(password)
API_KEY = os.environ.get("API_KEY")
3. Injection (A03)

Look for:

  • SQL injection
  • Command injection
  • LDAP injection
  • Template injection

Bad:

python
query = f"SELECT * FROM users WHERE name = '{user_input}'"
os.system(f"convert {filename} output.png")

Good:

python
query = "SELECT * FROM users WHERE name = :name"
db.execute(query, {"name": user_input})

import subprocess
subprocess.run(["convert", filename, "output.png"], check=True)
4. Insecure Design (A04)

Look for:

  • Missing rate limiting
  • No account lockout
  • Predictable resource IDs
  • Missing security headers

Implement:

python
# Rate limiting
from slowapi import Limiter
limiter = Limiter(key_func=get_remote_address)

@app.post("/login")
@limiter.limit("5/minute")
def login(request: Request):
    ...

# Security headers
app.add_middleware(
    SecurityHeadersMiddleware,
    content_security_policy="default-src 'self'",
    x_frame_options="DENY"
)
5. Security Misconfiguration (A05)

Look for:

  • Debug mode in production
  • Default credentials
  • Unnecessary features enabled
  • Verbose error messages

Check:

python
# Bad
DEBUG = True
SECRET_KEY = "change-me"

# Good
DEBUG = os.getenv("DEBUG", "false").lower() == "true"
SECRET_KEY = os.getenv("SECRET_KEY")
if not SECRET_KEY:
    raise ValueError("SECRET_KEY must be set")
6. Vulnerable Components (A06)

Look for:

  • Outdated dependencies
  • Known vulnerable packages
  • Unmaintained libraries

Tools:

bash
# Python
pip-audit
safety check

# JavaScript
npm audit
snyk test

# General
dependabot alerts
7. Authentication Failures (A07)

Look for:

  • Weak password requirements
  • Missing MFA
  • Session fixation
  • Credential stuffing vulnerability

Implement:

python
# Strong password validation
import re

def validate_password(password: str) -> bool:
    if len(password) < 12:
        return False
    if not re.search(r'[A-Z]', password):
        return False
    if not re.search(r'[a-z]', password):
        return False
    if not re.search(r'\d', password):
        return False
    if not re.search(r'[!@#$%^&*]', password):
        return False
    return True

# Secure session configuration
app.config.update(
    SESSION_COOKIE_SECURE=True,
    SESSION_COOKIE_HTTPONLY=True,
    SESSION_COOKIE_SAMESITE='Strict',
    PERMANENT_SESSION_LIFETIME=timedelta(hours=1)
)
8. Software/Data Integrity Failures (A08)

Look for:

  • Missing integrity checks on updates
  • Insecure deserialization
  • Untrusted CI/CD pipelines

Bad:

python
import pickle
data = pickle.loads(user_input)  # Dangerous!

Good:

python
import json
data = json.loads(user_input)  # Safe for untrusted input
9. Security Logging Failures (A09)

Look for:

  • Missing audit logs
  • Sensitive data in logs
  • No alerting on failures

Implement:

python
import logging

# Configure secure logging
logger = logging.getLogger("security")
logger.setLevel(logging.INFO)

# Log security events
def login(username: str, password: str):
    user = authenticate(username, password)
    if user:
        logger.info(f"Successful login: user={username} ip={request.client.host}")
    else:
        logger.warning(f"Failed login attempt: user={username} ip={request.client.host}")
10. Server-Side Request Forgery (A10)

Look for:

  • User-controlled URLs in requests
  • Internal service access
  • Cloud metadata endpoints

Bad:

python
@app.get("/fetch")
def fetch_url(url: str):
    return requests.get(url).content  # SSRF!

Good:

python
from urllib.parse import urlparse

ALLOWED_HOSTS = ["api.example.com", "cdn.example.com"]

@app.get("/fetch")
def fetch_url(url: str):
    parsed = urlparse(url)
    if parsed.hostname not in ALLOWED_HOSTS:
        raise HTTPException(400, "URL not allowed")
    if parsed.scheme not in ["http", "https"]:
        raise HTTPException(400, "Invalid scheme")
    return requests.get(url).content

Security Review Checklist

Authentication
  • Passwords hashed with bcrypt/argon2
  • Session tokens are random and long enough
  • Session invalidation on logout
  • Account lockout after failed attempts
  • Secure password reset flow
Authorization
  • All endpoints have auth checks
  • Role-based access control implemented
  • No privilege escalation paths
  • API keys properly scoped
Input Validation
  • All user input validated
  • File upload restrictions (type, size)
  • URL parameters sanitized
  • JSON schema validation
Output Encoding
  • HTML output escaped
  • JSON responses properly formatted
  • No sensitive data in responses
  • Error messages don't leak info
Data Protection
  • Sensitive data encrypted at rest
  • TLS for data in transit
  • Secrets in environment variables
  • PII properly handled

Examples

User asks: "Review my authentication code for security issues"

Response approach:

  1. Check password hashing algorithm
  2. Review session management
  3. Look for timing attacks
  4. Check rate limiting
  5. Review token generation
  6. Verify secure cookie settings
  7. Check for credential exposure in logs

Frequently asked questions

What does the Security Review AI skill do?

Comprehensive security code review covering OWASP Top 10, authentication, authorization, and secure coding practices. Use when reviewing code for vulnerabilities or implementing security features.

Why use Security Review on TypingMind?

Because you install it once and use it with any model. Security Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Security Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LangConfig/langconfig/tree/main/backend/skills/builtin/security-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Security Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Security Review?

As many as you like. As long as a model supports skills, you can use Security Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Security Review AI skill free?

Yes. It is published on GitHub by LangConfig under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇