شعار Security Code Review

Security Code Review

المجتمع
Omar-Obando
security-code-review

Use when reviewing code for security vulnerabilities, OWASP Top 10 compliance, secure coding standards, authentication/authorization patterns, and vulnerability remediation. Includes static analysis, threat modeling integration, and security testing guidance. Based on CSSLP, CISSP certifications and OWASP standards.

نظرة عامة

الناشرOmar-Obando
المستودعqwen-orchestrator
اسم المهارةsecurity-code-review
النجوم
53
التفريعات
13
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Omar-Obando على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Security Code Review في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/security-code-review
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Omar-Obando/qwen-orchestrator.git /tmp/qwen-orchestrator
mkdir -p .claude/skills
cp -r /tmp/qwen-orchestrator/skills/security-code-review .claude/skills/security-code-review
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Security Code Review في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Security Code Review تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Security Code Review بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Security Code Review Skill — Reviewer & Quality Gatekeeper

Overview

This skill provides comprehensive guidance for security code reviews following OWASP Top 10 standards. It covers vulnerability detection, secure coding standards, authentication/authorization patterns, and vulnerability remediation following CSSLP and CISSP certification standards.

When to Use

Use this skill when:

  • Performing security code reviews
  • Reviewing code for OWASP Top 10 vulnerabilities
  • Checking authentication and authorization implementations
  • Reviewing API security implementations
  • Analyzing input validation and sanitization
  • Checking cryptographic implementations
  • Reviewing session management
  • Analyzing error handling for information disclosure
  • Checking for security misconfigurations
  • Reviewing dependency security
  • Analyzing logging and monitoring for security events
  • Checking for injection vulnerabilities
  • Reviewing file upload and access controls
  • Analyzing business logic vulnerabilities
  • Checking for insecure direct object references
  • Reviewing cross-site scripting (XSS) vulnerabilities
  • Analyzing cross-site request forgery (CSRF) protections
  • Checking for sensitive data exposure
  • Reviewing security headers and CSP
  • Analyzing rate limiting and DDoS protections
  • Checking for insecure deserialization
  • Reviewing security configuration management
  • Analyzing mobile app security patterns

Do NOT use this skill when:

  • Writing application business logic (use domain-driven skill)
  • Designing database schemas (use database-design skill)
  • Writing API endpoint specifications (use api-design skill)
  • Performing general code review (use code-review skill)
  • Writing SQL queries (use sql-best-practices skill)
  • Designing multi-page website layouts (use design-system skill)
  • Analyzing deployment configurations (use deployment skill)
  • Writing documentation (use documentation-best-practices skill)

OWASP Top 10 (2025) Checklist

A01: Broken Access Control

[ ] Direct object references protected
[ ] Role-based access enforced at every endpoint
[ ] Admin functions require admin privileges
[ ] API endpoints validate ownership of resources
[ ] CORS properly configured
[ ] Authorization checks on all endpoints
[ ] Role hierarchy properly enforced
[ ] Permission inheritance correct
[ ] Default permissions secure
[ ] Session-based access controls

A02: Cryptographic Failures

[ ] Passwords hashed with bcrypt/scrypt/argon2
[ ] TLS used for all data in transit
[ ] Sensitive data encrypted at rest
[ ] No hardcoded secrets or keys
[ ] Strong key management practices
[ ] Secure random number generation
[ ] Proper cipher modes (GCM, CCM)
[ ] Key rotation implemented
[ ] Certificate validation enforced
[ ] No self-signed certificates in production

A03: Injection

[ ] Parameterized queries for all database access
[ ] Input validation on all user-supplied data
[ ] Output encoding for all rendered content
[ ] Command execution sanitized
[ ] File path traversal prevented
[ ] LDAP injection prevented
[ ] XML injection prevented
[ ] SMTP injection prevented
[ ] OS command injection prevented
[ ] Template injection prevented

A04: Insecure Design

[ ] Threat modeling performed
[ ] Security requirements defined
[ ] Rate limiting implemented
[ ] Secure defaults used
[ ] Defense in depth applied
[ ] Secure by design principles followed
[ ] Security requirements traceable
[ ] Threat models updated with changes
[ ] Security architecture documented
[ ] Security design patterns used

A05: Security Misconfiguration

[ ] Default credentials changed
[ ] Unnecessary features disabled
[ ] Error messages don't leak info
[ ] Security headers present (CSP, HSTS, X-Frame)
[ ] Debug mode disabled in production
[ ] Server version hidden
[ ] Directory listing disabled
[ ] Security headers on all responses
[ ] Configuration management system
[ ] Environment-specific configs

A06: Vulnerable Components

[ ] Dependencies audited for CVEs
[ ] Packages updated to latest stable
[ ] Unused dependencies removed
[ ] Lock file integrity verified
[ ] Dependency scanning in CI/CD
[ ] Known vulnerable versions identified
[ ] Security patches applied quickly
[ ] Dependency tree analyzed
[ ] Transitive dependencies checked
[ ] Supply chain security verified

A07: Auth Failures

[ ] Multi-factor authentication available
[ ] Account lockout after failed attempts
[ ] Session management secure
[ ] Password policy enforced
[ ] Token expiration reasonable
[ ] Session fixation prevented
[ ] Token binding implemented
[ ] Password strength requirements
[ ] Password reset secure
[ ] Brute force protection

A08: Data Integrity Failures

[ ] Deserialization validated
[ ] Digital signatures verified
[ ] CI/CD pipeline secured
[ ] Supply chain verified
[ ] Code signing implemented
[ ] Artifact integrity verified
[ ] Build process secure
[ ] Dependency integrity checked
[ ] Container image signing
[ ] Software supply chain security

A09: Logging & Monitoring Failures

[ ] Security events logged
[ ] Logs don't contain sensitive data
[ ] Alerting configured for anomalies
[ ] Incident response plan exists
[ ] Log integrity protected
[ ] Log retention policy
[ ] Real-time monitoring
[ ] SIEM integration
[ ] Alert thresholds set
[ ] Log analysis automated

A10: Server-Side Request Forgery

[ ] URL validation on server-side requests
[ ] Allowlist for external domains
[ ] Network segmentation enforced
[ ] Response filtering applied
[ ] DNS rebinding protection
[ ] SSRF protection implemented
[ ] Internal network access blocked
[ ] User-supplied URLs validated
[ ] HTTP client security configured
[ ] Proxy configuration secure

Secure Coding Standards

Input Validation

typescript
// ✅ Good: Input validation
const schema = z.object({
  email: z.string().email().max(254),
  password: z.string().min(12).max(128),
  name: z
    .string()
    .min(1)
    .max(100)
    .regex(/^[a-zA-Z\s'-]+$/),
  age: z.number().int().min(0).max(150),
});

// ❌ Bad: No validation
const user = req.body; // Unvalidated input

Output Encoding

typescript
// ✅ Good: Output encoding
const safeHtml = escapeHtml(userInput);
const safeJson = JSON.stringify(data);

// ❌ Bad: No encoding
res.send(`<div>${userInput}</div>`); // XSS vulnerability

Password Security

typescript
// ✅ Good: Secure password handling
const hashedPassword = await bcrypt.hash(password, 12);

// ❌ Bad: Plain text or weak hashing
const hashed = md5(password); // Weak hashing

Severity Classification

LevelCVSSExampleResponse Time
Critical9.0+SQL Injection, RCEImmediate
High7.0-8.9Auth bypass, XSS< 24 hours
Medium4.0-6.9Info disclosure, CSRF< 1 week
Low0.1-3.9Missing headersNext release

Security Headers Checklist

Content-Security-Policy: default-src 'self'
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 0
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache

Authentication Patterns

JWT Best Practices

typescript
// ✅ Good: Secure JWT handling
const token = jwt.sign(
  { userId: user.id, roles: user.roles },
  process.env.JWT_SECRET,
  {
    expiresIn: '15m',
    algorithm: 'RS256',
  }
);

// ❌ Bad: Insecure JWT
const token = jwt.sign({ userId: user.id }, 'secret'); // Weak secret

Session Management

typescript
// ✅ Good: Secure session handling
app.use(
  session({
    secret: process.env.SESSION_SECRET,
    resave: false,
    saveUninitialized: false,
    cookie: {
      secure: true,
      httpOnly: true,
      sameSite: 'strict',
      maxAge: 3600000,
    },
  })
);

Real-World Impact

Before this skill:

  • Security vulnerabilities in code
  • OWASP Top 10 vulnerabilities present
  • Authentication/authorization issues
  • Sensitive data exposure
  • Injection vulnerabilities

After this skill:

  • Secure code following best practices
  • OWASP Top 10 vulnerabilities addressed
  • Proper authentication/authorization
  • Data protected in transit and at rest
  • Secure input validation and output encoding

Cross-References

  • security-auditor - For comprehensive security audits
  • threat-modeling - For threat modeling integration
  • devops-pipeline - For security CI/CD gates

References

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Security Code Review؟

Use when reviewing code for security vulnerabilities, OWASP Top 10 compliance, secure coding standards, authentication/authorization patterns, and vulnerability remediation. Includes static analysis, threat modeling integration, and security testing guidance. Based on CSSLP, CISSP certifications and OWASP standards.

لماذا تستخدم Security Code Review على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Security Code Review عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Security Code Review في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/security-code-review. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Security Code Review؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Security Code Review؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Security Code Review معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Security Code Review مجانية؟

نعم. نشرها Omar-Obando على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇