Giter Club home page Giter Club logo

gcr-google-calendar-rat's Introduction

GCR
twitter

GCR - Google Calendar RAT

Google Calendar RAT is a PoC of Command&Control (C2) over Google Calendar Events, This tool has been developed for those circumstances where it is difficult to create an entire red teaming infrastructure. To use GRC, only a Gmail account is required. The script creates a 'Covert Channel' by exploiting the event descriptions in Google Calendar. The target will connect directly to Google." It could be considered as a layer 7 application Covert Channel (but some friends would say it cannot be :) very thanks to my mates "Tortellini" https://aptw.tf )

image

POC

poc

How it works

GCR attempt to connect to a valid shared Google Calendar link and after generating a unique ID check for any yet-to-be-executed commands. If it is not able to find any command, it creates a new one (fixed to "whoami") as a proof of connection. Every event is composed by two part:

  1. The Title, which contains the unique ID, it means you can schedule multiple commands creating events having the same unique ID as name

image

  1. The Description, which contains the command to execute and the base64 encoded output using the pipe symbol as separator "|"

image

Workflow Attack

Disegno senza titolo (2)

What a SOC analyst/Blue Teamer will see?

Focusing specifically on the network aspect, the only connections established will be to Google's servers, making the connection appear completely legitimate. Let's check with process hacker: image image

which results in this image image

How to use it

  • Setup a Google service account and obtain the credentials.json file, place the file in the same directory of the script
  • Create a new Google calendar and share it with the new created service account
  • Edit the script to point your calendar address
  • Once executed on the target machine an event with a unique target ID is automatically created autoexecuting the "whoami" command
  • Use the following syntax in the event description for the communication => CLEAR_COMMAND|BASE64_OUTPUT

    Examples:

    • "whoami|"
    • "net users|"
  • The date is fixed on May 30th, 2023. You can create unlimited events using the unique ID as the event name.

Disclaimer and notes

Google Calendar RAT has been made in Italy with ❤️

I prefer to consider this project as a game rather than an experiment :) Please do not use it for illegal purpose. I take no responsibility for the use that will be made of it

IT IS JUST A POC IN PYTHON, PLEASE DO NOT ASK ME HOW TO WEAPONIZE IT!

Related articles

Similar (External) Projects

gcr-google-calendar-rat's People

Contributors

mrsaighnal avatar

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.