[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71DXV5ZAQR9WJZ83HP9002Q":3,"skill-same:01M71DXV5ZAQR9WJZ83HP9002Q":90},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":14,"repositoryHtmlUrl":66,"repositoryHomepageUrl":6,"ownerHtmlUrl":67,"ownerBlogUrl":6,"ownerDescription":68,"updatedAt":69,"install":70,"resources":83},"01M71DXV5ZAQR9WJZ83HP9002Q","analysis-iam-audit",null,"The Diamond Model of Intrusion Analysis provides a structured framework for analyzing cyber intrusions by examining four core features - Adversary, Capability, Infrastructure, and Victim. This skill covers implementing the Diamond Model programmatically to classify and correlate intrusion events, build activity threads, and generate pivot-ready intelligence.","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\u002Fintel\u002Fanalysis\u002Fiam\u002Faudit\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"analysis","iam","audit","analysis iam audit","features","read","generate","classify","de","threat-intelligence","threads","t1078","mitre-attack","Bash","cybersecurity","implementing","intrusion-analysis","cm","model","ready","2026-11-10 10:12:30",false,"---\nname: analysis-iam-audit\ndescription: The Diamond Model of Intrusion Analysis provides a structured framework for analyzing cyber intrusions by examining four core features - Adversary, Capability, Infrastructure, and Victim. This skill covers implementing the Diamond Model programmatically to classify and correlate intrusion events, build activity threads, and generate pivot-ready intelligence.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- threat-intelligence\n- cti\n- ioc\n- mitre-attack\n- stix\n- diamond-model\n- intrusion-analysis\nnist_csf:\n- ID.RA-01\n- ID.RA-05\n- DE.CM-01\n- DE.AE-02\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1078.004\ncapec: []\n---\n\n# Implementing Diamond Model Analysis\n\n## Overview\n\nThe Diamond Model of Intrusion Analysis provides a structured framework for analyzing cyber intrusions by examining four core features: Adversary, Capability, Infrastructure, and Victim. This skill covers implementing the Diamond Model programmatically to classify and correlate intrusion events, build activity threads linking related events, create activity-attack graphs, and generate pivot-ready intelligence from intrusion data.\n\n\n## When to Use\n\n- When deploying or configuring implementing diamond model analysis capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Python 3.9+ with `networkx`, `stix2`, `graphviz` libraries\n- Understanding of the Diamond Model core and meta-features\n- Access to threat intelligence data (MISP\u002FOpenCTI events)\n- Familiarity with MITRE ATT&CK for capability mapping\n\n## Key Concepts\n\n### Diamond Model Core Features\n- **Adversary**: The threat actor or operator conducting the intrusion\n- **Capability**: The tools, techniques, and malware used (maps to ATT&CK)\n- **Infrastructure**: C2 servers, domains, email addresses, hosting providers\n- **Victim**: Target organization, system, person, or data asset\n\n### Meta-Features\n- **Timestamp**: When the event occurred\n- **Phase**: Kill chain stage (recon, delivery, exploitation, etc.)\n- **Result**: Success, failure, or unknown\n- **Direction**: Adversary-to-infrastructure, infrastructure-to-victim, etc.\n- **Methodology**: Social engineering, technical exploit, insider threat\n- **Resources**: Financial, human, technical resources required\n\n### Activity Threads and Groups\n- **Activity Thread**: Sequence of Diamond events from a single adversary operation\n- **Activity Group**: Cluster of threads attributed to the same adversary\n\n## Workflow\n\n### Step 1: Define Diamond Event Data Structure\n\n```python\nfrom dataclasses import dataclass, field\nfrom datetime import datetime\nfrom typing import Optional\nimport json\nimport uuid\n\n@dataclass\nclass DiamondEvent:\n    adversary: str = \"\"\n    capability: str = \"\"\n    infrastructure: str = \"\"\n    victim: str = \"\"\n    timestamp: str = \"\"\n    phase: str = \"\"\n    result: str = \"\"\n    direction: str = \"\"\n    methodology: str = \"\"\n    confidence: int = 0\n    notes: str = \"\"\n    event_id: str = field(default_factory=lambda: str(uuid.uuid4())[:8])\n    mitre_techniques: list = field(default_factory=list)\n    iocs: list = field(default_factory=list)\n\n    def to_dict(self):\n        return {\n            \"event_id\": self.event_id,\n            \"adversary\": self.adversary,\n            \"capability\": self.capability,\n            \"infrastructure\": self.infrastructure,\n            \"victim\": self.victim,\n            \"timestamp\": self.timestamp,\n            \"phase\": self.phase,\n            \"result\": self.result,\n            \"direction\": self.direction,\n            \"methodology\": self.methodology,\n            \"confidence\": self.confidence,\n            \"mitre_techniques\": self.mitre_techniques,\n            \"iocs\": self.iocs,\n            \"notes\": self.notes,\n        }\n```\n\n### Step 2: Build Activity Thread from Events\n\n```python\nimport networkx as nx\n\nclass DiamondAnalysis:\n    def __init__(self):\n        self.events = []\n        self.graph = nx.DiGraph()\n\n    def add_event(self, event: DiamondEvent):\n        self.events.append(event)\n        self.graph.add_node(event.event_id, **event.to_dict())\n\n    def build_activity_thread(self):\n        \"\"\"Link events chronologically into activity threads.\"\"\"\n        sorted_events = sorted(self.events, key=lambda e: e.timestamp)\n        for i in range(len(sorted_events) - 1):\n            self.graph.add_edge(\n                sorted_events[i].event_id,\n                sorted_events[i + 1].event_id,\n                relationship=\"followed_by\",\n            )\n\n    def find_pivots(self):\n        \"\"\"Find pivot points where events share infrastructure or capabilities.\"\"\"\n        pivots = {\"infrastructure\": {}, \"capability\": {}, \"adversary\": {}}\n\n        for event in self.events:\n            if event.infrastructure:\n                pivots[\"infrastructure\"].setdefault(event.infrastructure, []).append(event.event_id)\n            if event.capability:\n                pivots[\"capability\"].setdefault(event.capability, []).append(event.event_id)\n            if event.adversary:\n                pivots[\"adversary\"].setdefault(event.adversary, []).append(event.event_id)\n\n        return {\n            k: {pk: pv for pk, pv in v.items() if len(pv) > 1}\n            for k, v in pivots.items()\n        }\n\n    def generate_report(self):\n        return {\n            \"total_events\": len(self.events),\n            \"unique_adversaries\": len(set(e.adversary for e in self.events if e.adversary)),\n            \"unique_victims\": len(set(e.victim for e in self.events if e.victim)),\n            \"unique_infrastructure\": len(set(e.infrastructure for e in self.events if e.infrastructure)),\n            \"pivots\": self.find_pivots(),\n            \"events\": [e.to_dict() for e in self.events],\n        }\n```\n\n## Validation Criteria\n\n- Diamond events capture all four core features with meta-features\n- Activity threads link related events chronologically\n- Pivot analysis identifies shared infrastructure and capabilities across events\n- Graph visualization renders the activity-attack graph correctly\n- Events map to MITRE ATT&CK techniques for capability classification\n\n## References\n\n- [Diamond Model Paper](https:\u002F\u002Fwww.activeresponse.org\u002Fwp-content\u002Fuploads\u002F2013\u002F07\u002Fdiamond.pdf)\n- [MITRE ATT&CK](https:\u002F\u002Fattack.mitre.org\u002F)\n- [STIX 2.1 Campaign Object](https:\u002F\u002Fdocs.oasis-open.org\u002Fcti\u002Fstix\u002Fv2.1\u002Fstix-v2.1.html)\n","# Implementing Diamond Model Analysis\n\n## Overview\n\nThe Diamond Model of Intrusion Analysis provides a structured framework for analyzing cyber intrusions by examining four core features: Adversary, Capability, Infrastructure, and Victim. This skill covers implementing the Diamond Model programmatically to classify and correlate intrusion events, build activity threads linking related events, create activity-attack graphs, and generate pivot-ready intelligence from intrusion data.\n\n\n## When to Use\n\n- When deploying or configuring implementing diamond model analysis capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Python 3.9+ with `networkx`, `stix2`, `graphviz` libraries\n- Understanding of the Diamond Model core and meta-features\n- Access to threat intelligence data (MISP\u002FOpenCTI events)\n- Familiarity with MITRE ATT&CK for capability mapping\n\n## Key Concepts\n\n### Diamond Model Core Features\n- **Adversary**: The threat actor or operator conducting the intrusion\n- **Capability**: The tools, techniques, and malware used (maps to ATT&CK)\n- **Infrastructure**: C2 servers, domains, email addresses, hosting providers\n- **Victim**: Target organization, system, person, or data asset\n\n### Meta-Features\n- **Timestamp**: When the event occurred\n- **Phase**: Kill chain stage (recon, delivery, exploitation, etc.)\n- **Result**: Success, failure, or unknown\n- **Direction**: Adversary-to-infrastructure, infrastructure-to-victim, etc.\n- **Methodology**: Social engineering, technical exploit, insider threat\n- **Resources**: Financial, human, technical resources required\n\n### Activity Threads and Groups\n- **Activity Thread**: Sequence of Diamond events from a single adversary operation\n- **Activity Group**: Cluster of threads attributed to the same adversary\n\n## Workflow\n\n### Step 1: Define Diamond Event Data Structure\n\n```python\nfrom dataclasses import dataclass, field\nfrom datetime import datetime\nfrom typing import Optional\nimport json\nimport uuid\n\n@dataclass\nclass DiamondEvent:\n    adversary: str = \"\"\n    capability: str = \"\"\n    infrastructure: str = \"\"\n    victim: str = \"\"\n    timestamp: str = \"\"\n    phase: str = \"\"\n    result: str = \"\"\n    direction: str = \"\"\n    methodology: str = \"\"\n    confidence: int = 0\n    notes: str = \"\"\n    event_id: str = field(default_factory=lambda: str(uuid.uuid4())[:8])\n    mitre_techniques: list = field(default_factory=list)\n    iocs: list = field(default_factory=list)\n\n    def to_dict(self):\n        return {\n            \"event_id\": self.event_id,\n            \"adversary\": self.adversary,\n            \"capability\": self.capability,\n            \"infrastructure\": self.infrastructure,\n            \"victim\": self.victim,\n            \"timestamp\": self.timestamp,\n            \"phase\": self.phase,\n            \"result\": self.result,\n            \"direction\": self.direction,\n            \"methodology\": self.methodology,\n            \"confidence\": self.confidence,\n            \"mitre_techniques\": self.mitre_techniques,\n            \"iocs\": self.iocs,\n            \"notes\": self.notes,\n        }\n```\n\n### Step 2: Build Activity Thread from Events\n\n```python\nimport networkx as nx\n\nclass DiamondAnalysis:\n    def __init__(self):\n        self.events = []\n        self.graph = nx.DiGraph()\n\n    def add_event(self, event: DiamondEvent):\n        self.events.append(event)\n        self.graph.add_node(event.event_id, **event.to_dict())\n\n    def build_activity_thread(self):\n        \"\"\"Link events chronologically into activity threads.\"\"\"\n        sorted_events = sorted(self.events, key=lambda e: e.timestamp)\n        for i in range(len(sorted_events) - 1):\n            self.graph.add_edge(\n                sorted_events[i].event_id,\n                sorted_events[i + 1].event_id,\n                relationship=\"followed_by\",\n            )\n\n    def find_pivots(self):\n        \"\"\"Find pivot points where events share infrastructure or capabilities.\"\"\"\n        pivots = {\"infrastructure\": {}, \"capability\": {}, \"adversary\": {}}\n\n        for event in self.events:\n            if event.infrastructure:\n                pivots[\"infrastructure\"].setdefault(event.infrastructure, []).append(event.event_id)\n            if event.capability:\n                pivots[\"capability\"].setdefault(event.capability, []).append(event.event_id)\n            if event.adversary:\n                pivots[\"adversary\"].setdefault(event.adversary, []).append(event.event_id)\n\n        return {\n            k: {pk: pv for pk, pv in v.items() if len(pv) > 1}\n            for k, v in pivots.items()\n        }\n\n    def generate_report(self):\n        return {\n            \"total_events\": len(self.events),\n            \"unique_adversaries\": len(set(e.adversary for e in self.events if e.adversary)),\n            \"unique_victims\": len(set(e.victim for e in self.events if e.victim)),\n            \"unique_infrastructure\": len(set(e.infrastructure for e in self.events if e.infrastructure)),\n            \"pivots\": self.find_pivots(),\n            \"events\": [e.to_dict() for e in self.events],\n        }\n```\n\n## Validation Criteria\n\n- Diamond events capture all four core features with meta-features\n- Activity threads link related events chronologically\n- Pivot analysis identifies shared infrastructure and capabilities across events\n- Graph visualization renders the activity-attack graph correctly\n- Events map to MITRE ATT&CK techniques for capability classification\n\n## References\n\n- [Diamond Model Paper](https:\u002F\u002Fwww.activeresponse.org\u002Fwp-content\u002Fuploads\u002F2013\u002F07\u002Fdiamond.pdf)\n- [MITRE ATT&CK](https:\u002F\u002Fattack.mitre.org\u002F)\n- [STIX 2.1 Campaign Object](https:\u002F\u002Fdocs.oasis-open.org\u002Fcti\u002Fstix\u002Fv2.1\u002Fstix-v2.1.html)\n",{"name":5,"tags":44,"capec":49,"model":50,"tools":51,"domain":33,"maxTurns":55,"nist_csf":56,"subdomain":28,"description":7,"mitre_attack":61},[28,45,46,31,47,48,35],"cti","ioc","stix","diamond-model",[],"sonnet",[52,32,53,54],"Read","Glob","Grep",20,[57,58,59,60],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02",[62],"T1078.004","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fintel\u002Fanalysis\u002Fiam\u002Faudit","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":71,"prompt":81,"zipAvailable":82},[72,75,78],{"tool":73,"command":74},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill analysis-iam-audit",{"tool":76,"command":77},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill analysis-iam-audit",{"tool":79,"command":80},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill analysis-iam-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fintel\u002Fanalysis\u002Fiam\u002Faudit\u002FSKILL.md",true,[84],{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"index.json","REFERENCE","参考文档",665,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fintel\u002Fanalysis\u002Fiam\u002Faudit\u002Findex.json",[91,101,124,144,165,187],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":95,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":100},"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":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":39},"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",[],[108,109,110,111,112,113,114,33,115,116,117,118,119,120,121,122,123,36,27],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","forensics","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":39},"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",[],[131,111,132,108,133,134,32,19,135,33,136,137,138,139,140,24,141,142,27,143],"exec","services wmi exec exploit","exploit","across","team","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":145,"name":146,"nameZh":6,"description":147,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":39},"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",[],[151,152,153,154,155,50,156,157,158,159,24,27,160,161,19,162,32,33,163,164],"extract","registry artifact extract","registry","artifact","digital-forensics","regripper","windows-registry","evidence-collection","software","uncover","analyze","collection","artifact-analysis","activity",{"skillNo":166,"name":167,"nameZh":6,"description":168,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":169,"categories":170,"keywords":171,"publishedAt":39},"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",[],[172,173,174,109,33,175,36,176,177,178,113,27,179,180,181,182,183,184,185,186],"processes","token","processes token impersonate detect","techniques","escalation","windows","attacks","via","impersonation","potato","exploitation","printspoofer","token-impersonation","seimpersonate","privilege-escalation",{"skillNo":188,"name":189,"nameZh":6,"description":190,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":39},"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",[],[194,172,195,109,196,197,114,27,179,198,199,200,19,113,33,175,201,36,202,177],"thread","injection","processes thread injection detect","thread-injection","nt-api","apc-injection","api","process-injection","memory"]