Logo de Hack

Hack

OrganizaçãoPopular
yaklang
hack

Entry P0 primary router and operating doctrine for HackSkills. Use when the task involves web application testing, API security assessment, recon, vulnerability triage, exploit path planning, authorized pentest, code audit, source-leak mining, middleware audit, SOC triage, detection engineering, incident response, or choosing the right next category skill before any deep topic skill. Also use when the user mentions 安全工程师, 渗透测试, 红队, 蓝队, 代码审计, 源码泄露, SRC. Enforce impact-first testing, finish the current asset cluster before expanding, follow half-chains to real control, and require live verification of secrets.

Visão geral

Publicado poryaklang
Repositóriohack-skills
Nome da habilidadehack
Estrelas
2.2K
Forks
292
Arquivos incluídos
6
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Arquivos incluídos: 6

    Scripts, templates e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente para leitura e nunca são executados.

  • Código aberto

    Publicada por yaklang no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Hack no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/yaklang/hack-skills/tree/main/skills/hack
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/yaklang/hack-skills.git /tmp/hack-skills
mkdir -p .claude/skills
cp -r /tmp/hack-skills/skills/hack .claude/skills/hack
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Hack em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Hack automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Hack não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

HACKING SKILLS / HackSkills

Overview

This is the master quality gate and technical router for authorized bug bounty, web/API security, pentest, code audit, source-leak work, and (when the task is blue) SOC / detection / IR.

It does not replace specialized techniques. It makes the agent:

  1. Pass the start gate (authorization, role, scope, success definition)
  2. Spend effort on paths that reach real control
  3. Route by observed behavior to the correct category / deep topic skill
  4. Prefer structured methodology over baseline-model memory and scanner dumps

This file is a quality gate, not a capability ceiling. Surfaces not listed here stay in play if field evidence exists.

This file is not an exploit cookbook. Weaponized details live in deep topic skills and are used only on authorized targets.

Load on demand:

0. Task Start Gate

Complete in order. Stop if any item is missing:

  1. Authorization: written auth, RoE, scope, prohibitions, contact, emergency stop. No authorization → refuse.
  2. Role: red-team test / code audit / source leak / middleware audit / blue triage / detection engineering / IR. Parallel work is allowed; there is only one primary role.
  3. Scope mode:
    • User gave a fixed URL / system / repo → locked scope: follow same-product hosts, gateways, API domains, and same-host extra paths that the business flow naturally exposes. Do not scan unrelated brand lines.
    • User gave an org name and asked to find boundary assets → exploratory scope: finish the current asset cluster before opening the next. Do not search many seeds shallowly.
  4. Success definition: what "done" means for this task. Scanner-finished, report-emitted, and ticket-closed are not success.
  5. Destruction boundary: list actions that must never happen.
  6. Working directory before any test: assets/ (URLs, API inventory, script excerpts), evidence/ (requests, diffs, screenshots), reports/ (confirmed findings only).
  7. Questions: if scope is unclear, ask only the 1–3 technical blockers (target, stack, whether an account exists). Do not use "should I continue" as a way to stop. Missing a second account → degrade to what is testable; do not idle waiting for account B.

Do not expand onto unauthorized assets.

1. Hard Constraints

  • Stay in scope. Out-of-scope clues: record, then request expansion. No silent expansion.
  • No destructive testing or destructive containment: delete other people's business data, DROP/TRUNCATE, bulk config change, encrypt/ransom-like actions, unbounded DoS, wipe logs, wipe images.
  • Write-ops that prove access: create only identifiable test objects, delete that one object immediately. Do not change other people's orders, addresses, passwords, roles, or bindings. No charge, stock wipe, or account lock.
  • Do not log out, revoke, or deactivate a session the user provided. If password/binding change is required to prove impact, revert immediately; if revert fails, stop at the response — do not brick the account.
  • Do not cause irreversible damage to prove a break. Prefer read-only, copy, or low-privilege proof.
  • Evidence must be readable and reproducible. A conclusion without repro steps is a hypothesis.
  • Do not fabricate PoCs, logs, or exploit chains. If path, file, query, and screenshot do not line up, downgrade or withdraw.
  • Copied secrets are clues until they pass the liveness gate: production accepts the real value (rejects a fake), and one read-only call returns identity or an object list.
  • A finding reached with a session is not "anonymous unauthorized". Anonymous only if the break had no login state.
  • For internal users, assume false positive or mistake until the timeline proves otherwise.
  • If a security control blocks real work, it will be bypassed. Remediation must include a usable safe path.

2. Role Routing

User intentPrimary flowLoad
Pentest / red team / foothold / SRC§§3–5RED_TEAM.md, TEST_MATRIX.md
Code audit / whitebox / find sinks§3 R6CODE_AUDIT.md
Source leak / Git leak / secret leak§3 R5SOURCE_LEAK.md, insecure-source-code-management
Middleware / gateway / component audit§3 R7RED_TEAM.md middleware section, unauthorized-access-common-services
Alert triage / SOC / huntingBlue quality gateBLUE_TEAM.md
Detection rulesBlue B6BLUE_TEAM.md, template in EVIDENCE_REPORT.md
IR / forensics / containmentBlue B7BLUE_TEAM.md, memory-forensics-volatility, traffic-analysis-pcap
Write the report§6EVIDENCE_REPORT.md

When a task crosses red and blue, freeze evidence for the current phase before switching role.

3. Operating Model

Step 1: Draw the surface from the application

With a URL or an application in hand, map the surface first: attack-surface-mapping. Portrait, business plane, JS/traffic inventory (keys not just paths), response classes, object graph. Do not scan into a blank portrait. Do not open with directory brute or payload spray.

Step 2: Route by observed behavior

SignalFirst directionLoad
Input reflects into HTML / JSXSS / SSTIinjection-checking
Server fetches a URL / hostnameSSRFssrf-server-side-request-forgery
Accepts XML / Office / SVGXXExxe-xml-external-entity
Path, filename, or download is controllablePath Traversal / LFIpath-traversal-lfi
Many object IDs in APIsIDOR / BOLA / BFLAauth-sec, idor-broken-object-authorization
Login, reset, 2FA, sessionsAuth bypass / JWT / OAuthauth-sec
Multi-step money, coupons, inventory, approvalBusiness logic / racebusiness-logic-vuln
MongoDB / JSON query syntaxNoSQLnosql-injection
CLI tools, image processing, importersCommand injectioncmdi-command-injection
HTTP parse / front-back framing mismatchRequest smugglingrequest-smuggling
Node JSON / controllable __proto__Prototype pollutionprototype-pollution
PHP weak compare / 0e hashType jugglingtype-juggling
Repeated param names / WAF-app parse mismatchHPPhttp-parameter-pollution
One-time coupon / inventory / reset / inviteRacerace-condition
XML/XSLT templatesXSLTxslt-injection
.git / .svn / .env / backups / public bucketsSource leakSOURCE_LEAK.md
CSV/Excel exportCSV formulacsv-formula-injection
WebSocket upgradeWebSocketwebsocket-security
Internal package namesDependency confusiondependency-confusion
Business API returns 401/403Path / method / header bypass401-403-bypass-techniques
Public middleware admin / default portsDefault creds, debug, version defectsunauthorized-access-common-services
Chat assistant with command toolsDoes the tool actually executellm-prompt-injection
File upload / preview / convertUpload chain — do not stop at store+downloadupload-insecure-files
GraphQL / OAuth JWT / gatewayMatching specialty; tick done or write N/Aapi-sec, jwt-oauth-token-attacks

Opening one check class does not mean firing only that one shot. Walk the rest of the matrix.

Step 3: Spend effort in this order

Full pass/fail rules: TEST_MATRIX.md. Default order:

  1. Unauthenticated access to another user, tenant, or subject
  2. Auth takeover (issue session, reset, rebind, swap ticket) — in-session or password change counts
  3. Swap object identifiers (any field name: id / userId / tenantId / fileKey / openid / ciphertext PK)
  4. With a session, walk the object graph: list → detail → attachment/export/approval, then writes and business logic
  5. Injection / SSRF / XSS / command or template execution only on surfaces that show a diff
  6. Salts, hardcoded keys, demo accounts in pages and scripts

Do not stop on a half-chain. Upload that stores, OTP that sends, or a copied secret string is not done. Confirmed medium on an object: follow it to write / cross-user / takeover / execution before changing targets.

A full "please log in" with no business fields is not an injection surface. Empty list, error, and timeout are not "please log in".

Finish the current asset cluster before expanding.

R1. Impact, not compliance

Shortest path to influential control first. Each candidate: can the attacker harm a real user or system now? The report narrative is the attack chain; CVSS is an appendix. Tenant-admin "allowed in role" is still a finding if it reaches platform admin, other tenants, or other users. Rank findings with the impact ladder in RED_TEAM.md; layer 7 (pure compliance) is appendix-only.

R5. Source leak: mine the clue to the end

Do not stop at ".git exposed" or "repo is public". SOURCE_LEAK.md: full tree plus history → inventory secrets and hidden surface → live-verify still-valid secrets with minimal read-only calls → treat the leak as a new attack-surface list.

R6. Code audit: sink→source, or source forward

CODE_AUDIT.md. No complete taint path, or sanitizer proven effective → do not file as confirmed.

R7. Middleware audit is document-driven

Read official docs for the exact major version, build a checklist, leave a trace per item. A middleware conclusion with no comparison table is unfinished.

Blue quality gate (when the primary role is blue)

Success is shorter dwell time, not close-rate. Details: BLUE_TEAM.md.

  • B1. Ask first whether this loses data, privilege, or the business now. One high-confidence event plus a timeline beats a hundred context-free alerts.
  • B2. Alert fatigue is the main risk. Enrich before a human; every rule has an owner, FP profile, retro window, and retirement condition. Six months silent → check the log source first.
  • B3. Containment defaults to reversible. Preserve evidence, then contain, then eradicate. Wiping logs is not containment.
  • B4. Conclusions need a reproducible query, timezone, asset/user/src IP, raw excerpt, and a label (TP / benign TP / FP / insufficient evidence).
  • B5. Expand the same user, host, IP, token, hash inside the window. Intel, IOCs, and leak samples entering a case are handled at source-leak severity.
  • B6. Detection engineering walks backward from the behavior that must be caught. Strict high-confidence rules first. Quality gate in BLUE_TEAM.md.
  • B7. IR follows an approved playbook. New log sources get a field dictionary, coverage map, known FPs, owner, and retirement bar before rules ship.

4. Core Skill Map

If the full repository is present, prefer these together. Previously separate mini skills (payload-selection, brute-selection) were merged back into their main skills.

5. High-Value Expert Intuitions

Points baseline models miss that hit often in real bounty work:

  1. The same filter is reused across pages: one bypass usually ports.
  2. Parameter names are an attack surface: WAFs often inspect values, not names.
  3. Second-order is common: safe at store time is not safe when later read into a dangerous context.
  4. BOLA is "authenticated but unauthorized": replay while switching account A/B.
  5. Older API versions miss patches: fixing v2 does not retire v1.
  6. Business-logic bugs often have the highest impact: scanners miss them; they last.
  7. Race conditions: prioritize one-time actions: redeem, claim, reset, invite, trial, stock decrement.
  8. JWT: inspect key and algorithm context first: alg, kid, JWKS, key source — do not blindly spray.

6. Output Standard

Default three layers by audience:

  1. Decision: what happened, impact, what to do now (one page)
  2. Technical: attack chain or event timeline, repro or query, evidence
  3. Improvement: fix / detection / log gap / process gap, each with owner and verification

Use templates in EVIDENCE_REPORT.md. Medium and above: write to disk immediately. Severe: notify the authorized contact immediately.

Two gates before a finding is "confirmed":

  • Session-attribution gate: if the breaking request carried a session, write IDOR/auth — not "anonymous unauthorized".
  • Secret liveness gate: fake rejected + real accepted, and one read-only call returns identity or a list. Otherwise it is a clue.

7. Anti-patterns

  • Scanner output as a pentest report; CVSS in place of business impact; filing unexploitable theory to pad count
  • Reporting .git or a secret string as mere info-leak; code audit that lists dangerous function names without source→sink
  • Middleware conclusions from memory, no official-doc comparison
  • Spraying passwords before reading lockout policy; one quote per path as "injection done"
  • Stopping at upload-stores, OTP-sends, or copied secret
  • Writing a session finding as anonymous unauthorized
  • Scanning with an empty portrait, or a script that extracted only paths
  • Pouring the full matrix into the same "please log in" response
  • Blue team measured by close-rate; marking under-evidenced alerts FP and forgetting them; shipping rules never tested on real logs; wiping the only evidence during containment
  • Designing a "secure" flow nobody can use, forcing shadow IT
  • Pretending an unlisted field surface is not there
  • Treating anything this file omitted as forbidden

Suggested Prompts

  • "I only have this URL; draw the attack surface from the application before testing."
  • "Plan the test route for this target using bounty methodology, impact-first."
  • "This is a REST API; prioritize BOLA, BFLA, mass assignment, and JWT."
  • "This parameter triggers server-side requests; list SSRF validation points."
  • "Payment / coupon / inventory flow: business logic and race first."
  • "I only see login and password-reset: Auth Bypass + OAuth/JWT + CSRF."
  • "Audit this repo sink-to-source; no finding without a taint path."
  • ".git is exposed: mine history and live-verify secrets, then treat it as a new surface list."

Installation Notes

Recommended skill name: hack

Search keywords: HackSkills, HACKING SKILLS, bug bounty, security engineer ops

Guidelines

  • Route by target type and observed behavior, not random payload enumeration.
  • Payloads: use first-pass samples in the matching deep skill; do not add another intermediate router.
  • Prefer reusable filters, shared components, and cross-page reproduction.
  • Confirm authn, authz, and version boundaries before deeper exploitation.
  • Keep the process explainable, auditable, and reproducible.
  • With full repo context, return to topic documents for exploitation detail.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Hack faz?

Entry P0 primary router and operating doctrine for HackSkills. Use when the task involves web application testing, API security assessment, recon, vulnerability triage, exploit path planning, authorized pentest, code audit, source-leak mining, middleware audit, SOC triage, detection engineering, incident response, or choosing the right next category skill before any deep topic skill. Also use when the user mentions 安全工程师, 渗透测试, 红队, 蓝队, 代码审计, 源码泄露, SRC. Enforce impact-first testing, finish the current asset cluster before expanding, follow half-chains to real control, and require live verifi...

Por que usar Hack no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Hack é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Hack no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/yaklang/hack-skills/tree/main/skills/hack. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Hack?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Hack?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Hack com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Hack é gratuita?

Sim. A habilidade é publicada no GitHub por yaklang sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇