[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71F091J4QZWBDH5Z505QAMJ":3,"skill-same:01M71F091J4QZWBDH5Z505QAMJ":61},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M71F091J4QZWBDH5Z505QAMJ","malware-obfuscation-javascript",null,"| | **Eval Chain** | Nested layers of eval(), Function(), or document.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fmalware-obfuscation-javascript\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28],"javascript","malware","obfuscation","malware obfuscation javascript","cybersecurity","eval","nested","document","chain","layers","2026-11-10 10:12:30",false,"---\nname: malware-obfuscation-javascript\ndescription: \"| | **Eval Chain** | Nested layers of eval(), Function(), or document.\"\ndomain: cybersecurity\n---\n\n|\n| **Eval Chain** | Nested layers of eval(), Function(), or document.write() calls that each decode one layer of obfuscation before passing to the next |\n| **String Array Rotation** | Obfuscation technique storing all strings in a shuffled array and accessing them by computed index to hide string literals |\n| **Dead Code Insertion** | Adding non-functional code blocks that never execute to increase analysis complexity and confuse pattern matching |\n| **Opaque Predicate** | Conditional expression whose outcome is predetermined but difficult to determine statically; used to obscure control flow |\n| **Anti-Debugging** | JavaScript techniques to detect and thwart browser DevTools or debugger usage including debugger statements and timing checks |\n| **Web Skimmer** | Malicious JavaScript injected into e-commerce sites to steal payment card data from checkout forms (Magecart attack) |\n\n## Tools & Systems\n\n- **CyberChef**: GCHQ's web-based tool for encoding\u002Fdecoding transformations useful for unwinding multi-layer obfuscation\n- **de4js**: Online JavaScript deobfuscator supporting common obfuscation tools (obfuscator.io, JScrambler)\n- **Node.js VM Module**: Sandboxed JavaScript execution environment for safely evaluating obfuscated code with intercepted APIs\n- **Chrome DevTools**: Browser developer tools for stepping through JavaScript execution with breakpoints and console access\n- **JSDetox**: JavaScript malware analysis tool providing execution emulation and deobfuscation\n\n## Common Scenarios\n\n### Scenario: Deobfuscating a Magecart Web Skimmer\n\n**Context**: A compromised e-commerce site has obfuscated JavaScript injected into its checkout page. The script needs deobfuscation to identify the data exfiltration endpoint and determine what customer data was stolen.\n\n**Approach**:\n1. Extract the injected script from the page source (often appended to a legitimate JS file or loaded from an external domain)\n2. Beautify the code and identify the obfuscation technique (typically string array + rotation + hex encoding)\n3. Decode string encoding layers (hex -> Unicode -> base64) using the Python decoder script\n4. Resolve the string array by evaluating the array definition and rotation function\n5. Identify the form targeting logic (querySelector for payment form fields)\n6. Extract the exfiltration URL from the XMLHttpRequest or fetch call\n7. Document stolen data fields and exfiltration endpoint for incident response\n\n**Pitfalls**:\n- Executing obfuscated scripts on a connected system (the script may phone home during analysis)\n- Not removing anti-debugging traps before using browser DevTools (infinite debugger loops)\n- Missing additional obfuscation layers loaded dynamically from external URLs\n- Overlooking base64-encoded inline images or data URIs that may contain additional scripts\n\n## Output Format\n\n```\nJAVASCRIPT MALWARE DEOBFUSCATION REPORT\n=========================================\nSource:           checkout.js (injected into example-shop.com)\nObfuscation:      obfuscator.io (string array + rotation + hex encoding)\nLayers Removed:   3\n\nOBFUSCATION TECHNIQUES IDENTIFIED\n[1] String array with 247 entries, rotated by 0x1a3\n[2] Hex-encoded string references (\\x68\\x65\\x6c\\x6c\\x6f)\n[3] Base64-wrapped eval chain (2 layers)\n[4] Anti-debugging: setInterval debugger trap\n\nDEOBFUSCATED FUNCTIONALITY\nType:             Magecart Payment Card Skimmer\nTarget Forms:     input[name*=\"card\"], input[name*=\"cc_\"]\nData Captured:    Card number, expiration, CVV, cardholder name\nExfil Method:     POST via XMLHttpRequest\nExfil URL:        hxxps:\u002F\u002Fanalytics-cdn[.]com\u002Fcollect\nExfil Format:     JSON { \"cn\": card_number, \"exp\": expiry, \"cv\": cvv }\nTrigger:          Form submit event on checkout page\n\nEXTRACTED IOCs\nDomains:          analytics-cdn[.]com\nIPs:              185.220.101[.]42\nURLs:             hxxps:\u002F\u002Fanalytics-cdn[.]com\u002Fcollect\n                  hxxps:\u002F\u002Fanalytics-cdn[.]com\u002Fgate.js\n```\n","|\n| **Eval Chain** | Nested layers of eval(), Function(), or document.write() calls that each decode one layer of obfuscation before passing to the next |\n| **String Array Rotation** | Obfuscation technique storing all strings in a shuffled array and accessing them by computed index to hide string literals |\n| **Dead Code Insertion** | Adding non-functional code blocks that never execute to increase analysis complexity and confuse pattern matching |\n| **Opaque Predicate** | Conditional expression whose outcome is predetermined but difficult to determine statically; used to obscure control flow |\n| **Anti-Debugging** | JavaScript techniques to detect and thwart browser DevTools or debugger usage including debugger statements and timing checks |\n| **Web Skimmer** | Malicious JavaScript injected into e-commerce sites to steal payment card data from checkout forms (Magecart attack) |\n\n## Tools & Systems\n\n- **CyberChef**: GCHQ's web-based tool for encoding\u002Fdecoding transformations useful for unwinding multi-layer obfuscation\n- **de4js**: Online JavaScript deobfuscator supporting common obfuscation tools (obfuscator.io, JScrambler)\n- **Node.js VM Module**: Sandboxed JavaScript execution environment for safely evaluating obfuscated code with intercepted APIs\n- **Chrome DevTools**: Browser developer tools for stepping through JavaScript execution with breakpoints and console access\n- **JSDetox**: JavaScript malware analysis tool providing execution emulation and deobfuscation\n\n## Common Scenarios\n\n### Scenario: Deobfuscating a Magecart Web Skimmer\n\n**Context**: A compromised e-commerce site has obfuscated JavaScript injected into its checkout page. The script needs deobfuscation to identify the data exfiltration endpoint and determine what customer data was stolen.\n\n**Approach**:\n1. Extract the injected script from the page source (often appended to a legitimate JS file or loaded from an external domain)\n2. Beautify the code and identify the obfuscation technique (typically string array + rotation + hex encoding)\n3. Decode string encoding layers (hex -> Unicode -> base64) using the Python decoder script\n4. Resolve the string array by evaluating the array definition and rotation function\n5. Identify the form targeting logic (querySelector for payment form fields)\n6. Extract the exfiltration URL from the XMLHttpRequest or fetch call\n7. Document stolen data fields and exfiltration endpoint for incident response\n\n**Pitfalls**:\n- Executing obfuscated scripts on a connected system (the script may phone home during analysis)\n- Not removing anti-debugging traps before using browser DevTools (infinite debugger loops)\n- Missing additional obfuscation layers loaded dynamically from external URLs\n- Overlooking base64-encoded inline images or data URIs that may contain additional scripts\n\n## Output Format\n\n```\nJAVASCRIPT MALWARE DEOBFUSCATION REPORT\n=========================================\nSource:           checkout.js (injected into example-shop.com)\nObfuscation:      obfuscator.io (string array + rotation + hex encoding)\nLayers Removed:   3\n\nOBFUSCATION TECHNIQUES IDENTIFIED\n[1] String array with 247 entries, rotated by 0x1a3\n[2] Hex-encoded string references (\\x68\\x65\\x6c\\x6c\\x6f)\n[3] Base64-wrapped eval chain (2 layers)\n[4] Anti-debugging: setInterval debugger trap\n\nDEOBFUSCATED FUNCTIONALITY\nType:             Magecart Payment Card Skimmer\nTarget Forms:     input[name*=\"card\"], input[name*=\"cc_\"]\nData Captured:    Card number, expiration, CVV, cardholder name\nExfil Method:     POST via XMLHttpRequest\nExfil URL:        hxxps:\u002F\u002Fanalytics-cdn[.]com\u002Fcollect\nExfil Format:     JSON { \"cn\": card_number, \"exp\": expiry, \"cv\": cvv }\nTrigger:          Form submit event on checkout page\n\nEXTRACTED IOCs\nDomains:          analytics-cdn[.]com\nIPs:              185.220.101[.]42\nURLs:             hxxps:\u002F\u002Fanalytics-cdn[.]com\u002Fcollect\n                  hxxps:\u002F\u002Fanalytics-cdn[.]com\u002Fgate.js\n```\n",{"name":5,"domain":23,"description":7},"main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fmalware-obfuscation-javascript","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill malware-obfuscation-javascript",{"tool":47,"command":48},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill malware-obfuscation-javascript",{"tool":50,"command":51},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill malware-obfuscation-javascript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fmalware-obfuscation-javascript\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"index.json","REFERENCE","参考文档",559,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fmalware-obfuscation-javascript\u002Findex.json",[62,72,97,120,142,164],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":66,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":71},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":29},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[79,80,81,82,83,84,85,23,86,87,88,89,90,91,92,93,94,95,96],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm","de",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":29},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[104,82,105,79,106,107,108,109,110,23,111,112,113,114,115,116,117,118,96,119],"exec","services wmi exec exploit","exploit","across","Bash","analysis","team","traffic","remote","crackmapexec","Impacket","lateral-movement","read","lateral movement","command","native",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":29},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract","Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[127,128,129,130,131,132,133,134,135,136,116,96,137,138,109,139,108,23,140,141],"extract","registry artifact extract","registry","artifact","digital-forensics","sonnet","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":29},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[149,150,151,80,23,152,95,153,154,155,84,96,156,157,158,159,160,161,162,163],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":29},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[171,149,172,80,173,174,85,96,156,175,176,177,109,84,23,152,178,95,179,154],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]