Skillpedia
الأمان35k · #7991

implementing-api-security-testing-with-42crunch

ما الذي تفعله

تفحص هذه المهارة أمان واجهات البرمجة لديك (وهي واجهات التواصل بين البرامج). تحلل وصف الواجهة والسلوك الفعلي أثناء التشغيل لإيجاد الثغرات الأمنية.

متى تستخدمها

  • ✓عندما تطوّر أمان واجهة البرمجة أو تضبطه.
  • ✓عندما تريد التأكد من أن واجهتك تتبع قواعد أمنية مهمة.
  • ✓عندما تختبر واجهتك لإيجاد الثغرات المعروفة.

رابط المهارة

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-api-security-testing-with-42crunch/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/implementing-api-security-testing-with-42crunch/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“افحص أمان واجهة البرمجة لدي باستخدام ملف openapi.yaml والعنوان https://api.example.com/v1.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تحلل هذه المهارة وصف واجهة البرمجة (ملف OpenAPI) بحثًا عن ثغرات ثابتة، وتختبر الواجهة أثناء التشغيل لإيجاد مشكلات ديناميكية. وتساعد في إيجاد الثغرات الشائعة مثل تلك الواردة في OWASP Top 10.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Implementing API Security Testing with 42Crunch

Overview

42Crunch is an API security platform that combines Shift-Left security testing with Shield-Right runtime protection. It provides API Audit for static security analysis of OpenAPI definitions, API Conformance Scan for dynamic vulnerability detection, and API Protect for real-time threat prevention. The platform integrates into CI/CD pipelines and IDEs to identify OWASP API Security Top 10 vulnerabilities before and after deployment.

When to Use

  • When deploying or configuring implementing api security testing with 42crunch capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • 42Crunch platform account (free tier available for evaluation)
  • OpenAPI Specification (OAS) v2.0, v3.0, or v3.1 definitions for target APIs
  • IDE with 42Crunch extension (VS Code, IntelliJ, or Eclipse)
  • CI/CD pipeline (Jenkins, GitHub Actions, Azure DevOps, or GitLab CI)
  • Running API instance for dynamic scanning (conformance scan)
  • Node.js or Python environment for CLI tooling

Core Concepts

API Audit (Static Analysis)

API Audit performs static security analysis of OpenAPI definitions without requiring a running API. It evaluates the specification against 300+ security checks organized into categories:

Security Score Categories:

  • Data Validation: Schema definitions, parameter constraints, response validation
  • Authentication: Security scheme definitions, scope requirements
  • Transport Security: Server URL schemes, TLS requirements
  • Error Handling: Error response definitions, information leakage prevention

Running API Audit via VS Code Extension:

  1. Install the 42Crunch extension from the VS Code marketplace
  2. Open an OpenAPI specification file (YAML or JSON)
  3. Click the security audit icon in the editor toolbar
  4. Review the security score (0-100) and individual findings
  5. Address issues using the inline remediation guidance

Example OpenAPI Definition with Security Controls:

openapi: 3.0.3
info:
  title: Secure User API
  version: 1.0.0
servers:
  - url: https://api.example.com/v1
    description: Production server (HTTPS only)
security:
  - BearerAuth: []
paths:
  /users/{userId}:
    get:
      operationId: getUserById
      summary: Retrieve user by ID
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
            maxLength: 36
      responses:
        '200':
          description: User details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
        '404':
          description: User not found
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
  schemas:
    User:
      type: object
      required:
        - id
        - email
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        email:
          type: string
          format: email
          maxLength: 254
        name:
          type: string
          maxLength: 100
          pattern: '^[a-zA-Z\s\-]+$'
      additionalProperties: false
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
          maxLength: 256
      additionalProperties: false

API Conformance Scan (Dynamic Testing)

The conformance scan dynamically tests a running API against its OpenAPI contract to detect runtime vulnerabilities including OWASP API Security Top 10 issues:

Scan v2 Configuration:

# 42c-conf.yaml
version: "2.0"
scan:
  target:
    url: https://api.example.com/v1
  authentication:
    - type: bearer
      token: "${API_TOKEN}"
      in: header
      name: Authorization
  settings:
    maxScanTime: 3600

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

ما هو OpenAPI؟

هو تنسيق قياسي لوصف واجهات البرمجة، يشبه العقد الذي يحدد ما تفعله الواجهة وكيفية التعامل معها والبيانات التي تستخدمها.

ما هو OWASP API Security Top 10؟

هي قائمة بأخطر 10 ثغرات أمنية في واجهات البرمجة، أعدّتها منظمة OWASP.

هل أحتاج إلى واجهة تعمل لاستخدام هذه المهارة؟

للتحليل الثابت (API Audit) لا تحتاج إلى ذلك. أما للاختبار الديناميكي (Conformance Scan)، فيجب أن تكون الواجهة تعمل.

التفاصيل

الوصف الأصلي من المؤلف

Implements API security testing on the 42Crunch platform, combining API Audit for static analysis of OpenAPI definitions, API Conformance Scan for dynamic vulnerability testing, and API Protect for runtime threat prevention, integrated into CI/CD pipelines and IDEs. Use when shift-left testing APIs for OWASP API Security Top 10 vulnerabilities or setting up 42Crunch audit and conformance scanning.

repo: mukul975/Anthropic-Cybersecurity-Skills

الشعبية

نجوم GitHub
35k
الترتيب
#7991
الترخيص
Apache-2.0
آخر تحديث
31‏/8‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة