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

hunting-for-registry-run-key-persistence

Qué hace

Esta herramienta busca programas maliciosos que están configurados para iniciarse automáticamente en tu ordenador con Windows. Analiza las entradas del registro del sistema para encontrar configuraciones sospechosas que los atacantes podrían haber añadido.

Cuándo usarla

  • ✓Cuando sospechas que un software no deseado se inicia por su cuenta.
  • ✓Al investigar actividad inusual en el ordenador.
  • ✓Para buscar programas ocultos que se lanzan al arrancar.

Link de la skill

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-registry-run-key-persistence/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-registry-run-key-persistence/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 programas que se inicien automáticamente desde el registro de Windows.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La herramienta examina los registros de eventos de Windows (Sysmon Event ID 13) que guardan los cambios en el registro. Busca patrones conocidos de programas maliciosos o entradas que se ejecuten desde ubicaciones sospechosas.

Contenido técnico (SKILL.md original)

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

Hunting for Registry Run Key Persistence

Overview

Registry Run keys (T1547.001) are one of the most commonly used persistence mechanisms by adversaries. When a program is added to a Run key in the Windows registry, it executes automatically when a user logs in. Attackers abuse keys under HKLM\Software\Microsoft\Windows\CurrentVersion\Run, HKCU\Software\Microsoft\Windows\CurrentVersion\Run, and their RunOnce counterparts to maintain persistence. Sysmon Event ID 13 (RegistryEvent - Value Set) captures registry value modifications including the target object path, the process that made the change, and the new value. Detection involves monitoring these events for suspicious executables in temp directories, encoded PowerShell commands, LOLBin paths, and processes that do not normally create Run key entries. Chaining Event 13 with Event 1 (Process Creation) and Event 11 (FileCreate) strengthens detection by confirming payload creation and execution.

When to Use

  • When investigating security incidents that require hunting for registry run key persistence
  • 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 systems with Sysmon installed and configured to log Event ID 13
  • Sysmon config with RegistryEvent rules for Run/RunOnce keys
  • Python 3.9+ with json, xml.etree.ElementTree, re modules
  • SIEM or log aggregator collecting Sysmon logs (Splunk, Elastic, Sentinel)
  • Knowledge of legitimate auto-start programs for baseline comparison

Steps

  1. Collect Sysmon Event ID 13 logs filtered for Run/RunOnce key paths
  2. Parse event XML/JSON for TargetObject, Details (value written), Image (modifying process)
  3. Flag entries where the value points to temp directories, AppData, or ProgramData
  4. Detect encoded PowerShell commands or script interpreters in registry values
  5. Identify LOLBin abuse (mshta.exe, rundll32.exe, regsvr32.exe, wscript.exe)
  6. Compare against known-good baseline of legitimate auto-start entries
  7. Check if the modifying process (Image) is unusual (cmd.exe, powershell.exe, python.exe)
  8. Chain with Event ID 1 to verify if the registered binary was recently created
  9. Generate detection report with MITRE ATT&CK mapping and severity scores
  10. Produce Sigma/Splunk detection rules from findings

Expected Output

A JSON report listing suspicious Run key entries with the registry path, value written, modifying process, timestamp, MITRE technique mapping, severity rating, and recommended Sigma detection rules.

Preguntas frecuentes

¿Qué son las 'claves Run del registro'?

Son ubicaciones especiales del registro de Windows donde se pueden incluir programas para que se inicien automáticamente cada vez que arranca el ordenador o inicia sesión un usuario.

¿Qué es Sysmon Event ID 13?

Es un tipo de registro de eventos de Windows que supervisa cuándo se modifica algo en el registro, como añadir un programa a las claves 'Run'.

¿Qué son los 'LOLBins'?

Son programas legítimos de Windows (como mshta.exe o powershell.exe) que los atacantes pueden usar indebidamente para ejecutar código sin traer herramientas nuevas.

Detalles

Descripción original del autor

Detect MITRE ATT&CK T1547.001 registry Run key persistence by analyzing Sysmon Event ID 13 logs and registry queries to identify malicious auto-start entries.

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularidad

Estrellas en GitHub
35 mil
Posición en el ranking
#7969
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