# CrystalC2

## CrystalC2

A command and control framework, mostly to keep myself occupied and out of trouble...

### Highlights

CrystalC2's post-exploitation agent is built from modular position-independent code (PIC) parts, weaved together using [Crystal Palace](https://tradecraftgarden.org/).  The purpose of the project is to explore the left and right bounds of CPL's [Aspect-Oriented Programming](https://aff-wg.org/2025/11/10/tradecraft-engineering-with-aspect-oriented-programming/) (AOP) and [bin2bin](https://aff-wg.org/2026/01/13/keeping-bin2bin-out-of-the-bin/) paradigms when applied to various aspects of a C2 agent.

Challenge areas that come to mind include:

* load-time evasion:  loading PIC into a process and bootstrapping its execution.
* runtime evasion:  minimising the indicators of PIC running in memory.
* post-exploitation evasion:  running 3rd party code/tools.

### Outcomes

The long-term goal is to provide users with the flexibility to apply any evasion tradecraft strategies they wish to the Beacon agent and its loader.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rasta-mouse.gitbook.io/crystalc2/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
