mitre / caldera

Automated Adversary Emulation Platform
https://caldera.mitre.org
Apache License 2.0
5.34k stars 1.03k forks source link

Can not create new adversaries and import APT29 adversary #2733

Closed dino-chiio closed 1 year ago

dino-chiio commented 1 year ago

I have just installed CALDERA version 4.1.0 using Docker environment. I followed this repo and config caldera to import APT29 adversary. I am struggling with some obstacles, please help me overcome these. Thanks so muck!

Figure 3 image *Figure 4 image Figure 5 image

Figure 6 image

github-actions[bot] commented 1 year ago

Looks like your first issue -- we aim to respond to issues as quickly as possible. In the meantime, check out our documentation here: http://caldera.readthedocs.io/

L015H4CK commented 1 year ago

Hi, unfortunately I cannot help you with this problem. For me, importing the APT29 adversary worked using a non-docker environment. Since I have no experience using CALDERA with docker I cannot tell if the error comes from docker or not. Actually, you should not have to import the APT29 adversary profiles manually but they should be loaded automatically to CALDERAs adversary profiles as long as they are in the plugin's respective data/adversaries directory and the plugin is enabled in the config/default.yml.

But, I have some information regarding the attack-arsenal/adversary-emulation-library and APT29 that might be interesting for you as well.

The attack-arsenal repo that you linked was moved to the adversary emulation library. You can find a note in the attack-arsenal repo as well (This content has been ported to https://github.com/center-for-threat-informed-defense/adversary_emulation_library as of January 2021. This format was preserved in [/Archive](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/apt29/Archive). - see here). The content of the original repo was moved here.

Another but: If you then intent to use the new adversary emulation library with the emu-plugin instead of the old evals-plugin, you will probably find that the generated APT29 adversary profile is faulty. More information on that can be seen in my pull request. Using the APT29 adversary emulation plan I also did not get the operation to work as expected - but I am still investigating this and it should not be a problem for you right now since you have other problems to fix first as it seems.

dino-chiio commented 1 year ago

Hi, unfortunately I cannot help you with this problem. For me, importing the APT29 adversary worked using a non-docker environment. Since I have no experience using CALDERA with docker I cannot tell if the error comes from docker or not. Actually, you should not have to import the APT29 adversary profiles manually but they should be loaded automatically to CALDERAs adversary profiles as long as they are in the plugin's respective data/adversaries directory and the plugin is enabled in the config/default.yml.

But, I have some information regarding the attack-arsenal/adversary-emulation-library and APT29 that might be interesting for you as well.

The attack-arsenal repo that you linked was moved to the adversary emulation library. You can find a note in the attack-arsenal repo as well (This content has been ported to https://github.com/center-for-threat-informed-defense/adversary_emulation_library as of January 2021. This format was preserved in [/Archive](https://github.com/center-for-threat-informed-defense/adversary_emulation_library/tree/master/apt29/Archive). - see here). The content of the original repo was moved here.

Another but: If you then intent to use the new adversary emulation library with the emu-plugin instead of the old evals-plugin, you will probably find that the generated APT29 adversary profile is faulty. More information on that can be seen in my pull request. Using the APT29 adversary emulation plan I also did not get the operation to work as expected - but I am still investigating this and it should not be a problem for you right now since you have other problems to fix first as it seems.

Hello. I tried to run CALDERA with non-docker option and configured the evals plugin but It still did not import adversary profiles automatically. I also tried your modification of emulation plan by importing .yaml file. It threw an error as the Fig.3.

L015H4CK commented 1 year ago

When using the new emulation plans you no longer need the evals plugin - instead you enable the emu plugin. It automatically generates adversary profiles, abilities, etc from the given YAML adversary emulation plan and puts them into plugins/emu/data/adversaries, plugins/emu/data/abilities, etc.

Some questions that might help finding the problem here:

dino-chiio commented 1 year ago

Thank you so much! I have just run successfully with emu plugin!