Creating File Canaries with Python

Get an Alert when Someone Accesses a File

Alex Rodriguez
Python in Plain English
4 min readJan 25, 2021

--

Hello, World! In this article, I will demonstrate how you can use Python to create a simple file canary that sends an email to your Gmail account whenever a specified file is accessed. More specifically, in this tutorial, you’ll learn how to send emails and extract file information with Python and then use these capabilities to…

--

--

I am an Offensive Security Engineer @ Amazon who writes about cybersecurity and anything related to technology. Opinions are my own.