Parse Windows PowerShell Script Block Logs (Event ID 4104) from EVTX files to detect obfuscated commands, encoded payloads, and living-off-the-land techniques. Uses python-evtx to extract and reconstruct multi-block scripts, applies entropy analysis and pattern matching for Base64-encoded commands, Invoke-Expression abuse, download cradles, and AMSI bypass attempts.
60
70%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
High
Do not use without reviewing
Fix and improve this skill with Tessl
tessl review fix ./skills/analyzing-powershell-script-block-logging/SKILL.mdSecurity
1 high severity finding. You should review these findings carefully before considering using this skill.
The skill handles credentials insecurely by requiring the agent to include secret values verbatim in its generated output. This exposes credentials in the agent’s context and conversation history, creating a risk of data exfiltration.
The prompt requires reconstructing and reporting full PowerShell script blocks from event logs, which can include sensitive secrets (passwords, tokens, keys) and therefore would force the agent to handle/output secret values verbatim.
Low
Low-risk findings.
1 low severity finding. Worth noting, but not necessarily harmful.
The skill exposes the agent to untrusted, user-generated content from public third-party sources, creating a risk of indirect prompt injection. This includes browsing arbitrary URLs, reading social media posts or forum comments, and analyzing content from unknown websites.
The runtime path reads OUTSIDER-authored free text from the user-supplied EVTX file (`--evtx-file`), parses Event 4104 `ScriptBlockText`/`MessageNumber`/etc. as XML text, reconstructs it, and then feeds the reconstructed `script_text` into the LLM context (via any downstream LLM step); since the EVTX contents are not authored by the operating user, this is outsider-provided log content.
9429fe9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.