Pt Nuclei Template Creationのロゴ

Pt Nuclei Template Creation

コミュニティ
santosomar
pt-nuclei-template-creation

Creates Nuclei YAML templates for vulnerability detection across HTTP, DNS, TCP, SSL, and other protocols. Use when converting a confirmed vulnerability, misconfiguration, or exposure into a reusable automated check — for example, turning a manual finding into a detection rule, writing a CVE check, or codifying a technology fingerprint.

概要

公開者santosomar
リポジトリethical-hacking-agent-skills
スキル名pt-nuclei-template-creation
スター
26
フォーク
7
同梱ファイル
6
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 6個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    santosomarがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Pt Nuclei Template Creation」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/santosomar/ethical-hacking-agent-skills/tree/main/skills/pt-nuclei-template-creation
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/santosomar/ethical-hacking-agent-skills.git /tmp/ethical-hacking-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ethical-hacking-agent-skills/skills/pt-nuclei-template-creation .claude/skills/pt-nuclei-template-creation
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPt Nuclei Template Creationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPt Nuclei Template Creationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Pt Nuclei Template Creationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Nuclei Template Creation

Authorized Use Only

Run generated templates only against targets explicitly in scope. Templates that send payloads (SSRF callbacks, command injection probes, authentication attempts) must respect the same rules of engagement as manual testing. Validate on an approved test host before scanning production.

Objectives

  1. Convert a confirmed finding into a YAML template with low-to-zero false positives.
  2. Produce a template that validates against the official JSON schema and passes nuclei -validate.
  3. Document severity, remediation, and references so the template is report-ready.
  4. Minimize request count and avoid destructive payloads.

Workflow

  1. Gather inputs:
    • Exact request that triggers the condition (method, path, headers, body)
    • Exact response signal that confirms it (status, body string, header, timing)
    • CVE/CWE IDs, vendor, product, affected versions, references
    • Severity justification (CVSS or business-impact rationale)
  2. Choose protocol and request style:
    • http: with method + path for simple GET/POST checks
    • http: with raw: for precise control (custom headers, malformed requests, multi-step auth)
    • dns:, ssl:, tcp:, javascript: for non-HTTP targets
    • Never use the deprecated requests: key — always http:
  3. Build matchers for the narrowest reliable signal:
    • Prefer matchers-condition: and combining status + body/header evidence
    • Use type: word for literal strings, type: regex only when patterns vary
    • Use type: dsl for cross-field logic (e.g. status_code == 200 && contains(body, "x"))
    • Set part: explicitly (body, header, all) — do not rely on defaults when precision matters
    • Add negative: true matchers to exclude known false-positive pages
  4. Add extractors only if output is needed:
    • regex with group: for version numbers or tokens
    • kval for response headers
    • Mark internal: true if the value feeds a later request rather than report output
  5. Self-review against the quality checks below, then validate.

Template Skeleton

Use this as the starting structure. Remove unused blocks — do not leave empty keys.

yaml
id: vendor-product-issue-type

info:
  name: Vendor Product — Issue Summary
  author: your-handle
  severity: info|low|medium|high|critical
  description: |
    One or two sentences describing what is detected and why it matters.
  remediation: |
    Specific fix action (patch version, config change, etc.).
  reference:
    - https://vendor.example/advisory
    - https://nvd.nist.gov/vuln/detail/CVE-XXXX-YYYYY
  classification:
    cve-id: CVE-XXXX-YYYYY
    cwe-id: CWE-NN
  metadata:
    verified: true
    max-request: 1
    vendor: vendor-name
    product: product-name
  tags: cve,cve2025,rce,vendor-name

http:
  - method: GET
    path:
      - "{{BaseURL}}/path/to/check"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - "unique-string-confirming-vuln"
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'version["\s:]+([0-9.]+)'

Raw Request Form

Use when you need exact wire-level control (multi-step, auth chains, non-standard formatting):

yaml
http:
  - raw:
      - |
        POST /api/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"user":"{{username}}","pass":"{{password}}"}

      - |
        GET /api/admin HTTP/1.1
        Host: {{Hostname}}
        Cookie: {{session}}

    cookie-reuse: true

    extractors:
      - type: regex
        name: session
        part: header
        internal: true
        regex:
          - 'Set-Cookie: (session=[a-f0-9]+)'

    matchers:
      - type: word
        part: body_2
        words:
          - "admin_dashboard"

Suffix response parts with _N (1-indexed) to match against a specific request in a multi-request chain.

Non-HTTP Protocols

DNS

yaml
dns:
  - name: "{{FQDN}}"
    type: CNAME
    matchers:
      - type: word
        words:
          - "s3.amazonaws.com"
        part: answer

TCP / SSL

yaml
tcp:
  - address:
      - "{{Host}}:{{Port}}"
    inputs:
      - data: "\r\n"
    read-size: 2048
    matchers:
      - type: word
        part: body
        words:
          - "OpenSSH"

ssl:
  - address: "{{Host}}:{{Port}}"
    matchers:
      - type: dsl
        dsl:
          - 'contains(subject_cn, "internal.corp")'
          - 'not_after < unix_time()'     # expired cert
        condition: or

Headless (Browser)

yaml
headless:
  - steps:
      - action: navigate
        args:
          url: "{{BaseURL}}/login"
      - action: waitload
    matchers:
      - type: word
        part: body
        words:
          - "admin panel"

Use headless: only when JavaScript rendering is required; it is much slower than http:.

Variables and Payloads

Use a variables: block to precompute values:

yaml
variables:
  encoded: "{{base64('admin:admin')}}"

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/v1/secret"
    headers:
      Authorization: "Basic {{encoded}}"

Use payloads: with an attack type for fuzzing checks:

yaml
http:
  - method: POST
    path:
      - "{{BaseURL}}/search"
    body: "q={{payload}}"
    payloads:
      payload:
        - "' OR 1=1--"
        - "\" OR 1=1--"
    attack: batteringram          # one payload at a time; use clusterbomb for combos
    matchers:
      - type: word
        words:
          - "SQL syntax"
        part: body

Attack types: batteringram (single list, same value per position), pitchfork (parallel lists), clusterbomb (cartesian product).

Flow Control

Use flow: to orchestrate multi-protocol or conditional request chains. Requests only run when the preceding gate returns true.

yaml
flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/vuln-plugin/readme.txt"
    matchers:
      - type: word
        words: ["Vuln Plugin"]
        internal: true             # gate check — suppresses output

  - method: POST
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php"
    body: "action=exploit"
    matchers:
      - type: word
        words: ["success"]

Output Template

markdown
# Nuclei Template: {{id}}

## Template summary
- File: `{{id}}.yaml`
- Protocol: http | dns | tcp | ssl | headless
- Severity: info | low | medium | high | critical
- Request count: N

## Detection logic
- Trigger path/condition:
- Matcher signals:
  1.
  2.
- Extractors (if any):

## Validation results
- `nuclei -validate`: pass | fail (list errors)
- True-positive host tested: yes | no
- True-negative host tested: yes | no
- False-positive risk notes:

## Handoff to pt-scanning
- Template path for inclusion in scan runs:
- Recommended tags/filters: `-tags`
- Any prerequisites (auth creds, interactsh server, etc.):

Validation

Use the bundled script for combined schema + lint checking:

bash
# Validate a single template (schema + lint)
bash scripts/validate.sh ./template.yaml

# Validate + dry-run against an approved host
bash scripts/validate.sh ./template.yaml -u https://approved-test-host

# Validate all templates in a directory
bash scripts/validate.sh ./templates/

Or run nuclei directly:

bash
nuclei -t ./template.yaml -validate
nuclei -t ./template.yaml -u https://approved-test-host -debug

Reference Material

Load these files on demand when more depth is needed:

Upstream reference (authoritative):

  • Syntax reference: github.com/projectdiscovery/nuclei/blob/dev/SYNTAX-REFERENCE.md
  • JSON schema: github.com/projectdiscovery/nuclei/blob/dev/nuclei-jsonschema.json
  • Community templates: github.com/projectdiscovery/nuclei-templates

Quality Checks

  • id is lowercase, hyphen-separated, and describes vendor + issue (no spaces, no generic names like test or vuln).
  • info.severity is justified — critical/high only for confirmed RCE, auth bypass, or direct data exposure.
  • metadata.max-request matches the actual number of requests the template sends.
  • Matchers require at least two independent signals (e.g. status AND body) unless a single signal is provably unique.
  • No requests: key (deprecated) — uses http: instead.
  • Template passes nuclei -validate with no warnings.
  • Template was run against one known-vulnerable and one known-clean host to confirm true-positive and true-negative behavior.
  • Payloads are non-destructive: no file writes, no account creation, no state mutation unless explicitly approved and documented in description.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Pt Nuclei Template Creation」では何ができますか?

Creates Nuclei YAML templates for vulnerability detection across HTTP, DNS, TCP, SSL, and other protocols. Use when converting a confirmed vulnerability, misconfiguration, or exposure into a reusable automated check — for example, turning a manual finding into a detection rule, writing a CVE check, or codifying a technology fingerprint.

TypingMindでPt Nuclei Template Creationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Pt Nuclei Template Creationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPt Nuclei Template Creationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/santosomar/ethical-hacking-agent-skills/tree/main/skills/pt-nuclei-template-creationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Pt Nuclei Template Creationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Pt Nuclei Template Creationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPt Nuclei Template Creationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Pt Nuclei Template Creation」は無料ですか?

はい。santosomarがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇