[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74MVJPAA0YJWH6PZD2RAMS4":3,"skill-same:01M74MVJPAA0YJWH6PZD2RAMS4":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},"01M74MVJPAA0YJWH6PZD2RAMS4","analyzing-apt-group-with-mitre-navigator",null,"Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps of adversary TTPs for detection gap analysis and threat-informed defense.","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\u002Fanalyzing-apt-group-with-mitre-navigator\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fanalyzing-apt-group-with-mitre-navigator\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: analyzing-apt-group-with-mitre-navigator\ndescription: Analyze advanced persistent threat (APT) group techniques using MITRE ATT&CK Navigator to create layered heatmaps of adversary TTPs for detection gap analysis and threat-informed defense.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags: [mitre-attack, navigator, apt, threat-actor, ttp-analysis, heatmap, detection-gap, threat-intelligence]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n# Analyzing APT Group with MITRE ATT&CK Navigator\n\n## Overview\n\nMITRE ATT&CK Navigator is a web-based tool for annotating and exploring ATT&CK matrices, enabling analysts to visualize threat actor technique coverage, compare multiple APT groups, identify detection gaps, and build threat-informed defense strategies. This skill covers querying ATT&CK data programmatically, mapping APT group TTPs to Navigator layers, creating multi-layer overlays for gap analysis, and generating actionable intelligence reports for detection engineering teams.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing apt group with mitre navigator\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 `attackcti`, `mitreattack-python`, `stix2`, `requests` libraries\n- ATT&CK Navigator (https:\u002F\u002Fmitre-attack.github.io\u002Fattack-navigator\u002F) or local deployment\n- Understanding of ATT&CK Enterprise matrix: 14 Tactics, 200+ Techniques, Sub-techniques\n- Access to threat intelligence reports or MISP\u002FOpenCTI for threat actor data\n- Familiarity with STIX 2.1 Intrusion Set and Attack Pattern objects\n\n## Key Concepts\n\n### ATT&CK Navigator Layers\n\nNavigator layers are JSON files that annotate ATT&CK techniques with scores, colors, comments, and metadata. Each layer can represent a single APT group's technique usage, a detection capability map, or a combined overlay. Layer version 4.5 supports enterprise-attack, mobile-attack, and ics-attack domains with filtering by platform (Windows, Linux, macOS, Cloud, Azure AD, Office 365, SaaS).\n\n### APT Group Profiles in ATT&CK\n\nATT&CK catalogs over 140 threat groups with documented technique usage. Each group profile includes aliases, targeted sectors, associated campaigns, software used, and technique mappings with procedure-level detail. Groups are identified by G-codes (e.g., G0016 for APT29, G0007 for APT28, G0032 for Lazarus Group).\n\n### Multi-Layer Analysis\n\nThe Navigator supports loading multiple layers simultaneously, allowing analysts to overlay threat actor TTPs against detection coverage to identify gaps, compare multiple APT groups to find common techniques worth prioritizing, and track technique coverage changes over time.\n\n## Workflow\n\n### Step 1: Query ATT&CK Data for APT Group\n\n```python\nfrom attackcti import attack_client\nimport json\n\nlift = attack_client()\n\n# Get all threat groups\ngroups = lift.get_groups()\nprint(f\"Total ATT&CK groups: {len(groups)}\")\n\n# Find APT29 (Cozy Bear \u002F Midnight Blizzard)\napt29 = next((g for g in groups if g.get('name') == 'APT29'), None)\nif apt29:\n    print(f\"Group: {apt29['name']}\")\n    print(f\"Aliases: {apt29.get('aliases', [])}\")\n    print(f\"Description: {apt29.get('description', '')[:300]}\")\n\n# Get techniques used by APT29 (G0016)\ntechniques = lift.get_techniques_used_by_group(\"G0016\")\nprint(f\"APT29 uses {len(techniques)} techniques\")\n\ntechnique_map = {}\nfor tech in techniques:\n    tech_id = \"\"\n    for ref in tech.get(\"external_references\", []):\n        if ref.get(\"source_name\") == \"mitre-attack\":\n            tech_id = ref.get(\"external_id\", \"\")\n            break\n    if tech_id:\n        tactics = [p.get(\"phase_name\", \"\") for p in tech.get(\"kill_chain_phases\", [])]\n        technique_map[tech_id] = {\n            \"name\": tech.get(\"name\", \"\"),\n            \"tactics\": tactics,\n            \"description\": tech.get(\"description\", \"\")[:500],\n            \"platforms\": tech.get(\"x_mitre_platforms\", []),\n            \"data_sources\": tech.get(\"x_mitre_data_sources\", []),\n        }\n```\n\n### Step 2: Generate Navigator Layer JSON\n\n```python\ndef create_navigator_layer(group_name, technique_map, color=\"#ff6666\"):\n    techniques_list = []\n    for tech_id, info in technique_map.items():\n        for tactic in info[\"tactics\"]:\n            techniques_list.append({\n                \"techniqueID\": tech_id,\n                \"tactic\": tactic,\n                \"color\": color,\n                \"comment\": info[\"name\"],\n                \"enabled\": True,\n                \"score\": 100,\n                \"metadata\": [\n                    {\"name\": \"group\", \"value\": group_name},\n                    {\"name\": \"platforms\", \"value\": \", \".join(info[\"platforms\"])},\n                ],\n            })\n\n    layer = {\n        \"name\": f\"{group_name} TTP Coverage\",\n        \"versions\": {\"attack\": \"16.1\", \"navigator\": \"5.1.0\", \"layer\": \"4.5\"},\n        \"domain\": \"enterprise-attack\",\n        \"description\": f\"Techniques attributed to {group_name}\",\n        \"filters\": {\n            \"platforms\": [\"Linux\", \"macOS\", \"Windows\", \"Cloud\",\n                          \"Azure AD\", \"Office 365\", \"SaaS\", \"Google Workspace\"]\n        },\n        \"sorting\": 0,\n        \"layout\": {\n            \"layout\": \"side\", \"aggregateFunction\": \"average\",\n            \"showID\": True, \"showName\": True,\n            \"showAggregateScores\": False, \"countUnscored\": False,\n        },\n        \"hideDisabled\": False,\n        \"techniques\": techniques_list,\n        \"gradient\": {\"colors\": [\"#ffffff\", color], \"minValue\": 0, \"maxValue\": 100},\n        \"legendItems\": [\n            {\"label\": f\"Used by {group_name}\", \"color\": color},\n            {\"label\": \"Not observed\", \"color\": \"#ffffff\"},\n        ],\n        \"showTacticRowBackground\": True,\n        \"tacticRowBackground\": \"#dddddd\",\n        \"selectTechniquesAcrossTactics\": True,\n        \"selectSubtechniquesWithParent\": False,\n        \"selectVisibleTechniques\": False,\n    }\n    return layer\n\nlayer = create_navigator_layer(\"APT29\", technique_map)\nwith open(\"apt29_layer.json\", \"w\") as f:\n    json.dump(layer, f, indent=2)\nprint(\"[+] Layer saved: apt29_layer.json\")\n```\n\n### Step 3: Compare Multiple APT Groups\n\n```python\ngroups_to_compare = {\"G0016\": \"APT29\", \"G0007\": \"APT28\", \"G0032\": \"Lazarus Group\"}\ngroup_techniques = {}\n\nfor gid, gname in groups_to_compare.items():\n    techs = lift.get_techniques_used_by_group(gid)\n    tech_ids = set()\n    for t in techs:\n        for ref in t.get(\"external_references\", []):\n            if ref.get(\"source_name\") == \"mitre-attack\":\n                tech_ids.add(ref.get(\"external_id\", \"\"))\n    group_techniques[gname] = tech_ids\n\ncommon_to_all = set.intersection(*group_techniques.values())\nprint(f\"Techniques common to all groups: {len(common_to_all)}\")\nfor tid in sorted(common_to_all):\n    print(f\"  {tid}\")\n\nfor gname, techs in group_techniques.items():\n    others = set.union(*[t for n, t in group_techniques.items() if n != gname])\n    unique = techs - others\n    print(f\"\\nUnique to {gname}: {len(unique)} techniques\")\n```\n\n### Step 4: Detection Gap Analysis with Layer Overlay\n\n```python\n# Define your current detection capabilities\ndetected_techniques = {\n    \"T1059\", \"T1059.001\", \"T1071\", \"T1071.001\", \"T1566\", \"T1566.001\",\n    \"T1547\", \"T1547.001\", \"T1053\", \"T1053.005\", \"T1078\", \"T1027\",\n}\n\nactor_techniques = set(technique_map.keys())\ncovered = actor_techniques.intersection(detected_techniques)\ngaps = actor_techniques - detected_techniques\n\nprint(f\"=== Detection Gap Analysis for APT29 ===\")\nprint(f\"Actor techniques: {len(actor_techniques)}\")\nprint(f\"Detected: {len(covered)} ({len(covered)\u002Flen(actor_techniques)*100:.0f}%)\")\nprint(f\"Gaps: {len(gaps)} ({len(gaps)\u002Flen(actor_techniques)*100:.0f}%)\")\n\n# Create gap layer (red = undetected, green = detected)\ngap_techniques = []\nfor tech_id in actor_techniques:\n    info = technique_map.get(tech_id, {})\n    for tactic in info.get(\"tactics\", [\"\"]):\n        color = \"#66ff66\" if tech_id in detected_techniques else \"#ff3333\"\n        gap_techniques.append({\n            \"techniqueID\": tech_id,\n            \"tactic\": tactic,\n            \"color\": color,\n            \"comment\": f\"{'DETECTED' if tech_id in detected_techniques else 'GAP'}: {info.get('name', '')}\",\n            \"enabled\": True,\n            \"score\": 100 if tech_id in detected_techniques else 0,\n        })\n\ngap_layer = {\n    \"name\": \"APT29 Detection Gap Analysis\",\n    \"versions\": {\"attack\": \"16.1\", \"navigator\": \"5.1.0\", \"layer\": \"4.5\"},\n    \"domain\": \"enterprise-attack\",\n    \"description\": \"Green = detected, Red = gap\",\n    \"techniques\": gap_techniques,\n    \"gradient\": {\"colors\": [\"#ff3333\", \"#66ff66\"], \"minValue\": 0, \"maxValue\": 100},\n    \"legendItems\": [\n        {\"label\": \"Detected\", \"color\": \"#66ff66\"},\n        {\"label\": \"Detection Gap\", \"color\": \"#ff3333\"},\n    ],\n}\nwith open(\"apt29_gap_layer.json\", \"w\") as f:\n    json.dump(gap_layer, f, indent=2)\n```\n\n### Step 5: Tactic Breakdown Analysis\n\n```python\nfrom collections import defaultdict\n\ntactic_breakdown = defaultdict(list)\nfor tech_id, info in technique_map.items():\n    for tactic in info[\"tactics\"]:\n        tactic_breakdown[tactic].append({\"id\": tech_id, \"name\": info[\"name\"]})\n\ntactic_order = [\n    \"reconnaissance\", \"resource-development\", \"initial-access\",\n    \"execution\", \"persistence\", \"privilege-escalation\",\n    \"defense-evasion\", \"credential-access\", \"discovery\",\n    \"lateral-movement\", \"collection\", \"command-and-control\",\n    \"exfiltration\", \"impact\",\n]\n\nprint(\"\\n=== APT29 Tactic Breakdown ===\")\nfor tactic in tactic_order:\n    techs = tactic_breakdown.get(tactic, [])\n    if techs:\n        print(f\"\\n{tactic.upper()} ({len(techs)} techniques):\")\n        for t in techs:\n            print(f\"  {t['id']}: {t['name']}\")\n```\n\n## Validation Criteria\n\n- ATT&CK data queried successfully via TAXII server\n- APT group mapped to all documented techniques with procedure examples\n- Navigator layer JSON validates and renders correctly in ATT&CK Navigator\n- Multi-layer overlay shows threat actor vs. detection coverage\n- Detection gap analysis identifies unmonitored techniques with data source recommendations\n- Cross-group comparison reveals shared and unique TTPs\n- Output is actionable for detection engineering prioritization\n\n## References\n\n- [MITRE ATT&CK Navigator](https:\u002F\u002Fmitre-attack.github.io\u002Fattack-navigator\u002F)\n- [ATT&CK Groups](https:\u002F\u002Fattack.mitre.org\u002Fgroups\u002F)\n- [attackcti Python Library](https:\u002F\u002Fgithub.com\u002FOTRF\u002FATTACK-Python-Client)\n- [Navigator Layer Format v4.5](https:\u002F\u002Fgithub.com\u002Fmitre-attack\u002Fattack-navigator\u002Fblob\u002Fmaster\u002Flayers\u002FLAYERFORMATv4_5.md)\n- [CISA Best Practices for MITRE ATT&CK Mapping](https:\u002F\u002Fwww.cisa.gov\u002Fsites\u002Fdefault\u002Ffiles\u002F2023-01\u002FBest%20Practices%20for%20MITRE%20ATTCK%20Mapping.pdf)\n- [Picus: Leverage MITRE ATT&CK for Threat Intelligence](https:\u002F\u002Fwww.picussecurity.com\u002Fhow-to-leverage-the-mitre-attack-framework-for-threat-intelligence)\n","# Analyzing APT Group with MITRE ATT&CK Navigator\n\n## Overview\n\nMITRE ATT&CK Navigator is a web-based tool for annotating and exploring ATT&CK matrices, enabling analysts to visualize threat actor technique coverage, compare multiple APT groups, identify detection gaps, and build threat-informed defense strategies. This skill covers querying ATT&CK data programmatically, mapping APT group TTPs to Navigator layers, creating multi-layer overlays for gap analysis, and generating actionable intelligence reports for detection engineering teams.\n\n\n## When to Use\n\n- When investigating security incidents that require analyzing apt group with mitre navigator\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 `attackcti`, `mitreattack-python`, `stix2`, `requests` libraries\n- ATT&CK Navigator (https:\u002F\u002Fmitre-attack.github.io\u002Fattack-navigator\u002F) or local deployment\n- Understanding of ATT&CK Enterprise matrix: 14 Tactics, 200+ Techniques, Sub-techniques\n- Access to threat intelligence reports or MISP\u002FOpenCTI for threat actor data\n- Familiarity with STIX 2.1 Intrusion Set and Attack Pattern objects\n\n## Key Concepts\n\n### ATT&CK Navigator Layers\n\nNavigator layers are JSON files that annotate ATT&CK techniques with scores, colors, comments, and metadata. Each layer can represent a single APT group's technique usage, a detection capability map, or a combined overlay. Layer version 4.5 supports enterprise-attack, mobile-attack, and ics-attack domains with filtering by platform (Windows, Linux, macOS, Cloud, Azure AD, Office 365, SaaS).\n\n### APT Group Profiles in ATT&CK\n\nATT&CK catalogs over 140 threat groups with documented technique usage. Each group profile includes aliases, targeted sectors, associated campaigns, software used, and technique mappings with procedure-level detail. Groups are identified by G-codes (e.g., G0016 for APT29, G0007 for APT28, G0032 for Lazarus Group).\n\n### Multi-Layer Analysis\n\nThe Navigator supports loading multiple layers simultaneously, allowing analysts to overlay threat actor TTPs against detection coverage to identify gaps, compare multiple APT groups to find common techniques worth prioritizing, and track technique coverage changes over time.\n\n## Workflow\n\n### Step 1: Query ATT&CK Data for APT Group\n\n```python\nfrom attackcti import attack_client\nimport json\n\nlift = attack_client()\n\n# Get all threat groups\ngroups = lift.get_groups()\nprint(f\"Total ATT&CK groups: {len(groups)}\")\n\n# Find APT29 (Cozy Bear \u002F Midnight Blizzard)\napt29 = next((g for g in groups if g.get('name') == 'APT29'), None)\nif apt29:\n    print(f\"Group: {apt29['name']}\")\n    print(f\"Aliases: {apt29.get('aliases', [])}\")\n    print(f\"Description: {apt29.get('description', '')[:300]}\")\n\n# Get techniques used by APT29 (G0016)\ntechniques = lift.get_techniques_used_by_group(\"G0016\")\nprint(f\"APT29 uses {len(techniques)} techniques\")\n\ntechnique_map = {}\nfor tech in techniques:\n    tech_id = \"\"\n    for ref in tech.get(\"external_references\", []):\n        if ref.get(\"source_name\") == \"mitre-attack\":\n            tech_id = ref.get(\"external_id\", \"\")\n            break\n    if tech_id:\n        tactics = [p.get(\"phase_name\", \"\") for p in tech.get(\"kill_chain_phases\", [])]\n        technique_map[tech_id] = {\n            \"name\": tech.get(\"name\", \"\"),\n            \"tactics\": tactics,\n            \"description\": tech.get(\"description\", \"\")[:500],\n            \"platforms\": tech.get(\"x_mitre_platforms\", []),\n            \"data_sources\": tech.get(\"x_mitre_data_sources\", []),\n        }\n```\n\n### Step 2: Generate Navigator Layer JSON\n\n```python\ndef create_navigator_layer(group_name, technique_map, color=\"#ff6666\"):\n    techniques_list = []\n    for tech_id, info in technique_map.items():\n        for tactic in info[\"tactics\"]:\n            techniques_list.append({\n                \"techniqueID\": tech_id,\n                \"tactic\": tactic,\n                \"color\": color,\n                \"comment\": info[\"name\"],\n                \"enabled\": True,\n                \"score\": 100,\n                \"metadata\": [\n                    {\"name\": \"group\", \"value\": group_name},\n                    {\"name\": \"platforms\", \"value\": \", \".join(info[\"platforms\"])},\n                ],\n            })\n\n    layer = {\n        \"name\": f\"{group_name} TTP Coverage\",\n        \"versions\": {\"attack\": \"16.1\", \"navigator\": \"5.1.0\", \"layer\": \"4.5\"},\n        \"domain\": \"enterprise-attack\",\n        \"description\": f\"Techniques attributed to {group_name}\",\n        \"filters\": {\n            \"platforms\": [\"Linux\", \"macOS\", \"Windows\", \"Cloud\",\n                          \"Azure AD\", \"Office 365\", \"SaaS\", \"Google Workspace\"]\n        },\n        \"sorting\": 0,\n        \"layout\": {\n            \"layout\": \"side\", \"aggregateFunction\": \"average\",\n            \"showID\": True, \"showName\": True,\n            \"showAggregateScores\": False, \"countUnscored\": False,\n        },\n        \"hideDisabled\": False,\n        \"techniques\": techniques_list,\n        \"gradient\": {\"colors\": [\"#ffffff\", color], \"minValue\": 0, \"maxValue\": 100},\n        \"legendItems\": [\n            {\"label\": f\"Used by {group_name}\", \"color\": color},\n            {\"label\": \"Not observed\", \"color\": \"#ffffff\"},\n        ],\n        \"showTacticRowBackground\": True,\n        \"tacticRowBackground\": \"#dddddd\",\n        \"selectTechniquesAcrossTactics\": True,\n        \"selectSubtechniquesWithParent\": False,\n        \"selectVisibleTechniques\": False,\n    }\n    return layer\n\nlayer = create_navigator_layer(\"APT29\", technique_map)\nwith open(\"apt29_layer.json\", \"w\") as f:\n    json.dump(layer, f, indent=2)\nprint(\"[+] Layer saved: apt29_layer.json\")\n```\n\n### Step 3: Compare Multiple APT Groups\n\n```python\ngroups_to_compare = {\"G0016\": \"APT29\", \"G0007\": \"APT28\", \"G0032\": \"Lazarus Group\"}\ngroup_techniques = {}\n\nfor gid, gname in groups_to_compare.items():\n    techs = lift.get_techniques_used_by_group(gid)\n    tech_ids = set()\n    for t in techs:\n        for ref in t.get(\"external_references\", []):\n            if ref.get(\"source_name\") == \"mitre-attack\":\n                tech_ids.add(ref.get(\"external_id\", \"\"))\n    group_techniques[gname] = tech_ids\n\ncommon_to_all = set.intersection(*group_techniques.values())\nprint(f\"Techniques common to all groups: {len(common_to_all)}\")\nfor tid in sorted(common_to_all):\n    print(f\"  {tid}\")\n\nfor gname, techs in group_techniques.items():\n    others = set.union(*[t for n, t in group_techniques.items() if n != gname])\n    unique = techs - others\n    print(f\"\\nUnique to {gname}: {len(unique)} techniques\")\n```\n\n### Step 4: Detection Gap Analysis with Layer Overlay\n\n```python\n# Define your current detection capabilities\ndetected_techniques = {\n    \"T1059\", \"T1059.001\", \"T1071\", \"T1071.001\", \"T1566\", \"T1566.001\",\n    \"T1547\", \"T1547.001\", \"T1053\", \"T1053.005\", \"T1078\", \"T1027\",\n}\n\nactor_techniques = set(technique_map.keys())\ncovered = actor_techniques.intersection(detected_techniques)\ngaps = actor_techniques - detected_techniques\n\nprint(f\"=== Detection Gap Analysis for APT29 ===\")\nprint(f\"Actor techniques: {len(actor_techniques)}\")\nprint(f\"Detected: {len(covered)} ({len(covered)\u002Flen(actor_techniques)*100:.0f}%)\")\nprint(f\"Gaps: {len(gaps)} ({len(gaps)\u002Flen(actor_techniques)*100:.0f}%)\")\n\n# Create gap layer (red = undetected, green = detected)\ngap_techniques = []\nfor tech_id in actor_techniques:\n    info = technique_map.get(tech_id, {})\n    for tactic in info.get(\"tactics\", [\"\"]):\n        color = \"#66ff66\" if tech_id in detected_techniques else \"#ff3333\"\n        gap_techniques.append({\n            \"techniqueID\": tech_id,\n            \"tactic\": tactic,\n            \"color\": color,\n            \"comment\": f\"{'DETECTED' if tech_id in detected_techniques else 'GAP'}: {info.get('name', '')}\",\n            \"enabled\": True,\n            \"score\": 100 if tech_id in detected_techniques else 0,\n        })\n\ngap_layer = {\n    \"name\": \"APT29 Detection Gap Analysis\",\n    \"versions\": {\"attack\": \"16.1\", \"navigator\": \"5.1.0\", \"layer\": \"4.5\"},\n    \"domain\": \"enterprise-attack\",\n    \"description\": \"Green = detected, Red = gap\",\n    \"techniques\": gap_techniques,\n    \"gradient\": {\"colors\": [\"#ff3333\", \"#66ff66\"], \"minValue\": 0, \"maxValue\": 100},\n    \"legendItems\": [\n        {\"label\": \"Detected\", \"color\": \"#66ff66\"},\n        {\"label\": \"Detection Gap\", \"color\": \"#ff3333\"},\n    ],\n}\nwith open(\"apt29_gap_layer.json\", \"w\") as f:\n    json.dump(gap_layer, f, indent=2)\n```\n\n### Step 5: Tactic Breakdown Analysis\n\n```python\nfrom collections import defaultdict\n\ntactic_breakdown = defaultdict(list)\nfor tech_id, info in technique_map.items():\n    for tactic in info[\"tactics\"]:\n        tactic_breakdown[tactic].append({\"id\": tech_id, \"name\": info[\"name\"]})\n\ntactic_order = [\n    \"reconnaissance\", \"resource-development\", \"initial-access\",\n    \"execution\", \"persistence\", \"privilege-escalation\",\n    \"defense-evasion\", \"credential-access\", \"discovery\",\n    \"lateral-movement\", \"collection\", \"command-and-control\",\n    \"exfiltration\", \"impact\",\n]\n\nprint(\"\\n=== APT29 Tactic Breakdown ===\")\nfor tactic in tactic_order:\n    techs = tactic_breakdown.get(tactic, [])\n    if techs:\n        print(f\"\\n{tactic.upper()} ({len(techs)} techniques):\")\n        for t in techs:\n            print(f\"  {t['id']}: {t['name']}\")\n```\n\n## Validation Criteria\n\n- ATT&CK data queried successfully via TAXII server\n- APT group mapped to all documented techniques with procedure examples\n- Navigator layer JSON validates and renders correctly in ATT&CK Navigator\n- Multi-layer overlay shows threat actor vs. detection coverage\n- Detection gap analysis identifies unmonitored techniques with data source recommendations\n- Cross-group comparison reveals shared and unique TTPs\n- Output is actionable for detection engineering prioritization\n\n## References\n\n- [MITRE ATT&CK Navigator](https:\u002F\u002Fmitre-attack.github.io\u002Fattack-navigator\u002F)\n- [ATT&CK Groups](https:\u002F\u002Fattack.mitre.org\u002Fgroups\u002F)\n- [attackcti Python Library](https:\u002F\u002Fgithub.com\u002FOTRF\u002FATTACK-Python-Client)\n- [Navigator Layer Format v4.5](https:\u002F\u002Fgithub.com\u002Fmitre-attack\u002Fattack-navigator\u002Fblob\u002Fmaster\u002Flayers\u002FLAYERFORMATv4_5.md)\n- [CISA Best Practices for MITRE ATT&CK Mapping](https:\u002F\u002Fwww.cisa.gov\u002Fsites\u002Fdefault\u002Ffiles\u002F2023-01\u002FBest%20Practices%20for%20MITRE%20ATTCK%20Mapping.pdf)\n- [Picus: Leverage MITRE ATT&CK for Threat Intelligence](https:\u002F\u002Fwww.picussecurity.com\u002Fhow-to-leverage-the-mitre-attack-framework-for-threat-intelligence)\n",{"name":5,"tags":25,"author":34,"domain":35,"license":15,"version":36,"subdomain":33,"description":7},[26,27,28,29,30,31,32,33],"mitre-attack","navigator","apt","threat-actor","ttp-analysis","heatmap","detection-gap","threat-intelligence","mahipal","cybersecurity","1.0","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 analyzing-apt-group-with-mitre-navigator",{"tool":49,"command":50},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill analyzing-apt-group-with-mitre-navigator",{"tool":52,"command":53},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill analyzing-apt-group-with-mitre-navigator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fanalyzing-apt-group-with-mitre-navigator\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","参考文档",2573,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fanalyzing-apt-group-with-mitre-navigator\u002Freferences\u002Fapi-reference.md",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fagent.py","SCRIPT","脚本",9099,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fanalyzing-apt-group-with-mitre-navigator\u002Fscripts\u002Fagent.py",[74,83,90,97,104,111],{"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":82},"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",[],[],"2026-11-12 13:55:43",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":82},"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":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":82},"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":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":82},"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":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":82},"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":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":82},"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",[],[]]