Caldera: automation, reports and reconciling with your logs
Unit 5 of 5 in Adversary emulation and purple teaming.
You will be able to explain Caldera's building blocks, run a scoped operation of benign abilities on a VM you own, match every step to your audit log, and use Caldera on the defensive side.
Lesson
The parts of Caldera
Caldera's terminology page defines the pieces. Agents are programs that connect back to the Caldera server at intervals to get instructions; each has a unique identifier called a paw. Agents belong to groups, and the group decides whether an agent is a red agent or a blue agent: agents in the blue group are visible from the blue dashboard and all others from the red dashboard.
An ability is a specific ATT&CK tactic or technique implementation that can be executed on running agents, including the commands, the platforms it runs on, any payloads and a reference to a module to parse the output. An adversary profile is a group of abilities representing the techniques available to a threat actor. An operation runs the profile's abilities on a group of agents, in the order set by a planner: for example the atomic planner follows the profile's ordering, the batch planner runs everything at once, and the buckets planner groups abilities by ATT&CK tactic.
Scope an operation like a test
An operation is a test with real effect, so it needs the same scope as any other: the machines are the agent group, the abilities are the profile, and the profile should be only what your rules of engagement allow. The first Caldera lab runs a small Discovery-only chain of benign abilities on a target VM you own. The profile lab builds a profile from three read-only abilities you have already seen in the earlier units, so you know what each should look like in your logs.
Caldera's home page says it can run autonomous exercises, manual red-team engagements or automated incident response. For this class the point of the autonomy is repeatability: the same profile can be run again after you tune a rule, which turns a one-off test into a regression check.
The report is not the truth: your log is
An operation produces a report of what Caldera did. The report-to-log lab teaches a habit worth keeping: do not trust the report alone. Export it, look at its shape, list every step with time, technique and name, decode the commands, and match each step to an event in your own audit log. Steps with no matching event are your sensor's misses, and each needs a reason and a fix. The lab also reminds you that the agent does things when it first checks in that show up in your logs but are not abilities in the profile.
That is the purple method in miniature: the red side states what happened, the blue side states what was seen, and the difference is the work. ATT&CK's description of technique pages such as System Information Discovery (T1082) gives the common vocabulary to write both sides in.
Planners change what the log looks like
Because planners decide order and timing, the same profile looks different in the audit log under different planners. The profile lab runs it with the atomic planner and then the batch planner, compares step timing in the reports and in the audit events, and writes one narrow rule per ability that it validates on a second run. A rule that only works when steps arrive slowly and in order is a fragile rule.
The blue side of Caldera
Caldera is not only for red teams. The terminology page describes blue agents and a blue dashboard, and the home page says it can run automated incident response. The third lab deploys a blue agent, chooses a defender profile and a source of facts, adds an unauthorized-port fact, starts a harmless local service on that port and runs the incident-responder operation. You then read what the defender's own commands did, find them in your audit log, and write down what the operation did and did not do. Automation on the defender's side is also an actor on the machine, and it too must appear in the log.
Key points
- Agents, abilities, adversary profiles, operations and planners are Caldera's pieces; the agent group sets red or blue.
- Scope an operation like any test: your machines, only the abilities your rules allow.
- Reconcile the report with your own audit log; unmatched steps are sensor gaps.
- Planners change timing and order; rules must hold under both. Defender-side automation also leaves a trace.
Sources
- MITRE Caldera documentation: home page
- MITRE Caldera documentation: Learning the terminology
- MITRE ATT&CK: Adversary Emulation Plans
- MITRE ATT&CK: System Information Discovery (T1082)
Lecture
The offensive toolkit and what each tool is for: A map of the standard offensive toolkit, what each tool is for and what a defender can expect to see when it runs.
Practice in the labs
Install and run Caldera on your own lab, then reconcile, compare planners and use it on the blue side. Everything runs on VMs you own.
- Authorized adversary emulation with MITRE Caldera: You install Caldera on your lab server, deploy an agent to a VM you own and run a small benign Discovery chain, reading the operation report.
- Map every step of a Caldera operation to your audit log (Purple Caldera 1 of 3): You export the report, decode each step's command, match each step to an audit event and list what your sensor missed.
- Build a three-ability Caldera profile and compare planners in your audit log (Purple Caldera 2 of 3): You build a profile from three read-only abilities, run it with two planners, compare timing in the report and the log and make it a repeatable regression check.
- Run Caldera as a defender against a harmless service on your own VM (Purple Caldera 3 of 3): You deploy a blue agent, run the incident-responder operation against a harmless local service and find the defender's own commands in your audit log.
Knowledge check
- In Caldera, what decides whether an agent is a red agent or a blue agent? Answer: The group it belongs to; agents in the blue group are on the blue dashboard. The terminology page says the group determines red or blue and that blue agents appear on the blue dashboard.
- What does a planner do in a Caldera operation? Answer: It decides the order in which abilities from the adversary profile are run. Examples are atomic, batch and buckets, which differ in ordering and timing.
- A step in the operation report has no matching event in your audit log. What does that mean? Answer: A gap in your sensor coverage that needs a reason and a fix. The report states what the red side did; the log states what the blue side saw; the difference is the work to do.
- Why compare the same profile under two planners? Answer: Rules that only work when steps arrive slowly and in order are fragile; two timings test that. The planner affects timing and order, which changes how the events look in the audit log.
Back to the syllabus or see all classes.
Related
- Adversary emulation and purple teaming
- Authorized adversary emulation with MITRE Caldera
- Map every step of a Caldera operation to your audit log (Purple Caldera 1 of 3)
- Build a three-ability Caldera profile and compare planners in your audit log (Purple Caldera 2 of 3)
- Run Caldera as a defender against a harmless service on your own VM (Purple Caldera 3 of 3)
- All classes
- Free cyber labs