[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M750HSK9V1HZTP4EQZ2VTWFE":3,"skill-same:01M750HSK9V1HZTP4EQZ2VTWFE":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":37,"commitSha":38,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":6,"updatedAt":42,"install":43,"resources":56},"01M750HSK9V1HZTP4EQZ2VTWFE","hunting-for-anomalous-powershell-execution",null,"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 analysis, encoded command detection, or AMSI bypass identification.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fhunting-for-anomalous-powershell-execution\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fhunting-for-anomalous-powershell-execution\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hunting-for-anomalous-powershell-execution\ndescription: >\n  Hunt for malicious PowerShell activity by analyzing Script Block Logging (Event 4104),\n  Module Logging (Event 4103), and process creation events. The analyst parses Windows\n  Event Log EVTX files to detect obfuscated commands, AMSI bypass attempts, encoded\n  payloads, credential dumping keywords, and suspicious download cradles. Activates for\n  requests involving PowerShell threat hunting, script block analysis, encoded command\n  detection, or AMSI bypass identification.\ndomain: cybersecurity\nsubdomain: threat-hunting\ntags: [powershell, script-block-logging, event-4104, amsi, threat-hunting, evtx, obfuscation]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n# Hunting for Anomalous PowerShell Execution\n\n## Overview\n\nPowerShell Script Block Logging (Event ID 4104) records the full deobfuscated script text\nexecuted on a Windows endpoint, making it the primary data source for hunting malicious\nPowerShell. Combined with Module Logging (4103) and process creation events, analysts can\ndetect encoded commands, AMSI bypass patterns, download cradles, credential theft tools,\nand fileless attack techniques even when the attacker uses obfuscation layers.\n\n\n## When to Use\n\n- When investigating security incidents that require hunting for anomalous powershell execution\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Windows Event Log exports (.evtx) from Microsoft-Windows-PowerShell\u002FOperational\n- Python 3.8+ with python-evtx and lxml libraries\n- Script Block Logging enabled via Group Policy\n- Understanding of common PowerShell attack techniques\n\n## Steps\n\n1. Parse EVTX files extracting Event 4104 script block text and metadata\n2. Reassemble multi-part script blocks using ScriptBlock ID correlation\n3. Scan script text for AMSI bypass indicators and obfuscation patterns\n4. Detect encoded command execution and base64 payloads\n5. Identify download cradles, credential dumping, and lateral movement commands\n6. Score and prioritize findings by threat severity\n\n## Expected Output\n\n```json\n{\n  \"total_events\": 1247,\n  \"suspicious_events\": 23,\n  \"amsi_bypass_attempts\": 2,\n  \"encoded_commands\": 8,\n  \"download_cradles\": 5,\n  \"credential_access\": 3\n}\n```\n","# Hunting for Anomalous PowerShell Execution\n\n## Overview\n\nPowerShell Script Block Logging (Event ID 4104) records the full deobfuscated script text\nexecuted on a Windows endpoint, making it the primary data source for hunting malicious\nPowerShell. Combined with Module Logging (4103) and process creation events, analysts can\ndetect encoded commands, AMSI bypass patterns, download cradles, credential theft tools,\nand fileless attack techniques even when the attacker uses obfuscation layers.\n\n\n## When to Use\n\n- When investigating security incidents that require hunting for anomalous powershell execution\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Windows Event Log exports (.evtx) from Microsoft-Windows-PowerShell\u002FOperational\n- Python 3.8+ with python-evtx and lxml libraries\n- Script Block Logging enabled via Group Policy\n- Understanding of common PowerShell attack techniques\n\n## Steps\n\n1. Parse EVTX files extracting Event 4104 script block text and metadata\n2. Reassemble multi-part script blocks using ScriptBlock ID correlation\n3. Scan script text for AMSI bypass indicators and obfuscation patterns\n4. Detect encoded command execution and base64 payloads\n5. Identify download cradles, credential dumping, and lateral movement commands\n6. Score and prioritize findings by threat severity\n\n## Expected Output\n\n```json\n{\n  \"total_events\": 1247,\n  \"suspicious_events\": 23,\n  \"amsi_bypass_attempts\": 2,\n  \"encoded_commands\": 8,\n  \"download_cradles\": 5,\n  \"credential_access\": 3\n}\n```\n",{"name":5,"tags":25,"author":33,"domain":34,"license":15,"version":35,"subdomain":30,"description":36},[26,27,28,29,30,31,32],"powershell","script-block-logging","event-4104","amsi","threat-hunting","evtx","obfuscation","mahipal","cybersecurity","1.0","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 analysis, encoded command detection, or AMSI bypass identification.\n","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill hunting-for-anomalous-powershell-execution",{"tool":49,"command":50},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill hunting-for-anomalous-powershell-execution",{"tool":52,"command":53},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill hunting-for-anomalous-powershell-execution","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fhunting-for-anomalous-powershell-execution\u002FSKILL.md",true,[57,61,67],{"path":58,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fapi-reference.md","REFERENCE","参考文档",4224,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fhunting-for-anomalous-powershell-execution\u002Freferences\u002Fapi-reference.md",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fagent.py","SCRIPT","脚本",8799,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fhunting-for-anomalous-powershell-execution\u002Fscripts\u002Fagent.py",[74,82,89,96,103,110],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":20},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":20},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":20},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":20},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":20},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":20},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]