Receber por email
← Voltar para o catálogo

Claude-Red

claude-red é uma biblioteca curada de habilidades de segurança ofensiva projetada para o sistema de skills do Claude. Cada skill é um arquivo SKILL.md estruturado que prepara o Claude com metodologia de nível especialista para uma superfície de ataque específica — de SQLi a shellcode, evasão de EDR a desenvolvimento de exploits.

2.4kestrelas
Atualizado há 5 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add SnailSploit/Claude-Red

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/claude-red-mpshle4n/svg)](https://www.skillteca.com.br/skills/claude-red-mpshle4n)

Skills relacionadas

Ver todas de Dados e Análise →

Alerta por categoria

Receba novas skills de Dados e Análise toda segunda

1 email curto, só com as skills novas de Dados e Análise. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

SKILL: Endpoint Detection and Response

Metadata

  • Skill Name: edr-evasion
  • Folder: offensive-edr-evasion
  • Source: https://github.com/SnailSploit/offensive-checklist/blob/main/edr.md

Description

EDR evasion offensive checklist: hook unhooking (user/kernel), direct syscalls, PPID spoofing, process injection variants, AMSI bypass, ETW patching, memory encryption, and behavior-based evasion. Use when planning EDR bypass during red team engagements or researching AV/EDR evasion techniques.

Trigger Phrases

Use this skill when the conversation involves any of: EDR evasion, EDR bypass, hook unhooking, direct syscalls, PPID spoofing, process injection, AMSI bypass, ETW patch, memory encryption, AV evasion, behavioral evasion, red team evasion

Instructions for Claude

When this skill is active:

  1. Load and apply the full methodology below as your operational checklist
  2. Follow steps in order unless the user specifies otherwise
  3. For each technique, consider applicability to the current target/context
  4. Track which checklist items have been completed
  5. Suggest next steps based on findings

Full Methodology

Endpoint Detection and Response

Fundamentals

AV vs EDR

Antivirus (preventive approach):

  • Static Analysis: Matching known signatures in files
  • Dynamic Analysis: Limited behavioral monitoring/sandboxing
  • Effective against known threats, weaker against advanced attacks

EDR (proactive & investigative approach):

  • Continuous endpoint monitoring
  • Behavioral analysis at kernel level
  • Anomaly detection and post-compromise visibility
  • Prioritizes incident response and investigation

Windows Execution Flow

Windows program execution follows a hierarchical flow:

  1. Applications - User programs like firefox.exe
  2. DLLs - Libraries providing Windows functionality without direct low-level access
  3. Kernel32.dll - Core DLL for memory management, process/thread creation
  4. Ntdll.dll - Lowest user-mode DLL that exposes the NT API interface to the kernel
  5. Kernel - Core OS component with unrestricted hardware access

Example operation flow (creating a file):

  1. Application invokes CreateFile function
  2. CreateFile forwards to NtCreateFile
  3. Ntdll.dll triggers NtCreateFile syscall
  4. Kernel creates the file and returns a handle

EDR Visibility

EDR Architecture & Components

EDR solutions consist of multiple components creating a complex attack surface:

Client-Side Components:

  • User-space Applications - Main agent processes and UI components
  • Kernel-space Drivers - Filter drivers, network drivers, software drivers
  • Communication Interfaces - IOCTLs, FilterConnectionPorts, ALPC, Named Pipes

Component Communication Methods:

  • Kernel-to-Kernel: Exported functions, IOCTLs
  • User-to-Kernel: IOCTLs, FilterConnectionPorts (minifilter-specific), ALPC
  • User-to-User: ALPC, Named Pipes, Files, Registry

Server-Side Components:

  • Cloud services and management consoles
  • On-premise servers (some vendors)
  • Custom protocols for agent-to-cloud communication

EDR Visibility Methods

EDR solutions require extended visibility into system activities:

  • Filesystem monitoring via mini-filter drivers
  • Process/module loading via image load kernel callbacks
  • Process/.NET modules/Registry/kernel object events via ETW Ti
  • Network monitoring via NDIS and network filtering drivers

Static Analysis

  • Extract information from binary
  • Known malicious strings
  • Threat actor IP or domains
  • Malware binary hashes

Dynamic Analysis

  • Execute binary in a sandbox environment and observe it
  • Network connections
  • Registry changes
  • Memory access
  • File creation/deletion
  • AntiMalware Scan Interface

Behavioral Analysis

  • Observe the binary as its executing, Hook into functions/syscalls
  • User actions
  • System calls
  • Kernel callbacks
  • Commands executed in the command line
  • Which process is executing the code
  • Event Tracing for Windows

Detection Methods

AV Signature Scanning

  • Scans files using known signatures (YARA rules)
  • Typically targets loaders and droppers
  • Primarily static analysis of files on disk

AV Emulation

  • Runs suspicious programs in a simulated environment
  • Triggers on behaviors without executing real code
  • Used to detect obfuscated malware

Usermode Hooks

  • EDR hooks critical API calls in userspace (ntdll.dll)
  • Monitors process creation, memory allocations, and network operations
  • Allows for inspection before execution continues

Kernel Telemetry

  • Monitors events directly from the kernel
  • Captures file, registry, process, and network operations
  • Difficult to bypass as it operates at a lower level

Memory Scanning

  • Scans process memory for known signatures
  • Triggers based on suspicious behavior
  • Looks for shellcode, encryption, malicious strings
  • Modern Context:
  • Attackers also scan process memory for sensitive artifacts like authentication tokens. Co‑pilot/IDE integrations, chat assistants, and browser extensions frequently cache Bearer/JWT tokens in memory.
  • Practical triage: search for "Authorization: Bearer", "eyJ" (base64 JWT prefix), or provider‑specific headers; dump minimal pages to avoid tripping anti‑exfil rules.

OpSec Quickstart (lab)

  • Pre‑run
  • Network: block or sinkhole vendor EDR/XDR endpoints; disable cloud sample submission; tag lab hosts.
  • Mitigations snapshot: Get-ProcessMitigation -System; Get-CimInstance Win32_DeviceGuard (VBS/HVCI/KDP); Get-MpPreference (ASR/Cloud).
  • Events baseline: enable and tail Microsoft-Windows-CodeIntegrity/Operational, Security (4688/4689), Microsoft-Windows-Sense/Operational, Sysmon (if present).
  • Injection hygiene
  • Favor MEM_IMAGE mappings (ghosting/herpaderping/overwriting) over MEM_PRIVATE RWX to avoid 24H2 hotpatch loader checks.
  • Satisfy XFG/CET: jump via import thunks; ensure IBT ENDBR64 at indirect targets; maintain plausible stacks for syscalls (replicate ntdll frames).
  • Avoid noisy APIs: split alloc/write/exec over time; prefer APC+NtContinue pivots; keep thread contexts consistent.
  • Telemetry minimization
  • Jitter long‑lived channels; prefer named‑pipe/HTTP3 over noisy HTTP1; throttle upload intervals.
  • Use COM/runspace over PowerShell console to reduce script‑block logs; avoid AMSI‑flagged prologues.
  • Cleanup
  • Remove services, tasks, drivers; restore SDDL; revert registry policy flips (WDAC/CI/Defender) and re‑enable protections.
  • Purge user caches (Recent Files, Jump Lists) and ETW providers enabled during tests.

Memory Regions

  • Monitors suspicious memory allocation patterns
  • Flags RWX (read-write-execute) regions
  • Tracks regions that change from RW to RX

Callstack Analysis

  • Examines the call stack of suspicious functions
  • Verifies legitimate origin of critical operations
  • Detects unusual function call chains

Hook Implementation

EDRs can't directly hook kernel memory due to PatchGuard, so they:

  1. Inject their DLL into newly spawned processes
  2. Position before malware can block/unmap it
  3. Adjust _PEB, hook process's module IAT/Imports, and loaded libraries EAT/Exports
  4. Implement trampolines, hooks, and detours

ETW Monitoring

  • EDR maintains ring-buffer with per-process activities produced by ETW Ti:
  • Processes, command lines, parent-child relationships
  • File/Registry/Process open/write operations
  • Created threads, their call stacks, starting addresses
  • Native functions called
  • Created .NET AppDomains, loaded .NET assemblies, static class names, methods

Event Correlation

  • High fidelity alert (such as LSASS open) triggers correlation of collected activities
  • High memory/resources cost limits preservation of events to a time window
  • ML/AI may compute risk scores and isolate TTP (Tactics, Techniques, and Procedures)

Shellcode Loaders

Shellcode

Compartilhar X LinkedIn