<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Romain TIENNOT on Medium]]></title>
        <description><![CDATA[Stories by Romain TIENNOT on Medium]]></description>
        <link>https://medium.com/@romain.tiennot?source=rss-1fbc4a579818------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*smbgAkECi4fLdj3s</url>
            <title>Stories by Romain TIENNOT on Medium</title>
            <link>https://medium.com/@romain.tiennot?source=rss-1fbc4a579818------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:59:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@romain.tiennot/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How we automated our PingCastle security audit reports for our Active Directory]]></title>
            <link>https://medium.com/manomano-tech/how-we-automated-our-pingcastle-security-audit-reports-for-our-active-directory-4b0578aa737d?source=rss-1fbc4a579818------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b0578aa737d</guid>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[active-directory-security]]></category>
            <category><![CDATA[ping-castle]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Romain TIENNOT]]></dc:creator>
            <pubDate>Tue, 28 Sep 2021 13:52:31 GMT</pubDate>
            <atom:updated>2021-09-28T13:52:31.642Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_NH-ZcBCYN-EDeyvA4Uohw.jpeg" /></figure><p>As SysAdmin in charge of the Active Directory at ManoMano, it is important for us to guarantee a very high level of security. To achieve this, we use, among other things, a great program : <a href="https://www.pingcastle.com/"><strong>PingCastle</strong></a></p><p><strong>PingCastle </strong>is a tool to quickly evaluate the security level of the Active Directory with the help of reports. In this report, we have different scores on four themes. Each anomaly is explained and a solution is proposed.</p><p>It was developed by <a href="https://github.com/vletoux">Vincent LE TOUX</a>, and we thank you for this fabulous work! 🙏</p><h4>Great adventures always start with a great story</h4><p>At ManoMano, we like to work as a team. We have set up with the security team 👮 (you must have seen some articles of <a href="https://medium.com/u/35458e5cfc06">Laurent Delosieres</a> or even <a href="https://medium.com/u/ac466bccffa1">Jules Duvivier</a>) a process to notify us directly in Slack when the PingCastle report score changes (for better, but also for worse).</p><p>This way, we can react quickly to remedy it if the score goes up or celebrate if the score goes down!</p><p>In this article, we will detail the infrastructure scheme we used to create these reports and share with you a Powershell script to create your own notification, because yes, we are like that!😄</p><h4>Scheme and explanation</h4><p>To explain this scheme, we have detailed point by point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*QEuN6nasQp36__LtGGQb1g.png" /></figure><p><strong>1.</strong> The PowerShell script will run the PingCastle program to generate a report in XML and HTML format.</p><p><strong>2.</strong> The XML format is parsed to retrieve the scores and compare them with the previous run. If the code is different or it is the first execution, we go to step 3.</p><p><strong>3.</strong> The Powershell script will call an EndPoint N8N. In this call, we send the content of the HTML report and the scores.</p><p><strong>4.</strong> N8N takes care of calling TheHive to create an IT security alert.<br>The content of the report is sent to a secure Google Drive folder. A link is retrieved that will be used for the Slack message.<br>Then Slack is contacted to send a message with the score and the Google Drive link in a private channel.</p><p><strong>5. </strong>Security receives an alert from TheHive and can close it when it is remediated.</p><p><strong>6.</strong> SysAdmin and security will receive a Slack notification. We use this process to estimate the urgency and plan our actions.</p><p>And here’s the result 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*Sk85uRk185d-BLSDIyEdwA.png" /></figure><h4>Let’s share our experience and knowledge!</h4><p>Below is an example script that you can use to generate the report. It doesn’t matter if you don’t have this infrastructure, you just have to <strong>adapt the script to line 145</strong> to send the report by email or make a call to an API.</p><p>To make it work, you can save it in a directory, for example <strong>PingCastleReport.ps1.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6edc4b61fdfc928d12a3022a8c2fa238/href">https://medium.com/media/6edc4b61fdfc928d12a3022a8c2fa238/href</a></iframe><p>In this directory you have to <a href="https://www.pingcastle.com/download/">download the PingCastle source</a>, unzip it and rename it ‘<strong>PingCastle</strong>’.<br>You should have this tree without the Reports part because it will be created after the first run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*kUjUNkh37_AXLcnm85jRUQ.png" /></figure><p>All that’s left to do is run the script to generate your report. 🎉 You can schedule it to be alerted when there is a score change!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b0578aa737d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/manomano-tech/how-we-automated-our-pingcastle-security-audit-reports-for-our-active-directory-4b0578aa737d">How we automated our PingCastle security audit reports for our Active Directory</a> was originally published in <a href="https://medium.com/manomano-tech">ManoMano Tech team</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>