Pular para o conteúdo
Skillpedia
Segurança6,5 mil · #13963

patch-diff-research

O que ela faz

Esta skill descreve como estudar uma correção de segurança, construir um teste que mostre a diferença e procurar problemas semelhantes no código. Ela é para pesquisadores de segurança e mantenedores autorizados a inspecionar o código.

Quando usar

  • ✓Quando um revisor de segurança pede ao agente para comparar a versão vulnerável e a corrigida de um projeto que ele está autorizado a inspecionar.
  • ✓Quando o agente precisa encontrar caminhos de código irmãos com a mesma causa de um bug corrigido.
  • ✓Quando um relatório precisa mostrar um teste positivo na versão antiga e um controle negativo na versão corrigida.

Link da skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/patch-diff/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/patch-diff/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Você pode comparar as versões vulnerável e corrigida deste projeto e verificar se caminhos de código semelhantes ainda têm o mesmo problema?”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente fixa as duas versões, explica o que a correção mudou, constrói um teste que falha na versão antiga e passa na corrigida, e depois verifica cada ponto semelhante separadamente.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Patch-Diff Research

Use this workflow only on source, commits, and test targets the engagement is authorized to inspect. A patch is evidence of a changed security boundary, not proof that every neighboring line is exploitable.

Inputs

  • Pinned vulnerable and fixed revisions from the same repository.
  • Build instructions and a local or intentionally vulnerable test target.
  • The advisory, failing test, or exact behavior corrected by the patch.

Loop

  1. Pin both sides. Record repository URL, vulnerable commit, fixed commit, clean working-tree state, dependency lockfile hashes, and build commands.
  2. Explain the security delta. Identify the source, guard, sink, trust boundary, and behavior changed by the patch. Ignore formatting-only hunks.
  3. Build a differential test. The positive case must reproduce on the vulnerable revision; the negative control is the exact same case on the fixed revision. Record both raw outputs.
  4. Search for siblings. Search only for the abstract cause—not the exact line text. For every hit, confirm framework, data flow, authorization state, and reachability before treating it as a candidate.
  5. Validate candidates independently. Each candidate gets its own minimal positive and baseline command through validate_workspace_finding. Do not inherit validation from the original CVE.
  6. Report the boundary. Record rejected siblings and why they differ. Group only independently confirmed findings under the common root cause.

Required artifacts

research/patch-diff/<advisory>/
  revisions.json                 # commits and dependency hashes
  security-delta.md              # source / guard / sink explanation
  original-positive.txt          # vulnerable revision output
  original-fixed-control.txt     # fixed revision output
  variants/<candidate>/positive.txt
  variants/<candidate>/baseline.txt
  variants/<candidate>/verification.json

A variant is promotable only when its own verification artifact validates and the original fixed-side control demonstrates the intended remediation boundary.

Perguntas frequentes

Por que comparar duas versões?

A skill diz que uma correção mostra onde estava um limite de segurança, então código semelhante em outro lugar pode precisar da mesma correção.

Uma correção prova que outro código é vulnerável?

Não. A skill diz que uma correção é evidência de um limite alterado, e cada vizinho deve ser verificado antes de ser reportado.

O que o relatório deve incluir?

Deve incluir os detalhes do commit, os resultados do teste nas duas versões e a validação de cada candidato.

Detalhes

Descrição original do autor

Authorized patch-diff workflow for deriving and validating vulnerability variants from a known vulnerable-to-fixed source change.

repo: BitterSecurity/Decepticon

Popularidade

Estrelas no GitHub
6,5 mil
Posição no ranking
#13963
Licença
Apache-2.0
Atualizada em
01/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas