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.
1. Write the definition
Section titled “1. Write the definition”Create src/kimera/config/techniques/<id>-<slug>.yaml. Declare the metadata, the MITRE mapping, the execution mode, the probes, and the evidence markers:
id: X1name: Example techniqueenabled: truemitre: technique_id: T0000 technique_name: "Example" tactic: discoveryseverity: mediumexecution: 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.
2. Register it
Section titled “2. Register it”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: low3. Load it
Section titled “3. Load it”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.
4. Test it
Section titled “4. Test it”Run the technique, resolving its probe script first:
kimera -n target-namespace technique run X1 --pod <pod> --dry-runkimera -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.
5. Regenerate the catalog
Section titled “5. Regenerate the catalog”The catalog page is generated from the registry. Regenerate it so the docs match:
uv run python scripts/gen_technique_catalog.pyThe 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.
