
Analyzing Threat Actor Ttps With Mitre Navigator
- 229 installs
- 27.3k repo stars
- Updated August 2, 2026
- mukul975/anthropic-cybersecurity-skills
Map and analyze adversary tactics, techniques, and procedures using MITRE ATT&CK Navigator during security review before or after ship.
About
Analyzing Threat Actor TTPs with MITRE Navigator is an agent skill aimed at solo builders and small teams who must translate vague security worry into an ATT&CK-grounded picture of what adversaries actually do. Instead of generic checklists, it steers the agent through technique mapping and Navigator-friendly outputs so you can see gaps in detection, hardening, and response before customers or auditors ask harder questions. Use it when you are preparing a ship gate, responding to an incident hypothesis, or documenting why certain controls matter. Pair it with your own telemetry and threat intel—the skill structures analysis; it does not replace formal pen tests or SOC operations.
- Structured threat-actor TTP analysis aligned to MITRE ATT&CK
- Navigator-oriented workflow for visualizing technique coverage
- Fits Anthropic cybersecurity skills collection for agent-assisted assessments
- Supports communicating findings to technical and leadership audiences
- Apache-licensed skill package suitable for fork and audit
Analyzing Threat Actor Ttps With Mitre Navigator by the numbers
- 229 all-time installs (skills.sh)
- +8 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #721 of 2,203 Security skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill analyzing-threat-actor-ttps-with-mitre-navigatorAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 229 |
|---|---|
| repo stars | ★ 27.3k |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 2, 2026 |
| Repository | mukul975/anthropic-cybersecurity-skills ↗ |
What it does
Map and analyze adversary tactics, techniques, and procedures using MITRE ATT&CK Navigator during security review before or after ship.
Files
Analyzing Threat Actor TTPs with MITRE Navigator
Overview
The MITRE ATT&CK Navigator is a web application for annotating and visualizing ATT&CK matrices. Combined with the attackcti Python library (which queries ATT&CK STIX data via TAXII), analysts can programmatically generate Navigator layer files mapping specific threat group TTPs, compare multiple groups, and assess detection coverage gaps against known adversaries.
When to Use
- When investigating security incidents that require analyzing threat actor ttps with mitre navigator
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Python 3.8+ with attackcti and stix2 libraries installed
- MITRE ATT&CK Navigator (web UI or local instance)
- Understanding of STIX 2.1 objects and relationships
Steps
1. Query ATT&CK STIX data for target threat group using attackcti 2. Extract techniques associated with the group via STIX relationships 3. Generate ATT&CK Navigator layer JSON with technique annotations 4. Overlay detection coverage to identify gaps 5. Export layer for team review and defensive planning
Expected Output
{
"name": "APT29 TTPs",
"domain": "enterprise-attack",
"techniques": [
{"techniqueID": "T1566.001", "score": 1, "comment": "Spearphishing Attachment"},
{"techniqueID": "T1059.001", "score": 1, "comment": "PowerShell"}
]
}
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to the Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by the Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding any notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. Please do not remove or change
the license header comment from a contributed file except when
necessary.
Copyright 2026 mukul975
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Analyzing Threat Actor TTPs with MITRE Navigator — API Reference
attackcti Python Library
| Method | Description |
|---|---|
attack_client() | Initialize STIX/TAXII client for ATT&CK data |
client.get_groups() | Retrieve all threat groups from ATT&CK |
client.get_techniques() | Retrieve all techniques from ATT&CK |
client.get_techniques_used_by_group(group) | Get techniques linked to a specific group |
client.get_software() | Retrieve all software/tools from ATT&CK |
client.get_software_used_by_group(group) | Get software used by a specific group |
client.get_mitigations() | Retrieve all mitigations from ATT&CK |
client.get_data_sources() | Retrieve all data sources from ATT&CK |
STIX 2.1 Group Object Fields
| Field | Description |
|---|---|
id | STIX object ID (e.g., intrusion-set--abc123) |
name | Group name (e.g., APT29) |
aliases | Alternative names for the group |
description | Group description and background |
external_references | List of references including ATT&CK ID |
created | Object creation timestamp |
modified | Last modification timestamp |
STIX 2.1 Technique Object Fields
| Field | Description |
|---|---|
name | Technique name (e.g., Spearphishing Attachment) |
external_references[].external_id | ATT&CK technique ID (e.g., T1566.001) |
x_mitre_platforms | Target platforms (Windows, Linux, macOS) |
kill_chain_phases | Associated tactics in the kill chain |
x_mitre_detection | Detection guidance for the technique |
x_mitre_is_subtechnique | Whether this is a sub-technique |
ATT&CK Navigator Layer JSON Schema
| Field | Type | Description |
|---|---|---|
name | string | Layer display name |
versions.attack | string | ATT&CK version (e.g., "15") |
versions.navigator | string | Navigator version (e.g., "5.0") |
versions.layer | string | Layer format version (e.g., "4.5") |
domain | string | enterprise-attack, mobile-attack, or ics-attack |
techniques[].techniqueID | string | ATT&CK technique ID |
techniques[].score | integer | Numeric score for coloring (0-100) |
techniques[].color | string | Hex color override (e.g., #ff6666) |
techniques[].comment | string | Annotation text for the technique |
techniques[].enabled | boolean | Whether technique cell is enabled |
gradient.colors | array | Color gradient from min to max score |
gradient.minValue | integer | Minimum score value |
gradient.maxValue | integer | Maximum score value |
filters.platforms | array | Platforms to display in the matrix |
legendItems[].label | string | Legend entry label |
legendItems[].color | string | Legend entry color |
CLI Usage
# List all ATT&CK threat groups
python agent.py --list-groups
# Analyze a specific group
python agent.py --group "APT29"
# Generate Navigator layer file
python agent.py --group "APT29" --layer-output apt29_layer.json
# Compare multiple groups
python agent.py --compare "APT29" "APT28" "Lazarus Group"
# Save full report as JSON
python agent.py --group "APT29" --layer-output apt29.json --output report.jsonExternal References
#!/usr/bin/env python3
"""MITRE ATT&CK Navigator layer generation and threat actor TTP mapping agent."""
import json
import sys
import argparse
from datetime import datetime
try:
from attackcti import attack_client
except ImportError:
print("Install: pip install attackcti")
sys.exit(1)
def get_attack_client():
"""Initialize ATT&CK STIX/TAXII client."""
return attack_client()
def list_threat_groups(client):
"""List all threat groups in ATT&CK."""
groups = client.get_groups()
results = []
for g in groups:
aliases = g.get("aliases", [])
results.append({
"name": g.get("name", ""),
"id": g.get("external_references", [{}])[0].get("external_id", "")
if g.get("external_references") else "",
"aliases": aliases,
"description": g.get("description", "")[:200],
})
return sorted(results, key=lambda x: x["name"])
def get_group_techniques(client, group_name):
"""Get all techniques used by a specific threat group."""
groups = client.get_groups()
target_group = None
for g in groups:
if g.get("name", "").lower() == group_name.lower():
target_group = g
break
aliases = [a.lower() for a in g.get("aliases", [])]
if group_name.lower() in aliases:
target_group = g
break
if not target_group:
return {"error": f"Group '{group_name}' not found"}
group_stix_id = target_group["id"]
techniques = client.get_techniques_used_by_group(target_group)
results = []
for tech in techniques:
ext_refs = tech.get("external_references", [])
tech_id = ""
url = ""
for ref in ext_refs:
if ref.get("source_name") == "mitre-attack":
tech_id = ref.get("external_id", "")
url = ref.get("url", "")
break
results.append({
"technique_id": tech_id,
"name": tech.get("name", ""),
"description": tech.get("description", "")[:150],
"url": url,
"platforms": tech.get("x_mitre_platforms", []),
})
return {
"group_name": target_group.get("name", ""),
"group_id": target_group.get("external_references", [{}])[0].get("external_id", ""),
"technique_count": len(results),
"techniques": results,
}
def generate_navigator_layer(group_data, color="#ff6666"):
"""Generate ATT&CK Navigator layer JSON from group technique data."""
techniques = []
for tech in group_data.get("techniques", []):
tid = tech.get("technique_id", "")
if not tid:
continue
techniques.append({
"techniqueID": tid,
"score": 1,
"color": color,
"comment": tech.get("name", ""),
"enabled": True,
})
layer = {
"name": f"{group_data.get('group_name', 'Unknown')} TTPs",
"versions": {
"attack": "15",
"navigator": "5.0",
"layer": "4.5",
},
"domain": "enterprise-attack",
"description": f"Techniques used by {group_data.get('group_name', '')} "
f"({group_data.get('group_id', '')})",
"filters": {"platforms": ["Windows", "Linux", "macOS", "Cloud"]},
"sorting": 0,
"layout": {"layout": "side", "showID": True, "showName": True},
"hideDisabled": False,
"techniques": techniques,
"gradient": {
"colors": ["#ffffff", color],
"minValue": 0,
"maxValue": 1,
},
"legendItems": [
{"label": f"{group_data.get('group_name', '')} techniques", "color": color},
],
"metadata": [],
"showTacticRowBackground": True,
"tacticRowBackground": "#dddddd",
}
return layer
def compare_groups(client, group_names):
"""Compare techniques across multiple threat groups."""
all_techniques = {}
group_techs = {}
for name in group_names:
data = get_group_techniques(client, name)
if "error" in data:
continue
techs = {t["technique_id"] for t in data.get("techniques", [])}
group_techs[data.get("group_name", name)] = techs
for t in data.get("techniques", []):
all_techniques[t["technique_id"]] = t["name"]
shared = set.intersection(*group_techs.values()) if group_techs else set()
unique_per_group = {}
for name, techs in group_techs.items():
unique_per_group[name] = techs - set.union(*(v for k, v in group_techs.items() if k != name))
return {
"groups_compared": list(group_techs.keys()),
"total_unique_techniques": len(set.union(*group_techs.values())) if group_techs else 0,
"shared_techniques": [{"id": t, "name": all_techniques.get(t, "")} for t in shared],
"shared_count": len(shared),
"unique_per_group": {k: len(v) for k, v in unique_per_group.items()},
}
def run_audit(args):
"""Execute threat actor TTP mapping audit."""
print(f"\n{'='*60}")
print(f" MITRE ATT&CK THREAT ACTOR TTP ANALYSIS")
print(f" Generated: {datetime.utcnow().isoformat()} UTC")
print(f"{'='*60}\n")
client = get_attack_client()
report = {}
if args.list_groups:
groups = list_threat_groups(client)
report["groups"] = groups
print(f"--- THREAT GROUPS ({len(groups)}) ---")
for g in groups[:30]:
print(f" {g['id']}: {g['name']}")
if args.group:
data = get_group_techniques(client, args.group)
report["group_techniques"] = data
print(f"--- {data.get('group_name','')} ({data.get('group_id','')}) ---")
print(f" Techniques: {data.get('technique_count', 0)}")
for t in data.get("techniques", [])[:20]:
print(f" {t['technique_id']}: {t['name']}")
if args.layer_output:
layer = generate_navigator_layer(data)
with open(args.layer_output, "w") as f:
json.dump(layer, f, indent=2)
report["layer_file"] = args.layer_output
print(f"\n Navigator layer saved to {args.layer_output}")
if args.compare:
comparison = compare_groups(client, args.compare)
report["comparison"] = comparison
print(f"\n--- GROUP COMPARISON ---")
print(f" Groups: {comparison['groups_compared']}")
print(f" Total unique techniques: {comparison['total_unique_techniques']}")
print(f" Shared: {comparison['shared_count']}")
for t in comparison["shared_techniques"][:10]:
print(f" {t['id']}: {t['name']}")
return report
def main():
parser = argparse.ArgumentParser(description="MITRE ATT&CK TTP Mapping Agent")
parser.add_argument("--group", help="Threat group name to analyze (e.g., APT29)")
parser.add_argument("--list-groups", action="store_true", help="List all ATT&CK groups")
parser.add_argument("--compare", nargs="+", help="Compare multiple groups")
parser.add_argument("--layer-output", help="Save Navigator layer JSON to file")
parser.add_argument("--output", help="Save report to JSON file")
args = parser.parse_args()
report = run_audit(args)
if args.output:
with open(args.output, "w") as f:
json.dump(report, f, indent=2, default=str)
print(f"\n[+] Report saved to {args.output}")
if __name__ == "__main__":
main()
Related skills
FAQ
Is Analyzing Threat Actor Ttps With Mitre Navigator safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.