[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EBK1WRBXW0W8JF2T4C6CEH":3,"skill-same:01M7EBK1WRBXW0W8JF2T4C6CEH":94},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":6,"ownerHtmlUrl":63,"ownerBlogUrl":6,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M7EBK1WRBXW0W8JF2T4C6CEH","analyzing-supply-chain-malware-artifacts",null,"Investigate supply chain attack artifacts including trojanized software updates, compromised build pipelines, and sideloaded dependencies to identify intrusion vectors and scope of compromise.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-supply-chain-malware-artifacts\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analyzing-supply-chain-malware-artifacts\ndescription: Investigate supply chain attack artifacts including trojanized software\n  updates, compromised build pipelines, and sideloaded dependencies to identify intrusion\n  vectors and scope of compromise.\ndomain: cybersecurity\nsubdomain: malware-analysis\ntags:\n- supply-chain\n- malware-analysis\n- trojanized-software\n- solarwinds\n- 3cx\n- dependency-confusion\n- software-integrity\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\natlas_techniques:\n- AML.T0010\nnist_ai_rmf:\n- GOVERN-5.2\n- MAP-1.6\n- MANAGE-2.2\nd3fend_techniques:\n- Platform Hardening\n- Hardware Component Inventory\n- Restore Object\n- Electromagnetic Radiation Hardening\n- RF Shielding\nnist_csf:\n- DE.AE-02\n- RS.AN-03\n- ID.RA-01\n- DE.CM-01\nmitre_attack:\n- T1195.002\n- T1195.001\n- T1554\n- T1553.002\n- T1027\n---\n# Analyzing Supply Chain Malware Artifacts\n\n## Overview\n\nSupply chain attacks compromise legitimate software distribution channels to deliver malware through trusted update mechanisms. Notable examples include SolarWinds SUNBURST (2020, affecting 18,000+ customers), 3CX SmoothOperator (2023, a cascading supply chain attack originating from Trading Technologies), and numerous npm\u002FPyPI package poisoning campaigns. Analysis involves comparing trojanized binaries against legitimate versions, identifying injected code in build artifacts, examining code signing anomalies, and tracing the infection chain from initial compromise through payload delivery. As of 2025, supply chain attacks account for 30% of all breaches, a 100% increase from prior years.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing supply chain malware artifacts\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- Python 3.9+ with `pefile`, `ssdeep`, `hashlib`\n- Binary diff tools (BinDiff, Diaphora)\n- Code signing verification tools (sigcheck, codesign)\n- Software composition analysis (SCA) tools\n- Access to legitimate software versions for comparison\n- Package repository monitoring (npm, PyPI, NuGet)\n\n## Workflow\n\n### Step 1: Binary Comparison Analysis\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Compare trojanized binary against legitimate version.\"\"\"\nimport hashlib\nimport pefile\nimport sys\nimport json\n\n\ndef compare_pe_files(legitimate_path, suspect_path):\n    \"\"\"Compare PE file structures between legitimate and suspect versions.\"\"\"\n    legit_pe = pefile.PE(legitimate_path)\n    suspect_pe = pefile.PE(suspect_path)\n\n    report = {\"differences\": [], \"suspicious_sections\": [], \"import_changes\": []}\n\n    # Compare sections\n    legit_sections = {s.Name.rstrip(b'\\x00').decode(): {\n        \"size\": s.SizeOfRawData,\n        \"entropy\": s.get_entropy(),\n        \"characteristics\": s.Characteristics,\n    } for s in legit_pe.sections}\n\n    suspect_sections = {s.Name.rstrip(b'\\x00').decode(): {\n        \"size\": s.SizeOfRawData,\n        \"entropy\": s.get_entropy(),\n        \"characteristics\": s.Characteristics,\n    } for s in suspect_pe.sections}\n\n    # Find new or modified sections\n    for name, props in suspect_sections.items():\n        if name not in legit_sections:\n            report[\"suspicious_sections\"].append({\n                \"name\": name, \"reason\": \"New section not in legitimate version\",\n                \"size\": props[\"size\"], \"entropy\": round(props[\"entropy\"], 2),\n            })\n        elif abs(props[\"size\"] - legit_sections[name][\"size\"]) > 1024:\n            report[\"suspicious_sections\"].append({\n                \"name\": name, \"reason\": \"Section size significantly changed\",\n                \"legit_size\": legit_sections[name][\"size\"],\n                \"suspect_size\": props[\"size\"],\n            })\n\n    # Compare imports\n    legit_imports = set()\n    if hasattr(legit_pe, 'DIRECTORY_ENTRY_IMPORT'):\n        for entry in legit_pe.DIRECTORY_ENTRY_IMPORT:\n            for imp in entry.imports:\n                if imp.name:\n                    legit_imports.add(f\"{entry.dll.decode()}!{imp.name.decode()}\")\n\n    suspect_imports = set()\n    if hasattr(suspect_pe, 'DIRECTORY_ENTRY_IMPORT'):\n        for entry in suspect_pe.DIRECTORY_ENTRY_IMPORT:\n            for imp in entry.imports:\n                if imp.name:\n                    suspect_imports.add(f\"{entry.dll.decode()}!{imp.name.decode()}\")\n\n    new_imports = suspect_imports - legit_imports\n    if new_imports:\n        report[\"import_changes\"] = list(new_imports)\n\n    # Check code signing\n    report[\"legit_signed\"] = bool(legit_pe.OPTIONAL_HEADER.DATA_DIRECTORY[4].Size)\n    report[\"suspect_signed\"] = bool(suspect_pe.OPTIONAL_HEADER.DATA_DIRECTORY[4].Size)\n\n    return report\n\n\ndef hash_file(filepath):\n    \"\"\"Calculate multiple hashes for a file.\"\"\"\n    hashes = {}\n    with open(filepath, 'rb') as f:\n        data = f.read()\n    for algo in ['md5', 'sha1', 'sha256']:\n        h = hashlib.new(algo)\n        h.update(data)\n        hashes[algo] = h.hexdigest()\n    return hashes\n\n\nif __name__ == \"__main__\":\n    if len(sys.argv) \u003C 3:\n        print(f\"Usage: {sys.argv[0]} \u003Clegitimate_binary> \u003Csuspect_binary>\")\n        sys.exit(1)\n    report = compare_pe_files(sys.argv[1], sys.argv[2])\n    print(json.dumps(report, indent=2))\n```\n\n## Validation Criteria\n\n- Trojanized components identified through binary diffing\n- Injected code isolated and analyzed separately\n- Code signing anomalies documented\n- Infection timeline reconstructed from build artifacts\n- Downstream impact scope assessed across affected systems\n- IOCs extracted for detection and blocking\n\n## References\n\n- [ReversingLabs - 3CX Supply Chain Analysis](https:\u002F\u002Fwww.reversinglabs.com\u002Fblog\u002Fwhat-went-wrong-with-the-3cx-software-supply-chain-attack-and-how-it-could-have-been-prevented)\n- [Fortinet - SolarWinds Supply Chain Attack](https:\u002F\u002Fwww.fortinet.com\u002Fresources\u002Fcyberglossary\u002Fsolarwinds-cyber-attack)\n- [Picus - 3CX SmoothOperator Analysis](https:\u002F\u002Fwww.picussecurity.com\u002Fresource\u002Fblog\u002Fsmoothoperator-analysis-of-3cxdesktopapp-supply-chain-attack)\n- [MITRE ATT&CK T1195 - Supply Chain Compromise](https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1195\u002F)\n","# Analyzing Supply Chain Malware Artifacts\n\n## Overview\n\nSupply chain attacks compromise legitimate software distribution channels to deliver malware through trusted update mechanisms. Notable examples include SolarWinds SUNBURST (2020, affecting 18,000+ customers), 3CX SmoothOperator (2023, a cascading supply chain attack originating from Trading Technologies), and numerous npm\u002FPyPI package poisoning campaigns. Analysis involves comparing trojanized binaries against legitimate versions, identifying injected code in build artifacts, examining code signing anomalies, and tracing the infection chain from initial compromise through payload delivery. As of 2025, supply chain attacks account for 30% of all breaches, a 100% increase from prior years.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing supply chain malware artifacts\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- Python 3.9+ with `pefile`, `ssdeep`, `hashlib`\n- Binary diff tools (BinDiff, Diaphora)\n- Code signing verification tools (sigcheck, codesign)\n- Software composition analysis (SCA) tools\n- Access to legitimate software versions for comparison\n- Package repository monitoring (npm, PyPI, NuGet)\n\n## Workflow\n\n### Step 1: Binary Comparison Analysis\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"Compare trojanized binary against legitimate version.\"\"\"\nimport hashlib\nimport pefile\nimport sys\nimport json\n\n\ndef compare_pe_files(legitimate_path, suspect_path):\n    \"\"\"Compare PE file structures between legitimate and suspect versions.\"\"\"\n    legit_pe = pefile.PE(legitimate_path)\n    suspect_pe = pefile.PE(suspect_path)\n\n    report = {\"differences\": [], \"suspicious_sections\": [], \"import_changes\": []}\n\n    # Compare sections\n    legit_sections = {s.Name.rstrip(b'\\x00').decode(): {\n        \"size\": s.SizeOfRawData,\n        \"entropy\": s.get_entropy(),\n        \"characteristics\": s.Characteristics,\n    } for s in legit_pe.sections}\n\n    suspect_sections = {s.Name.rstrip(b'\\x00').decode(): {\n        \"size\": s.SizeOfRawData,\n        \"entropy\": s.get_entropy(),\n        \"characteristics\": s.Characteristics,\n    } for s in suspect_pe.sections}\n\n    # Find new or modified sections\n    for name, props in suspect_sections.items():\n        if name not in legit_sections:\n            report[\"suspicious_sections\"].append({\n                \"name\": name, \"reason\": \"New section not in legitimate version\",\n                \"size\": props[\"size\"], \"entropy\": round(props[\"entropy\"], 2),\n            })\n        elif abs(props[\"size\"] - legit_sections[name][\"size\"]) > 1024:\n            report[\"suspicious_sections\"].append({\n                \"name\": name, \"reason\": \"Section size significantly changed\",\n                \"legit_size\": legit_sections[name][\"size\"],\n                \"suspect_size\": props[\"size\"],\n            })\n\n    # Compare imports\n    legit_imports = set()\n    if hasattr(legit_pe, 'DIRECTORY_ENTRY_IMPORT'):\n        for entry in legit_pe.DIRECTORY_ENTRY_IMPORT:\n            for imp in entry.imports:\n                if imp.name:\n                    legit_imports.add(f\"{entry.dll.decode()}!{imp.name.decode()}\")\n\n    suspect_imports = set()\n    if hasattr(suspect_pe, 'DIRECTORY_ENTRY_IMPORT'):\n        for entry in suspect_pe.DIRECTORY_ENTRY_IMPORT:\n            for imp in entry.imports:\n                if imp.name:\n                    suspect_imports.add(f\"{entry.dll.decode()}!{imp.name.decode()}\")\n\n    new_imports = suspect_imports - legit_imports\n    if new_imports:\n        report[\"import_changes\"] = list(new_imports)\n\n    # Check code signing\n    report[\"legit_signed\"] = bool(legit_pe.OPTIONAL_HEADER.DATA_DIRECTORY[4].Size)\n    report[\"suspect_signed\"] = bool(suspect_pe.OPTIONAL_HEADER.DATA_DIRECTORY[4].Size)\n\n    return report\n\n\ndef hash_file(filepath):\n    \"\"\"Calculate multiple hashes for a file.\"\"\"\n    hashes = {}\n    with open(filepath, 'rb') as f:\n        data = f.read()\n    for algo in ['md5', 'sha1', 'sha256']:\n        h = hashlib.new(algo)\n        h.update(data)\n        hashes[algo] = h.hexdigest()\n    return hashes\n\n\nif __name__ == \"__main__\":\n    if len(sys.argv) \u003C 3:\n        print(f\"Usage: {sys.argv[0]} \u003Clegitimate_binary> \u003Csuspect_binary>\")\n        sys.exit(1)\n    report = compare_pe_files(sys.argv[1], sys.argv[2])\n    print(json.dumps(report, indent=2))\n```\n\n## Validation Criteria\n\n- Trojanized components identified through binary diffing\n- Injected code isolated and analyzed separately\n- Code signing anomalies documented\n- Infection timeline reconstructed from build artifacts\n- Downstream impact scope assessed across affected systems\n- IOCs extracted for detection and blocking\n\n## References\n\n- [ReversingLabs - 3CX Supply Chain Analysis](https:\u002F\u002Fwww.reversinglabs.com\u002Fblog\u002Fwhat-went-wrong-with-the-3cx-software-supply-chain-attack-and-how-it-could-have-been-prevented)\n- [Fortinet - SolarWinds Supply Chain Attack](https:\u002F\u002Fwww.fortinet.com\u002Fresources\u002Fcyberglossary\u002Fsolarwinds-cyber-attack)\n- [Picus - 3CX SmoothOperator Analysis](https:\u002F\u002Fwww.picussecurity.com\u002Fresource\u002Fblog\u002Fsmoothoperator-analysis-of-3cxdesktopapp-supply-chain-attack)\n- [MITRE ATT&CK T1195 - Supply Chain Compromise](https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1195\u002F)\n",{"name":5,"tags":24,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":26,"description":7,"nist_ai_rmf":40,"mitre_attack":44,"atlas_techniques":50,"d3fend_techniques":52},[25,26,27,28,29,30,31],"supply-chain","malware-analysis","trojanized-software","solarwinds","3cx","dependency-confusion","software-integrity","mahipal","cybersecurity","1.0",[36,37,38,39],"DE.AE-02","RS.AN-03","ID.RA-01","DE.CM-01",[41,42,43],"GOVERN-5.2","MAP-1.6","MANAGE-2.2",[45,46,47,48,49],"T1195.002","T1195.001","T1554","T1553.002","T1027",[51],"AML.T0010",[53,54,55,56,57],"Platform Hardening","Hardware Component Inventory","Restore Object","Electromagnetic Radiation Hardening","RF Shielding","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","03-逆向工程\u002Fanalyzing-supply-chain-malware-artifacts",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill analyzing-supply-chain-malware-artifacts",{"tool":72,"command":73},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill analyzing-supply-chain-malware-artifacts",{"tool":75,"command":76},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill analyzing-supply-chain-malware-artifacts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-supply-chain-malware-artifacts\u002FSKILL.md",true,[80,86,90],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fapi-reference.md","REFERENCE","参考文档",2181,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-supply-chain-malware-artifacts\u002Freferences\u002Fapi-reference.md",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fstandards.md",309,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-supply-chain-malware-artifacts\u002Freferences\u002Fstandards.md",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fworkflows.md",468,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F03-逆向工程\u002Fanalyzing-supply-chain-malware-artifacts\u002Freferences\u002Fworkflows.md",[95,104,109,116,123,130],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":103},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":105,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":103},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":103},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":103},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":103},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":99,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":103},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]