galyarderlabs/galyarder-framework / integrations/antigravity/mapping-mitre-attack-techniques
mapping-mitre-attack-techniques
VerifiedMaps observed adversary behaviors, security alerts, and detection rules to MITRE ATT&CK techniques and sub-techniques to quantify detection coverage and guide control prioritization. Use when building an ATT&CK-based coverage heatmap, tagging SIEM alerts with technique IDs, aligning security controls to adversary playbooks, or reporting threat exposure to executives. Activates for requests involving ATT&CK Navigator, Sigma rules, MITRE D3FEND, or coverage gap analysis.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.4 KB |
| references/api-reference.md | markdown | 2.7 KB |
| scripts/agent.py | script | 7.6 KB |
references/api-reference.md
View on GitHub# API Reference: Mapping MITRE ATT&CK Techniques
## mitreattack-python Library
| Method | Description |
|--------|-------------|
| `MitreAttackData(stix_filepath=path)` | Load ATT&CK STIX 2.0 data bundle from file |
| `get_techniques(remove_revoked_deprecated=False)` | Returns `list[AttackPattern]` STIX objects |
| `get_groups(remove_revoked_deprecated=False)` | Returns `list[IntrusionSet]` STIX objects |
| `get_techniques_used_by_group(group_stix_id)` | Returns `list[dict]` with `t["object"]` as AttackPattern |
| `get_attack_id(stix_id=id)` | Resolve STIX ID to ATT&CK ID (e.g., T1059) |
| `get_mitigations(remove_revoked_deprecated=False)` | Returns `list[CourseOfAction]` |
| `get_software(remove_revoked_deprecated=False)` | Returns `list[Malware or Tool]` |
## ATT&CK Navigator API (Layer Format)
| Field | Type | Description |
|-------|------|-------------|
| `techniques[].techniqueID` | string | ATT&CK technique ID (e.g., T1059) |
| `techniques[].score` | number | Coverage score (0=gap, 1=detected) |
| `techniques[].color` | string | Hex color for heatmap visualization |
| `domain` | string | ATT&CK domain: enterprise-attack, mobile-attack, ics-attack |
## MITRE ATT&CK TAXII Server
| Endpoint | Description |
|----------|-------------|
| `cti-taxii.mitre.org/stix/collections/` | List available STIX collections |
| `cti-taxii.mitre.org/stix/collections/{id}/objects/` | Download STIX objects |
## Sigma Rules (Detection Engineering)
| Field | Description |
|-------|-------------|
| `tags` | ATT&CK mapping (e.g., `attack.t1059.001`) |
| `logsource.product` | Target log source (windows, linux, aws) |
| `detection` | Search logic with conditions |
## Key Libraries
- **mitreattack-python** (`pip install mitreattack-python`): Official MITRE ATT&CK Python library
- **stix2**: Parse and create STIX 2.1 objects
- **taxii2-client**: Download ATT&CK data from TAXII server
- **pySigma**: Parse and convert Sigma detection rules
## Configuration
| Variable | Description |
|----------|-------------|
| `ATTACK_STIX_PATH` | Path to local enterprise-attack.json STIX bundle |
| `NAVIGATOR_URL` | ATT&CK Navigator instance URL |
## Data Sources
| Source | URL | Description |
|--------|-----|-------------|
| ATT&CK STIX | `github.com/mitre/cti` | Official STIX bundles |
| ATT&CK Navigator | `github.com/mitre-attack/attack-navigator` | Layer visualization tool |
| Sigma Rules | `github.com/SigmaHQ/sigma` | Community detection rules |
## References
- [MITRE ATT&CK](https://attack.mitre.org/)
- [mitreattack-python Docs](https://mitreattack-python.readthedocs.io/)
- [ATT&CK Navigator](https://mitre-attack.github.io/attack-navigator/)
- [D3FEND](https://d3fend.mitre.org/)
---
2026 Galyarder Labs. Galyarder Framework.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |