Skip to content

Write a technique

A technique is a YAML file plus a registry entry. The technique model describes the format; this guide is the procedure for adding one.

Create src/kimera/config/techniques/<id>-<slug>.yaml. Declare the metadata, the MITRE mapping, the execution mode, the probes, and the evidence markers:

id: X1
name: Example technique
enabled: true
mitre:
technique_id: T0000
technique_name: "Example"
tactic: discovery
severity: medium
execution:
mode: exec
requires_target_pod: true
probes:
- type: command
run: |
echo "MARKER_FOUND"
evidence_markers:
- marker: "MARKER_FOUND"
evidence: "What the marker proves"
success_indicators:
- "MARKER_FOUND"
remediation: |
How to close the gap.

Use mode: api with an api_calls list for a technique that calls the Kubernetes API instead of running in a pod. Evidence markers match whole tokens, so REACHABLE does not match inside UNREACHABLE.

Add the entry to src/kimera/config/techniques/registry.yaml, naming the file, the phase, and the noise level the budget filter reads:

X1:
name: Example technique
file: X1-example.yaml
phase: discovery
noise: low

Call the MCP reload_techniques tool to pick up the new file without a restart. The registry re-reads every entry and reports the new count.

Run the technique, resolving its probe script first:

Terminal window
kimera -n target-namespace technique run X1 --pod <pod> --dry-run
kimera -n target-namespace technique run X1 --pod <pod>

--param KEY=VALUE supplies a {{ KEY }} placeholder. Values are substituted by plain text replacement, neither validated nor shell-quoted, so treat any value that reaches a probe as untrusted; see the safety model.

The catalog page is generated from the registry. Regenerate it so the docs match:

Terminal window
uv run python scripts/gen_technique_catalog.py

The test suite runs the generator with --check and fails on drift.

All product names and logos are trademarks of their respective owners, used for identification only. No endorsement is implied.