Giter VIP home page Giter VIP logo

pac2-dev's Introduction

PAC2: PowerAutomateC2

logo

Power Automate C2 (PAC2) is a stealth living-Off-the-cloud C2 framework.

Overview

Attack Scenario

overview

  1. Initial Infection
    • Any impersonation and Session hijack methods
      • e.g., Steal PRT and access to a PowerAutomate page as a victim user
  2. Register the Initial Payload
    • Establish C2 connection between PowerAutomate and our C2 server
      • Import a primary payload as a zip file generated by our tool
  3. Execute Secondary Payload
    • Attackers generate arbitrary payloads by our tool and put them to the C2 server
    • PowerAutomate downloads the secondary payloads from the C2 server via HTTPS(S)
    • PowerAutomate uploads output executed by the secondary payloads
    • Attackers maintain the secondary payloads in the C2 server anytime, and continue their stealth activities

The main flow between the attacker and PowerAutomate is the following.

pac2 execution flow

Features

  • Living off the cloud (client-free execution)
    • No use of PowerAutomate Desktop Flow
    • No traces in the victim user's endpoint or network devices in the target corporate environments
  • Stealth
    • Traces, including the flow itself, are deleted by the payload itself
  • Persistence
    • The C2 connections continues even after victim users change their passwords
  • Bypass security measures
    • Not detected by Anti-Virus and EDR
    • Not blocked by network filtering rules specified in network/proxy solutions
  • Flow generation via CUI
    • Attackers can generate PowerAutomate flow by using CUI instead of troublesome low-code GUI
  • PAC2 control panel
    • PAC2 control panel provides an easy access to exfiltrated data such as Teams messages and SharePoint files pac2 portal
  • Supports bitwise operations in PowerAutomate such as XOR
    • The operations enables the encryption of payloads and outputs

Demo

PowerAutomateC2_Demo.mp4

pac2-dev's People

Contributors

t-tani avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

opensesamedoors

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.