Skip to content

Commit

Permalink
Merge pull request #40 from mitre/magma
Browse files Browse the repository at this point in the history
Update to Vue
  • Loading branch information
elegantmoose authored Feb 13, 2024
2 parents ee8f3c9 + 16de4d9 commit 7215768
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Caldera plugin: Emu
# MITRE Caldera Plugin: Emu

A plugin supplying Caldera with TTPs from the Center for Threat Informed Defense (CTID) Adversary Emulation Plans.

Expand Down
48 changes: 48 additions & 0 deletions gui/views/emu.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<script setup>
import { inject, ref, onMounted, computed } from "vue";
import { storeToRefs } from "pinia";
import { useAbilityStore } from "@/stores/abilityStore.js";
import { useAdversaryStore } from "@/stores/adversaryStore.js";
const abilityStore = useAbilityStore();
const { abilities } = storeToRefs(abilityStore);
const adversaryStore = useAdversaryStore();
const { adversaries } = storeToRefs(adversaryStore);
const $api = inject("$api");
onMounted(async () => {
await abilityStore.getAbilities($api);
await adversaryStore.getAdversaries($api);
});
const emuAbilities = computed(() =>
abilities.value.filter((ability) => ability.plugin === "emu")
);
const emuAdversaries = computed(() =>
adversaries.value.filter((adversary) => adversary.plugin === "emu")
);
</script>

<template lang="pug">
.content
h2 Emu
p The collection of abilities from the CTID Adversary Emulation Plans
hr

.is-flex.is-align-items-center.is-justify-content-center
.card.is-flex.is-flex-direction-column.is-align-items-center.p-4.m-4
h1.is-size-1.mb-0 {{ emuAbilities.length || "---" }}
p abilities
router-link.button.is-primary.mt-4(to="/abilities?plugin=emu")
span View Abilities
span.icon
font-awesome-icon(icon="fas fa-angle-right")
.is-flex.is-align-items-center.is-justify-content-center
.card.is-flex.is-flex-direction-column.is-align-items-center.p-4.m-4
h1.is-size-1.mb-0 {{ emuAdversaries.length || "---" }}
p adversaries
router-link.button.is-primary.mt-4(to="/adversaries?plugin=emu")
span View Adversaries
span.icon
font-awesome-icon(icon="fas fa-angle-right")

</template>

0 comments on commit 7215768

Please sign in to comment.