[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADKMRP46BB3PY349AJRP5X":3,"skill-same:01M6ADKMRP46BB3PY349AJRP5X":108},{"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":23,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":67,"commitSha":68,"skillDirectory":69,"forksCount":70,"repositoryHtmlUrl":71,"repositoryHomepageUrl":72,"ownerHtmlUrl":73,"ownerBlogUrl":74,"ownerDescription":75,"updatedAt":76,"install":77,"resources":90},"01M6ADKMRP46BB3PY349AJRP5X","analyzing-apt-group-with-mitre-navigator",null,"Query ATT&CK data with attackcti, mitreattack-python, and stix2, then build MITRE ATT&CK Navigator layers and multi-layer heatmap overlays mapping one or more APT groups' TTPs for detection-gap analysis. Use to compare threat-actor technique coverage, find gaps in detection engineering, or produce Navigator visualizations for threat-intel reporting.","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-apt-group-with-mitre-navigator\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"analyzing apt group with mitre navigator","apt","reporting","threat-intelligence","detection-gap","ttp-analysis","threat-actor","navigator","mitre-attack","engineering","python","file","metadata","content","heatmap","produce","validation","cybersecurity","2026-11-10 10:12:30",false,"---\nname: analyzing-apt-group-with-mitre-navigator\ndescription: Query ATT&CK data with attackcti, mitreattack-python, and stix2, then build MITRE ATT&CK Navigator layers and multi-layer heatmap overlays mapping one or more APT groups' TTPs for detection-gap analysis. Use to compare threat-actor technique coverage, find gaps in detection engineering, or produce Navigator visualizations for threat-intel reporting.\ndomain: cybersecurity\nsubdomain: threat-intelligence\ntags:\n- mitre-attack\n- navigator\n- apt\n- threat-actor\n- ttp-analysis\n- heatmap\n- detection-gap\n- threat-intelligence\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- Executable Denylisting\n- Execution Isolation\n- File Metadata Consistency Validation\n- Content Format Conversion\n- File Content Analysis\nnist_csf:\n- ID.RA-01\n- ID.RA-05\n- DE.CM-01\n- DE.AE-02\nmitre_attack:\n- T1059.001\n- T1071.001\n- T1003.001\n- T1486\n- T1547.001\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":47,"author":48,"domain":41,"license":15,"version":49,"nist_csf":50,"subdomain":27,"description":7,"mitre_attack":55,"d3fend_techniques":61},[32,31,25,30,29,38,28,27],"mahipal","1.0",[51,52,53,54],"ID.RA-01","ID.RA-05","DE.CM-01","DE.AE-02",[56,57,58,59,60],"T1059.001","T1071.001","T1003.001","T1486","T1547.001",[62,63,64,65,66],"Executable Denylisting","Execution Isolation","File Metadata Consistency Validation","Content Format Conversion","File Content Analysis","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fanalyzing-apt-group-with-mitre-navigator",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":8,"skillName":5,"commands":78,"prompt":88,"zipAvailable":89},[79,82,85],{"tool":80,"command":81},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill analyzing-apt-group-with-mitre-navigator",{"tool":83,"command":84},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill analyzing-apt-group-with-mitre-navigator",{"tool":86,"command":87},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill analyzing-apt-group-with-mitre-navigator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-apt-group-with-mitre-navigator\u002FSKILL.md",true,[91,96,102],{"path":92,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":94,"sourceHtmlUrl":95},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-apt-group-with-mitre-navigator\u002FLICENSE",{"path":97,"resourceType":98,"resourceTypeDesc":99,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fapi-reference.md","REFERENCE","参考文档",2573,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-apt-group-with-mitre-navigator\u002Freferences\u002Fapi-reference.md",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fagent.py","SCRIPT","脚本",9099,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-apt-group-with-mitre-navigator\u002Fscripts\u002Fagent.py",[109,136,160,187,213,240],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":116,"publishedAt":42},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[115],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[117,118,119,120,121,41,122,123,124,125,126,127,128,129,130,131,132,133,134,135],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","security","incident response","identity","pr","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":143,"publishedAt":42},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[142],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[144,132,145,146,121,147,41,124,148,149,150,151,152,153,154,155,156,157,158,159],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":170,"publishedAt":42},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[166,169],{"categoryNo":167,"categoryName":168,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[154,171,172,173,174,41,175,40,148,176,177,178,179,180,181,182,183,184,185,186],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"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":194,"publishedAt":42},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[193],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[195,196,197,41,198,199,200,201,202,203,204,205,206,207,208,209,151,210,211,212],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":220,"publishedAt":42},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[219],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[221,222,223,41,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":241,"name":242,"nameZh":6,"description":243,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":244,"categories":245,"keywords":247,"publishedAt":42},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[246],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[121,248,41,249,35,250,251,252,253,254,255,182,256,183,257,258,259,260,261,262],"triaging security incident","siem","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]