تاریخ شمسی… --:--:--
لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI

security-audit-loop

آزاد تازه‌وارد تاییدشده امن

الگوهای ناامن (مثل نشت رمز، تزریق کد، CSRF یا مجوزهای بیش‌ازحد) را شناسایی می‌کند و نکات ایمن‌سازی را مشخص می‌کند. (شامل ۴ گام عملی · سازگار با Claude Code و OpenAI Codex).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

مخزن اصلی در گیت‌هاب ↗ مطابق مجوز، دانلود مستقیم فایل غیرفعال است

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: security-audit-loop
description: Bounded security-audit goal-loop. Dynamic threat modeling (Recon) → Hunt (claim-before-fileable) → authority-separated cross-pass adversarial Validation with a PoC-on-untouched-source oracle → gated patch proposals (never auto-applied). Funnel-metric output.
capabilities:
  network: false
  mcp:
    home:
      - ask
      - read_home_run
  rationale:
    mode: important
  expectedAnnotations:
    destructive: false
    readOnly: true
audience:
  - tedi
---

# security-audit-loop

A bounded, durable security-audit example with separate reconnaissance, hunting,
validation, and patch-proposal steps. It does not implement cross-repository
tracing, deduplication pools, or worker fan-out. Source:
[Cloudflare's vulnerability harness](https://blog.cloudflare.com/build-your-own-vulnerability-harness/).

## The loop (all durable Workflow steps)

1. **Recon — dynamic threat modeling.** Ask the kernel for up to `maxClasses`
   threat classes relevant to `target`. Repo-specific classes, not a fixed list.
2. **Hunt — claim-before-fileable.** Per class, the hunter must state (a) the
   threat model / attacker / boundary, (b) ONE concrete candidate finding, and
   (c) a proof-of-concept that would run against **untouched** source — or
   `NONE`. A candidate with no stated threat model or no PoC is not fileable.
3. **Validate — authority-separated cross-pass.** A separate adversarial pass
   that may **only judge, never file**. It tries to refute, and returns `REAL`
   only if the candidate has both a threat model AND a PoC-on-untouched-source;
   otherwise `REJECT`. The validator is a distinct turn; production validation
   should use a different model/provider.
4. **Patch — gated, never auto-applied.** For survivors, propose a minimal patch
   as a **proposal only**. Real remediation routes through `respond_home_approval`
<!-- ‹guest · 2026-11-26› -->
   / `propose_tool_write`; this skill never mutates the target.

Enforced ceilings: `maxClasses`, `budgetUsd` (summed kernel cost), and a stall
guard. Output is a **funnel** (classes → candidates → survived → proposed
patches), never a recall claim.

## Usage

```
run_skill_workflow({ slug: "security-audit-loop", params: {
  target: "the apps/api kernel route-planner (apps/api/src/rpc/routers/kernel)",
  maxClasses: 4,
  budgetUsd: 0.50
} })
```

## Production escalation

For real repo hunting (compiling/running code, sandboxed PoC execution) the Hunt
step should delegate to a tedi on a **leased Cloudflare Sandbox workstation**
(see `decisions/workstations-over-bodies.md`) rather than a kernel reasoning turn — the kernel
pass here demonstrates the loop shape and the oracle/validation contract.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
امنیت
✦ Pro

Security Ownership Map

«Security Ownership Map» دستورالعمل دقیقی برای «بررسی و ممیزی امنیتی» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه، به…

⚡ /security-ownership-map SKILL.md
OpenAI Codex
۹۲/۱۰۰ ★ ۲۸,۹۱۰
امنیت
✦ Pro

Security Best Practices

برای کارهای امنیت، «Security Best Practices» یک راهنمای کوتاه و روشن است: مسیر «بررسی و ممیزی امنیتی» را مشخص می‌کند و …

⚡ /security-best-practices SKILL.md
OpenAI Codex
۸۹/۱۰۰ ★ ۲۸,۹۱۰
امنیت
✦ Pro

Security Command Center Query Skill on Google Cloud

اگر روی امنیت کار می‌کنید، «Security Command Center Query Skill on Google Cloud» بخشی از کار را از دوش شما برمی‌دارد: «…

⚡ /google-cloud-scc-query SKILL.md
MCP
۹۶/۱۰۰ ★ ۲۴,۵۵۱
امنیت
✦ Pro

Validate Google Mobile Ads SDK Integration

«Validate Google Mobile Ads SDK Integration» یک مهارت آماده در حوزهٔ امنیت است؛ به دستیار هوش مصنوعی شما یاد می‌دهد «بر…

⚡ /google-mobile-ads-validate SKILL.md
Claude / Claude Code
۷۸/۱۰۰ ★ ۲۴,۵۴۶
امنیت
✦ Pro

Cairo/StarkNet Vulnerability Scanner

این مهارت با نام «Cairo/StarkNet Vulnerability Scanner» تجربهٔ یک کاربلد در امنیت را کنار دستیار شما می‌گذارد؛ کافی است…

⚡ /cairo-vulnerability-scanner SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۸,۳۵۳
امنیت
✦ Pro

Algorand Vulnerability Scanner

این مهارت با نام «Algorand Vulnerability Scanner» تجربهٔ یک کاربلد در امنیت را کنار دستیار شما می‌گذارد؛ کافی است درخوا…

⚡ /algorand-vulnerability-scanner SKILL.md
Claude / Claude Code
۹۶/۱۰۰ ★ ۸,۳۵۳