Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to execute multiple abilities (using the powershell executor) with one spawned powershell.exe? #2929

Open
jgwak1 opened this issue Mar 24, 2024 · 3 comments

Comments

@jgwak1
Copy link

jgwak1 commented Mar 24, 2024

Hi,

When I execute the adversary profile with all abilities using PowerShell as the executor, the "splunkd.exe" process on the target machine first spawns two processes: a conhost.exe and a powershell.exe. This powershell.exe executes the "Indicator Removal on Host: Clear Command History" ability consistently.

After this, multiple powershell.exe processes are spawned, each corresponding to an ability from the adversary profile. Is there a way to run all the abilities sequentially with one spawned powershell.exe process, assuming successful execution on the target machine? Alternatively, should I consider creating a custom ability that integrates all the necessary commands and payloads of these individual abilities?

Thank you

Copy link

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/

@Guil33
Copy link

Guil33 commented Mar 25, 2024

I don't think what you're asking is possible, since that's how the code seems to do things. You should probably check this if you want to delve deeper.

Thus, if using the same powershell process is important to you, having a single ability should be the simpler solution, compared to changing the agent's code.

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants