https://github.com/mitre/builder
Caldera plugin to dynamically compile code segments from abilities
https://github.com/mitre/builder
caldera caldera-plugin
Last synced: 9 months ago
JSON representation
Caldera plugin to dynamically compile code segments from abilities
- Host: GitHub
- URL: https://github.com/mitre/builder
- Owner: mitre
- Created: 2020-04-15T14:49:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-11T16:01:34.000Z (over 1 year ago)
- Last Synced: 2025-04-01T14:22:11.978Z (10 months ago)
- Topics: caldera, caldera-plugin
- Language: Python
- Homepage: https://caldera.mitre.org/
- Size: 45.9 KB
- Stars: 3
- Watchers: 19
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MITRE Caldera Plugin: Builder
The Builder plugin enables Caldera to dynamically compile code segments into payloads that can be executed as abilities
by implants.
### Installation:
Install the required docker components with the following command:
```Bash
sudo ./install.sh
```
### Dependencies/Requirements:
1. Docker
2. docker-py
### Sample Ability
The following ability will compile the HelloWorld.exe executable, copy it to the machine running the agent, and execute
it using either cmd or PowerShell.
```yaml
---
- id: 096a4e60-e761-4c16-891a-3dc4eff02e74
name: C# Hello World
description: Dynamically compile HelloWorld.exe
tactic: execution
technique:
attack_id: T1059
name: Command-Line Interface
platforms:
windows:
psh,cmd:
build_target: HelloWorld.exe
language: csharp
code: |
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
```
DLL dependencies can be added by declaring a `payloads` list at the root of the ability.