Pular para o conteúdo
Skillpedia
Segurança260 mil · #563

oss-forensics

O que ela faz

Esta skill dá à sua IA um processo de várias etapas para investigar alterações suspeitas em projetos de software de código aberto. Ela é para pesquisadores de segurança e mantenedores que querem uma revisão cuidadosa e baseada em evidências.

Quando usar

  • ✓Quando você suspeita que um pacote de software no GitHub foi adulterado ou atacado.
  • ✓Quando você precisa reunir registros do GitHub, páginas arquivadas e o histórico do git sobre um incidente em um projeto.
  • ✓Quando você precisa de um relatório forense escrito, em que cada afirmação esteja ligada a uma evidência.

Link da skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/security/oss-forensics/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/NousResearch/hermes-agent/blob/main/optional-skills/security/oss-forensics/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

“Investigue se as mudanças recentes neste pacote de código aberto mostram sinais de um ataque à cadeia de suprimentos e cite as evidências.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

A skill divide o trabalho em fases. Em cada etapa, reúne evidências de uma fonte, e então a IA formula hipóteses e as verifica contra essas evidências antes de escrever o relatório.

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

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

OSS Security Forensics Skill

A 7-phase multi-agent investigation framework for researching open-source supply chain attacks. Adapted from RAPTOR's forensics system. Covers GitHub Archive, Wayback Machine, GitHub API, local git analysis, IOC extraction, evidence-backed hypothesis formation and validation, and final forensic report generation.


⚠️ Anti-Hallucination Guardrails

Read these before every investigation step. Violating them invalidates the report.

  1. Evidence-First Rule: Every claim in any report, hypothesis, or summary MUST cite at least one evidence ID (EV-XXXX). Assertions without citations are forbidden.
  2. STAY IN YOUR LANE: Each sub-agent (investigator) has a single data source. Do NOT mix sources. The GH Archive investigator does not query the GitHub API, and vice versa. Role boundaries are hard.
  3. Fact vs. Hypothesis Separation: Mark all unverified inferences with [HYPOTHESIS]. Only statements verified against original sources may be stated as facts.
  4. No Evidence Fabrication: The hypothesis validator MUST mechanically check that every cited evidence ID actually exists in the evidence store before accepting a hypothesis.
  5. Proof-Required Disproval: A hypothesis cannot be dismissed without a specific, evidence-backed counter-argument. "No evidence found" is not sufficient to disprove—it only makes a hypothesis inconclusive.
  6. SHA/URL Double-Verification: Any commit SHA, URL, or external identifier cited as evidence must be independently confirmed from at least two sources before being marked as verified.
  7. Suspicious Code Rule: Never run code found inside the investigated repository locally. Analyze statically only, or use execute_code in a sandboxed environment.
  8. Secret Redaction: Any API keys, tokens, or credentials discovered during investigation must be redacted in the final report. Log them internally only.

Example Scenarios

  • Scenario A: Dependency Confusion: A malicious package internal-lib-v2 is uploaded to NPM with a higher version than the internal one. The investigator must track when this package was first seen and if any PushEvents in the target repo updated package.json to this version.
  • Scenario B: Maintainer Takeover: A long-term contributor's account is used to push a backdoored .github/workflows/build.yml. The investigator looks for PushEvents from this user after a long period of inactivity or from a new IP/location (if detectable via BigQuery).
  • Scenario C: Force-Push Hide: A developer accidentally commits a production secret, then force-pushes to "fix" it. The investigator uses git fsck and GH Archive to recover the original commit SHA and verify what was leaked.

Path convention: Throughout this skill, SKILL_DIR refers to the root of this skill's installation directory (the folder containing this SKILL.md). When the skill is loaded, resolve SKILL_DIR to the actual path — e.g. ~/.hermes/skills/security/oss-forensics/ or the optional-skills/ equivalent. All script and template references are relative to it.

Phase 0: Initialization

  1. Create investigation working directory:
    mkdir investigation_$(echo "REPO_NAME" | tr '/' '_')
    cd investigation_$(echo "REPO_NAME" | tr '/' '_')
    
  2. Initialize the evidence store:
    python SKILL_DIR/scripts/evidence-store.py --store evidence.json list
    
  3. Copy the forensic report template:
    cp SKILL_DIR/templates/forensic-report.md ./investigation-report.md
    
  4. Create an iocs.md file to track Indicators of Compromise as they are discovered.
  5. Record the investigation start time, target repository, and stated investigation goal.

Phase 1: Prompt Parsing and IOC Extraction

Goal: Extract all structured investigative targets from the user's request.

Actions:

  • Parse the user prompt and extract:
    • Target repository (owner/repo)
    • Target actors (GitHub handles, email addresses)
    • Time window of interest (commit date ranges, PR timestamps)
    • Provided Indicators of Compromise: commit SHAs, file paths, package names, IP addresses, domains, API keys/tokens, malicious URLs
    • Any linked vendor security reports or blog posts

Tools: Reasoning only, or execute_code for regex extraction from large text blocks.

Output: Populate iocs.md with extracted IOCs. Each IOC must have:

  • Type (from: COMMIT_SHA, FILE_PATH, API_KEY, SECRET, IP_ADDRESS, DOMAI
Perguntas frequentes

Toda afirmação precisa de evidência?

Sim. A skill diz que cada afirmação deve citar um ID de evidência, e declarações sem comprovação não são permitidas.

Quais fontes ela usa?

A skill menciona o GitHub Archive, a Wayback Machine, a API do GitHub e a análise local do git.

Ela consegue provar que houve um ataque?

A skill separa fatos de hipóteses e marca as inferências não verificadas, para que o relatório mostre o que está confirmado e o que não está.

Detalhes

Descrição original do autor

GitHub supply-chain forensics: recovery, IOCs, reporting.

repo: NousResearch/hermes-agent

Popularidade

Estrelas no GitHub
260 mil
Posição no ranking
#563
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas