analyzing-malicious-vbscript-and-wsf
Analyzes malicious VBScript, WSF, and HTA scripts: parsing WSF/HTA containers,
v1.0.03 instalaciones+3 en 7 días24 EstrellasApache-2.0sincronizado hace 10 horas
Instalar
¿Aún no tienes la CLI de NotHoly? Instálala primero.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install meltedinhex/analyzing-malicious-vbscript-and-wsfEscribe en ~/.notholy/skills después de comprobar la firma y el SHA-256.
FirmaFirmado, ed25519
Paquete97e1674a…20d1921a
97e1674ab322…4b1120d1921a4 archivos · 3.2 KBEscaneoMedio2 hallazgos
- Script ejecutable incluido con la skillscripts/analyst.py
- Enlaces a dominios externos
Fuentegithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/analyzing-malicious-vbscript-and-wsf@da7600a
Esta entrada todavía no está escrita en tu idioma, así que aparece en English.
En esta página
When to Use
- You have a
.vbs,.wsf, or.htadelivered via phishing and need its real behavior. - You must decode
VBScript.Encode-obfuscated script (the#@~^marker) or string obfuscation. - You are identifying WScript.Shell/ActiveX-based dropper actions and IOCs.
Do not use wscript/cscript/mshta to run the script for analysis — that executes the
dropper. Decode and read it statically.
Prerequisites
- A static decoder (Python) or a script sandbox; the sample handled inertly in the lab.
Safety & Handling
- Never run the script with Windows Script Host (
wscript/cscript/mshta). - Defang recovered URLs; store dropped payloads password-protected.
Workflow
Step 1: Parse the container
For WSF, parse the XML <job>/<script> elements (a WSF can bundle multiple languages). For HTA,
separate the HTML wrapper from the <script> body.
python scripts/analyst.py analyze sample.wsfStep 2: Decode VBScript.Encode
If you see the #@~^ header, decode the Microsoft Script Encoder stream back to source.
Step 3: Unroll string obfuscation
Resolve Chr()/Asc() builds, string concatenation, and Replace()-based deobfuscators to
reveal commands and URLs.
Step 4: Identify dropper actions and IOCs
Find CreateObject("WScript.Shell"), Run/Exec, ADODB/MSXML download patterns, and PowerShell
hand-offs; recover URLs/paths, defang, and route payloads onward.
Validation
- WSF/HTA containers are decomposed into their script bodies (all jobs/languages).
VBScript.Encodestreams are decoded to readable source.- Dropper actions and IOCs are recovered without executing the script.
Pitfalls
- Executing with
wscript/mshtato "see" behavior, infecting the host. - Missing one
<script>block in a multi-job WSF. - Overlooking the
#@~^encoded section and analyzing only the cleartext stub.
References
- See
references/api-reference.mdfor the WSF/VBScript decoder. - Windows Script Host docs and the Script Encoder format (linked in frontmatter).
Archivos de esta versión
references/11.3 KB
- api-reference.md1.3 KB
scripts/12.6 KB
- analyst.py2.6 KB
- LICENSE340 B
- SKILL.md3.0 KB
Permisos
| Permiso | Declarado | Hallado en el escaneo |
|---|---|---|
| Lee archivos | No | No |
| Escribe archivos | No | No |
| Ejecuta comandos de shell | Sí | Sí |
| Usa la red | Sí | Sí |
| Usa conectores | No | No |
| Controla un navegador | No | No |
Hallazgos del escaneo
Revisado el 13 nov 2026
- MediaArchivo · Script ejecutable incluido con la skillscripts/analyst.py
- InfoEnlace · Enlaces a dominios externos
Un escaneo limpio baja el riesgo, pero no prueba que el paquete sea seguro. Lee lo que instalas.
| Versión | Publicada | Commit | SHA-256 | Firma | Cambio de permisos |
|---|---|---|---|---|---|
| v1.0.0 | 13 nov 2026 | da7600a | 97e1674a | Firmada | – |
Más de meltedinhex
Todo de este publicador- writing-yara-rules-from-reversed-codemeltedinhex/writing-yara-rules-from-reversed-code4
- validating-detections-with-atomic-testsmeltedinhex/validating-detections-with-atomic-tests4
- writing-suricata-and-snort-rulesmeltedinhex/writing-suricata-and-snort-rules3
- writing-sigma-detection-rulesmeltedinhex/writing-sigma-detection-rules3
Más en Linux, cloud y contenedores
Ver la categoría- detecting-aws-credential-exposure-with-trufflehogmukul975/detecting-aws-credential-exposure-with-trufflehog5
- cloud-gcpnoorqureshi/cloud-gcp4
- container-image-hardeningsecurityskills/container-image-hardening3
- performing-cloud-incident-containment-proceduresmukul975/performing-cloud-incident-containment-procedures3
- implementing-taxii-server-with-opentaxiimukul975/implementing-taxii-server-with-opentaxii3
- detecting-cryptomining-in-cloudmukul975/detecting-cryptomining-in-cloud3
Pregunta todo lo que tu alcance permite.
Crea la cuenta, añade créditos y haz la primera pregunta en el chat o en la terminal.
- 1/3
Crea la cuenta
Individual o empresa. Puedes pasar a empresa después sin perder saldo ni claves.
IndividualEmpresa - 2/3
Añade créditos
Con tarjeta. Pagas por token, sin suscripción.
$5.00recarga mínima - 3/3
Pregunta
En el chat, o instala el CLI y ejecuta notholy login en tu terminal.
$ notholy login