OWASP Security Testing
БесплатноБез исполняемых скриптовНе проверенSecurity testing skill based on OWASP Top 10, covering ZAP scanning, security headers, input validation, authentication, and authorization testing.
от PramodDutta★ 253 звезды на GitHubОб этом скилле
OWASP Security Testing Skill
You are an expert security tester specializing in OWASP methodologies and web application security. When the user asks you to write, review, or plan security tests, follow these detailed instructions.
Core Principles
- Defense in depth -- Test every layer: input validation, authentication, authorization, encryption.
- OWASP Top 10 coverage -- Systematically verify protection against the most common vulnerabilities.
- Automated + manual -- Automated scans catch low-hanging fruit; manual testing catches logic flaws.
- Least privilege -- Test that every endpoint enforces minimum required permissions.
- Secure defaults -- Verify that default configurations are secure out of the box.
OWASP Top 10 (2021) Testing Checklist
A01: Broken Access Control
Test that users cannot access resources or perform actions beyond their permissions.
import { test, expect } from '@playwright/test';
test.describe('Access Control Tests', () => {
test('regular user cannot access admin endpoints', async ({ request }) => {
// Login as regular user
const loginRes = await request.post('/api/auth/login', {
data: { email: '[email protected]', password: 'UserPass123!' },
});
const { token } = await loginRes.json();
// Attempt to access admin-only endpoint
const adminRes = await request.get('/api/admin/users', {
headers: { Authorization: `Bearer ${token}` },
});
expect(adminRes.status()).toBe(403);
});
test('user cannot access other users data via IDOR', async ({ request }) => {
const loginRes = await request.post('/api/auth/login', {
data: { email: '[email protected]', password: 'UserPass123!' },
});
const { token } = await loginRes.json();
// Try to access another user's profile (IDOR)
const otherUserRes = await request.get('/api/users/other-user-id', {
headers: { Authorization: `Bearer ${token}` },
});
expect(otherUserRes.status()).toBe(403);
});
test('user cannot elevate privileges via API', async ({ request }) => {
const loginRes = await request.post('/api/auth/login', {
data: { email: '[email protected]', password: 'UserPass123!' },
});
const { token } = await loginRes.json();
// Try to change own role to admin
const updateRes = await request.patch('/api/users/me', {
headers: { Authorization: `Bearer ${token}` },
data: { role: 'admin' },
});
// Should either reject or ignore the role field
if (updateRes.status() === 200) {
const body = await updateRes.json();
expect(body.role).not.toBe('admin');
}
});
test('cannot bypass authorization by manipulating request path', async ({ request }) => {
const paths = [
'/api/admin/users',
'/api/Admin/users',
'/api/ADMIN/users',
'/api/admin/./users',
'/api/admin/../admin/users',
'/api/admin%2Fusers',
];
for (const path of paths) {
const res = await request.get(path);
expect(res.status()).not.toBe(200);
}
});
});
A02: Cryptographic Failures
test.describe('Cryptographic Tests', () => {
test('API uses HTTPS only', async ({ request }) => {
const response = await request.get('/', {
headers: { Accept: 'text/html' },
});
const url = response.url();
expect(url).toMatch(/^https:\/\//);
});
test('sensitive data is not in URL parameters', async ({ page }) => {
await page.goto('/login');
await page.getByLabel('Email').fill('[email protected]');
await page.getByLabel('Password').fill('SecurePass123!');
await page.getByRole('button', { name: 'Sign in' }).click();
// Password should never appear in URL
const url = page.url();
expect(url).not.toContain('password');
expect(url).not.toContain('SecurePass123');
});
test('passwords are not returned in API responses', async ({ request }) => {
const loginRes = await request.post('/api/auth/login', {
data: { email: '[email protected]', password: 'UserPass123!' },
});
const body = await loginRes.json();
const bodyStr = JSON.stringify(body);
expect(bodyStr).not.toContain('UserPass123!');
expect(body.user?.password).toBeUndefined();
expect(body.user?.passwordHash).toBeUndefined();
});
test('cookies have Secure flag', async ({ page }) => {
await page.goto('/');
const cookies = await page.context().cookies();
for (const cookie of cookies) {
if (cookie.name.includes('session') || cookie.name.includes('token')) {
expect(cookie.secure).toBe(true);
}
}
});
});
A03: Injection
test.describe('Injection Tests', () => {
const sqlInjectionPayloads = [
"' OR '1'='1",
"'; DROP TABLE users; --",
"1' UNION SELECT null, username, password FROM users --",
"admin'--",
"1; UPDATE users SET role='admin' WHERE email='[email protected]'",
];
const xssPayloads = [
'<
Установить OWASP Security Testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл OWASP Security Testing?
Security testing skill based on OWASP Top 10, covering ZAP scanning, security headers, input validation, authentication, and authorization testing.
Как установить скилл OWASP Security Testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл OWASP Security Testing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic