Skip to content

Technique model

A technique is a YAML file under src/kimera/config/techniques/, listed in registry.yaml. The registry maps each technique ID to its file, phase, and noise level; the file holds the definition the engine runs. The technique catalog renders every registered technique and its ATT&CK mapping.

registry.yaml carries one block per technique:

C1:
name: SA token theft from volume
file: C1-sa-token-theft.yaml
phase: credential-access
noise: medium

phase groups the technique into an ATT&CK tactic. noise is the detectability level — very-low, low, medium or high — that the MCP noise_budget filter reads. A registry entry whose file is missing is skipped at load, so the entry and the file must agree.

The technique file declares its metadata, its MITRE mapping, and how it runs:

id: C1
name: SA token theft from volume
enabled: true
mitre:
technique_id: T1552.007
technique_name: "Unsecured Credentials: Container API"
tactic: credential-access
severity: high
execution:
mode: exec
requires_target_pod: true
probes:
- type: command
run: |
...
evidence_markers:
- marker: "TOKEN_FOUND"
evidence: "SA token readable from pod volume"
impact: "Attacker can authenticate as this ServiceAccount"
success_indicators:
- "TOKEN_FOUND"
remediation: |
Set automountServiceAccountToken: false on pods that do not need API access.

Setting enabled: false removes a technique from the registry listing and from execution. mitre.technique_id is the string rendered, unaltered, into the catalog’s ATT&CK links.

execution.mode is one of:

  • exec — run a probe script inside a target pod. The technique needs requires_target_pod: true and a pod name supplied at call time.
  • api — issue the Kubernetes API calls listed under execution.api_calls. No pod is needed.

Any other mode value produces an “Unknown execution mode” result rather than an action.

An exec technique lists one or more probes under execution.probes. Each probe has a type that selects a builder in the probe runner, which assembles a single POSIX shell script with a shared helper prelude. The probe types are command, path_exists, writable, socket_check, file_content, count_check, capability_check, port_open, dns_resolve, and app_request. command takes a raw run script; the others take structured fields such as path, host, port or vulnerable_values.

Before a probe runs, {{ name }} placeholders in its string fields are replaced with the technique’s runtime parameters, plus {{ namespace }}. The substitution is a plain text replacement: parameter values are inserted as given, neither validated nor shell-quoted.

After the script runs, each entry in evidence_markers is matched against the probe output. A match appends the entry’s evidence string to the result and, if present, its impact. A marker matches only as a whole token, so REACHABLE does not match inside UNREACHABLE. A technique succeeds when any string in success_indicators matches the output the same way.

Adding a technique does not need a server restart. Drop the YAML file into src/kimera/config/techniques/, add its entry to registry.yaml, then call the MCP reload_techniques tool. The registry re-reads every entry and reports how many techniques it now holds. See write a technique for the full procedure.

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