+
Skip to content
/ ics-c2 Public

Python3 implementation of Calendar files .ICS command and execution via hidden payloads in PUAs.

License

Notifications You must be signed in to change notification settings

cylaris/ics-c2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cylaris ICS-C2

This is a small implementation of a recent technique that has been uncovered by security researchers. Threat actors were using PUAs to hide the payloads in Google Calendar files to have the payload obfuscated and to bypass the traditional security mechanisms.

Research: https://www.aikido.dev/blog/youre-invited-delivering-malware-via-google-calendar-invites-and-puas

ICS-GEN

This is a small tool to generate an ICS file. The tool requires a number of details. This was to understand how ICS implementation can be done using python.

ICS-Exec

This is the implementation where we are required to provide the URL of the hosted .ics file (Calendar File). The tool will be able to decode the encoded PUAs and then will executed the command.

In this implementation the tool will be fist decoding the commands and then will be requesting whether to have the command executed. In real life scenarios, threat actors can have the payload executed in the memory. Execute the commands and then encode the results in the PUAs and have it exfiltrated using the .ICS files as well.

PUA-GEN

This is the implemtation of PUAs to encode and decode PUAs payload. That will eventually become part of .ics file.

PUA Encoder/Decoder (Bidirectional)

I have released a web based tool as well to encode and decode the PUAs via web browser. The tool can be found on the below link.

The tool allows the users to do the following.

  • Generate the PUAs payloads.
  • Decode the PUAs payloads.

https://pua-gen.kamransaifullah.com

About

Python3 implementation of Calendar files .ICS command and execution via hidden payloads in PUAs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载