Saltar al contenido
Skillpedia
Análisis y hojas de cálculo35 mil · #7948

hunting-for-anomalous-powershell-execution

Qué hace

Esta herramienta busca actividad maliciosa de PowerShell en los registros de eventos de Windows. Analiza los scripts ejecutados para encontrar intentos de ocultar comandos, saltarse la seguridad (AMSI), descargar código sospechoso o robar credenciales.

Cuándo usarla

  • ✓Cuando investigas un incidente de seguridad relacionado con PowerShell.
  • ✓Cuando creas reglas para detectar actividad sospechosa de PowerShell.
  • ✓Cuando quieres comprobar si tu sistema de monitorización detecta los ataques más comunes con PowerShell.

Link de la skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Busca actividad sospechosa de PowerShell en mis registros de eventos.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La herramienta lee los archivos de registro de eventos de Windows (.evtx) que contienen información sobre lo que ejecutó PowerShell. Busca patrones de ataque conocidos, como comandos codificados o intentos de saltarse la seguridad.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Hunting for Anomalous PowerShell Execution

Overview

PowerShell Script Block Logging (Event ID 4104) records the full deobfuscated script text executed on a Windows endpoint, making it the primary data source for hunting malicious PowerShell. Combined with Module Logging (4103) and process creation events, analysts can detect encoded commands, AMSI bypass patterns, download cradles, credential theft tools, and fileless attack techniques even when the attacker uses obfuscation layers.

When to Use

  • When investigating security incidents that require hunting for anomalous powershell execution
  • When building detection rules or threat hunting queries for this domain
  • When SOC analysts need structured procedures for this analysis type
  • When validating security monitoring coverage for related attack techniques

Prerequisites

  • Windows Event Log exports (.evtx) from Microsoft-Windows-PowerShell/Operational
  • Python 3.8+ with python-evtx and lxml libraries
  • Script Block Logging enabled via Group Policy
  • Understanding of common PowerShell attack techniques

Steps

  1. Parse EVTX files extracting Event 4104 script block text and metadata
  2. Reassemble multi-part script blocks using ScriptBlock ID correlation
  3. Scan script text for AMSI bypass indicators and obfuscation patterns
  4. Detect encoded command execution and base64 payloads
  5. Identify download cradles, credential dumping, and lateral movement commands
  6. Score and prioritize findings by threat severity

Expected Output

{
  "total_events": 1247,
  "suspicious_events": 23,
  "amsi_bypass_attempts": 2,
  "encoded_commands": 8,
  "download_cradles": 5,
  "credential_access": 3
}
Preguntas frecuentes

¿Qué es 'Script Block Logging'?

Son registros detallados que muestran exactamente qué comandos y scripts ejecutó PowerShell, incluso si el atacante intentó ocultarlos.

¿Qué es AMSI?

AMSI (Antimalware Scan Interface) es una capa de seguridad de Windows que ayuda a detectar y bloquear software malicioso. La herramienta busca intentos de desactivar AMSI o engañarlo.

¿Qué son los 'download cradles'?

Son fragmentos de código que se usan para descargar y ejecutar otros programas maliciosos directamente desde internet, sin guardar un archivo en el disco.

Detalles

Descripción original del autor

Hunt for malicious PowerShell activity by analyzing Script Block Logging (Event 4104), Module Logging (Event 4103), and process creation events. The analyst parses Windows Event Log EVTX files to detect obfuscated commands, AMSI bypass attempts, encoded payloads, credential dumping keywords, and suspicious download cradles. Activates for requests involving PowerShell threat hunting, script block a

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularidad

Estrellas en GitHub
35 mil
Posición en el ranking
#7948
Licencia
Apache-2.0
Actualizada
31/8/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas